functions_to_manage_energy_resources_consumption
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
functions_to_manage_energy_resources_consumption [2019/01/09 10:36] – created akuzmuk | functions_to_manage_energy_resources_consumption [2019/01/10 10:44] (current) – [GetHolidaysStats()] akuzmuk | ||
---|---|---|---|
Line 25: | Line 25: | ||
==== GetTodayDayType() ==== | ==== GetTodayDayType() ==== | ||
- | The GetTodayDayType function returns the type of the current day: work, holiday, 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. |
- | Three types are valid: " | + | This type is useful to control your HVAC equipment to optimize resources consumption. |
+ | |||
+ | There are three valid types: " | ||
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 connection, an account in Level2. The function is available since version 2.9. | + | The service requires an Internet connection |
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 | + | ***currentMonthWeekends** - the number of weekends |
- | ***nextMonthWeekends** - the number of dayoffs | + | ***nextMonthWeekends** - the number of weekends |
***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.1547030184.txt.gz · Last modified: 2019/01/09 10:36 by akuzmuk