Skip to content
This extension captures and stores the output from an A3 uradmonitor (https://www.uradmonitor.com) The Report will generate a seperate html page at weewx/uradmon/index.html
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
bin/user
skins/uradmon
.gitignore
LICENSE
README.md
install.py

README.md

weewx-uradmon

Note:

The master branch is stale. It does work, but it will soon be dropped as its database is incompatabile with the next versions, Beta version. That version is on the dev branch and is being used to deal with a few issues that have been raised regarding the unit timing out at odd times.

It is recomended that you use the dev branch, and upgrade when it is merged back into master. That time shouldn't be all that far away.

Update: Sep 2018

This SLE has now been updated to capture, archive, and display the noise parameter.

To do this the old database requires an extra field. This doesn't matter if you're doing a brand new install as it will obviously be created along with everything else. If you are upgrading though, you'll need to dump (if you want to restore your old data) and then rename (delete) your old database as uradmon will not use it in its current form.

Thanks go to evilbunny2008 and lizdodd for this enhancement.

Description

This extension provides a Service, and a Report skin that integrates with weewx (weather station software).

The Service captures and stores the output from an A3 uradmonitor into a local database at the exisiting archive interval (as set in weewx.conf) The Report will generate a seperate html page at weewx/uradmon/index.html with daily, weekly, monthly and yearly graphs as is done with the main weewx/ pages and your weather station.

Instructions:

  1. Download the skin to your weewx machine.

    wget -O weewx-uradmon.zip https://github.com/glennmckechnie/weewx-uradmon/archive/master.zip
  2. Change to that directory and run the wee_extension installer

    sudo wee_extension --install weewx-uradmon.zip
  3. Edit the main weewx.conf file and under the [Uradmon] section add the IP address of your unit.

     # Options for extension 'uradmon'
     [UradMon]
         #urad_debug = True
         data_binding = uradmon_binding
         uradmon_address = 192.168.0.235
    

    It will appear as above. Change the 192.168.0.235 to point to your unit, using its IP or Qualified name.

    Next, edit the uradmon/skin.conf and in the top setion there is the unit_id that needs changing. Replace what's there with yours.

    [Uradmonitor]
            # id of your uradmonitor device, aka unit.
            # This is the unique nuber allocated by the uradmonitor site and
            # can be found on your dashboard page, once you are logged in.
            unit_id = 82000079
    
  4. Restart weewx

    sudo /etc/init.d/weewx stop
    
    sudo /etc/init.d/weewx start
    
  5. Problems? Hopefully none but if there are then look at your logs - syslog and apache2/error.log. If you view them in a terminal window then you will see what's happening, as it occurs.

    (I find multitail -f /var/log/syslog /var/log/apache2/error.log works for me {adjust to suit your install} -- apt-get install multi-tail if needed)

6.To uninstall

sudo wee_extension --uninstall uradmon

and then restart weewx

   sudo /etc/init.d/weewx stop

   sudo /etc/init.d/weewx start
   

Database options

In its default configuration, this skin will write to an sqlite database.

To change that to a mysql database then you need a suitable database user and to make a minor alteration to the uradmon entry in weewx.conf.

For the database, the following example assumes it will be named uradmon, and that the database user will be the weewx default user. eg:- The following extract shows your user...

[DatabaseTypes]
    [...]
    [[MySQL]]
        [...]
        user = weewx

That user can now be assigned the appropriate permissions to operate the needed database. You may need to create the user depending how you have previously setup weewx setup (the default is sqlite only, ie:- no mysql).

mysql -uroot -p
Enter password:

 [...]
 MariaDB [(none)]>CREATE USER 'weewx'@'localhost' IDENTIFIED BY 'weewx';
 MariaDB [(none)]> GRANT select, update, create, delete, insert ON uradmon.* to weewx@localhost;
Query OK, 0 rows affected (0.01 sec)

MariaDB [(none)]> quit;
Bye

With the above step done you'll then need to change one of the uradmon entries that was installed by the uradmon extension into weewx.conf...

Replace the old entry database = uradmon_sqlite with your new one database = uradmon_mysql eg:-

[DataBindings]
    [[uradmon_binding]]
        [...]
        database = uradmon_mysql

Save weewx.conf and then restart weewx as per the installation instructions above, then watch your logs for any errors. It should work seemlessly, but it always pays to check!

You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.