Another wish for 1-wire

Requests for future functionality

Moderator: Mattk

Post Reply
rune
Expert Boarder
Expert Boarder
Posts: 104
Joined: Wed Jun 24, 2009 10:51 pm

Another wish for 1-wire

Post by rune »

I know it's been mentioned before but native support for 1-wire temperature devices seems ideal to me. Meteohub already supports many devices and 1-wire is easy to implement in a cheap way and is easy to manage.
Using OWFS or other "tools" is (to me) complex and is not very easy.
So, please, please :cheer:
uhf
Fresh Boarder
Fresh Boarder
Posts: 13
Joined: Fri Mar 13, 2009 5:24 am
Location: Iowa, USA

Re:Another wish for 1-wire

Post by uhf »

I would like to implement a 1-wire rain gauge.
rune
Expert Boarder
Expert Boarder
Posts: 104
Joined: Wed Jun 24, 2009 10:51 pm

Re:Another wish for 1-wire

Post by rune »

My thoughts were going towards DS9490 USB adapter support and DS1820 sensors (all variants, but DS18S20 is, to me, most important)
Headworx
Senior Boarder
Senior Boarder
Posts: 45
Joined: Thu Sep 17, 2009 10:08 pm

Re:Another wish for 1-wire

Post by Headworx »

FWIW, I have a DS18B20 running via a RFXcom LAN receiver on a Sheeva.
rune
Expert Boarder
Expert Boarder
Posts: 104
Joined: Wed Jun 24, 2009 10:51 pm

Re:Another wish for 1-wire

Post by rune »

How many 1-wire devices can Meteohub then handle?
skyewright
Platinum Boarder
Platinum Boarder
Posts: 873
Joined: Fri Jan 25, 2008 6:27 pm
Location: Isle of Skye, Scotland

Re:Another wish for 1-wire

Post by skyewright »

rune wrote:My thoughts were going towards DS9490 USB adapter support and DS1820 sensors (all variants, but DS18S20 is, to me, most important)
I have OWFS running on an ALIX-1D, and a small Meteohub plug-in (written in C++) reading:

DS18S20 (temp)

DS2438 (Voltage: used for baro, humidity, solar & Inspeed eVane)

DS2423 (counters: used for Inspeed anemometer, & lightning counter, but rain gauge would be essentially just the same thing)

DS2408 (For 4x40 LCD display)

At present all sensor ids, etc. are 'hard coded', i.e. coded specifically for my set of sensors.

There is one other user for whom I coded a version specific to their sensors (just temp, humidity & lighttning) as an exercise.

I've not had any time to develop it further, e.g. to make it more easily 'configurable'.

The code is not 'pretty'. I just regard this stage as a simple "Proof of Concept", but it is commented and I'm a fan of 'meaningful' variable names so if you are at all familiar with C++ you could probably adapt it to your sensors and recompile it quite easily. It ought largely be a matter of comment out what you don't need, change a few sensor ids, copy/paste/edit a bit if you need more of a particular type of sensor, etc...

If you'd like to give that a go you are welcome to a copy of the code; provided I have access to any improvements you might make. ;)
Post Reply