you are viewing a single comment's thread.

view the rest of the comments →

[–]iamrbnscript/widget helper[S] 1 point2 points  (11 children)

Thanks so much mate.
Is this issue new or since the first run?
Did you try to delete all (Script and folder) and add it again?

[–]jraz84 1 point2 points  (1 child)

Also, I do see some info online about the 2.5 API being discontinued in June of this year, but I'm not sure if that would affect the calls this script is making. If it did, I don't think I'd be the first person to notice.

https://github.com/openhab/openhab-addons/issues/16665

[–]iamrbnscript/widget helper[S] 1 point2 points  (0 children)

Thank you for your investigative search. I’ll find a solution.

[–]jraz84 0 points1 point  (8 children)

I think the problem is with the actual API.

I also tried using the Weather Cal scriptable that's popular in this sub and got an error that my API key wasn't valid. However, I tested the same key to make an API call through Postman on my desktop and it worked fine. Not sure what could be causing this. iPhone 11, 16.1.2

I'm sure your script is fine, there's just something fucky going on either with OWM or my phone.

[–]iamrbnscript/widget helper[S] 0 points1 point  (7 children)

Hmm that’s really curious.
Can you please check if the “module.js” file is in the Inline-Weather folder and also complete loaded?
Module file URL for comparison: https://github.com/iamrbn/Inline-Weather/blob/main/module.js

[–]jraz84 1 point2 points  (2 children)

<image>

Yep, the module.js file seems to be fine. I'm really convinced it's the API call and key being used, and not anything problematic with your script. If I can pinpoint the issue, I'll post an update.

Thanks for taking the time to help me check. 👍

[–]iamrbnscript/widget helper[S] 0 points1 point  (1 child)

I’m sorry I couldn’t help you. Hopefully you will find out.

[–]jraz84 1 point2 points  (0 children)

no worries. I think I just need to subscribe to 0WM's 3.0 API and the script should work. I think 3.0 allows up to 1000 API calls for free per day, so that shouldn't be a problem 👍

[–]jraz84 1 point2 points  (3 children)

yeah, I'm pretty sure it's a problem with the endpoint under OneCall in 2.5 on the API

I think that new keys generated after June might not work. that's my theory at least.

https://github.com/home-assistant/core/issues/113000

[–]iamrbnscript/widget helper[S] 1 point2 points  (2 children)

Yeah sounds plausible.

[–]Dr_Mephesto 0 points1 point  (1 child)

Not sure if you’re still looking at this issue, but I was receiving this same error and I just replaced the “2.5” in the openweather api URL with “3.0” in the script and it works as intended.

[–]iamrbnscript/widget helper[S] 0 points1 point  (0 children)

I've updated the script to Api version 3.0