Skip to content

Fix Google weather script runtime failures - #5198

Open
davids5 wants to merge 1 commit into
valinet:masterfrom
davids5:weather_fix
Open

davids5 wants to merge 1 commit into
valinet:masterfrom
davids5:weather_fix

Conversation

@davids5

@davids5 davids5 commented Oct 5, 2026

Copy link
Copy Markdown
Contributor

Recent changes in Google weather broke the last fragile fix.

  • Add robust weather icon lookup for changing image URLs
  • Guard missing location and invalid coordinates
  • Replace unbounded sunrise/sunset loop
  • Fix invalid C string escape

ep_weather_host.zip

- Add robust weather icon lookup for changing image URLs
- Guard missing location and invalid coordinates
- Replace unbounded sunrise/sunset loop
- Fix invalid C string escape
@Amrsatrio

Amrsatrio commented Oct 5, 2026 •

Copy link
Copy Markdown
Collaborator

Works for me. LGTM.

Will merge later once I have lifted the commits from my fork to here.

@Number4000

Copy link
Copy Markdown

It's working for now with the "new" dll file. I hope it stands.

Thank you for the help!

@Number4000

Copy link
Copy Markdown

Now, following the change made about an hour ago, I no longer get weather details when clicking on the taskbar. Only a blank (empty) white square appears.

If I disable and re-enable the weather feature in ExplorerPatcher, the details come back.

A mystery...

@pyrates999

Copy link
Copy Markdown

No mystery if you're a programmer that understands how code works.

@Number4000

Copy link
Copy Markdown

No mystery if you're a programmer that understands how code works.

Good for you if you're a programmer. It's not the case for everyone. Please, have that in mind.

And as a programmer, we're all waiting for a fix that works. Untill then, have a good day.

@mattc0406

Copy link
Copy Markdown

I had to replace the DLL and change the icon pack from Google to Microsoft

@iG8R

iG8R commented Oct 5, 2026

Copy link
Copy Markdown

@mattc0406
Oh! With the Microsoft icon pack it started working.

@ShiftlessDrifter

Copy link
Copy Markdown

This worked with me today, including after a restart. Thank you!

@pyrates999

Copy link
Copy Markdown

You don't have to restart. Just disable weather. Replace the dll. Enable weather.

@markran

markran commented Oct 6, 2026

Copy link
Copy Markdown

Working for me too (once I changed icon pack to Microsoft). Thanks for fixing it!

@Wozmar

Wozmar commented Oct 7, 2026

Copy link
Copy Markdown

Thank you davids5 for the good file it works and everything is fine.

@pyrates999

pyrates999 commented Oct 7, 2026 •

Copy link
Copy Markdown

I would like to make a suggestion.

Can you include an option in EP to show the weather page as is?

This would allow people to get past the google thinks you're a bot, so that cookies can be set. It would also allow you as a developer to figure out if the code on the website changed, without having to use OBS Studio to capture the frame showing the reason why it would show no internet connection,

@cjahn50

cjahn50 commented Oct 11, 2026

Copy link
Copy Markdown

Well, the good old weather widget is on the fritz again. I noticed this afternoon that the location was missing. So foolish me, I restarted it. And once again we're at the check the network nonsense. There is brief moment before it crashes the complains about location. And FWIW, I deleted and reinstalled, tried the 'new' .dll from earlier this week, and the old local.state replacement. Nothing worked/made a difference. So once again if anyone has the magic, I'm all in. 😂

@mattc0406

Copy link
Copy Markdown

Did you try changing the icon pack from Google to Microsoft?

@cjahn50

cjahn50 commented Oct 11, 2026

Copy link
Copy Markdown

Did you try changing the icon pack from Google to Microsoft?

It's set to Microsoft by default. Or it is in this latest version.

@mattc0406

mattc0406 commented Oct 12, 2026 •

Copy link
Copy Markdown

OK - I have to preface this by saying I am NOT a developer - had the same issue where both Microsoft and Google quit working again - ChatGPT and I spent some time this evening going through through this DLL - the first issue that I was having - Google is doing a CAPTCHA verification that EP is hiding and it was returning a reload error with an internet access issue popup as part of it - this would occur every time i did the Clear weather widget local data setting - ChatGPT helped me change that functionality to keep the CAPTCHA verification visible in the widget contents box so I could complete the verification - after that my Microsoft icon pack started working again - but still not Google - next ChatGPT figured out that the rendering of the Google icons wasn't working correctly - something to do with Google using SVG files instead of PNG files now which may be why it just broke a few weeks ago - and redid the code for that and the Google Icon Pack is working on mine now as well. One final thing was the weather widget popup box was cutoff on the far right some and we adjusted the width slightly to see the entire 8 day forecast. I went through every setting in that Weather screen and all the options seem to be working. I'm attaching the ep_weather_host.dll that we built - use at your discretion - and I give all the credit to OpenAI 🙂

ep_weather_host.zip

@pyrates999

Copy link
Copy Markdown

OK - I have to preface this by saying I am NOT a developer - had the same issue where both Microsoft and Google quit working again - ChatGPT and I spent some time this evening going through through this DLL - the first issue that I was having - Google is doing a CAPTCHA verification that EP is hiding and it was returning a reload error with an internet access issue popup as part of it - this would occur every time i did the Clear weather widget local data setting - ChatGPT helped me change that functionality to keep the CAPTCHA verification visible in the widget contents box so I could complete the verification - after that my Microsoft icon pack started working again - but still not Google - next ChatGPT figured out that the rendering of the Google icons wasn't working correctly - something to do with Google using SVG files instead of PNG files now which may be why it just broke a few weeks ago - and redid the code for that and the Google Icon Pack is working on mine now as well. One final thing was the weather widget popup box was cutoff on the far right some and we adjusted the width slightly to see the entire 8 day forecast. I went through every setting in that Weather screen and all the options seem to be working. I'm attaching the ep_weather_host.dll that we built - use at your discretion - and I give all the credit to OpenAI 🙂

ep_weather_host.zip

We don't accept ai slop here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

10 participants