|
Post by riedling on Aug 30, 2019 12:54:10 GMT -8
Just did a Git Pull, and now here is what i get when running things:
pi@switchdoclabs:~/SDL_Pi_SkyWeather $ sudo python SkyWeather.py
(109.1808, 53, 16)
()
('Pi Camera Revision', u'ov5647')
('after bme680', True)
Traceback (most recent call last):
File "SkyWeather.py", line 637, in <module>
NoiseFloor = config.AS3935_Lightning_Config[0]
AttributeError: 'module' object has no attribute 'AS3935_Lightning_Config'
Thoughts?
|
|
|
Post by riedling on Aug 30, 2019 12:56:45 GMT -8
also see this when trying the lightening sensor:
pi@switchdoclabs:~/SDL_Pi_SkyWeather $ sudo python testAS3935.py
Traceback (most recent call last):
File "testAS3935.py", line 72, in <module>
NoiseFloor = config.AS3935_Lightning_Config[0]
AttributeError: 'module' object has no attribute 'AS3935_Lightning_Config'
pi@switchdoclabs:~/SDL_Pi_SkyWeather $
|
|
|
Post by topher2880 on Aug 30, 2019 15:55:52 GMT -8
Are you using conflocal? did you copy your TRUE/FALSE data from what you have to the updated config?
|
|
|
Post by riedling on Aug 30, 2019 18:56:19 GMT -8
Are you using conflocal? did you copy your TRUE/FALSE data from what you have to the updated config? Im using whatever was on the SD card from SkyWeather. Was working today, updated, and now it's barking about the lightening connector, which also fails the test.
|
|
impactoz
Full Member
Posts: 142
Raspberry Pi: Yes
|
Post by impactoz on Aug 30, 2019 22:54:26 GMT -8
In v45 or so new configuration variables are now needed... The error you are showing relates to it cant find the variables... no attribute 'AS3935_Lightning_Config
In the readme doc of the new downloaded version it mentions this sort of..
Check your conflocal.py file to see if it contains the following lines around line 68-70
############
# AS3935 Lightning Configuration
############
# format: [NoiseFLoor, Indoor, TuneCap, DisturberDetection, WatchDogThreshold, SpikeDetection]
AS3935_Lightning_Config = [2,1,3,0,3,3]
The change was made by SDL to allow those users who wanted to configure paramaters to their Lightning detector that were getting errors. false reports. The line above appears to be the default values. So if its been working in the past just stay with those values or you will need to google about the code / parameters to see what you can change.
So the original instructions that no doubt you did a long time ago was to copy config.py to conflocal.py - this makes a local copy of an orginal configuration file, that presumable means as you upgrade you don't loose your settings like email address and codes for other services. Each time you do an upgrade, you should check what is in the new config.py file so that you can add these manually in the conflocal.py file (any order - they are just variables really).
Normally it all works well, and its only times like this when the code has drastically changed that new items are needed in your conflocal.py file.
|
|
|
Post by riedling on Sept 1, 2019 5:02:58 GMT -8
Thats was very helpful, I at least get past that.. Now I've got issues with the solar array:
pi@switchdoclabs:~/SDL_Pi_SkyWeather $ sudo python SkyWeather.py
(453.696, 226, 70)
()
('Pi Camera Revision', u'ov5647')
('after bme680', True)
as3935 start
as3935 present at 0x02
after SHT30
outsideTemperature: 22.4 C
outsideHumidity: 91.6 %
crc: 0xc8b1
SkyWeather Weather Station Version 046 - SwitchDoc Labs
Program Started at:2019-09-01 06:01:47
----------------------
I2C Mux - TCA9545: Present
BME680: Present
BMP280: Not Present
SkyCam: Present
DS3231: Not Present
HDC1080: Not Present
SHT30: Not Present
AM2315: Present
ADS1015: Not Present
ADS1115: Present
AS3935: Present
OLED: Not Present
SunAirPlus/SunControl: Not Present
Traceback (most recent call last):
File "SkyWeather.py", line 1706, in <module>
print returnStatusLine("SolarMAX",config.SolarMAX_Present)
AttributeError: 'module' object has no attribute 'SolarMAX_Present'
Can you possibly share your conflocal text with me, stripping out the bits that are specific to you?
Thanks!
|
|
|
Post by riedling on Sept 1, 2019 5:11:35 GMT -8
I actually found the 2nd part after rereading your post. I compared the config.py to my conflocal.py and made them match where needed. Now I'm up and running again. Thanks for that tip, they should make that more known I guess
|
|
|
Post by SDL on Sept 1, 2019 12:41:36 GMT -8
Absolutely! We will note it much more emphatically now!
BP
|
|