User Tools

Site Tools


functions_to_manage_energy_resources_consumption

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
functions_to_manage_energy_resources_consumption [2019/01/10 10:41] – [GetTodayDayType()] akuzmukfunctions_to_manage_energy_resources_consumption [2019/01/10 10:44] (current) – [GetHolidaysStats()] akuzmuk
Line 26: Line 26:
  
 The GetTodayDayType function returns the type of the current day: work, weekend, holiday. The types of days are set in the Level2 system. The GetTodayDayType function returns the type of the current day: work, weekend, holiday. The types of days are set in the Level2 system.
 +
 +This type is useful to control your HVAC equipment to optimize resources consumption.
  
 There are three valid types: "Working", "Weekend", "Holiday". There are three valid types: "Working", "Weekend", "Holiday".
Line 31: Line 33:
 Data is taken from Level2. Data on WebHMI is usually updated no later than 1 hour after they are updated in Level2. If there is no connection, the system will return the limits from the cache. The cache stores the limits for the current and the next two months. Data is taken from Level2. Data on WebHMI is usually updated no later than 1 hour after they are updated in Level2. If there is no connection, the system will return the limits from the cache. The cache stores the limits for the current and the next two months.
  
-The service requires an Internet connectionan account in Level2. The function is available since version 2.9.+The service requires an Internet connection and an account in Level2. The function is available since version 2.9.
  
 If for some reason the data has not been received, the value nil will be returned. If for some reason the data has not been received, the value nil will be returned.
Line 37: Line 39:
 ==== GetTomorrowDayType() ==== ==== GetTomorrowDayType() ====
  
-The GetTomorrowDayType function is completely analogous to GetTodayDayType with the only difference that it returns data about the future.+The GetTomorrowDayType function is completely analogous to GetTodayDayType with the only difference that it returns data about the next day. 
 + 
 +It is useful to know next day's type to optimize energy consumption.
  
 ==== GetHolidaysStats() ==== ==== GetHolidaysStats() ====
Line 45: Line 49:
   ***currentMonthDays** – number of days in the current month   ***currentMonthDays** – number of days in the current month
   ***nextMonthDays** - number of days in the next month   ***nextMonthDays** - number of days in the next month
-  ***currentMonthWeekends** - the number of dayoffs (according to the settings in the Level2 system) in the current month +  ***currentMonthWeekends** - the number of weekends (according to the settings in the Level2 system) in the current month 
-  ***nextMonthWeekends** - the number of dayoffs (according to the settings in the Level2 system) in the next month+  ***nextMonthWeekends** - the number of weekends (according to the settings in the Level2 system) in the next month
   ***currentMonthHolidays** - number of holidays (according to the settings in the Level2 system) in the current month   ***currentMonthHolidays** - number of holidays (according to the settings in the Level2 system) in the current month
   ***nextMonthHolidays** - number of holidays (according to the settings in the Level2 system) in the next month   ***nextMonthHolidays** - number of holidays (according to the settings in the Level2 system) in the next month
functions_to_manage_energy_resources_consumption.1547116919.txt.gz · Last modified: 2019/01/10 10:41 by akuzmuk

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki