Good info in here Thanks Mwall!

couple of questions for you, before I tackle the sensor map.

I tried to figure out, based on what I have, a mock sensor map. Im sure I 
have called out some of the values incorrect. would you please take a look 
and let me know if Im on the right track? If you can point me to more info 
and the proper syntax of the sensor map in the documentation that might be 
helpful. Im having a hard time finding it.


These are the sensors I have:

*5n1 (on the roof)*
Temp
Wind Speed
Wind Direction
Rain
Humidity

*Tower Sensor (Office)*
Temp
Humidity

*Tower Sensor (Living Room)*
Temp
Humidity

*Bridge*
Temp
Humidity
Pressure


[Interceptor]
    ...
    [[sensor_map]]
        pressure = pressure..*
        inTemp = temperature..*
        inHumidity = humidity..*
        # 5n1 Sesor
        windSpeed = windspeed..*
        windDirecion = winddirection..*
        Temp = temperature..*     
        Rain = rain..*
        Humidity = humidity..*             
        # first tower
        outTemp = temperature.AAAAA.*
        outHumidity = humidity.AAAAA.*
        # second tower
        extraTemp1 = temperature.BBBBB.*
        extraHumid1 = humidity.BBBBB.*





On Monday, October 31, 2016 at 2:45:59 PM UTC-7, mwall wrote:
>
> On Monday, October 31, 2016 at 4:47:51 PM UTC-4, Brad Tucker wrote:
>
>> I also have 2 Tower Sensors attached so I included logs for this incase 
>> one of them is conflicting...
>>
>
> brad,
>
> if you want to capture data from two different towers, you should 
> distinguish them in your sensor map and possibly extend the database 
> schema.  otherwise you'll get the 'UNIQUE constraint failed' for dateTime 
> or you'll get mixed data from two different sensor clusters.
>
> the sensor map would look something like this:
>
> [Interceptor]
>     ...
>     [[sensor_map]]
>         pressure = pressure..*
>         inTemp = temperature..*
>         inHumidity = humidity..*
>         # first tower
>         outTemp = temperature.AAAAA.*
>         outHumidity = humidity.AAAAA.*
>         windSpeed.AAAAA.* = windspeed.AAAAA.*
>         # second tower
>         extraTemp1 = temperature.BBBBB.*
>         extraHumid1 = humidity.BBBBB.*
>         extraWindSpeed1 = windspeed.BBBBB.*
>
> AAAAA is the identifier for the first tower, BBBBB is the identifier for 
> the second tower
>
> if you want to retain the wind speed from second tower, then you must 
> extend the database schema to include another column extraWindSpeed1
>
> note that the pressure, inTemp, and inHumidity come from the acurite 
> bridge itself.
>
> m
>

-- 
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