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

No information is being displayed constantly says loading #36

Open
Ray94520 opened this issue Sep 30, 2024 · 16 comments
Open

No information is being displayed constantly says loading #36

Ray94520 opened this issue Sep 30, 2024 · 16 comments

Comments

@Ray94520
Copy link

Ray94520 commented Sep 30, 2024

So all of a sudden OpenWeatherForecast is displaying loading
I also have a virtual mirror and it is doing exactly the same thing

I went to the website and everything checked out fine even my app key
I even went to their weather map and it is showing the temperature

I have been using this for quite some time so I don't understand what's going on
unless the service is down

ps: I even tried different coordinates with no luck

{
			disabled: false,
			module: "MMM-OpenWeatherForecast",
			position: "top_right",
			header: "Concord/Walnut Creek",
			config: {
				apikey: " my key",     // only string here
				latitude: 37.9780 ,
				longitude: -122.0311 ,
			    units: "imperial",
			    iconset: "3c",
			    requestDelay: 250,                              // requestDelay In milliseconds
			    useAnimatedIcons: true,                         // animation can only be on one
                updateInterval: 10,                             // minutes
                showFeelsLikeTemp: false,
                showSummary: true,                              // false stop weather alerts from displaying
       		        
		        forecastHeaderText: "Hourly Forecast",          // Text for the header
				forecastLayout: "tiled",                        // Can be set to tiled or table
				
				showHourlyForecast: true,                       // show hourly forecast information
				hourlyForecastInterval: 3,                      // How many hours apart each listed hourly
				maxHourliesToShow: 3,                           // How many hourly forecasts
				 
		        showDailyForecast: false                        // show daily forecast information
			}
		},
@goldyfruit
Copy link

Same here, tried with a new API key as well.

@Ray94520
Copy link
Author

Ray94520 commented Oct 3, 2024

I found the solution to this problem everything is working fine now

@goldyfruit
Copy link

I found the solution to this problem everything is working fine now

What is the solution?

@Ray94520
Copy link
Author

Ray94520 commented Oct 3, 2024 via email

@cacy82
Copy link

cacy82 commented Oct 3, 2024

Hi, what is the solution? I have the same problem.

@Ray94520
Copy link
Author

Ray94520 commented Oct 3, 2024

The openweathermap change their version from 2.5 to 3.0
you have to enter a credit card in order for it to work
you still get a 1000 calls for free but if you go over they will charge you
you can also set your call limit I made mine 999
the procedure is very simple

Once you do that your original app key should work at least it did for me
then you need to replace
var url = "https://api.openweathermap.org/data/2.5/onecall?"
With
var url = "https://api.openweathermap.org/data/3.0/onecall?"
You will find that in node_helper.js

In your config file make sure you set the 10 minutes to 15 that's what I did otherwise you go over your call limit

@cacy82
Copy link

cacy82 commented Oct 5, 2024

Hi,

I tried the solution you proposed, but it doesn't work; it keeps loading.

The log returns the following error:

[MMM-OpenWeatherForecast] 5-Oct-24 12:47 ** ERROR ** Error: Request failed with status code 401

Below is the excerpt from the config file and the node_helper.js file.

   {
      module: 'MMM-OpenWeatherForecast',
      position: 'top_right',
      header: 'Previsioni',
      config: {
        apikey: 'myAPIkey',
        latitude: **.*****,
        longitude: '**.******',
        forecastHeaderText: 'I prossimi giorni',
        showHourlyForecast: false,
        updateInterval: 15,
        label_days: [
          'Dom',
          'Lun',
          'Mar',
          'Mer',
          'Gio',
          'Ven',
          'Sab'
        ],
        extraCurrentConditions: {
          highLowTemp: true,
          precipitation: true,
          sunrise: true,
          sunset: true,
          wind: true,
          barometricPressure: false,
          humidity: true,
          dewPoint: false,
          uvIndex: false,
          visibility: false
        }
      } 
    },
 var url = "https://api.openweathermap.org/data/3.0/onecall?" +
          "lat=" + payload.latitude +
          "&lon=" + payload.longitude +
          "&exclude=" + "minutely" +
          "&appid=" + payload.apikey +
          "&units=" + payload.units +
          "&lang=" + payload.language;

@goldyfruit
Copy link

The openweathermap change their version from 2.5 to 3.0 you have to enter a credit card in order for it to work you still get a 1000 calls for free but if you go over they will charge you you can also set your call limit I made mine 999 the procedure is very simple

Once you do that your original app key should work at least it did for me then you need to replace var url = "https://api.openweathermap.org/data/2.5/onecall?" With var url = "https://api.openweathermap.org/data/3.0/onecall?" You will find that in node_helper.js

In your config file make sure you set the 10 minutes to 15 that's what I did otherwise you go over your call limit

Works for me, after changing the URL and putting my billing information it took about 30 minutes before showing information back to the mirror.

Thanks for sharing!

@cacy82
Copy link

cacy82 commented Oct 5, 2024

For me, it doesn't work, but I think it's an Open Weather issue because in the "My services" section, it still shows "Free Plan."

I tried sending them an email.

@bertdeelman
Copy link

I receive an HTML 401 error:

API calls return an error 401
Error 401 - Unauthorized. You can get 401 error if API token did not provide in the request or in case API token provided in the request does not grant access to this API. You must add API token with granted access to the product to the request before returning it.

So, you have to pay, I think as @cacy82 already mentioned.

@KristjanESPERANTO
Copy link

There is an active fork of this module: https://github.com/Tom-Hirschberger/MMM-OpenWeatherForecast.

I recommend to switch to it.

@Ray94520
Copy link
Author

Ray94520 commented Oct 6, 2024

It's on my schedule and just as soon as I have time I will dumbly be looking into it
but for right now this one is working just fine

@tylerstambaugh
Copy link

I just opened a pull request to commit the change to use the 3.0 endpoint.

@michaelscardino
Copy link

For me, it doesn't work, but I think it's an Open Weather issue because in the "My services" section, it still shows "Free Plan."

I tried sending them an email.

You shouldn't be under free plan. You need to select base plan.

https://home.openweathermap.org/subscriptions

image

It should look something like this.

@BKneer
Copy link

BKneer commented Dec 2, 2024

I've noticed that the issue hasn't been closed/solved yet. I had to install MagicMirror on my Raspi again and after that the Weather module (the one that comes with MM) stopped working. Like mentioned here it stucks in "Loading".
Then I've checked my API key and could see that it loads perfectly fine with the browser command. So it seems there is no issue with 2.5 (https://api.openweathermap.org/data/2.5/weather?lat=48.52693350000001&lon=10.1472952&appid=2525cxxxxxxxxxxxxxxxxx).
After that I've tried this module with the hope to get it running... still the same problem with the loading....

Is there any idea what I could check? Has something been changed in MM to stop this? As I've said it worked perfectly fine before the update.

Thanks
Bernhard

@KristjanESPERANTO
Copy link

@BKneer Are you using the fork from Tom-Hirschberger (https://github.com/Tom-Hirschberger/MMM-OpenWeatherForecast)?

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

No branches or pull requests

8 participants