Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Source provided not correct? Also getting jsondecodeerror #4

Open
Tjobbe opened this issue Feb 11, 2022 · 0 comments
Open

Source provided not correct? Also getting jsondecodeerror #4

Tjobbe opened this issue Feb 11, 2022 · 0 comments

Comments

@Tjobbe
Copy link

Tjobbe commented Feb 11, 2022

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)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant