[userMODULE] ScheduleSun
Posted: 09 Nov 2014 20:16
Module is only tested on server version Z-Way 2.0.0-rc13. So I'm unsure if it will work for earlier versions of the server.
Description for version 1.0.1 and later--------
NOTE: This description does not apply to module version 1.0.0 .
Scene scheduler for sun positions. The calculations is based from source-code by mourner:
https://github.com/mourner/suncalc
These are merged in the module code, as I don't know how to import objects in javascript code. This will make you independent of internet-connection.
Basically, this module calculates the nearest time and date of your selected sunposition and calls a selected scene at that time. When the scene has been called, the next time and date of the selected sunposition will be calculated, and the selected scene will be called at that time, this will continue on until you remove or change the options of the module.
Values that are needed is your preferred latitude and longitude in decimal format which can be retrieved from i.e:
http://itouchmap.com/latlong.html
Also you can add time values offset to your selected sunposition, i.e. turn on a scene 15 minutes before or after sunset.
Status update 2014/11/12 12:10
Added a new module and updated the text of this post.
Description for version 1.0.1 and later--------
NOTE: This description does not apply to module version 1.0.0 .
Scene scheduler for sun positions. The calculations is based from source-code by mourner:
https://github.com/mourner/suncalc
These are merged in the module code, as I don't know how to import objects in javascript code. This will make you independent of internet-connection.
Basically, this module calculates the nearest time and date of your selected sunposition and calls a selected scene at that time. When the scene has been called, the next time and date of the selected sunposition will be calculated, and the selected scene will be called at that time, this will continue on until you remove or change the options of the module.
Values that are needed is your preferred latitude and longitude in decimal format which can be retrieved from i.e:
http://itouchmap.com/latlong.html
Also you can add time values offset to your selected sunposition, i.e. turn on a scene 15 minutes before or after sunset.
Status update 2014/11/12 12:10
Added a new module and updated the text of this post.