WMR-968 Additional Outdoor Sensors

All about the standard Meteobridge devices based on mobile routers from TP-Link, D-Link, ASUS

Moderator: Mattk

Post Reply
bamchase
Fresh Boarder
Fresh Boarder
Posts: 7
Joined: Sat Aug 03, 2013 6:27 pm

WMR-968 Additional Outdoor Sensors

Post by bamchase » Sat Aug 03, 2013 6:36 pm

I was wondering if you could add or make an option to use Outdoor Sensor 1 instead of Outdoor Sensor 0 for the main sensor. The additional sensor is better then the original one that comes with the unit.

User avatar
admin
Platinum Boarder
Platinum Boarder
Posts: 5348
Joined: Mon Oct 01, 2007 10:51 pm

Re: WMR-968 Additional Outdoor Sensors

Post by admin » Sun Aug 04, 2013 12:58 am

Yes, simply use the ID you assigned this additional sensor as ID for your primary outdoor sensor for use in graphing, weather networks, etc.

bamchase
Fresh Boarder
Fresh Boarder
Posts: 7
Joined: Sat Aug 03, 2013 6:27 pm

Re: WMR-968 Additional Outdoor Sensors

Post by bamchase » Sun Aug 04, 2013 2:50 am

How?? I don't see any option anywhere to make that change. I see it on the live data page that it is there but no options of what is being sent to weather networks.

User avatar
admin
Platinum Boarder
Platinum Boarder
Posts: 5348
Joined: Mon Oct 01, 2007 10:51 pm

Re: WMR-968 Additional Outdoor Sensors

Post by admin » Sun Aug 04, 2013 8:56 am

I assumed you are using Meteohub, where you can do all that individual assignments.
Or do you speak of Meteobridge, which does not offer that options for sake of ease of use?

bamchase
Fresh Boarder
Fresh Boarder
Posts: 7
Joined: Sat Aug 03, 2013 6:27 pm

Re: WMR-968 Additional Outdoor Sensors

Post by bamchase » Sun Aug 04, 2013 3:31 pm

Meteobridge. If I even have to go in and make a change in SSH to a conf file I can do it. I just need this other temp gauge to the be the main one. The original one is so off it isn't even close. If you would like to talk in private you can email me at bamchase@gmail.com You have a great software package and it went together flawlessly.

User avatar
admin
Platinum Boarder
Platinum Boarder
Posts: 5348
Joined: Mon Oct 01, 2007 10:51 pm

Re: WMR-968 Additional Outdoor Sensors

Post by admin » Sun Aug 04, 2013 4:22 pm

To support special tweaks like that, I am just adding a call to "/root/myhook" at the end of the initialization process.
When you put a file there, that does change sensor assignment for your specifc Meteobridge, your request can be fulfilled.

You find sensor settings in "/home/meteohub/logger.conf". As this is in ramdisk will be loaded from the server each time Meteobridge does start, changing it there manually is not making sense. But as "/root/myhook" is started each time after the application stack has been loaded from the server, you can place code into "/root/myhook" that changes the "logger.conf" before Meteobridge then starts regular operation.

Relevant section for WMR-968 in "logger.conf" is:

Code: Select all

# oregon wmr968
.0@WEATHERSTATION       0 0 0 /dev/ttyMH 0 300 0 0 0
.0@SENSORIDMAP          0 0 0 0
.0@SENSORIDMAP          0 1 0 0
.0@SENSORIDMAP          0 2 0 0
.0@SENSORIDMAP          0 3 0 0
.0@SENSORIDMAP          0 3 1 1
.0@SENSORIDMAP          0 3 2 2
.0@SENSORIDMAP          0 3 3 3
.0@SENSORIDMAP          0 4 1 1
.0@SENSORIDMAP          0 4 2 2
.0@SENSORIDMAP          0 4 3 3
When the sensor you want to use as new primary sensor is listed on your live data page as "th1" and you want to drop display of default primary temp sensor, you have to delete line

Code: Select all

.0@SENSORIDMAP          0 3 0 0
and you should change line

Code: Select all

.0@SENSORIDMAP          0 3 1 1
into

Code: Select all

.0@SENSORIDMAP          0 3 1 0

User avatar
admin
Platinum Boarder
Platinum Boarder
Posts: 5348
Joined: Mon Oct 01, 2007 10:51 pm

Re: WMR-968 Additional Outdoor Sensors

Post by admin » Sun Aug 04, 2013 4:53 pm

A script that might handle this (not tested):

Code: Select all

#!/bin/sh
#
# script that interchanges primary outdoor temp sensor th0 with th1
#
cd /home/meteohub
sed -i "s/.0@SENSORIDMAP[ \t]*0 3 1 1/.0@SENSORIDMAP\t\t0 3 1 0/g" logger.conf
sed -i "s/.0@SENSORIDMAP[ \t]*0 3 0 0/.0@SENSORIDMAP\t\t0 3 0 1/g" logger.conf

bamchase
Fresh Boarder
Fresh Boarder
Posts: 7
Joined: Sat Aug 03, 2013 6:27 pm

Re: WMR-968 Additional Outdoor Sensors

Post by bamchase » Sun Aug 04, 2013 7:20 pm

Fixed! This is great. It will be a fix for now while we wait to get our other Davis. Any chance you can email us...we are looking at selling a complete wx package through our website and would like to use meteobridge as their connection. Let us know if we could get an affiliation setup. Thanks again!

Post Reply