Inkycal/inky_run.py

13 lines
588 B
Python
Raw Normal View History

2024-06-23 20:13:58 +02:00
"""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.
"""
2023-11-22 12:45:07 +01:00
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)
2024-06-23 20:13:58 +02:00
inky.run(run_once=True) # test if Inkycal can be run correctly, running this will show a bit of info for each module
2023-11-22 12:45:07 +01:00
asyncio.run(inky.run()) # If there were no issues, you can run Inkycal nonstop