HGlab01 / ioBroker.apg-info

Austrian Powet Grid (APG) Info
MIT License
3 stars 4 forks source link

Object containing the Date #226

Closed noriyuki41 closed 4 months ago

noriyuki41 commented 4 months ago

It would be helpful if today and tomorrow contain an object showing the date for which the data is valid. This is especially important because the prices are updated at 3 p.m. Until then tommorow is today?!

HGlab01 commented 4 months ago

Hey, thanks for the feedback! Per default the adapter runs at 00:00:05, 13:00:00:05 and 15:00:05 https://github.com/HGlab01/ioBroker.apg-info/blob/6582f2187a3e03a3622a7b8e43dfe592a85d55e7/io-package.json#L153 which means that 5 seconds after midnight the new day changes to today. The run at view seconds after midnight is highly recommended. Nevertheless adding a attribute with the date to which the objects belong can be implemented. Will take care about

HGlab01 commented 4 months ago

apg-info.0.marketprice.today.date apg-info.0.marketprice.tomorrow.date implemented in 0.1.7-apha.1

Can be tested with iob upgrade iobroker.apg-info@0.1.7-alpha.1