Closed twa127 closed 4 years ago
What if users don’t have weather api set?
Just make it optional, so no weather api then dont select or maybe check for weather api
no doubt it would be good option for sun set/sun rise.
This what I have -
Attached something for you to test. You need to add a new field to the schedule_daily_time table, call it enable_sunset with a type of TINYINT 1
I've changed the validation from using getWeather() to reading the weather table and checking it has been updated in the last hour.
Fix for boiler.php query not checking time variable correctly boiler.zip
Gui works as expected, but i have error while creating schedule
Zone Record Add/Update Failed:
Cannot add or update a child row: a foreign key constraint fails (`pihome`.`schedule_daily_time_zone`, CONSTRAINT `FK_schedule_daily_time_zone_schedule_daily_time` FOREIGN KEY (`schedule_daily_time_id`) REFERENCES `schedule_daily_time` (`id`))
ignore my last comments, i was modifying wrong database (enable_sunset ) but after switching to right one it worked :) one suggestion though, can we add sun rise icon in front of the zone name on schedule list.
How about
I think sunrise just before schedule name would be better same way we have coop icon.
Can't say I'm keen in this
I wasn’t expecting it look like this, :( also do we have sunrise icon ?
I think it looks better to keep the zone names in the same position, so icon would look better in the circle or after the name. The icon should really be sunset not sunrise, I'm sure we can find something suitable. This looks slightly better, but still prefer the first attempt
Lost my internet for a few hours ;-( how about
@twa127 last one is awesome love it,
ok happy for me to commit ?
Yes, definitely, update the build number as well.
I found a bug in boiler.php, I'll test the fix before I commit
Hi,
After using this feature for a bit I've come up with a revised version -
What do you think ?
@twa127 good thinking for individual zone, i think change line from Enable Sunset and set Offset in Minutes change it to Sunset & set Offset in Minutes. it looks very impressive.
Okay, the basic idea was to make it similar to Coop selection. I guess one shortcoming is that for zones with multiple cat2 devices (which is not yet implemented), the selection will be applied to all the cat2 controllers allocated to that zone.
Please note the table format for schedule_daily_time and schedule_daily_time_zone has been changed for this update, also view schedule_daily_time_zone_view has been changed
What do you think about having the option to use the sunset time available from weather as a schedule start time. Thought it might be useful to have lamps scheduled to come on at sunset.