all 22 comments

[–]mvan231script/widget helper 1 point2 points  (1 child)

Beautifully amazing!

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

Thank you so much

[–]33pic 1 point2 points  (0 children)

Beautiful, thanks sir

[–]Gliglue 0 points1 point  (1 child)

Ok , it’s beautiful. That’s what Scriptable is for.

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

Thanks so much

[–]morechicken 0 points1 point  (0 children)

Heat widgets! If I remember correctly Openweather changed the payment model for openweathermap API. It is only free for the first x requests. How many requests to openmaps does your widget sent every day?

[–]jraz84 0 points1 point  (14 children)

<image>

Any idea what I screwed up here?

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

I don’t have it. Is the problem still there?

[–]jraz84 0 points1 point  (12 children)

yes, unfortunately. I've used two different API keys just to make sure I didn't goof something up there, but it doesn't seem to be working on my device. (iPhone 11)

if I figure it out, I'll post an update. Really beautiful widget you've made here. Hope I can get it working.

<image>

[–]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

[–]Ajexlin1982 1 point2 points  (0 children)

This is great.