martinberlin / cale-integrations

CALE configurator to add APIs to your epaper screens - PHP/Symfony 4.4
https://cale.es
MIT License
6 stars 0 forks source link

Add services time per Screen #21

Closed martinberlin closed 4 years ago

martinberlin commented 4 years ago

Screen service times is a feature that will be offered by CALE api Linked issue: #22 The idea is to expand battery life and save external API credits. For example in an office Screen displaying meeting labels it will be enough to update it only from 8 to 18 hours and from day 1 (monday) to day 5 (friday) All the other wake up outside this time, it will just call the API and it will return just one character: 0 So it will go to sleep again until next wake up. The device is not aware of the time, the API does and returns 0 (don't render) or 1 (render screen) based on your Timezone and selected service times

Hours sth_from 0 sth_to 24 Days std_from 1 std_to 7

date(N) 1 (for Monday) through 7 (for Sunday)

martinberlin commented 4 years ago

Implemented and working in htttp://cale.es