Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Weather module (using pirateweather provider) don't update/grow stale #3687

Open
JHenzi opened this issue Jan 11, 2025 · 10 comments
Open

Weather module (using pirateweather provider) don't update/grow stale #3687

JHenzi opened this issue Jan 11, 2025 · 10 comments

Comments

@JHenzi
Copy link

JHenzi commented Jan 11, 2025

Platform: Raspberry Pi 4.

Node Version: 22.

MagicMirror² Version: latest

Description: Weather forecast (pirate weather) doesn't update without relaunching or reloading the page. Today, Tomorrow and the next day are all wrong after one day (today is yesterday, tomorrow is today). I don't think the values are updating either. Believe the current weather / temperature is wrong after it ages as well as it didn't update for a day.

Steps to Reproduce: Use Pirate Weather with this config:

	{
			module: "weather",
			position: "top_right",
			config: {
				weatherProvider: "pirateweather",
				type: "current",
				lat: 39,
				lon: -84,
				apiKey: "---",
			}
		},
		{
			module: "weather",
			position: "top_left",
			header: "Weather Forecast",
			config: {
				weatherProvider: "pirateweather",
				type: "forecast",
				lat: 39,
				lon: -84,
				apiKey: "---",
			}
		}

Expected Results: Live data.

Actual Results: Stale data

Configuration: See above

Additional Notes: Recently switched to Pirate Weather. Don't see any errors in the console.

@sdetweil
Copy link
Collaborator

the documentation says there is a 10 minute cycle time, before next fetch of the data

weather is done all in browser, do if you waited more than 10 minutes, open the develoer window
ctrl-shift-i
select the console tab
and put a unique part of the module name in the filter field (weath for this module)

see if there are any error messages (usually in red)
and copy/paste them here

@JHenzi
Copy link
Author

JHenzi commented Jan 11, 2025

No error messages in console. Happy to find any other logs I guess. Maybe better to explain the weather forecast will say:

  • today
  • tomorrow
  • mon

When today is Monday.

@sdetweil
Copy link
Collaborator

today is saturday

@JHenzi
Copy link
Author

JHenzi commented Jan 12, 2025

No error messages in console. Happy to find any other logs I guess. Maybe better to explain the weather forecast will say:

today
tomorrow
sun

When today is Sunday.

The module is broken.

@sdetweil sdetweil changed the title Weather modules don't update/grow stale Weather module (using pirateweather provider) don't update/grow stale Jan 12, 2025
@sdetweil
Copy link
Collaborator

sdetweil commented Jan 12, 2025

ok, I changed the title to include pirateweather,
someone will have to look at it..

@JHenzi
Copy link
Author

JHenzi commented Jan 13, 2025

I'm not seeing this still happening since I reported it. Users are migrating to pirate weather, maybe someone else will have this happen.

@sdetweil
Copy link
Collaborator

maybe it was a Pirateweather problem

@khassel
Copy link
Collaborator

khassel commented Jan 31, 2025

so this was a temporary problem? If yes, can we close this issue? @JHenzi

@Ryanclbryant
Copy link

I've been experiencing this also; it's not a temporary problem but seemingly intermittent.
It seems related to scheduling updates. When the mirror process starts, updates perform as expected, but over time, the process eventually stops updating without error.

Very painfully slowly working on identifying where or why this is coming up; likely something that Pirateweather is including in the response rarely.

@merasil
Copy link

merasil commented Feb 6, 2025

Also same problem. Def. not temporary… i am using yr as provider

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

No branches or pull requests

5 participants