Read the statement by Michael Teeuw here.
How to use Yr as a weather provider
-
@MajorC the api returned data the module did not expect and did not handle the error…
the exact cause of the error is unknown as the code did not report it…
i have seen quite a lot of sloppy api programming lately…
the rules are pretty clear
rc=200 means all good
other errors 300/400/500 families provide specific infobut a lot of apis return 200 even for error cases and THEN the code has to decode the TEXT of the ‘good’ data message…
sloppy, lazy…
because the error calls out an ‘unexpected non-whitepace’ (a colon maybe) , I suspect this api is one of these
-
@sdetweil so I have to use an other weather provider? I really like Yr. They are very precise for Europe.
-
@MajorC not what I said… its broken as you are using it, but I don’t know why. I am not the provider author… you can post an issue to the MM github page…
-
see https://github.com/MichMich/MagicMirror/issues/3189
yr has changed api, the fix comes with next release on Oct.
-
@karsten13 thanks, gotta start checking the changelog .
-
Thank you. I will wait on the next version of MM. :ok_hand: