Thanks Gary!
Now that you told me about this, I was able to find the documentation that 
talks about it! lol
I was worried about updating and solving that was my next project, now i do 
not have to!!

Much obliged, Stephen

On Friday, January 18, 2019 at 8:40:45 PM UTC-6, gjr80 wrote:
>
> Hi,
>
> Modifying a .py can be a risky business, at the very least you open your 
> self up to losing your changes in the future during an upgrade. Sensor maps 
> are typically able to be controlled from a config file. Looking at the 
> WMR9x8 driver you should be able to set the sensor map by using a 
> sensor_map stanza under [WMR9x8] in weewx.conf. Something like (untested):
>
> # This section is for the Oregon Scientific WMR918/968
>
> [WMR9x8]
>     ....
>     [[sensor_map]]
>         outTemp = temperature_1
>         outHumidity = humidity_1
>
> would remap temperature_1 and humidity_1 to WeeWX fields outTemp and 
> outHumidity respectively. When starting WeeWX the sensor map is logged by 
> the driver so changes can be verified by referring to the log (and of 
> course by what data goes in what fields in your archive!).
>
> Gary'
>
> On Saturday, 19 January 2019 07:49:15 UTC+10, Stephen Emert wrote:
>>
>> For prosperity.
>> This was actually very easy to fix.
>> I found the definition of the driver here:
>> https://github.com/weewx/weewx/blob/master/bin/weewx/drivers/wmr9x8.py
>>
>> So I just changed my default mappings on lines 148 & 149 and 158 & 159 so 
>> that the extra sensors wrote to the default slots in weewx and the default 
>> sensors wrote to the extra slots.
>>
>> On Thursday, January 17, 2019 at 11:48:37 PM UTC-6, Stephen Emert wrote:
>>>
>>> Wow, I am reviving an old one but I face the same issue. My original 
>>> Channel 1 humidity sensor died and there are no reliable replacements to be 
>>> found. So I purchased an add-on outdoor temp & humidity sensor. So I need 
>>> channel 2 to be the default to send data to Weather Underground. I am also 
>>> making the move from Cumulus on a Windows Home Server V1 to weewx on a 
>>> Raspberry PI, so I am a bit in the weeds. Looks like it is just a matter to 
>>> modify the driver file to change the mappings for the channels. John, did 
>>> you solve this problem by chance?
>>>
>>> On Saturday, November 22, 2014 at 2:51:25 PM UTC-6, John Trostel wrote:
>>>>
>>>> Hacking about with the skins has let me show the outside 
>>>> temperature...  Any idea how to send it correctly to Wunderground?
>>>>
>>>>
>>>> John Trostel
>>>> [email protected]
>>>>
>>>> On Sat, Nov 22, 2014 at 1:41 PM, mwall <[email protected]> 
>>>> wrote:
>>>>
>>>>> On Saturday, November 22, 2014 1:26:23 PM UTC-5, John Trostel wrote:
>>>>>>
>>>>>> I'm seeing the outside data when I run weewx directly as extraHumid1 
>>>>>> and extraTemp1.  Is there a place to make that display on the local 
>>>>>> webpage?
>>>>>>
>>>>>
>>>>> you must modify the skin to display additional observations.
>>>>>
>>>>> as an example, consider the Standard skin.  in 
>>>>> skins/Standard/skin.conf you tell weewx to include extraTemp1 and 
>>>>> extraHumid1 in plots.  for example, if you want extraTemp1 in the same 
>>>>> plot 
>>>>> as outTemp and dewpoint, then change this:
>>>>>
>>>>>         [[[daytempdew]]]
>>>>>             [[[[outTemp]]]]
>>>>>             [[[[dewpoint]]]]
>>>>>
>>>>> to this:
>>>>>
>>>>>         [[[daytempdew]]]
>>>>>             [[[[outTemp]]]]
>>>>>             [[[[extraTemp1]]]]
>>>>>             [[[[dewpoint]]]]
>>>>>
>>>>> similarly for humidity.
>>>>>
>>>>> to display current readings, modify skins/Standard/index.html.tmpl.  
>>>>> for example, change this:
>>>>>
>>>>>               <tr>
>>>>>                 <td class="stats_label">Outside Temperature</td>
>>>>>                 <td class="stats_data">$current.outTemp</td>
>>>>>               </tr>
>>>>>
>>>>> to this:
>>>>>
>>>>>               <tr>
>>>>>                 <td class="stats_label">Outside Temperature</td>
>>>>>                 <td class="stats_data">$current.outTemp</td>
>>>>>               </tr>
>>>>>               <tr>
>>>>>                 <td class="stats_label">Extra Temperature</td>
>>>>>                 <td class="stats_data">$current.extraTemp1</td>
>>>>>               </tr>
>>>>>
>>>>> see the Labels section in skin.conf to assign a label to extraTemp1.  
>>>>> the customizing guide describes these things in much greater detail.
>>>>>
>>>>> m 
>>>>>
>>>>> -- 
>>>>> You received this message because you are subscribed to a topic in the 
>>>>> Google Groups "weewx-user" group.
>>>>> To unsubscribe from this topic, visit 
>>>>> https://groups.google.com/d/topic/weewx-user/WxuyI4DoakM/unsubscribe.
>>>>> To unsubscribe from this group and all its topics, 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