Merge pull request #888 from everyplace/main

[Inky Frame] Fix news headline redirect example
pull/895/head
Hel Gibbons 2024-01-03 13:03:42 +00:00 zatwierdzone przez GitHub
commit 400347b862
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 4AEE18F83AFDEB23
2 zmienionych plików z 4 dodań i 3 usunięć

Wyświetl plik

@ -39,6 +39,7 @@ def update():
# Image for Inky Frame 4.0
IMG_URL = "https://pimoroni.github.io/feed2image/nasa-apod-640x400-daily.jpg"
elif HEIGHT == 480:
# Image for Inky Frame 7.3
IMG_URL = "https://pimoroni.github.io/feed2image/nasa-apod-800x480-daily.jpg"
try:

Wyświetl plik

@ -3,9 +3,9 @@ import gc
import qrcode
# Uncomment one URL to use (Top Stories, World News and technology)
# URL = "http://feeds.bbci.co.uk/news/rss.xml"
# URL = "http://feeds.bbci.co.uk/news/world/rss.xml"
URL = "http://feeds.bbci.co.uk/news/technology/rss.xml"
# URL = "https://feeds.bbci.co.uk/news/rss.xml"
# URL = "https://feeds.bbci.co.uk/news/world/rss.xml"
URL = "https://feeds.bbci.co.uk/news/technology/rss.xml"
# Length of time between updates in minutes.
# Frequent updates will reduce battery life!