This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm that you accept these cookies being set.

energy data
#4
You need to specify a different date period to get monthly data:
Code:
dates = {}
dates['start'] = os.date('*t')
dates['start'].month = dates['start'].month - 1
dates['end'] = os.date('*t')

month = trends.fetchone(' MAIN ', dates)

Example for yearly data: https://kb.logicmachine.net/libraries/trends/#examples
Reply


Messages In This Thread
energy data - by busta - 21.03.2024, 08:16
RE: energy data - by admin - 21.03.2024, 08:49
RE: energy data - by busta - 21.03.2024, 10:12
RE: energy data - by admin - 21.03.2024, 10:18

Forum Jump: