test pisugar support

This commit is contained in:
Ace
2024-06-23 20:13:58 +02:00
parent 610f246c02
commit 309c6ca5bc
5 changed files with 88 additions and 3 deletions

View File

@@ -1,7 +1,12 @@
"""Basic Inkycal run script.
Assumes that the settings.json file is in the /boot directory.
set render=True to render the display, set render=False to only run the modules.
"""
import asyncio
from inkycal import Inkycal
inky = Inkycal(render=True) # Initialise Inkycal
# If your settings.json file is not in /boot, use the full path: inky = Inkycal('path/to/settings.json', render=True)
inky.test() # test if Inkycal can be run correctly, running this will show a bit of info for each module
inky.run(run_once=True) # test if Inkycal can be run correctly, running this will show a bit of info for each module
asyncio.run(inky.run()) # If there were no issues, you can run Inkycal nonstop