raspi-weather
raspi-weather copied to clipboard
Source provided not correct? Also getting jsondecodeerror
Thanks for this, I am trying to get it to work, however, and don't seem to be able to. I don't know why, I am fairly new to cli side of things. I had to make several changes to the code as it wasn't working for various reasons, partly because I'm using inkyWHAT.
I have forked the code https://github.com/Tjobbe/raspi-weather/blob/main/weather.py and here is my cli error:
pi@tjobbe:~ $ python3 /home/pi/scriptsforWHAT/weather-display.py Traceback (most recent call last): File "/home/pi/scriptsforWHAT/weather-display.py", line 29, in <module> x = json.loads(text) File "/usr/lib/python3.9/json/__init__.py", line 346, in loads return _default_decoder.decode(s) File "/usr/lib/python3.9/json/decoder.py", line 337, in decode obj, end = self.raw_decode(s, idx=_w(s, 0).end()) File "/usr/lib/python3.9/json/decoder.py", line 355, in raw_decode raise JSONDecodeError("Expecting value", s, err.value) from None json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)