jardiamj / BYOWS_RPi

weeWX Driver for Build Your Own Weather Station for Raspberry Pi
GNU General Public License v3.0
7 stars 7 forks source link

Connecting other sensors #13

Open kinteki opened 1 year ago

kinteki commented 1 year ago

Hi Jardi!

I appreciate your BYOWS_RPi driver , working with all sensors, but i would like to develop further. Are there any solution to connect - to the BYOWS_RPi driver - other DIY sensors like sun radiation meter (tiny solar cell), dust and smoke sensor?

Best wishes, Zoltan

jardiamj commented 1 year ago

Hi! sorry for the late reply. You can definitely develop and connect other DIY sensors to this driver. It is a matter of passing the parameters for the sensor via the configuration file and making sure you use the correct name for the data when you generate the packets. The get_data method of the ByowsRpiStation class is where the packet with all the data is put together, and then genLoopPackets method of the ByowsRpi class generates them in a loop.

Once you have a way to get the data from the target sensors, integrating that into the driver should be very straightforward. Unfortunately, I don't have any of the hardware for the BYOWS. When I developed the driver I had someone else with the hardware testing it, and that makes it difficult for me to build on it.

If you have the specifics of the sensors that you want to connect I might be able to, at least, point out what needs to be done to incorporate them into this driver.

Thanks.