It seems I am close to the solution.
The steps are as follows (I run MH on Sheeva):
1. install digitemp:
2. After plugging in the DS9490 USB to 1-wire converter, I can list (walk) the devices:
3. If the output is correct (it should identify devices on the 1-wire bus), I initialize digitemp and store the current configuration in the .digitemprc file:
4. Now I edit the output format template to make it compatible with MeteoHub:
and changing the LOG_FORMAT line to:
Code: Select all
LOG_FORMAT "%Y%m%d%H%M%S Temp1 %.2C"
5. Now I run the digitemp:
It gives me output like below:
Code: Select all
Found DS2490 device #1 at 001/005
20091128140027 Temp1 22.94
20091128140033 Temp1 22.94
20091128140037 Temp1 23.00
20091128140042 Temp1 23.00
20091128140047 Temp1 23.00
20091128140052 Temp1 23.06
Looks almost perfect, with two potential issues:
- there is the not supressed header line "Found DS2490 device #1 at 001/005" - I am not sure if MH will complain about it or not...
- there is a decimal dot in reported values (I don't know how to get rid of it and whether or not this will upset the MeteoHub)
I cannot check if this works as a MH plugin right now, because my MH system is in a distant location and I have just been experimenting with the above on my test Sheeva system (without Meteohub Installed).
May be Boris would be kind to look at it... Seems 1-wire is just around the corner...
Cheers,
Headworx