Hi balena team,
I am trying to put together a (last minute) Christmas gift for my daughter.
This is my first project, so I’m pretty green. I got the inkyshot up and running for the most part by following the instructions here: https://www.balena.io/blog/send-personal-messages-and-inspirational-quotes-with-this-e-ink-display-project/, but I cannot seem to get the INKY_MESSAGE variable to work for me.
I looked at the log and I think this is the section that relates to the problem, but I don’t understand what the issue is. My message is “hello”
23.12.20 10:02:13 (-0500) INFO:root:Display type: InkyPHAT_SSD1608
23.12.20 10:02:13 (-0500) INFO:root:Display dimensions: W 250 x H 122
23.12.20 10:02:15 (-0500) Traceback (most recent call last):
23.12.20 10:02:15 (-0500) File “/usr/app/update-display.py”, line 348, in
23.12.20 10:02:15 (-0500) message = data[‘contents’][‘quotes’][0][‘quote’]
23.12.20 10:02:15 (-0500) KeyError: ‘contents’
Can you please tell me what I am doing wrong?
Not sure if this is pertinent, but I am also alternating between a quote and weather. That seems to work fine. The custom message didn’t work for me even when I wasn’t displaying weather.
Thank you.
<EDIT: While in alternating weather/quote mode, I removed the INKY_MESSAGE variable, and now it is stuck on the weather and does not revert back to the inspirational quote.>