Closed kuffcakes closed 1 year ago
At first glance, it looks like you're missing commas after every entry in each of your dictionaries. Have a look at the example config and note how dictionaries are formatted
On Thu, 1 Dec 2022, 03:04 kuffcakes, @.***> wrote:
Hi,
Thanks for the response on Instagram. Here is the error code I receive when I try and run its-a-plane.py
@.**:~/its-a-plane-python $ sudo python3 its-a-plane.py Traceback (most recent call last): File "/home/pi/its-a-plane-python/its-a-plane.py", line 1, in from display import Display File "/home/pi/its-a-plane-python/display/init*.py", line 5, in from utilities.overhead import Overhead File "/home/pi/its-a-plane-python/utilities/overhead.py", line 8, in from config import MIN_ALTITUDE File "/home/pi/its-a-plane-python/config.py", line 3 "tl_x": -112.351105 # Top-Left Longitude (deg)
SyntaxError: invalid syntax
Here are the contents of my config file:
ZONE_HOME = { "tl_y": 34.820843 # Top-Left Latitude (deg) "tl_x": -112.351105 # Top-Left Longitude (deg) "br_y": 34.381565 # Bottom-Right Latitude (deg) "br_x": -112.319651 # Bottom-Right Longitude (deg) } LOCATION_HOME = [ 34.616279 # Latitude (deg) -112.349679 # Longitude (deg) 0.01781 # Altitude ] TEMPERATURE_LOCATION = "Prescott Valley" OPENWEATHER_API_KEY = "836ded039f5960c548b45db693504630" TEMPERATURE_UNITS = "imperial" MIN_ALTITUDE = 100 BRIGHTNESS = 50 GPI_SLOWDOWN = 2 JOURNEY_CODE_SELECTED = "PRC" JOURNEY_BLANK_FILLER = " ? " HAT_PWM_ENABLED = True
— Reply to this email directly, view it on GitHub https://github.com/ColinWaddell/its-a-plane-python/issues/7, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAODIBOJ4XIM5DOC5TOAUCLWLAIVBANCNFSM6AAAAAASQJQOGY . You are receiving this because you are subscribed to this thread.Message ID: @.***>
I can't believe I missed those! I also wrote GPI_SLOWDOWN instead of GPIO. The program loaded so now I just need to wait for plane to fly over. The two issues I need to figure out are the date defaulting to 1-12-2022 and weather not showing up.
Thank you.
No worries, glad you got it working!
Hi,
Thanks for the response on Instagram. Here is the error code I receive when I try and run its-a-plane.py
pi@raspberrypi:~/its-a-plane-python $ sudo python3 its-a-plane.py Traceback (most recent call last): File "/home/pi/its-a-plane-python/its-a-plane.py", line 1, in
from display import Display
File "/home/pi/its-a-plane-python/display/init.py", line 5, in
from utilities.overhead import Overhead
File "/home/pi/its-a-plane-python/utilities/overhead.py", line 8, in
from config import MIN_ALTITUDE
File "/home/pi/its-a-plane-python/config.py", line 3
"tl_x": -112.351105 # Top-Left Longitude (deg)
SyntaxError: invalid syntax
Here are the contents of my config file:
ZONE_HOME = { "tl_y": 34.820843 # Top-Left Latitude (deg) "tl_x": -112.351105 # Top-Left Longitude (deg) "br_y": 34.381565 # Bottom-Right Latitude (deg) "br_x": -112.319651 # Bottom-Right Longitude (deg) } LOCATION_HOME = [ 34.616279 # Latitude (deg) -112.349679 # Longitude (deg) 0.01781 # Altitude ] TEMPERATURE_LOCATION = "Prescott Valley" OPENWEATHER_API_KEY = "removed but have one" TEMPERATURE_UNITS = "imperial" MIN_ALTITUDE = 100 BRIGHTNESS = 50 GPI_SLOWDOWN = 2 JOURNEY_CODE_SELECTED = "PRC" JOURNEY_BLANK_FILLER = " ? " HAT_PWM_ENABLED = True