derek1906 / CoolClock

Cool Clock source
20 stars 10 forks source link

Weather Details Don't Work #1

Closed Jesse-Hufstetler closed 6 years ago

Jesse-Hufstetler commented 6 years ago

The URL must be broken.

image

image image

derek1906 commented 6 years ago

That URL is provided by the Yahoo Weather API so I do not have control over it. Feel free to suggest other weather APIs and I will consider using it instead of Yahoo Weather. Thanks!

Jesse-Hufstetler commented 6 years ago

@derek1906 the URL above was http://us.rd.yahoo.com/dailynews/rss/weather/Country__Country/*https://weather.yahoo.com/country/state/city-12776918/. If you add .split('*')[1] to the end of that js string it will return https://weather.yahoo.com/country/state/city-12776918/ which is a valid web address. Perhaps you could do that? I'm trying to avoid having to learn how to build and debug a chrome extension or I'd make a pull request 😃.

derek1906 commented 6 years ago

The URL is actually valid and use to work fine. I would avoid tempering with the URL since they might return a URL in different formats in the future. This issue might be temporary, so I will wait for a while before making any changes.