DS18B20 Temp sensor daten in weewx einbinden auf Raspberry ?

49 views
Skip to first unread message

Andreas Weber

unread,
Dec 20, 2019, 7:30:47 AM12/20/19
to weewx-user
 Hi there

I have a weewx and Rasperry pi and would like to connect 3 temp sensors DS18B20 and display them on my homepage.

Installation of the 3 sensors on Raspberry is no problem, I have 3 folders for the 3 sensors and sensor data.

Who can show me the way how to go on?

There is a script in the weewx manual, but it cannot be used because there is no query from the DS18B20.

I am not programming and I have already experimented with different code snippets on the internet, unfortunately without success.

The sensor data must be written in a text file and weewx reads out the data.

But I have no idea how to do it.

I would like to be shown the way how it works.


Please help....


A heartfelt thank you

Paul McGeorge

unread,
Dec 20, 2019, 8:23:45 AM12/20/19
to weewx-user
The attached python script will write a file named soiltemp.txt for two DS18B20 Sensors.  You will need to edit the sensor numbers and names to fit your needs.
2Soilsensors.py

p q

unread,
Dec 20, 2019, 8:51:39 AM12/20/19
to weewx...@googlegroups.com
Agreed, writing to a text file is a start. For Weewx you'll want a driver that brings it in. 

You didn't mention if you have a weather station or not. Weewx was designed to be used with a weather station.

Anyway, you can see how I solved a similar problem here: https://hackaday.io/project/101680-solar-powered-wifi-temperature-sensor-for-weewx

--
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 weewx-user+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/59a28e56-b7b1-4ef9-9e41-058474c2531f%40googlegroups.com.


--
Peter Quinn
(415)794-2264
Reply all
Reply to author
Forward
0 new messages