PWS not displaying
-
Hi, have had a station (f0ffd87b) reporting well for months, now does not show in app, if i search for it, it just says loading Observation data... have you changed anything?
Get request seems to retrieve data fine. I did notice that the API token had changed??
Any way I have created a second station (1f0ffd87b) and updated code to new API token and station 1. Can't see it yet, though get url shows observations.
Any suggestions?
Elliot
-
Hi, are you sure that your station is sending whole and valid JWT token? What we changed is that we now check if token signature is valid, so if your station cuts off signature part of token our API will not validate your request.
I see that you are using something called Signal K Plugin for Windy, and from the code of the plugin I can see that it should have some debug output with body of our response where we state what went wrong. If you can find that and send it to me, I will be able to help you much more. -
I ran the part of code from plugin which sends data to us and it works fine, so I am not sure what is going wrong at your end. You will probably have to create an issue at the plugin repo https://github.com/itemir/signalk-windy.
-
The data is being received, I can download it using the get request, with token and stationid. So sure that part is working. It is winddir and windspeed only. Which has been fine.
-
Data as received back from windy API
{"header":{"name":"SV Fortaleza","content":null,"agl_temp":1,"agl_wind":21,"elev_m":1,"lat":-41.2483968,"lon":148.3037696,"stationType":"Yacht - SignalK Plugin","shareOption":"Open","id":"1f0ffd87b","stationId":1,"type":"pws","updated":"2024-06-11T08:39:16.856Z","observation":null,"observationUpdated":"2024-06-11T01:11:21.822Z","cc":null,"deviceId":null,"locationUpdated":"2024-06-11T08:39:16.856Z","si":1},"data":{"ts":[1718068775458,1718069075847,1718069375969,1718069676280,1718070240470,1718070540082,1718070840068,1718071140307,1718071439947,1718071739702,1718072040065,1718072340152,1718072639864,1718072940091,1718073242812,1718073541985,1718073841913,1718074141727,1718074444282,1718074743553,1718075043719,1718075344222,1718075645118,1718075945022,1718076245284,1718076544847,1718076847730,1718077146075,1718077446268,1718077746812,1718078049364,1718078347107,1718078647477,1718078947758,1718079247402,1718079547174,1718079850348,1718080150627,1718080451346,1718080750490,1718081050585,1718081350973,1718081651206,1718081950845,1718082251118,1718082551633,1718082852164,1718083150913,1718083454529,1718083751447,1718084052332,1718084352519,1718084652251,1718084952392,1718085252537,1718085552833,1718085853000,1718086154236,1718086453316,1718086753160,1718087056940,1718087355720,1718087655610,1718087955286,1718088256248,1718088555608,1718088855927,1718089155667,1718089455821,1718089755626,1718090055581,1718090355850,1718090656215,1718090956091,1718091257130,1718091556150,1718091856635,1718092156445,1718092456608,1718092756802,1718093056681,1718093357069,1718093656774,1718093956654,1718094256690,1718094556771,1718094856659,1718095156854],"wind_dir":[318,315,292,270,281,315,321,308,311,317,304,295,317,315,333,318,326,330,336,346,328,318,298,303,293,310,291,301,294,318,293,307,315,321,314,324,304,311,320,303,301,319,341,326,305,329,302,303,302,297,320,314,315,307,295,295,296,290,272,297,309,294,303,272,311,307,315,278,318,304,255,267,286,277,290,306,298,261,318,277,294,319,325,324,331,309,313,323],"wind_gust":[15.12,15.22,15.53,10.95,8.53,6.37,7.87,11.52,11.52,11.36,14.81,14.3,11.16,11.26,11.41,13.78,12.8,15.07,14.5,14.86,15.63,11.88,11.05,10.44,10.75,10.64,13.32,17.42,16.92,15.27,13.47,11.97,12.98,12.79,12.63,10.07,11.42,13.46,13.86,13.88,16.73,15.69,13.13,13.01,15.66,16.18,14.77,16.41,14.09,15.51,14.49,14.81,16.74,16.75,13.48,13.96,13.53,12.64,13.33,13.48,13.9,12.94,12.96,11.98,16.35,13.37,15.53,16.15,13.99,12.6,11,10.75,10.8,9.2,9.36,8.59,10.69,11.11,11.77,10.8,12.65,11.62,12.96,13.01,14.4,15.89,16.2,15.42]}}
-
Just noticed, wind direction and gust only showing. This has been working for months, no change at my end.
-
@Elliot-Russo Hi, if only some data are being saved then it means that data which are not being saved are in invalid format. I suspect that the plugin you are using is sending data in format like this
{ "temp": "20" }
and not like this
{ "temp": 20 }
If you could send me the message which are sent from the plugin I would be sure, but this is only guess.
The old API accepted format like this, but that was incorrect behaviour. You will probably need to contact the author of plugin you are using.
Here is repository https://github.com/itemir/signalk-windy. Fix of this should be very easy.