The first couple of lines at pastebin are revealing...

pi@raspberrypi:~ $ python temp_ds18b20.py
(21.812, 71.2616)
(21.812, 71.2616)
^CTraceback (most recent call last):
  File "temp_ds18b20.py", line 30, in <module>
    time.sleep(1)
KeyboardInterrupt

That indicates that you aren't using an owfs compatabile interface (bus
master)

http://owfs.org/index.php?page=bus-masters

which means that, to my knowledge, running mwalls owfs driver, or any OWFS
software won't help you.

I could certainly be wrong but I don't think the GPIO and 1-wire kernel
module (enabled via raspi-config) talk to OWFS.

That shouldn't mean that you can't use it with weewx but you need to
approach it differently.

You've got a value being returned via your script (is it this
https://github.com/simonmonk/raspberrypi_cookbook_ed2/blob/master/temp_DS18B20.py
?) so you're half way there.  You need to find or write a script that will
enable you to present that data ( temperature value) and have it read by
weewx.
The fileparse driver could be a good starting point for the slurp end?
https://github.com/weewx/weewx/tree/master/examples/fileparse with your
script writing the data?

Or

Perhaps Horacio's work may speed you along.

How to add a ds18b20 thermometer to raspberry pi and weewx
https://groups.google.com/forum/#!searchin/weewx-user/ds18b20|sort:date/weewx-user/n1BbF3FAKh8/XxdPovR3AgAJ







Cheers
 Glenn

rorpi - read only raspberry pi & various weewx addons
https://github.com/glennmckechnie

On 15 December 2017 at 19:55, mixpc75 <[email protected]> wrote:

> Glen,
>
> That is fantastic! :) Clasp, clasp, clasp! :) I thank you for your two
> messages, this one and the one in the other thread. I preferred getting
> back to topic after trying from my side and let you know. I have not been
> as successful as you on mi RP1 and since I think I have folowed the steps
> correctly (again, writing a new image to SD, enabling 1-Wire, running a
> python script test it etc.). And I am beginning to wonder whether it might
> not work on a RPi1 but work successfully on a RPi3... I think I will mirror
> your steps in a RPi3 later on today and will get back with output.
>
> I have made myself sure I have installed your .deb packages
>
> My package versions matched yours
>
> pi@raspberrypi:~ $ dpkg --list | grep ow
> ii  libow-3.1-5:armhf               3.1p5-1
> armhf        1-Wire File System full library
> ii  owfs-common                     3.1p5-1
> all          common files used by any of the OWFS programs
> ii  python-ow                       3.1p5-1
> armhf        Dallas 1-wire support: Python bindings
>
> And we are on the same version weewx-owfs-0.21.tgz as well and, of course,
> same weewx version.
>
> sudo apt-get remove libow-3.1-5 owfs-common python-ow
> sudo reboot
> sudo dpkg --install owfs-common_2.9p8-6_all.deb (this deb first)
> sudo dpkg --install libow-2.9-8_2.9p8-6_armhf.deb
> sudo dpkg --install python-ow_2.9p8-6_armhf.deb
>
> Here is a linked to a bash'ed log with every command issued. The -sensors
> commands are towards the botton, of course.
> https://pastebin.com/Nkk5Th6V
>
>
> Please, mind I'm running my tests on a RPi1 armv61.
>
> Thank you once more and regards,
>
>
>
>
> On 14 December 2017 at 21:41, Howard Walter <[email protected]> wrote:
>
>> Nice detective work Glenn!
>>
>> I'll have a chance in the next few days to try the older versions.
>>
>>
>>
>> --
>> 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].
>> For more options, visit https://groups.google.com/d/optout.
>>
>
> --
> 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].
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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].
For more options, visit https://groups.google.com/d/optout.

Reply via email to