Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add dusk and dawn to schedule #1263

Open
DaNii78 opened this issue Oct 9, 2018 · 5 comments
Open

Add dusk and dawn to schedule #1263

DaNii78 opened this issue Oct 9, 2018 · 5 comments
Labels
enhancement New feature or request scheduler

Comments

@DaNii78
Copy link

DaNii78 commented Oct 9, 2018

Hi, It would be nice to set the schedule of a relay regarding to dusk or dawn, because the daylight it's constantly growing or decreasing depending on the season of the year. So you wouldn't need to worry about changing the schedule every X days.

@poulch74
Copy link

In my fork I add sunrise/sunset calculations and "sunrise sensor" which can be binded to relay...
https://github.com/poulch74/espurna/tree/espurna-poulch74 see - Additioanl features in poulch74 branch.

@DaNii78
Copy link
Author

DaNii78 commented Oct 14, 2018

Thanks you, but, I prefer to use this official version.

@poulch74
Copy link

you can try cherry-pick it into this original version. i make some pull request for this project needed for my custom board, but i am very lazzy... so i make custom firmware fork for me/

@lbdroid
Copy link

lbdroid commented Dec 17, 2018

@poulch74 : If you have this feature implemented, how's about a PR?

@DaNii78 : If your objective here is to obtain the functionality, you can use a home automation server to implement it. Domoticz, for instance. When you define your switch, you can add timers to it to the effect of "turn ON 30 minutes before sunset" and "turn OFF 30 minutes after runrise". It calculates sunset and sunrise based on the coordinates you configure it with. Domoticz is light enough to run on your router, and is even packaged by OpenWRT (as well as mosquitto, which you will also need).

@DaNii78
Copy link
Author

DaNii78 commented Dec 24, 2018

@lbdroid I know that I can use HA, but, I wouldn't like to deploy this framework only to use this option. The same way that exists schedules nativelly in espurna's firmware, I think that add this option would be nice, even more when there are other firmwares that already do that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request scheduler
Projects
None yet
Development

No branches or pull requests

4 participants