plasmoid-wunderground-extended icon indicating copy to clipboard operation
plasmoid-wunderground-extended copied to clipboard

App stops working with "access denied"

Open purpl3f0xsecur1ty opened this issue 2 years ago • 51 comments

Describe the bug The widget works fine for a few hours, but then it blanks out, and says that it doesn't have permission to access the requested URL. When this happens, I have to completely uninstall the widget and reinstall to make it work again, only for it to fail again after a few hours. Manually refreshing doesn't help. It also won't let me change which station I'm accessing when this happens.

To Reproduce Bug occurs seemingly randomly, no changes are being made to trigger the issue.

Desktop: plasmashell 5.25.5 Qt: 5.15.4 KDE Frameworks: 5.98.0 kf5-config: 1.0

purpl3f0xsecur1ty avatar Oct 25 '22 20:10 purpl3f0xsecur1ty

I am having this issue too. Looks extremely similar to this issue where weather.com changed the api key for a different project. I don't believe the one mentioned here would work as that was a while ago.

I think the issue could be solved with a new api key, but I don't know where to find one or where you would tell the widget about the new key.

Leonerd-04 avatar Oct 25 '22 20:10 Leonerd-04

Thanks for the reply! Your suggestion helped direct my troubleshooting, the API key is in the pws-api.js file under ~/.local/share/plasma/plasmoids/com.github.rliwoch.plasmoid-wunderground-extended/contents/code. I changed the API key and restarted plasma, but I'm still getting the error, and I can confirm in the error message that it's using the new API key, so sadly that didn't solve it. At least we can now rule that out.

purpl3f0xsecur1ty avatar Oct 25 '22 21:10 purpl3f0xsecur1ty

Thanks for the info.

What is the new API key? I'd like to try and see if it fixes it on my end. Also where did you find it?

Leonerd-04 avatar Oct 25 '22 21:10 Leonerd-04

I used the one in the issue you linked, but maybe it's bad, I might see if I can get my own key and try it.

purpl3f0xsecur1ty avatar Oct 25 '22 21:10 purpl3f0xsecur1ty

Yep that key is from January; probably out of date. How would you get your own key?

Leonerd-04 avatar Oct 25 '22 21:10 Leonerd-04

I don't know, Wunderground just redirects to a 404 instead of actually being helpful and giving documentation on how to get an API key, I'm trying to dig around Google.

purpl3f0xsecur1ty avatar Oct 25 '22 21:10 purpl3f0xsecur1ty

Same issue here, worked great until a few hours ago.

joickle avatar Oct 25 '22 21:10 joickle

I finally found where to get API keys, https://developer.ibm.com//callforcode/tools/weather/, requires making an account, tho the page warns that for some reason, any API keys from here will stop working on Nov 15, 2022. My widget works again, for now, but for only 3 more weeks apparently...god knows why IBM is complicating this so needlessly.

Edit: Issue doesn't really seem to be fully solved, the widget is constantly flip-flopping between working and not working every few seconds.

Edit 2: Only current conditions work, all other functions like day forecast, week forecast, etc, aren't working. I'm probably just going to uninstall the widget wholesale for now. I think IBM is just doing screwy stuff with the API, probably not even the widget's fault. I guess we'll see.

purpl3f0xsecur1ty avatar Oct 25 '22 21:10 purpl3f0xsecur1ty

any API keys from here will stop working on Nov 15, 2022

Maybe it's worth asking @k-donn how they got the API key for the project this forked from, since theirs seems to have been working for well over 6 months (until now; it's the same key). Who knows if that'd work though; their last commit was in July.

If IBM getting screwy it may be just as simple as rewriting the code that reads the info from the request, hopefully, unless they relegate 7-day forecasts to a premium paid option or something. I personally don't have the time and the maintainer hasn't been active too much lately, so who knows.

Leonerd-04 avatar Oct 25 '22 22:10 Leonerd-04

Yeah, my widget has once again completely stopped working. Don't know what is going on at this point, back to "access denied" even when using my own API key that Wunderground finally provided me after I made an account and waited an hour or so.

purpl3f0xsecur1ty avatar Oct 25 '22 22:10 purpl3f0xsecur1ty

IBM has been slowing snipping away at Wunderground services for a while. Mainly, IBM removed the free, no-account documentation from 'https://weather.com/swagger-docs/call-for-code'.

I'll still look around, but this does seem like an issue that will require working around what IBM will give for free.

k-donn avatar Oct 25 '22 22:10 k-donn

Ah, so as we were suspecting, it's not the widget's fault, IBM is just gradually pulling plugs on free stuff and paywalling it. Sucks. Maybe I'll just look into a DIY weather station using a Raspberry Pi or something.

purpl3f0xsecur1ty avatar Oct 25 '22 22:10 purpl3f0xsecur1ty

api 2b6ed19f3d474152aed19f3d4791527d

radiolamp avatar Oct 25 '22 22:10 radiolamp

@NeformaliTu api worked partially for me, now displays the temp on the bar, but the forecast info has not filled in yet.

BTW, the author has posted this on the apps linux page;

WARNING: 26th Oct 2022:

As of this morning IBM has cut the access to the free API key I've been using in the plugin, rendering the plugin unusable I'll try to contact them and re-apply to get a new key for OSS projects, but it's going to take a while.

Kandelai avatar Oct 26 '22 14:10 Kandelai

the apps linux page

where?

Zorrototo avatar Oct 26 '22 16:10 Zorrototo

where?

Here

xfzv avatar Oct 26 '22 16:10 xfzv

