OWFS install instructions

128 views
Skip to first unread message

Bret Craytor

unread,
Jul 24, 2019, 11:10:31 PM7/24/19
to weewx-user
I can't seem to find instructions on how to install a i2c to 1-wire adaptor to an original Dallas Semicondutor 1-wire weather station.  I have OWFS installed, and ran setup.py using the Texas Weather as the extension, then used wee_extension to add the owfs (0.21) files.  I saw some instructions, but with the re-boots, I can't find where they went.

Can somebody point me in the right direction? do I need OWFS.py?  

Bret

Bret Craytor

unread,
Jul 24, 2019, 11:12:32 PM7/24/19
to weewx-user
by the way using a Raspberry Pi 3B
AB electronics UK  i2c-onewire adapter 

Glenn McKechnie

unread,
Jul 24, 2019, 11:55:04 PM7/24/19
to weewx...@googlegroups.com
The additional information you provided helps, but I'm curious. You
say an original Dallas weather station - is this the AAG station with
wind vane, anenometer?
What other sensors do you have - temperature?

My first reaction seeing the i2c would have been that weewx-OWFS.py is
not the path, however following up on your later hints leads to a
schematic and a set of instructions which suggest it may well work
with mwalls script.

https://www.abelectronics.co.uk/kb/article/3/owfs-with-i2c-support-on-raspberry-pi

The schematic also hints that a 'strict' i2c method may not be required.

Have you run through that AB Electronics HowTo above? If you can get a
result from that then OWFS.py should work as well as it uses the
ow-server.

From a wee_extension install of owfs on a weewx installed via the
setup.py method
owfs.py - that script will be found in /home/weewx/bin/user Nothing
should need to be touched / edited within that script but if you're
familiar with 1-wire terminology it will offer clues.
The actual 1-wire configuration section will have been added to your
existing weewx.conf file in /home/weewx under a heading labelled
[OWFS]

What version of Debian runs on the pi? ie: can you get owserver
installed and running as per that HowTo? (A recent post suggests the
Buster version may have issues)
> --
> 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/06369fc5-ab58-4235-bb29-48642d1fc837%40googlegroups.com.
>


--


Cheers
Glenn

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

Gazza

unread,
Jul 25, 2019, 8:05:46 AM7/25/19
to weewx-user

From my test system when I was playing with the Dallas/AAG weather station on a DIY DS2482-100 I2C adapter on a Pi.

station_type = OWFS


[OWFS]
   
interface = /dev/i2c-1
    driver
= user.owfs
   
[[sensor_map]]
        intemp
=  /uncached/28.70CF40040000/temperature   # test DS18B20
        outTemp
= /uncached/10.3E5A09000800/temperature   # AAG TAI8515
        windDir
= /uncached/20.9D2D01000000               # volt.ALL # AAG TAI8515
        windSpeed
= /uncached/1D.0E6101000000             # counters.A # AAG TAI8515
        rain
= /1D.57620F000000                           # counters.B # Hobby boards counter V3

    [[sensor_type]]
        windDir = aag_windvane
        windSpeed = aag_windspeed
        rain = rainwise_bucket                            # rain = 1 point/
tip

I never did get the Hobby Boards counter working with my rain guage.

I have also tested a system that has an SDR station and an extra DS18B20 temperature sensor running as a service using the same I2C adapter but can't find the config files for that at the moment.



Gary

Bret Craytor

unread,
Jul 25, 2019, 9:43:53 AM7/25/19
to weewx-user
It is the original Dallas Semiconductor 1-wire weather station from 2001 or so.  I originally wanted to set it up back then, but stopped as I didn't have a computer which I could leave it attatched and running.  Well recently, I was cleaning my shop and found it and the Raspberry pi just seems too tempting, so I am getting it running.  I could not find my original serial to 1-wire adapter, so I went the i2c to 1-wire route.  Thus my new system!  I just need to get the software working....

I messed up my WeeWX config file so I thought I would just do a fresh install.  Now I am having troubles with OWFS to see the darn sensors again.  Ugh.

Bret


Bret Craytor

unread,
Jul 25, 2019, 12:39:53 PM7/25/19
to weewx-user


Ok, now I have OWFS seeing the sensors, and have followed instructions to install OWFS to WeeWX, but no joy.

here is a copy of trying to run the program.  installed using config.py:

Traceback (most recent call last):
  File "./bin/weewxd", line 64, in <module>
    weewx.engine.main(options, args)
  File "/home/weewx/bin/weewx/engine.py", line 869, in main
    config_dict = getConfiguration(config_path)
  File "/home/weewx/bin/weewx/engine.py", line 981, in getConfiguration
    config_dict = configobj.ConfigObj(config_path, file_error=True)
  File "/usr/lib/python2.7/dist-packages/configobj.py", line 1229, in __init__
    self._load(infile, configspec)
  File "/usr/lib/python2.7/dist-packages/configobj.py", line 1318, in _load
    raise error
configobj.DuplicateError: Duplicate section name at line 589.


Can anyone help me now?

Bret

gjr80

unread,
Jul 25, 2019, 1:50:55 PM7/25/19
to weewx-user
Hi,

The error message is your friend. Try looking at line 589 in weewx.conf; you already have a section name of that name and duplicates are not allowed (at the same level). Section names are enclosed in one or more pairs of square brackets [].

Gary

Bret Craytor

unread,
Aug 22, 2019, 8:37:28 PM8/22/19
to weewx-user
Okay, I took out the duplicates, but now I can't see anything running, I go to localhost, nada.  where am I supposed to see any data?

Bret

Andrew Milner

unread,
Aug 22, 2019, 9:18:49 PM8/22/19
to weewx-user
again - the log is your friend.  What does the log say?

see what data?
Reply all
Reply to author
Forward
0 new messages