I'm trying to configure a Meteobridge Pro to do automatic HTTP upload
to the Saratoga template and am getting an error from the template via Meteobridge:
"Failure - incomplete data posted by Meteobridge"
Config:
Meteobridge (5.2 build 14656 CARAMBOLA2)
Saratoga Template Version 3.351
Server: Pi 4B (Buster)
PHP: 7.3.31-1~deb10u1
The FTP upload works.
The Saratoga Status Page reports:
Meteobridge realtime NOT Current 12:49:50 > 0:00:40
2022-02-03 20:38
Meteobridge FTP Current 0:01:12 2022-02-04 09:26
Meteobridge weather data Current 0:01:16 2022-02-04 09:26The Meteobridge log doesn't show anything suspicious.
The HTTP upload process is running every 10 seconds as configured,
with a typical returned "upload status" report from the Meteobridge:
2022-02-04 09:37:04 Error: 2022-02-04 09:37:04 <p>Failure - incomplete data posted by Meteobridge</p> (no more tries)The URL for the http event in the Meteobridge is
http://192.168.132.114/weather/st/conds.php?d=[DD]/[MM]/[YYYY],[hh]:[mm]:[ss],[th0temp-act],[th0hum-act.0],[th0dew-act],[wind0avgwind-act],[wind0wind-act],[wind0dir-act],[rain0rate-act],[rain0total-daysum],[thb0seapress-act],[wind0dir-act],[wind0wind-act=bft.0],m/s,C,hPa,mm,--,[thb0seapress-val60:--],[rain0total-monthsum],[rain0total-yearsum],[rain0total-ydaysum],[thb0temp-act],[thb0hum-act],[wind0chill-act],[th0temp-val60:--],[th0temp-dmax],[th0temp-dmaxtime],[th0temp-dmin],[th0temp-dmintime],[wind0avgwind-dmax],[wind0avgwind-dmaxtime],[wind0wind-dmax],[wind0wind-dmaxtime],[thb0seapress-dmax],[thb0seapress-dmaxtime],[thb0seapress-dmin],[thb0seapress-dmintime],[mbsystem-swversion:--],[mbsystem-buildnum:--],[wind0wind-max10],--,--,[uv0index-act:--],--,[sol0rad-act:--],[wind0dir-avg10:--],[rain0total-sum60],--,[mbsystem-daynightflag:--],--,[wind0dir-avg10:--],--,m,--,[mbsystem-daylength:--],--,--,[uv0index-dmax:--]The MBrealtime-template.txt is (all I did was set the IP and path)
http://192.168.132.114/weather/st/conds.php?d=[DD]/[MM]/[YYYY],[hh]:[mm]:[ss],[th0temp-act],[th0hum-act.0],[th0dew-act],[wind0avgwind-act],[wind0wind-act],[wind0dir-act],[rain0rate-act],[rain0total-daysum],[thb0seapress-act],[wind0dir-act],[wind0wind-act=bft.0],m/s,C,hPa,mm,--,[thb0seapress-val60:--],[rain0total-monthsum],[rain0total-yearsum],[rain0total-ydaysum],[thb0temp-act],[thb0hum-act],[wind0chill-act],[th0temp-val60:--],[th0temp-dmax],[th0temp-dmaxtime],[th0temp-dmin],[th0temp-dmintime],[wind0avgwind-dmax],[wind0avgwind-dmaxtime],[wind0wind-dmax],[wind0wind-dmaxtime],[thb0seapress-dmax],[thb0seapress-dmaxtime],[thb0seapress-dmin],[thb0seapress-dmintime],[mbsystem-swversion:--],[mbsystem-buildnum:--],[wind0wind-max10],--,--,[uv0index-act:--],--,[sol0rad-act:--],[wind0dir-avg10:--],[rain0total-sum60],--,[mbsystem-daynightflag:--],--,[wind0dir-avg10:--],--,m,--,[mbsystem-daylength:--],--,--,[uv0index-dmax:--]The Apache access log for the server shows
192.168.132.116 - - [04/Feb/2022:08:33:39 -0500] "GET /weather/st/conds.php?d=04
> /02/2022,08:33:39,[th0temp-act],[th0hum-act.0],[th0dew-act],[wind0avgwind-act],[
> wind0wind-act],[wind0dir-act],[rain0rate-act],[rain0total-daysum],1017.7,[wind0d
> ir-act],[wind0wind-act=bft.0],m/s,C,hPa,mm,--,1017.5,[rain0total-monthsum],[rain
> 0total-yearsum],[rain0total-ydaysum],39.7,12.0,[wind0chill-act],--,[th0temp-dmax
> ],[th0temp-dmaxtime],[th0temp-dmin],[th0temp-dmintime],[wind0avgwind-dmax],[wind
> 0avgwind-dmaxtime],[wind0wind-dmax],[wind0wind-dmaxtime],1018.1,20220204072204,1
> 014.2,20220204013825,5.2,14656,[wind0wind-max10],--,--,--,--,--,--,[rain0total-s
> um60],--,D,--,--,--,m,--,10:16,--,--,-- HTTP/1.1" 200 433 "-" "meteobridge"If I convert the log entry back to a direct http request and send it to the server
via a web browser, I get the same message from the browser.
"Failure - incomplete data posted by Meteobridge"
If I turn on dodebug in conds.php I get a MBreatlime-args.txt file that's
the same as the server response.
Not sure what is wrong. Looks like all the requests are happening, but there's
something wrong with the request -- either the template is bad or the data from
the Meteobridge isn't what's expected by conds.php
Suggestions on what to try.
Thanks!!