Guys sorry I have no idea why i stopped receiving notifications from this repo. I'll be mailing IBM to reinstate opensource projects API key - but that will take a while

rliwoch avatar Oct 27 '22 08:10 rliwoch

Guys sorry I have no idea why i stopped receiving notifications from this repo. I'll be mailing IBM to reinstate opensource projects API key - but that will take a while

If all else fails, are there other services that the widget can pivot to using? Darksky is off the table (thanks crApple), but I know the Cinnamon weather desklet supports multiple sources (though they have you supply your own api key for most of them) maybe that's worth looking into?

IMO, OpenWeatherMap seems to be the best, it's not feasible for the widget to have its own API key due to cost, but the user can supply his own key as it's not realistic that a single user would exceed the free limit (1000 calls per day) even with multiple devices.

RyanHakurei avatar Nov 03 '22 11:11 RyanHakurei

Two remarks: attempting solution with e1f10a1e78da46f5b10a1e78da96f525 for my widget.

As for other data sources, the plasma Ion dataengines support a couple of sources which the widget can pivot to using the Ion dataengine system.

k-donn avatar Nov 04 '22 12:11 k-donn

Thx, it works

maravtdm avatar Nov 04 '22 12:11 maravtdm

IMO, OpenWeatherMap seems to be the best, it's not feasible for the widget to have its own API key due to cost, but the user can supply his own key as it's not realistic that a single user would exceed the free limit (1000 calls per day) even with multiple devices.

I second this. Going forward, we need to be able to change our API keys in case they get revoked. Openweathermap also seem to be accurate enough.

sorat0mo avatar Nov 06 '22 04:11 sorat0mo

IMO, OpenWeatherMap seems to be the best, it's not feasible for the widget to have its own API key due to cost, but the user can supply his own key as it's not realistic that a single user would exceed the free limit (1000 calls per day) even with multiple devices.

I second this. Going forward, we need to be able to change our API keys in case they get revoked. Openweathermap also seem to be accurate enough.

OpenWeatherMap is ok. You can use the other plasma weather widget/plasmoid that utilizes OWM. I have compared it a lot with Wunderground's results and wunderground is so much more accurate in my area, so I really hope the author can get a new api key for this widget/plasmoid.

Kandelai avatar Nov 07 '22 17:11 Kandelai

I have an issue #32 requesting to make the API key configurable, so we can use our own. I don't want to stray away from Wunderground because of the accuracy of data and I'm polling my own personal weather station.

derek-shnosh avatar Nov 07 '22 18:11 derek-shnosh

@rliwoch Paginging just in case github somehow refuses to send you messages again. I know it happens. And no, not trying to rush you, just want to make sure the messages actually arrive. :heart:

IF-Adin avatar Nov 08 '22 12:11 IF-Adin

IMO, OpenWeatherMap seems to be the best, it's not feasible for the widget to have its own API key due to cost, but the user can supply his own key as it's not realistic that a single user would exceed the free limit (1000 calls per day) even with multiple devices.

I second this. Going forward, we need to be able to change our API keys in case they get revoked. Openweathermap also seem to be accurate enough.

OpenWeatherMap is ok. You can use the other plasma weather widget/plasmoid that utilizes OWM. I have compared it a lot with Wunderground's results and wunderground is so much more accurate in my area, so I really hope the author can get a new api key for this widget/plasmoid.

The thing is though if IBM doesn't want to play ball they don't want to play ball and it'll be either pivot to another data source or the widget dies. WU can't be the only source that can tap into a user's own weather station can it?

RyanHakurei avatar Nov 08 '22 13:11 RyanHakurei

WU can't be the only source that can tap into a user's own weather station can it?

WU is currently not the only source. In the other weather widget/plasmoid app, I think it utilizes OpenWeatherMap and one other source. I understand the situation with IBM, but they haven't completely stopped or shutdown their service. They want you to pay for it, I guess, unless you are a developer. Using analogies like "playing ball" is a little vague, so hopefully that clears it up for you.

I am just saying, I love the widget/plasmoid, but the real reason I use it is because of Wunderground...and its accuracy.

Kandelai avatar Nov 08 '22 15:11 Kandelai

attempting solution with e1f10a1e78da46f5b10a1e78da96f525 for my widget.

Thanks, this one works properly with forecasts and everything. How did you end up getting this new key? And would you be okay with us using this for this widget as opposed to yours, or should we wait for our own key?

Leonerd-04 avatar Nov 09 '22 22:11 Leonerd-04

api 2b6ed19f3d474152aed19f3d4791527d

Wanted to notify anyone coming across this that this key no longer works; it now throws the same error as the old key.

Leonerd-04 avatar Nov 09 '22 22:11 Leonerd-04

attempting solution with e1f10a1e78da46f5b10a1e78da96f525 for my widget.

Thanks, this one works properly with forecasts and everything. How did you end up getting this new key? And would you be okay with us using this for this widget as opposed to yours, or should we wait for our own key?

This widget is welcome to use this key! It's from an old account I've held onto from Wunderground. Looks like it's still working!

k-donn avatar Nov 10 '22 15:11 k-donn

attempting solution with e1f10a1e78da46f5b10a1e78da96f525 for my widget.

Thanks, this one works properly with forecasts and everything. How did you end up getting this new key? And would you be okay with us using this for this widget as opposed to yours, or should we wait for our own key?

This widget is welcome to use this key! It's from an old account I've held onto from Wunderground. Looks like it's still working!

Thank you very much! Hopefully this one won't expire too soon.

Leonerd-04 avatar Nov 10 '22 20:11 Leonerd-04