Extra Sensors Extended

Post Reply
davidefa
Expert
Expert
Posts: 905
Joined: Tue Jan 12, 2021 8:03 am
Location: Italy
Station model: WH2650
Software: WH2650 (direct upload)
Contact:

Extra Sensors Extended

Post by davidefa » Sun Nov 05, 2023 10:47 pm

I always taught of a way to configure/add extrasensors in a centralized way.
So that every block/plugin/page could know the available sensors, names, unit used, limits and so on.
You can use this, for example, to extend the limits of 8 extra temperature sensors ( if you need ), or to add a second rain/wind sensor or...


NOTE
This is a preliminary version I'm currently testing.
At the moment, no block/plugin make use of this extension.. but things should change.
The only usage, for the moment, is to add new field/sensors to the alldataExtra database.

INSTALL
If you feel brave and want install it ( helping me troubleshooting ) make a backup copy of original scripts.
To install simply uncompress the archive in the root meteotemplate directory.

USAGE
You can run the setup via meteotemplate control panel -> Database -> Extra Sensors.
The first time you run the setup simply click the save button and an extended configuration ( corresponding to the actual one ) will be saved.
Attachments
ExtraSensorsEx01.png
ExtraSensorsEx01.png (181.33 KiB) Viewed 16480 times
ExtraSensorsEx.zip
(17.78 KiB) Downloaded 582 times
Image

User avatar
meteoesine
Forecaster
Forecaster
Posts: 186
Joined: Sun Aug 20, 2017 4:08 pm
Location: Esine, Valcamonica (BS) - Italy
Station model: Davis Pro2+
Software: Meteobridge nano
Contact:

Re: Extra Sensors Extended

Post by meteoesine » Mon Nov 06, 2023 6:40 am

Ciao Davise
ho provato ad installare la tua mod, ma ho notato che a me la tabella alldataExtra non viene aggiornata nel database. (utilizzo Meteobridge)
Non avendo però un altro sito di appoggio per fare le prove, per non perdere dati ho ripristinato la vecchia api.
...a disposizione... 8-)
:arrow: https://meteoesine.it
ham wx aprs/cwop: IW2LAO-13

Image

alexvanuxem
Forecaster
Forecaster
Posts: 222
Joined: Mon Jan 31, 2022 4:41 pm
Location: Sint-Katelijne-Waver, Belgium
Station model: Davis Vantage Pro 2
Software: Meteobridge
Contact:

Re: Extra Sensors Extended

Post by alexvanuxem » Wed Nov 08, 2023 6:52 pm

Hi David,

see my screenshots attached.

not all of my 'saved in database' sensors are shown.

with pp3 ther's a small lay out issue.

Thank you very much!!

Alex
Attachments
3.png
3.png (174.83 KiB) Viewed 16450 times
2.png
2.png (153.71 KiB) Viewed 16450 times
1.png
1.png (165.06 KiB) Viewed 16450 times
Image

alexvanuxem
Forecaster
Forecaster
Posts: 222
Joined: Mon Jan 31, 2022 4:41 pm
Location: Sint-Katelijne-Waver, Belgium
Station model: Davis Vantage Pro 2
Software: Meteobridge
Contact:

Re: Extra Sensors Extended

Post by alexvanuxem » Thu Nov 09, 2023 8:40 am

and also it has influence on the rest of the MT site: extra sensors are not saved in the database, graphcombined is not updated with new values, station data is only updated with the non extra sensors like outdoor temp, hum, wind rain etc....

I will revert back to the old api ..

but its a nice exercise...

Grtz

a
Image

Meteo Heijningen
Observer
Observer
Posts: 27
Joined: Tue Feb 08, 2022 10:23 am
Station model: Ecowitt Wittboy GM2001
Software: Meteobridge

Re: Extra Sensors Extended

Post by Meteo Heijningen » Thu Sep 26, 2024 5:44 pm

Hi David,
Recently I'm having extra sensors available like Ligntning, CO2 and PM's, but struggling to get the data from Meteobridge to Meteotemplate, the message in the Extra Table Setup Extended says they are still not available.
The fields and values are in the Meteobridge livedata.cgi file:

20240926141748 th0 22.4 70 16.7 0
20240926141748 uv0 0.0 0
20240926141748 rain0 0.0 0.0 0.0 0
20240926141748 thb0 22.9 63 15.5 990.0 990.2 -1 0
20240926141748 wind0 184 0.0 0.0 22.4 0

20240926141720 thb0 22.6 66 15.9 987.6 988.1 1 0
20240926141720 th0 20.3 65 13.5 0
20240926141720 wind0 225 2.9 3.1 22.8 1
20240926141720 t9 22.8 0
20240926141720 rain0 0.0 7636.2 0.0 0
20240926141758 th0 20.1 69 14.2 0
20240926141722 thb0 21.9 66 15.3 988.4 988.6 -1 0
20240926141758 wind0 192 4.8 4.1 20.1 0
20240926141758 sol0 305 0
20240926141746 uv0 2.0 0
20240926141722 lgt0 20.0 5 32 0 0
20240926141740 rain1 0.0 9.1 0.0 0
20240926141746 th9 20.8 67 14.4 0
20240926141722 air4 1.1 0
20240926141722 air5 1.0 0
20240926141722 air6 0.9 0
20240926141722 air7 1.0 0
20240926141722 data4 404.00 0
20240926141801 data10 42.00 0
20240926141801 data11 428.08 0
20240926141801 data12 9.00 0
20240926141801 data13 77.00 0
20240926141801 data15 56.00 0
20240926141801 data16 2.00 0
20240926141801 data14 2.26 0
20240926141801 data17 5.57 0
20240926141801 data18 0.41 0
20240926141801 data19 684513.32 0
20240926141801 data20 1935921.59 0
20240926141801 thb9 45.9 20 17.6 987.6 987.8 -1 0

but not appearing in meteotemplatelive.txt.

For me it looks like it's a mapping issue f.i. the CO2 field in meteobridge is called data4 and it might be that's not recognized by the api.php?

Hopefully you can help me with this to get it working
Thanks
Eddy

Post Reply