Quote and weather rotation does not work
gelbal opened this issue · 3 comments
jellyfish-bot commented
[gelbal] This issue has attached support thread https://jel.ly.fish/e83c65f5-b729-48a4-a347-efe20487eb53
manuelemac commented
fast fix
- default --> quote only.
- ALTERNATE_FREQUENCY set --> switch between quote/weather
- DISPLAY_QUOTE = 0 --> showing only weather
substitute the last block of code in update_display.py after the comment
Alternate to other display code
if "DISPLAY_QUOTE" in os.environ and os.environ["DISPLAY_QUOTE"]=='0':
os.environ["NEXT_DISPLAY"] = 'weather'
else:
if(NEXT_DISPLAY == 'quote' and "ALTERNATE_FREQUENCY" in os.environ):
os.environ["NEXT_DISPLAY"] = 'weather'
else :
os.environ["NEXT_DISPLAY"] = 'quote'
gelbal commented
Hey @manuelemac thanks for chiming in. Would you like to open a pull request with your solution?
Then we could test it out and merge it once we confirm that this solves the issue.