A Python Wrapper for the WittyPi 2 Realtime Clock for the RaspberryPi.
import wittyPy
witty = wittyPy.WittyPy('path/to/wittyPi/Software')
print(witty.next_start)
witty.set_startup(10,9,8,7)
print(witty.next_start)
witty.reset('startup')
print(witty.next_start)
Output:
>>> WittyTime(type="boot", day="unset", hour="unset", minute="unset", second="unset", as_date="unset")
>>> WittyTime(type="boot", day=10, hour=9, minute=8, second=7, as_date="2018-08-10 09:08:07")
>>> WittyTime(type="boot", day="unset", hour="unset", minute="unset", second="unset", as_date="unset")
To install wittyPy, simply use pip:
pip install wittyPy
You can find the documentation on docs.elpunkt.eu.
- Test wittyPy and open an issue to report a bug or discuss a feature idea.
- Give general feedback on the code and the package structure.
- Fork the repository and make your changes.