LoveBootCaptain / WeatherPi_TFT

a weather display for a raspberry pi and a TFT display written in python3 and pygame
Other
80 stars 24 forks source link

Problem with Python 3 #47

Open VentoFahrer opened 2 years ago

VentoFahrer commented 2 years ago

I've set up and updated a fresh new Raspbian. Then followed the instructions exactly.

My hardware is a Pi4 with an official 7 inch touchscreen.

I start the WeatherPiTFT service first and then the script but unfortunately the following error message:

pygame 1.9.6 Hello from the pygame community. https://www.pygame.org/contribute.html Traceback (most recent call last): File "/home/pi/WeatherPi_TFT/./WeatherPiTFT.py", line 68, in <module> config = json.loads(config_data) 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 353, in raw_decode obj, end = self.scan_once(s, idx) json.decoder.JSONDecodeError: Expecting ',' delimiter: line 18 column 29 (char 429)

Solved.....

Wrong postal code. I live in Saxony / Germany (04425 in Germany) If the zip code begins with a 0 then the zip code must be in "" in config.json.