|
Post by jasonmoran on Feb 2, 2021 15:11:34 GMT -8
Hello
Admittedly I have not yet done enough research yet on this message, but I am currently working through the instructions and I run the following command and received the following output. I understand, that I do not have the TCA9545 12C MUX board and that is what caught my eye. The question I have is however, is relating to the rest of the output in bold text. Does this indicate a problem? Have I done something incorrectly in previous steps?
pi@raspberrypi:~/SDL_Pi_SkyWeather $ sudo python SkyWeather.py >>>>>>>>>>>>>>>>>>><<<<<<<<<<< TCA9545 I2C Mux Not Present >>>>>>>>>>>>>>>>>>><<<<<<<<<<< ('Pi Camera Revision', u'ov5647') Traceback (most recent call last):
File "SkyWeather.py", line 418, in <module> weatherStation = SDL_Pi_WeatherRack.SDL_Pi_WeatherRack(config.anemometerPin, config.rainPin, 0,0, SDL_MODE_I2C_ADS1015) File "./SDL_Pi_WeatherRack/SDL_Pi_WeatherRack.py", line 200, in __init__ self.ads1015 = ADS1x15(ic=ADS1015, address=0x48) File "./SDL_Adafruit_ADS1x15/SDL_Adafruit_ADS1x15.py", line 138, in __init__ self.i2c = Adafruit_I2C(address) File "./SDL_Adafruit_ADS1x15/Adafruit_I2C.py", line 43, in __init__ self.bus = smbus.SMBus(busnum if busnum >= 0 else Adafruit_I2C.getPiI2CBusNumber()) IOError: [Errno 2] No such file or directory
Thanks in advance for any help. Jason
|
|
|
Post by SDL on Feb 2, 2021 15:50:59 GMT -8
Yes, you don't have the ADS1015 installed either. Would you run an sudo i2c_detect -y 1 and publish the results?
This is a SkyWeather1 system? Is this our SDCard or one you have built yourself?
Why don't you have the PiWeather boards which includes the TCA9454?
BP
|
|
|
Post by jasonmoran on Feb 3, 2021 5:55:18 GMT -8
Hello Thanks for the response. Yes, I purchased the SkyWeather - Raspberry Pi based Weather Station Kit for the Cloud (SKU: 0855-SKYW-DSBT), some time ago. I chose to go with my own SD Card so as to practice working within Linux.
pi@raspberrypi:~/SDL_Pi_SkyWeather $ sudo i2c_detect -y 1 sudo: i2c_detect: command not found
pi@raspberrypi:~/SDL_Pi_SkyWeather $ sudo python testSDL_Pi_TCA9545.py
Test SDL_Pi_TCA9545 Version 1.0 - SwitchDoc Labs
Sample uses 0x73 Program Started at:2021-02-03 06:13:32
Traceback (most recent call last): File "testSDL_Pi_TCA9545.py", line 51, in <module> tca9545 = SDL_Pi_TCA9545.SDL_Pi_TCA9545(addr=TCA9545_ADDRESS, bus_enable = TCA9545_CONFIG_BUS0) File "./SDL_Pi_TCA9545/SDL_Pi_TCA9545.py", line 44, in __init__ self._bus = smbus.SMBus(twi) IOError: [Errno 2] No such file or directory pi@raspberrypi:~/SDL_Pi_SkyWeather $ sudo python testAM2315.py >>>>>>>>>>>>>>>>>>><<<<<<<<<<< TCA9545 I2C Mux Not Present >>>>>>>>>>>>>>>>>>><<<<<<<<<<< ./SDL_Pi_AM2315/AM2315.py:36: RuntimeWarning: This channel is already in use, continuing anyway. Use GPIO.setwarnings(False) to disable warnings. GPIO.setup(self.powerpin, GPIO.OUT) Traceback (most recent call last): File "testAM2315.py", line 48, in <module> am2315 = AM2315.AM2315(powerpin=6) File "./SDL_Pi_AM2315/AM2315.py", line 40, in __init__ self._device = adasmbus.SMBus(1) File "./SDL_Pi_AM2315/adasmbus.py", line 105, in __init__ self.open(bus) File "./SDL_Pi_AM2315/adasmbus.py", line 130, in open self._device = open('/dev/i2c-{0}'.format(bus), 'r+b', buffering=0) IOError: [Errno 2] No such file or directory: '/dev/i2c-1' pi@raspberrypi:~/SDL_Pi_SkyWeather $ sudo python testAS3935.py >>>>>>>>>>>>>>>>>>><<<<<<<<<<< TCA9545 I2C Mux Not Present >>>>>>>>>>>>>>>>>>><<<<<<<<<<< Traceback (most recent call last): File "testAS3935.py", line 67, in <module> sensor = RPi_AS3935(address=0x02, bus=1) File "./RaspberryPi-AS3935/RPi_AS3935/RPi_AS3935.py", line 11, in __init__ self.i2cbus = smbus.SMBus(bus) IOError: [Errno 2] No such file or directory pi@raspberrypi:~/SDL_Pi_SkyWeather $ sudo pigpiod 2021-02-03 06:16:08 initInitialise: Can't lock /var/run/pigpio.pid Can't initialise pigpio library pi@raspberrypi:~/SDL_Pi_SkyWeather $ sudo python testDust.py Air Quality Measurements for PM2.5: 0 particles/0.01ft^3 0 ugm^3 Current AQI (not 24 hour avg): 0
Air Quality Measurements for PM2.5: 0 particles/0.01ft^3 0 ugm^3 Current AQI (not 24 hour avg): 0
Air Quality Measurements for PM2.5: 0 particles/0.01ft^3 0 ugm^3 Current AQI (not 24 hour avg): 0
Air Quality Measurements for PM2.5: 0 particles/0.01ft^3 0 ugm^3 Current AQI (not 24 hour avg): 0
Air Quality Measurements for PM2.5: 0 particles/0.01ft^3 0 ugm^3 Current AQI (not 24 hour avg): 0
Air Quality Measurements for PM2.5: 0 particles/0.01ft^3 0 ugm^3 Current AQI (not 24 hour avg): 0
^CTraceback (most recent call last): File "testDust.py", line 27, in <module> time.sleep(30) KeyboardInterrupt pi@raspberrypi:~/SDL_Pi_SkyWeather $ sudo python testTSL2591.py >>>>>>>>>>>>>>>>>>><<<<<<<<<<< TCA9545 I2C Mux Not Present >>>>>>>>>>>>>>>>>>><<<<<<<<<<< Traceback (most recent call last): File "testTSL2591.py", line 51, in <module> tsl = TSL2591.Tsl2591() # initialize File "./TSL2591/TSL2591.py", line 69, in __init__ self.bus = smbus.SMBus(i2c_bus) IOError: [Errno 2] No such file or directory pi@raspberrypi:~/SDL_Pi_SkyWeather $ sudo python test testAM2315.py testFan.py testSI1145.py testAS3935.py testGraph.py testTSL2591.py testBlynk.py testSDL_Pi_TCA9545.py testWeatherRack.py testDust.py testSHT30.py testWXLink.py pi@raspberrypi:~/SDL_Pi_SkyWeather $ sudo python testWeatherRack.py >>>>>>>>>>>>>>>>>>><<<<<<<<<<< TCA9545 I2C Mux Not Present >>>>>>>>>>>>>>>>>>><<<<<<<<<<< Traceback (most recent call last): File "testWeatherRack.py", line 93, in <module> weatherStation = SDL_Pi_WeatherRack.SDL_Pi_WeatherRack(anenometerPin, rainPin, 0,0, SDL_MODE_I2C_ADS1015) File "SDL_Pi_WeatherRack/SDL_Pi_WeatherRack.py", line 200, in __init__ self.ads1015 = ADS1x15(ic=ADS1015, address=0x48) File "SDL_Adafruit_ADS1x15/SDL_Adafruit_ADS1x15.py", line 138, in __init__ self.i2c = Adafruit_I2C(address) File "SDL_Adafruit_ADS1x15/Adafruit_I2C.py", line 43, in __init__ self.bus = smbus.SMBus(busnum if busnum >= 0 else Adafruit_I2C.getPiI2CBusNumber()) IOError: [Errno 2] No such file or directory pi@raspberrypi:~/SDL_Pi_SkyWeather $ sudo python Sky SkyCamera.py SkyCamera.pyc SkyWeather.py SkyWeatherSQL/ pi@raspberrypi:~/SDL_Pi_SkyWeather $ sudo python Sky SkyCamera.py SkyCamera.pyc SkyWeather.py SkyWeatherSQL/ pi@raspberrypi:~/SDL_Pi_SkyWeather $ sudo python SkyWeather.py >>>>>>>>>>>>>>>>>>><<<<<<<<<<< TCA9545 I2C Mux Not Present >>>>>>>>>>>>>>>>>>><<<<<<<<<<< ('Pi Camera Revision', u'ov5647') Traceback (most recent call last): File "SkyWeather.py", line 418, in <module> weatherStation = SDL_Pi_WeatherRack.SDL_Pi_WeatherRack(config.anemometerPin, config.rainPin, 0,0, SDL_MODE_I2C_ADS1015) File "./SDL_Pi_WeatherRack/SDL_Pi_WeatherRack.py", line 200, in __init__ self.ads1015 = ADS1x15(ic=ADS1015, address=0x48) File "./SDL_Adafruit_ADS1x15/SDL_Adafruit_ADS1x15.py", line 138, in __init__ self.i2c = Adafruit_I2C(address) File "./SDL_Adafruit_ADS1x15/Adafruit_I2C.py", line 43, in __init__ self.bus = smbus.SMBus(busnum if busnum >= 0 else Adafruit_I2C.getPiI2CBusNumber()) IOError: [Errno 2] No such file or directory pi@raspberrypi:~/SDL_Pi_SkyWeather $
|
|
|
Post by SDL on Feb 3, 2021 8:48:27 GMT -8
Have you installed I2C on your image?
Run the following command and post the results:
sudo i2cdetect -y 1
BP
|
|
|
Post by jasonmoran on Feb 3, 2021 10:21:33 GMT -8
Yes, that did seem to be a big part of my problems. I have installed that and the following reply is the output of sudo python SkyWeather.py. I see some errors in the output, not sure what to make of them yet.
Error:
as3935 start I/O error(121): Remote I/O error after SHT30
|
|
|
Post by jasonmoran on Feb 3, 2021 10:21:46 GMT -8
pi@raspberrypi:~/SDL_Pi_SkyWeather $ sudo python SkyWeather.py (139.53600000000003, 67, 20) () ('Pi Camera Revision', u'ov5647') ('after bme680', True) as3935 start I/O error(121): Remote I/O error after SHT30 outsideTemperature: 21.6 C outsideHumidity: 35.2 % crc: 0x50f0
SkyWeather Weather Station Version 055 - SwitchDoc Labs
Program Started at:2021-02-03 11:14:22
---------------------- 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 SolarMAX: Not Present SI1145 Sun Sensor: Not Present TSL2591 Sun Sensor: Present DustSensor: Present WXLink: Not Present Dual SolarMAX/WXLink: Not Present
UseBlynk: Not Present UseMySQL: Not Present Check WLAN: Not Present WeatherUnderground: Not Present UseWeatherStem: Not Present ---------------------- sendmail exception raised ----------------- Sample and Display ----------------- ----------------- Weather Sampling ----------------- (' value = ', 1464.9375) (' voltageValue = ', 1.4649375) ----------------- ----------------- SunAirPlus Not Present ----------------- ----------------- ----------------- ----------------- AS3935 Lightning Detector ----------------- Last result from AS3935: ----No Lightning detected--- Lightning Count = 0 ----------------- ----------------- Sample and Display Done ----------------- taking SkyPicture ----------------- Scheduled Jobs ----------------- Jobstore default: patTheDog (trigger: interval[0:00:10], next run at: 2021-02-03 11:14:39 MST) checkForButtons (trigger: interval[0:00:10], next run at: 2021-02-03 11:14:39 MST) sampleAndDisplay (trigger: interval[0:00:30], next run at: 2021-02-03 11:14:59 MST) tick (trigger: interval[0:01:00], next run at: 2021-02-03 11:15:29 MST) takeSkyPicture (trigger: interval[0:01:00], next run at: 2021-02-03 11:15:29 MST) updateRain (trigger: interval[0:05:00], next run at: 2021-02-03 11:19:29 MST) checkForShutdown (trigger: interval[0:05:00], next run at: 2021-02-03 11:19:29 MST) doAllGraphs (trigger: interval[0:15:00], next run at: 2021-02-03 11:29:29 MST) barometricTrend (trigger: interval[0:15:00], next run at: 2021-02-03 11:29:29 MST) read_AQI (trigger: interval[0:15:00], next run at: 2021-02-03 11:29:29 MST) WLAN_check (trigger: interval[0:30:00], next run at: 2021-02-03 11:44:29 MST) statusRain (trigger: interval[1:00:00], next run at: 2021-02-03 12:14:29 MST) rebootPi (trigger: cron[day='5-30/5', hour='0', minute='4'], next run at: 2021-02-05 00:04:00 MST) ----------------- ------Patting The Dog------- ------Patting The Dog------- ----------------- ------Patting The Dog------- Sample and Display ----------------- ----------------- Weather Sampling ----------------- (' value = ', 1464.9375) (' voltageValue = ', 1.4649375) ----------------- ----------------- SunAirPlus Not Present ----------------- ----------------- ----------------- ----------------- AS3935 Lightning Detector ----------------- Last result from AS3935: ----No Lightning detected--- Lightning Count = 0 ----------------- ----------------- Sample and Display Done ----------------- ------Patting The Dog------- ^CTraceback (most recent call last): File "SkyWeather.py", line 1909, in <module> time.sleep(1.0) KeyboardInterrupt
|
|
|
Post by jasonmoran on Feb 3, 2021 14:24:41 GMT -8
I double checked my wiring and I see the following troubles
|
|
|
Post by jasonmoran on Feb 3, 2021 14:24:53 GMT -8
pi@raspberrypi:~/SDL_Pi_SkyWeather $ sudo python testAS3935.py AS3935 NOT detected at I2C port 0x02 on base Bus pi@raspberrypi:~/SDL_Pi_SkyWeather $ sudo python SkyWeather.py mmal: mmal_vc_port_enable: failed to enable port vc.null_sink:in:0(OPQV): ENOSPC mmal: mmal_port_enable: failed to enable connected port (vc.null_sink:in:0(OPQV))0x2051ab0 (ENOSPC) mmal: mmal_connection_enable: output port couldn't be enabled ('after bme680', True) as3935 start I/O error(121): Remote I/O error after SHT30 outsideTemperature: 23.4 C outsideHumidity: 31.3 % crc: 0x96a1
SkyWeather Weather Station Version 055 - SwitchDoc Labs
Program Started at:2021-02-03 15:20:54
---------------------- I2C Mux - TCA9545: Present BME680: Present BMP280: Not Present SkyCam: Not 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 SolarMAX: Not Present SI1145 Sun Sensor: Not Present TSL2591 Sun Sensor: Not Present DustSensor: Present WXLink: Not Present Dual SolarMAX/WXLink: Not Present
UseBlynk: Not Present UseMySQL: Not Present Check WLAN: Not Present WeatherUnderground: Not Present UseWeatherStem: Not Present
|
|
|
Post by SDL on Feb 4, 2021 15:50:21 GMT -8
The error after the AS3935 is looking for the SHT30. I suspect you have an AM2315?
No SkyCamera found. Is your camera connected?
Rest looks pretty good!
WeatherSTEM won't work without a camera.
BP
|
|
|
Post by rodskyweather on Feb 15, 2021 8:43:20 GMT -8
The error after the AS3935 is looking for the SHT30. I suspect you have an AM2315? No SkyCamera found. Is your camera connected? Rest looks pretty good! WeatherSTEM won't work without a camera. BP
|
|
|
Post by rodskyweather on Feb 15, 2021 8:44:43 GMT -8
The error after the AS3935 is looking for the SHT30. I suspect you have an AM2315? No SkyCamera found. Is your camera connected? Rest looks pretty good! WeatherSTEM won't work without a camera. BP Is there a work-around for no camera? My camera is bad, and I'm waiting for a replacement
|
|
|
Post by SDL on Feb 15, 2021 9:26:19 GMT -8
Rod,
How do you know your camera is bad? Have you checked the connection very carefully? Lots of people will insert the cable backwards in one end or the other.
Post a picture of both ends of the camera cable.
There is no work around with the camera. You can't transmit to WeatherSTEM without it.
BP
|
|
|
Post by rodskyweather on Feb 15, 2021 9:48:09 GMT -8
Rod, How do you know your camera is bad? Have you checked the connection very carefully? Lots of people will insert the cable backwards in one end or the other. Post a picture of both ends of the camera cable. There is no work around with the camera. You can't transmit to WeatherSTEM without it. BP I've checked the cable carefully. I also tried a different cable. Attachments:
|
|
|
Post by SDL on Feb 15, 2021 14:06:03 GMT -8
That's pretty convincing now! It's bad. So when and where did you buy the camera?
BP
|
|