Hello
Testing the Meteobridge with the MySQL-service and I have chosen "Every full 5 minutes" and this is what I see in my database:
10:30
10:35
10:40
10:45
10:50
10:55
11:05
11:10
So 11:00 is missing?
Kind Regards
Every full 5 minutes, XX:00 missing? **solved**
Moderator: Mattk
Re: Every full 5 minutes, XX:00 missing?
I just looked at "Live data" and noticed this error I have seen a few time now:
2016-05-02 23:00:01 Error: MYSQL query 'INSERT INTO weatherdata (ID, Time, Sun, Temp, Hum, Uv, Press, Windspeed, Windgust, Winddir, Windchill, Rain_hour, Rain_day, Rain_year, Dewpoint, Evaporation_hour, Evaporation_day, Evaporation_year) VALUES (NULL, '2016-05-02 23:00', 0.0, 9.9, 64.0, 0.0, 1016.9, 1.8, 1.9, 141.0, 9.1, [rain0total-hoursum], 0.0, 0.0, 3.4, 1, 1, 1 )' failed: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '[rain0total-hoursum], 0.0, 0.0, 3.4, 1, 1, 1 )' at line 1 (no more tries):
"23:00:01" -> gives me the impression that the XX:00 error is related to "[rain0total-hoursum]" in the query:
Meteobrigde tries to get the value of [rain0total-hoursum] but fails and sends "[rain0total-hoursum]" with the query but that will result in a error since the database is looking for a number and not a string.
Maybe?
Is the [rain0total-hoursum:0] the right thing to do?
Kind Regards
My setup is: Davis Vantage Pro2 -> Meteostick-> Meteobridge -> MySQL
2016-05-02 23:00:01 Error: MYSQL query 'INSERT INTO weatherdata (ID, Time, Sun, Temp, Hum, Uv, Press, Windspeed, Windgust, Winddir, Windchill, Rain_hour, Rain_day, Rain_year, Dewpoint, Evaporation_hour, Evaporation_day, Evaporation_year) VALUES (NULL, '2016-05-02 23:00', 0.0, 9.9, 64.0, 0.0, 1016.9, 1.8, 1.9, 141.0, 9.1, [rain0total-hoursum], 0.0, 0.0, 3.4, 1, 1, 1 )' failed: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '[rain0total-hoursum], 0.0, 0.0, 3.4, 1, 1, 1 )' at line 1 (no more tries):
"23:00:01" -> gives me the impression that the XX:00 error is related to "[rain0total-hoursum]" in the query:
Meteobrigde tries to get the value of [rain0total-hoursum] but fails and sends "[rain0total-hoursum]" with the query but that will result in a error since the database is looking for a number and not a string.
Maybe?
Is the [rain0total-hoursum:0] the right thing to do?
Kind Regards
My setup is: Davis Vantage Pro2 -> Meteostick-> Meteobridge -> MySQL
Re: Every full 5 minutes, XX:00 missing?
Congrats, this is very good analysis of the problem!
When using variables you should always give a default value (indicated by ":").
Which default fits best depends on your application.
When using variables you should always give a default value (indicated by ":").
Which default fits best depends on your application.
Re: Every full 5 minutes, XX:00 missing?
Hi, thanks for your reply. It makes sense that the hoursum will make a error when running at XX:00.admin wrote:Congrats, this is very good analysis of the problem!
When using variables you should always give a default value (indicated by ":").
Which default fits best depends on your application.
Been using the product for some time now and been overall impressed, very stable product. Almost ready to go get the license

Regarding the ":" - can the default value be the last recorded value? That would be very smart

I also had some moments when there was no data inserted in the database but I think I have fixed that by increasing the "tolerated age of data". Test-inserting every 5 minutes and total insert last 24 hour is 279 and 288 is maximum, successrate = 97%.
Kind Regards