Add Logical Sensor

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

Moderator: Mattk

Post Reply
User avatar
iu1jvo
Junior Boarder
Junior Boarder
Posts: 22
Joined: Tue Jan 04, 2022 10:44 am

Add Logical Sensor

Post by iu1jvo »

Hi all,
can I add new logical sensor to remap phisical sensor?

thanks.
Image
User avatar
admin
Platinum Boarder
Platinum Boarder
Posts: 7874
Joined: Mon Oct 01, 2007 10:51 pm

Re: Add Logical Sensor

Post by admin »

Sorry, I don't understand the question. What exactly are you going to achieve?
User avatar
iu1jvo
Junior Boarder
Junior Boarder
Posts: 22
Joined: Tue Jan 04, 2022 10:44 am

Re: Add Logical Sensor

Post by iu1jvo »

I'd like to know if is possible to manually add new logical sensor.
The phisical sensor is based on stations sensors, but I don't understand how logical sensor is created by meteobridge.
Image
User avatar
admin
Platinum Boarder
Platinum Boarder
Posts: 7874
Joined: Mon Oct 01, 2007 10:51 pm

Re: Add Logical Sensor

Post by admin »

Meteobridge does nit support user define logical sensors as with Meteohub. You still did not explain what you need that for. It was a rather complicated edge case on Meteohub with close to zero users.
User avatar
iu1jvo
Junior Boarder
Junior Boarder
Posts: 22
Joined: Tue Jan 04, 2022 10:44 am

Re: Add Logical Sensor

Post by iu1jvo »

I added an additional weather station (Station 1) that provide a wind sensor.
I can see three new Phisical Senso (wind1!0avgwind, wind1!0wind, wind1!0dir), but not the correspondind Logical Sensors.
the only way to use the station 1 sensors is to remap them on the logical sensor normally used by Primary Station, there are not the logical sensor for station 1 wind sensors.

Now my needs are exactly to remap the wind sensor of "Primary Station" to the sensors of the "Station 1", but in future, if i add a new weather station that provide for example soil Temperature/Humidity or UV data, how I can add the additional Temperature or UV logical Sensor?

That's the reason of my question.
Image
User avatar
admin
Platinum Boarder
Platinum Boarder
Posts: 7874
Joined: Mon Oct 01, 2007 10:51 pm

Re: Add Logical Sensor

Post by admin »

Mapping to logical sensors is mainly made to select which sensor to take for reporting of data to weather networks. I don‘t know of a weather network that takes data from more than one wind sensor, so a logical wind1 sensor would be of no use for reporting to these networks.
Inside Meteobridge you can always operate with the physical sensors, so again no benefit of an additional logical name. In Meteohub having assigned a logical sensor is precondition to have data recorded, Meteobridge does not have this restriction.
Does this explanation help?
User avatar
iu1jvo
Junior Boarder
Junior Boarder
Posts: 22
Joined: Tue Jan 04, 2022 10:44 am

Re: Add Logical Sensor

Post by iu1jvo »

Thanks for the full explanation.
Then, if I correclty understand, adding a station that provide UV or other sensors that are not already provided by the primary station, the correspondign logical sensor will be created?
Last edited by iu1jvo on Mon Feb 07, 2022 1:29 pm, edited 1 time in total.
Image
User avatar
admin
Platinum Boarder
Platinum Boarder
Posts: 7874
Joined: Mon Oct 01, 2007 10:51 pm

Re: Add Logical Sensor

Post by admin »

no, set of logical sensors is predefined for the ones needed by weather networks.

When you add a station you can map some of the new physical sensors to logical sensors if they should be used by weather networks.
Apart from that you can use all new physical sensors in templates, exports, graphs, etc. There is no need to assign logical sensors to them for this purpose.
User avatar
AlaskaWX
Junior Boarder
Junior Boarder
Posts: 36
Joined: Thu Apr 05, 2012 7:46 pm

Re: Add Logical Sensor

Post by AlaskaWX »

You could easily add a DIY "logical" sensor by creating a plugin weathersation (as an AWK script) that could read the physical sensor of choice and output that data as any sensor you want. :D
Davis VP2 with IIS and Leaf/Soil + numerous user defined plugin weather stations
User avatar
iu1jvo
Junior Boarder
Junior Boarder
Posts: 22
Joined: Tue Jan 04, 2022 10:44 am

Re: Add Logical Sensor

Post by iu1jvo »

admin wrote: Thu Feb 03, 2022 4:55 pm no, set of logical sensors is predefined for the ones needed by weather networks.
Ok, now is clear!
Logical sensors borns from the needs of weather networks.
Image
User avatar
iu1jvo
Junior Boarder
Junior Boarder
Posts: 22
Joined: Tue Jan 04, 2022 10:44 am

Re: Add Logical Sensor

Post by iu1jvo »

AlaskaWX wrote: Mon Feb 07, 2022 7:37 am You could easily add a DIY "logical" sensor by creating a plugin weathersation (as an AWK script) that could read the physical sensor of choice and output that data as any sensor you want. :D
Yes!
I already do that. :wink:
My "logical" weatherstation read the wind speed from the primary weather station Phisical Sensor and compute the Wind Gust, Wind Speed (average) and Direction (averge) of last 10 minutes.

The results are mapped on logical0 wind sensors.

I was only curious to understand how logical sensors born.
Image
Post Reply