MB Pro - Soil moisture sensor data not stored for about one month **solved**

This section covers the Meteobridge PRO, PRO2, NANO SD, Raspberry Pi and VM platforms exclusively

Moderator: Mattk

Post Reply
User avatar
Gyvate
Platinum Boarder
Platinum Boarder
Posts: 453
Joined: Thu May 14, 2020 4:36 pm
Location: Saarbrücken, Germany

MB Pro - Soil moisture sensor data not stored for about one month **solved**

Post by Gyvate »

Since 05-December-2020 my MB Pro doesn't store any soil moisture data anymore nor can the soilmoisture data in general be accessed.
Details see
https://www.wxforum.net/index.php?topic=41130.0
Last edited by Gyvate on Wed Jan 06, 2021 2:39 am, edited 1 time in total.
WH4000SE 1.6.6/1 x DP1500/4 x GW1000 1.7.7/GW1100 2.3.0/HP1000SE Pro 1.9.3//2 x WH2650 1.7.7/GW2000 3.1.0
2xMeteobridge Pro [B+R] 15161, 2xRPi4B-2GB/16/32 3139,VM128 1704
Weather Landing page: https://meshka.eu
Ecowitt WiKi: https://meshka.eu/Ecowitt/dokuwiki
User avatar
Gyvate
Platinum Boarder
Platinum Boarder
Posts: 453
Joined: Thu May 14, 2020 4:36 pm
Location: Saarbrücken, Germany

Re: MB Pro - Soil moisture sensor data not stored for about one month

Post by Gyvate »

solved with release 5.1 build 14233 for MB Pro

The sensors are back again in the database - leaving behind a one month gap to be filled.
WH4000SE 1.6.6/1 x DP1500/4 x GW1000 1.7.7/GW1100 2.3.0/HP1000SE Pro 1.9.3//2 x WH2650 1.7.7/GW2000 3.1.0
2xMeteobridge Pro [B+R] 15161, 2xRPi4B-2GB/16/32 3139,VM128 1704
Weather Landing page: https://meshka.eu
Ecowitt WiKi: https://meshka.eu/Ecowitt/dokuwiki
User avatar
galfert
Platinum Boarder
Platinum Boarder
Posts: 326
Joined: Sun Jun 24, 2018 10:31 pm
Location: Orlando, FL

Re: MB Pro - Soil moisture sensor data not stored for about one month *solved*

Post by galfert »

If you figure out a way to backfill the missing data from Ecowitt.net data I would be interested in seeing how you did it. I probably could figure it out but while you are at it if you do it first just let us know. Seems to me like it would just be a matter of data manipulation of the csv file download in regards to the headers. I would probably do a small export from the Meteobridge to learn its import/export data structure and then just copy suit for the headers of he Ecowitt.net data to then do an import. Seems simple enough. I'm probably talking Greek to a lot of people right now.

I've been meaning on getting more into data export and import now that I have a Meteobridge RPI but I just haven't gotten to it yet. My new Meteobridge PRI would be much nicer if I'd at some point backfill with all my history. I have my history in a number of places....I just don't know yet where I would rather import from yet. I have data on WU and on a mySQL database that my old Meteobridge was sending data to for years. When I get around to it I'll probably write some documentation up on the experience.
Meteobridge RPI | GW1000
User avatar
Gyvate
Platinum Boarder
Platinum Boarder
Posts: 453
Joined: Thu May 14, 2020 4:36 pm
Location: Saarbrücken, Germany

Re: MB Pro - Soil moisture sensor data not stored for about one month *solved*

Post by Gyvate »

I will - I will start with my meteotemplate sql database - because there I have an easy-to-use import interface - see below:
I wish Meteobridge offered such a nice and comfortable option/interface !! Here I can use the 5-minute values as that's my storing/archiving interval there.
Jachym (the developer of Meteotemplate) did really a nice job !!
Meteotemplate_Data_Import_01.PNG
Meteotemplate_Data_Import_01.PNG (161.72 KiB) Viewed 1307 times
Meteotemplate_Data_Import_02.PNG
Meteotemplate_Data_Import_02.PNG (107.29 KiB) Viewed 1307 times
Regarding MB:
My source will be the Ecowitt.net 5 minute csv files which for Meteobridge I will have to condense to one-hour entries, as the smallest values for the Soil Moisture tables th2xhum (x=1-8) is th2xhum_hour - no minute data here.

Doing it manually in Meteobridge would be too much: 24 entries/day * 30 days = 720 entries (if you enter only the hourly average value). * 5 sensors =3,600 entries.
If you want to take high/low/average it's 3 times as many: 10,800 entries ...


It will be easier to add full, new records (table entries) than update existing ones. For this update (which is needed here for the missing SM entires) probably a SQL script will be needed. For full records MB has a procedure for CSV files. Will have to study the wiki.

It might be easier to export the data of the whole month where the SM values are missing, delete the records from the database, enrich the export with the missing SM sensor values and then import them again.
WH4000SE 1.6.6/1 x DP1500/4 x GW1000 1.7.7/GW1100 2.3.0/HP1000SE Pro 1.9.3//2 x WH2650 1.7.7/GW2000 3.1.0
2xMeteobridge Pro [B+R] 15161, 2xRPi4B-2GB/16/32 3139,VM128 1704
Weather Landing page: https://meshka.eu
Ecowitt WiKi: https://meshka.eu/Ecowitt/dokuwiki
User avatar
galfert
Platinum Boarder
Platinum Boarder
Posts: 326
Joined: Sun Jun 24, 2018 10:31 pm
Location: Orlando, FL

Re: MB Pro - Soil moisture sensor data not stored for about one month *solved*

Post by galfert »

Oh I hadn't considered that the MB records are hourly and my archive mySQL is 5 minute data. Yeah that needs to be condensed in some smart way. I wonder thought now that the Meteobridge does 1 minute data if you could simply import to the 1 minute database and then the Meteobridge could create its own hourly data from that 1 minute database? That would save some work.
Meteobridge RPI | GW1000
Post Reply