loading
12 Comments

Tell us about yourself!

Complete Your Profile
  • Create Your Own Solar Powered Raspberry Pi Weather Station (Updated)

    Hello, Having an issue getting the graphs to appear in the RasPiConnect App. Checked the timestamps on the .png files in the RasPiConnectServer/static folder and all appear to be updating normally. Even opened the png files on my desktop and look fine. Not sure if this is a WeatherPi issue or a RasPiConnect Server issue? I see most other readings. The BR-1 bargraph doesn't appear to work either. I get green lights on all the panels when I validate.

    View Instructable »
  • Create Your Own Solar Powered Raspberry Pi Weather Station (Updated)

    Thanks, I'll make those changes and give it try. It looks like the defaultWindDirection is a set value of 0.0 If you look at the logic under def voltageToDegrees(value, defaultWindDirection) where the variable is passed, , the logic runs though a series of 'if' statements, If none are true it returns the defaultWindDirection which is 0.0 Instead of using a variable I suppose you could simply return 0.0 as in the first 'if' statement of that function.

    View Instructable »
  • Create Your Own Solar Powered Raspberry Pi Weather Station (Updated)

    I'm using the library that was included in the SDL_Pi_Weather_80422. It seems to work fine when I run SDL_Pi_Weather_80422Test.py but not when I ./startserver under WeattherPiSolarPoweredWeather. Must be a setting in the WeatherPi.py. Still troubleshooting the AS2315. I can't seem to get it to work wired up directly to the Pi now. May be a sensor.

    That would be great, thank you.

    This is strange. I get wind speed and rain gauge readings but no wind direction. Sometimes I get wind direction on the first pass and nothing on the rest. Also I'm sending the AM2315 back to SwtchDocs for testing. I tried it on my other Raspberry Pi and still get 0 values and no 0x5c on the i2cdetect.

    View Instructable »
  • Create Your Own Solar Powered Raspberry Pi Weather Station (Updated)

    Thanks, that got me through the errors. I do see samplings coming through now but the Wind Direction is zero and outdoor Temp/humidity is still zero

    Thanks again for the help. I updated the kernel to 4.4 and applied the changes you mentioned. I'm now seeing the overlays. Getting a UU instead of 0x73. Also,still not clear on the changes I need to make in the WeatherPi.py file.pi@raspberrypi:~ $ sudo i2cdetect -y 0Error: Could not open file `/dev/i2c-0' or `/dev/i2c/0': No such file or directo rypi@raspberrypi:~ $ sudo i2cdetect -y 1 0 1 2 3 4 5 6 7 8 9 a b c d e f00: -- -- -- -- -- -- -- -- -- -- -- -- --10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --70: -- -...see more »Thanks again for the help. I updated the kernel to 4.4 and applied the changes you mentioned. I'm now seeing the overlays. Getting a UU instead of 0x73. Also,still not clear on the changes I need to make in the WeatherPi.py file.pi@raspberrypi:~ $ sudo i2cdetect -y 0Error: Could not open file `/dev/i2c-0' or `/dev/i2c/0': No such file or directo rypi@raspberrypi:~ $ sudo i2cdetect -y 1 0 1 2 3 4 5 6 7 8 9 a b c d e f00: -- -- -- -- -- -- -- -- -- -- -- -- --10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --70: -- -- -- UU -- -- -- --pi@raspberrypi:~ $ sudo i2cdetect -y 2Error: Could not open file `/dev/i2c-2' or `/dev/i2c/2': No such file or directo rypi@raspberrypi:~ $ sudo i2cdetect -y 3 0 1 2 3 4 5 6 7 8 9 a b c d e f00: 03 -- -- -- -- -- -- -- -- -- -- -- --10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --40: 40 -- -- -- -- -- -- -- 48 -- -- -- -- -- -- --50: 50 -- -- -- -- -- -- 57 -- -- -- -- -- -- -- --60: -- -- -- -- -- -- -- -- 68 -- -- -- -- -- -- --70: -- -- -- UU -- -- -- 77pi@raspberrypi:~ $ sudo i2cdetect -y 4 0 1 2 3 4 5 6 7 8 9 a b c d e f00: -- -- -- -- -- -- -- -- -- -- -- -- --10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --40: 40 -- -- -- -- -- -- -- 48 -- -- -- -- -- -- --50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --70: -- -- -- UU -- -- -- --pi@raspberrypi:~ $ sudo i2cdetect -y 5 0 1 2 3 4 5 6 7 8 9 a b c d e f00: -- -- -- -- -- -- -- -- -- -- -- -- --10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --70: -- -- -- UU -- -- -- --pi@raspberrypi:~ $ sudo i2cdetect -y 6 0 1 2 3 4 5 6 7 8 9 a b c d e f00: -- -- -- -- -- -- -- -- -- -- -- -- --10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --70: -- -- -- UU -- -- -- --y 0x73 address is now UU.

    Almost starts then I get the following:WeatherPi Solar Powered Weather Station Version 1.9 - SwitchDoc LabsProgram Started at:2016-05-10 14:32:36sendmail exception raised--------------------------------------------------------------------------------Processing Command: SAMPLEBOTH----------------- Weather Sampling---------------------------------- SunAirPlus Sampling---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------Processing Command: SAMPLEBOTH----------------- Weather Sampling-----------------Traceback (most recent call last): File "WeatherPi.py", line 872, in <module> processCommand() File "WeatherPi.py", line 277, in processComm...see more »Almost starts then I get the following:WeatherPi Solar Powered Weather Station Version 1.9 - SwitchDoc LabsProgram Started at:2016-05-10 14:32:36sendmail exception raised--------------------------------------------------------------------------------Processing Command: SAMPLEBOTH----------------- Weather Sampling---------------------------------- SunAirPlus Sampling---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------Processing Command: SAMPLEBOTH----------------- Weather Sampling-----------------Traceback (most recent call last): File "WeatherPi.py", line 872, in <module> processCommand() File "WeatherPi.py", line 277, in processCommand sampleWeather() File "WeatherPi.py", line 421, in sampleWeather bmp180Temperature = bmp180.read_temperature() File "build/bdist.linux-armv7l/egg/Adafruit_BMP/BMP085.py", line 137, in read_ temperature File "build/bdist.linux-armv7l/egg/Adafruit_BMP/BMP085.py", line 111, in read_ raw_temp File "build/bdist.linux-armv7l/egg/Adafruit_GPIO/I2C.py", line 109, in write8IOError: [Errno 5] Input/output errorHere is my i2cdetects:pi@raspberrypi:~/WeatherPi-master $ sudo i2cdetect -y 1 0 1 2 3 4 5 6 7 8 9 a b c d e f00: -- -- -- -- -- -- -- -- -- -- -- -- --10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --40: 40 -- -- -- -- -- -- -- 48 -- -- -- -- -- -- --50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --70: -- -- -- UU -- -- -- --pi@raspberrypi:~/WeatherPi-master $ sudo i2cdetect -y 3 0 1 2 3 4 5 6 7 8 9 a b c d e f00: 03 -- -- -- -- -- -- -- -- -- -- -- --10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --40: 40 -- -- -- -- -- -- -- 48 -- -- -- -- -- -- --50: 50 -- -- -- -- -- -- 57 -- -- -- -- -- -- -- --60: -- -- -- -- -- -- -- -- 68 -- -- -- -- -- -- --70: -- -- -- UU -- -- -- 77pi@raspberrypi:~/WeatherPi-master $ sudo i2cdetect -y 4 0 1 2 3 4 5 6 7 8 9 a b c d e f00: -- -- -- -- -- -- -- -- -- -- -- -- --10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --40: 40 -- -- -- -- -- -- -- 48 -- -- -- -- -- -- --50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --70: -- -- -- UU -- -- -- --pi@raspberrypi:~/WeatherPi-master $ sudo i2cdetect -y 5 0 1 2 3 4 5 6 7 8 9 a b c d e f00: -- -- -- -- -- -- -- -- -- -- -- -- --10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --70: -- -- -- UU -- -- -- --pi@raspberrypi:~/WeatherPi-master $ sudo i2cdetect -y 6 0 1 2 3 4 5 6 7 8 9 a b c d e f00: -- -- -- -- -- -- -- -- -- -- -- -- --10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --70: -- -- -- UU -- -- -- --pi@raspberrypi:~/WeatherPi-master $My MUX board layout:-i2c Mux---BUS 0: WeatherPi-----FRAM-----DS3231-----ADS1015-----AS3935---BUS 1: SunAirPlus-----ina3221-----AM2315---BUS 2: Nothing---BUS 4: GND wire to WDT boardMy AS3935 Lightning Detector is on the WeatherPi board and should be on the same BUS as the WeatherPi.

    I can read the INA3221 just fine. And yes using a mux. How do you set the channel before the read? The wiring is good. WeatherRack Weather Sensors Sampling-----------------Rain Total= 0.00 inWind Speed= 0.00 MPHMPH wind_gust= 0.00 MPHWind Direction= 225.00 DegreesWind Direction Voltage= 2.055 V---------------------------------- DS3231 Real Time Clock-----------------Raspberry Pi= 2016-05-10 07:55:56DS3231= 2016-05-10 07:55:55DS3231 Temperature= 22.50 C---------------------------------- BMP180 Barometer/Temp/Altitude-----------------Temperature = 22.40 CPressure = 102.00 KPaAltitude = -64.16 mSealevel Pressure = 102.09 KPa---------------------------------- HTU21DF Humidity and Temperature-----------------Temperature = 22.70 CHumidity = 31.40 %------------------------------...see more »I can read the INA3221 just fine. And yes using a mux. How do you set the channel before the read? The wiring is good. WeatherRack Weather Sensors Sampling-----------------Rain Total= 0.00 inWind Speed= 0.00 MPHMPH wind_gust= 0.00 MPHWind Direction= 225.00 DegreesWind Direction Voltage= 2.055 V---------------------------------- DS3231 Real Time Clock-----------------Raspberry Pi= 2016-05-10 07:55:56DS3231= 2016-05-10 07:55:55DS3231 Temperature= 22.50 C---------------------------------- BMP180 Barometer/Temp/Altitude-----------------Temperature = 22.40 CPressure = 102.00 KPaAltitude = -64.16 mSealevel Pressure = 102.09 KPa---------------------------------- HTU21DF Humidity and Temperature-----------------Temperature = 22.70 CHumidity = 31.40 %---------------------------------- AS3853 Lightning Detector-----------------Last result from AS3953:----No Lightning detected---Lightning Count = 0----------------------------------AM2315-----------------outsideTemperature: 0.0 CoutsideHumidity: 0.0 %crc: -1---------------------------------------------------SunAirPlus Currents / Voltage-----------------LIPO_Battery Bus Voltage: 4.15 VLIPO_Battery Shunt Voltage: 10.76 mVLIPO_Battery Load Voltage: 4.16 VLIPO_Battery Current 1: 107.60 mABattery Power 1: 0.45 WSolar Cell Bus Voltage 2: 4.69 VSolar Cell Shunt Voltage 2: -12.64 mVSolar Cell Load Voltage 2: 4.68 VSolar Cell Current 2: 126.40 mASolar Cell Power 2: 0.59 WOutput Bus Voltage 3: 4.94 VOutput Shunt Voltage 3: 18.04 mVOutput Load Voltage 3: 4.94 VOutput Current 3: 180.40 mAOutput Power 3: 0.89 W

    View Instructable »
  • Create Your Own Solar Powered Raspberry Pi Weather Station (Updated)

    Thanks. That got me a bit further. I don't get any errors anymore but now I see 0 values on both temp and humidity. The AM2315 works if I connect it directly to the pi. But get 0's when hooked up through the SDL on JP10. All other sensors work fine. I can actually run wetherPi server and RasPiConnect server and get values on my iPad accept the outdoor temp/humidity. temperature: 0.0humidity: 0.0crc_ok: -1

    View Instructable »
  • Create Your Own Solar Powered Raspberry Pi Weather Station (Updated)

    I Seem to be having trouble getting the AM2315 outdoor temp/humidity sensor working. I believe I downloaded to correct drivers. https://github.com/lexruee/am2315.gitGetting the following error when running testAM2315.pypi@raspberrypi:~/WeatherPi-master $ sudo ./testAM2315.py./testAM2315.py: 1: ./testAM2315.py: import: not foundfrom: can't read /var/mail/tentacle_pi.AM2315./testAM2315.py: 3: ./testAM2315.py: Syntax error: "(" unexpectedGet the following when running the test.pypi@raspberrypi:~/WeatherPi-master/am2315-master/examples $ sudo python test.pytemperature: 0.0humidity: 0.0crc_ok: FalseI have it wired to my sunairplus JP10 correctly. Not sure what else I'm missing. All other sensors work fine.

    View Instructable »