veebch / hometime

A physical progress bar based on Google Calendar events
GNU General Public License v3.0
45 stars 6 forks source link

Hometime #2

Closed H4K0N42 closed 1 year ago

H4K0N42 commented 1 year ago

Is it possible to make the day longer for a spesific time in the calendar, because school doesnt end always at 13:00

veebch commented 1 year ago

Sure, that should be easy, as it gets the day of the week from the time server too. Have a try at adding it, if you need a hand, let me know :)

(you will just need to make the function 'atwork' a bit more elaborate)

veebch commented 1 year ago

1 you want the function to return clockin/clockout you can just call it every cycle, or at a minute past midnight every day 2 13.5 == 13.5 hours == 13:30 3 You can definitely hard code events. More ideally you would be able to enter them in a ujson file that gets read by the code

veebch commented 1 year ago

(I've put a json parameter for the clockin/clockout on each day of the week)

veebch commented 1 year ago

I don't have time to do that right now, but I've left a comment in main.py in the place that you'd add any hardcoded events :)