You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add an option to created separated timers for switches. This will allow the switch to turn off and on on a time based schedule.
Needed input per switch:
Timer start time - ex: 09:00
Timer stop time - ex: 22:00 or 10:00 PM
Timer on duration - ex: 180
Timer off duration - ex: 90
In this example the timer will run between 9 AM and 10 PM. In that period the power will be on for 180 minutes and then off for 90 minutes. This repeats till 10 PM.
If this timer is enabled on the switch, it cannot be used on the environment page. Because the switch has its own timer logic and not using the central logic anymore.
The on and off durations are in minutes.
The power switch will be checked every 30 seconds if a power switch change is needed.
The power switch indicator will have a clock icon to it to show that it is timer based.
From my end, this branch seems to work. The update worked and it's installed. The 'translations' are still missing, so it isn't exactly clear how this function work.
It worked for me so something went wrong during your install. Are you sure you used git checkout feature/switch_timers after git pull
cd TerrariumPi git pull git checkout feature/switch_timers sudo ./install.sh
probably a sudo reboot is needed after this as well to get everything set up properly
Activity
Barbara1984 commentedon Jan 22, 2018
Hi, I do not want to be silly but when will this update come about? :-)
Added first part for timer functionality with power switches. This up…
theyosh commentedon Jan 25, 2018
Updates for this feature can be tested in branch https://github.com/theyosh/TerrariumPI/tree/feature/switch_timers. So update with
git pull. Then usegit checkout feature/switch_timers. Then restart TerrariumPI and clean your browser cache.Also keep a copy of your settings file before testing this.
Barbara1984 commentedon Jan 25, 2018
Ok, thanks, I'll tell you how it works
Aapjes94 commentedon Jan 25, 2018
From my end, this branch seems to work. The update worked and it's installed. The 'translations' are still missing, so it isn't exactly clear how this function work.
Next update for power switch timers. The timer functionality is imple…
Update timer functionality. #72
Update language files. #72
Update CHANGELOG. #72
theyosh commentedon Jan 27, 2018
At this point I think I got it working. So it could be fully tested now.
Barbara1984 commentedon Jan 27, 2018
Very cool thanks for your work I will test it tomorrow.
Barbara1984 commentedon Jan 28, 2018
Hi, I have now made the update but unfortunately I find no setting for the timer
theyosh commentedon Jan 28, 2018
Clear browser cache, and select activate at the timer pull down when editing the switches.
Barbara1984 commentedon Jan 28, 2018
Sorry maybe I'm too stupid but I think nothing has done the update and emptied cache. But I can not find the timer mode.
Barbara1984 commentedon Jan 28, 2018
Aapjes94 commentedon Jan 28, 2018
It worked for me so something went wrong during your install. Are you sure you used
git checkout feature/switch_timersaftergit pullcd TerrariumPigit pullgit checkout feature/switch_timerssudo ./install.shprobably a
sudo rebootis needed after this as well to get everything set up properlyBarbara1984 commentedon Jan 29, 2018
Thanks for the help now it works :-)
theyosh commentedon Jan 29, 2018
Cool, I have it also merged to master branch. So everybody can use it now 👍
Barbara1984 commentedon Jan 29, 2018
Can you please # 82 again open the subject is unfortunately not done :-(
theyosh commentedon Feb 3, 2018
Update the code that timer functionality is also in all the environment parts. Same logic.