UPDATE

I believe there is an issue when using a DFRobot AS3935 with weewx. Here is 
what I did:

1.  Connect DFRobot AS3935 to RPI.

                       AS3935 >>>>  RPI 
                          -------       -----
                         Red >>>>>> Pin 4
                         Black >>>> Pin 9
                         Blue >>>>> Pin 5
                         Green >>>> Pin 3
                         IRQ >>>>>  Pin 11
                         GND >>>>>  Pin 14

2. Apply power to  RPi and ensured I2C Interface is enabled on RPI.

3. Verified that you can detect the DFRobot AS3935.
          pi@raspberrypi:~ $ i2cdetect -y 1
               0  1  2  3  4  5  6  7  8  9  a  b  c  d  e  f
           00:          03 -- -- -- -- -- -- -- -- -- -- -- -- 
           10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 
           20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 
           30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 
           40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 
           50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 
           60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 
           70: -- -- -- -- -- -- -- --

4. Install Required AS3935 Module (https://pypi.org/project/RPi_AS3935/)
4a. sudo pip install RPi_AS3935

5. Install Required AS3935 Service 
5a. Download the file (
http://lancet.mit.edu/mwall/projects/weather/releases/weewx-as3935-0.6.tgz)
5b. Install AS3935 Service --- pi@raspberrypi:/home/weewx/bin $ sudo 
./wee_extension --install=/home/pi/Downloads/weewx-as3935-0.6.tgz (Paths 
may differ)

6. Followed the remaining instruction found at 
https://github.com/weewx/weewx/wiki/as3935

The error that I'm receiving when the DFRobot AS3935 is connected to the 
RPI is as follows:

Feb  6 22:36:54 raspberrypi weewx[1021]: engine: Loading service 
user.as3935.AS3935
Feb  6 22:36:54 raspberrypi weewx[1021]: as3935: service version is 0.6
Feb  6 22:36:54 raspberrypi weewx[1021]: as3935: address=0x03
Feb  6 22:36:54 raspberrypi weewx[1021]: as3935: bus=1
Feb  6 22:36:54 raspberrypi weewx[1021]: as3935: indoors=True
Feb  6 22:36:54 raspberrypi weewx[1021]: as3935: noise_floor=0
Feb  6 22:36:54 raspberrypi weewx[1021]: as3935: calibration=0x06
Feb  6 22:36:54 raspberrypi weewx[1021]: as3935: pin=17
Feb  6 22:36:54 raspberrypi weewx[1021]: as3935: data_binding=None
Feb  6 22:36:54 raspberrypi weewx[1021]: as3935: binding=archive
Feb  6 22:36:54 raspberrypi weewx[1021]: engine: Caught unrecoverable 
exception in engine:
Feb  6 22:36:54 raspberrypi weewx[1021]:     ****  [Errno 121] Remote I/O 
error
Feb  6 22:36:54 raspberrypi weewx[1021]:     ****  Traceback (most recent 
call last):
Feb  6 22:36:54 raspberrypi weewx[1021]:     ****    File 
"/home/weewx/bin/weewx/engine.py", line 884, in main
Feb  6 22:36:54 raspberrypi weewx[1021]:     ****      engine = 
engine_class(config_dict)
Feb  6 22:36:54 raspberrypi weewx[1021]:     ****    File 
"/home/weewx/bin/weewx/engine.py", line 78, in __init__
Feb  6 22:36:54 raspberrypi weewx[1021]:     ****      
self.loadServices(config_dict)
Feb  6 22:36:54 raspberrypi weewx[1021]:     ****    File 
"/home/weewx/bin/weewx/engine.py", line 142, in loadServices
Feb  6 22:36:54 raspberrypi weewx[1021]:     ****      
self.service_obj.append(weeutil.weeutil._get_object(svc)(self, config_dict))
Feb  6 22:36:54 raspberrypi weewx[1021]:     ****    File 
"/home/weewx/bin/user/as3935.py", line 154, in __init__
Feb  6 22:36:54 raspberrypi weewx[1021]:     ****      
self.sensor.set_indoors(indoors)
Feb  6 22:36:54 raspberrypi weewx[1021]:     ****    File 
"/usr/local/lib/python2.7/dist-packages/RPi_AS3935/RPi_AS3935.py", line 
167, in set_indoors
Feb  6 22:36:54 raspberrypi weewx[1021]:     ****      self.set_byte(0x00, 
write_value)
Feb  6 22:36:54 raspberrypi weewx[1021]:     ****    File 
"/usr/local/lib/python2.7/dist-packages/RPi_AS3935/RPi_AS3935.py", line 
222, in set_byte
Feb  6 22:36:54 raspberrypi weewx[1021]:     ****      
self.i2cbus.write_byte_data(self.address, register, value)
Feb  6 22:36:54 raspberrypi weewx[1021]:     ****  IOError: [Errno 121] 
Remote I/O error
Feb  6 22:36:54 raspberrypi weewx[1021]:     ****  Exiting.

When I connect a MOD-1016 AS3935 detector everything works as expected.  




On Thursday, February 6, 2020 at 12:59:05 PM UTC-5, rich T wrote:

> Did you try install the RPi_AS3935 module (
> https://pypi.org/project/RPi_AS3935/)?  I have one still in the 
> packaging, won't get around to setting it up until sometime this weekend.
>
> On Thursday, February 6, 2020 at 12:42:09 PM UTC-5, Giuseppe Saia wrote:
>>
>>
>>
>> I think that my DFrobot_as3935 module is not compatible with this driver 
>> and the subsequent integration with weeewx cannot be <..... what do you 
>> think?
>> is there a solution in your opinion?
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/ec1c0c24-727f-4000-b846-1015abc9a901%40googlegroups.com.

Reply via email to