|
Post by Powderjockey on Oct 26, 2019 8:55:45 GMT -8
I just updated to V051 and read the read.me on Github and started to receive these errors.
(1065.6960000000001, 622, 220) () ('Pi Camera Revision', u'ov5647') Traceback (most recent call last): File "SkyWeather.py", line 432, in <module> import readLoRa File "/home/pi/SDL_Pi_SkyWeather/readLoRa.py", line 26, in <module> if (config.SolarMAX_Type == "LEAD"): AttributeError: 'module' object has no attribute 'SolarMAX_Type'
I uncommented the line to allow the "== "LIPO"" as I do have a Lipo battery attached. and then get the following:
Traceback (most recent call last): File "SkyWeather.py", line 13, in <module> import conflocal as config File "/home/pi/SDL_Pi_SkyWeather/conflocal.py", line 45 @@ -42,6 +42,10 @@ runLEDs = False ^ SyntaxError: invalid syntax Not sure what I missed here.
S
|
|
|
Post by SDL on Oct 26, 2019 15:55:16 GMT -8
Add the following to your conflocal.py file
# SolarMAX_Type = "LEAD" for SolarMAX Lead Acid # SolarMAX_Type = "LIPO" for SolarMAX LiPo SolarMAX_Type = ""
That will fix the error. Change your code back to the way it was. I've got to figure out how add configuration variables in a better way.. I'm thinking!
BP
|
|
|
Post by Powderjockey on Oct 26, 2019 19:18:34 GMT -8
Add the following to your conflocal.py file # SolarMAX_Type = "LEAD" for SolarMAX Lead Acid # SolarMAX_Type = "LIPO" for SolarMAX LiPo SolarMAX_Type = "" That will fix the error. Change your code back to the way it was. I've got to figure out how add configuration variables in a better way.. I'm thinking! BP Added that and still get the same error. (0.0, 0, 0) () ('Pi Camera Revision', u'ov5647') Traceback (most recent call last): File "SkyWeather.py", line 432, in <module> import readLoRa File "/home/pi/SDL_Pi_SkyWeather/readLoRa.py", line 26, in <module> if (config.SolarMAX_Type == "LEAD"): AttributeError: 'module' object has no attribute 'SolarMAX_Type' Segmentation fault
|
|
|
Post by Powderjockey on Oct 26, 2019 19:24:32 GMT -8
Cancel the above. working now. Wrong conflocal.py file. Bad day.
|
|
|
Post by jrwilling on Oct 29, 2019 5:53:05 GMT -8
Ran into the same issue when I updated my unit, got that bit sorted but have noted that the Air Quality readings are now always coming back "0" for both the internal and external sensors.
Any insights?
|
|
|
Post by SDL on Oct 29, 2019 16:08:22 GMT -8
Have you run the test ?
SDL_Pi_SkyWeather/testDust.py
sudo python testDust.py
BP
|
|
|
Post by jrwilling on Oct 29, 2019 17:55:52 GMT -8
Yep, returns the following:
Air Quality Measurements for PM2.5: 0 particles/0.01ft^3 0 ugm^3 Current AQI (not 24 hour avg): 0
|
|
|
Post by SDL on Oct 30, 2019 15:31:57 GMT -8
After running it for 1/2 hour what does it do?
BP
|
|
|
Post by jrwilling on Nov 1, 2019 6:08:00 GMT -8
Well, unsure as after a couple of days it has mysteriously started reporting again. This sensor a bit cold sensitive perhaps? It's gone cold out here the past few days.
|
|
troy
New Member
Posts: 9
|
Post by troy on Feb 18, 2020 16:06:14 GMT -8
Add the following to your conflocal.py file # SolarMAX_Type = "LEAD" for SolarMAX Lead Acid # SolarMAX_Type = "LIPO" for SolarMAX LiPo SolarMAX_Type = "" That will fix the error. Change your code back to the way it was. I've got to figure out how add configuration variables in a better way.. I'm thinking! BP Adding these to the conflocal.py fixed our "AttributeError: 'module' object has no attribute 'SolarMAX_Type'" error
|
|
|
Post by SDL on Feb 20, 2020 13:34:33 GMT -8
That makes no sense out of context. Please post the entire exception for me to gander at.
BP
|
|