New WS40 v2 api push adding "api.php" to url incorrectly
Posted: Mon Nov 02, 2026 4:51 am
Seems like the new WS40 push weather net is adding "api.php" to the URL and that's causing wordpress to return an error 500.
So it should be
but instead meteobridge is doing
Which results in wordpress/php throwing "500 Internal Server Error"
Maybe I could fix this with some .htaccess rules, but seems like it's just a bug with the new weather net.
Also, some of these values seem completely wrong...
R1H is rain in last 60 minutes (according to WS40 spec here: https://www.weatherstation40.live/developers/). It definitely has not rained 2.7 meters in the last 60 minutes. =P
Thanks!
So it should be
Code: Select all
https://www.example.com/wp-json/ws40/v2/mt/1?<api-call>Code: Select all
https://www.example.com/wp-json/ws40/v2/mt/1/api.php?<api-call>Maybe I could fix this with some .htaccess rules, but seems like it's just a bug with the new weather net.
Also, some of these values seem completely wrong...
Code: Select all
SW=meteobridge&T=7.2&TDMAX=8.0&TDMAXT=1793571494&TDMIN=4.2&TDMINT=1793548934&H=92&HDMAX=96.0&HDMAXT=1793561290&HDMIN=88.0&HDMINT=1793571960&P=1020.3&PDMAX=1020.3&PDMAXT=1793587595&PDMIN=1013.1&PDMINT=1793516796&W=0.0&WDMAX=4.7&WDMAXT=1793575741&G=0.0&GDMAX=14.5&GDMAXT=1793574831&B=300&GDMAXB=340&R=0.2&RLMON=42.7&RLYEAR=799.9&RR=0.0&RRDMAX=0.0&RRDMAXT=1793587607&TIN=22.9&HIN=34&R1H=2702.7&RMON=0.2&RYEAR=510.8&BAT_IN=0&BAT_T=0&BAT_W=0&BAT_R=0: Thanks!