diff options
| author | Jacob McDonnell <jacob@simplelittledream.com> | 2022-10-31 15:17:09 -0400 |
|---|---|---|
| committer | Jacob McDonnell <jacob@simplelittledream.com> | 2022-10-31 15:17:09 -0400 |
| commit | b2e6cdde266260a525ef80147dacbcd2ada3a985 (patch) | |
| tree | c1c40d6fbba8d53889040bffb22e46c58b51b4c5 /main.py | |
| parent | 4681ebe60b5020c63c58034ad3072c0c5e3ca940 (diff) | |
Better organization of codeporting-to-pico
Diffstat (limited to 'main.py')
| -rw-r--r-- | main.py | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -4,13 +4,17 @@ from news import getHeadlines from quote import getQuote from weather import getHourlyForecast, getDetailedForecast import datetime -from settings import modules, general, lineWidth +from settings import getSettings from time import sleep from Adafruit_Thermal import * from textwrap import fill from ipqr import getQrCode +general = getSettings("general") +modules = getSettings("modules") + name = general["name"] +lineWidth = general["Line Width"] today = datetime.date.today().strftime("%A %m-%d-%Y") printer = Adafruit_Thermal("/dev/serial0", 19200, timeout=5) |
