RaspberryPi-Samples / py-my-key

Access control with RaspberryPi and NFC card reader
ISC License
1 stars 1 forks source link

Restrict access by day / hour ... #11

Open scls19fr opened 8 years ago

scls19fr commented 8 years ago

With Raspberry Pi date/time is updated using network (NTP). Such feature could need a Real Time Clock

Moreover it will be necessary to define a text format to define allowed hours, forbidden hours...

A cron like format might be considered http://www.nncron.ru/help/EN/working/cron-format.htm Some Python libs to deal with crontab format https://github.com/kiorky/croniter https://bugs.launchpad.net/python-crontab

Maybe ISO 8601 can also be considered https://en.wikipedia.org/wiki/ISO_8601 Some Python libs to deal with ISO 8601 https://pypi.python.org/pypi?%3Aaction=search&term=8601&submit=search