dmcinnes / MMM-forecast-io

Forecast.io Module for MagicMirror
59 stars 47 forks source link

Precipitation Graph does not display / loads endlessly #10

Open wbleek opened 7 years ago

wbleek commented 7 years ago

Hi, thanks a lot for this module. I really like it since I use the mobile app as well daily. On rainy days the module does not show any precipitation graph. If I force the graph to be displayed with your new switch it loads endlessly. How do you suggest to debug the issue? Thanks Wgb

This is my code in the config file.

                {
                        module: "MMM-forecast-io",
                        classes: "small",
                        position: "bottom_left",
                        header: "Hamburg, DE",
                        config: {
                                apiKey: "??????????????????????????????", // removed
                                alwaysShowPrecipitationGraph: true,
                                latitude: 54.559676,
                                longitude: 9.168873
                        }
                },
wbleek commented 7 years ago

It works for Seattle, WA, but does not work for Girne, CY.

{ module: "MMM-forecast-io", classes: "small", position: "bottom_left", header: "Seattle, WA", config: { latitude: 47.606209, longitude: -122.332069 } }, { module: "MMM-forecast-io", classes: "small", position: "bottom_left", header: "Girne, CY", config: { latitude: 35.341671, longitude: 33.316669 } },

pflodo commented 7 years ago

The issue is that not all locations are returned with the data block for 'Minutely'. It is marked as 'optional' in the api,

This is also reflected on the web page, eg it will show graph on Seattle https://darksky.net/forecast/47.6038,-122.3301 (at least when i looked as there is some rain in the next 50 min).

wbleek commented 7 years ago

Thanks for your answer. I wasn't even aware of the fact that DarkSky distinguishes between minutely and hourly rain information. I am used to their mobile app and I am just looking for rain probability over the day - not in the upcoming minutes. Would you mind if I add an implementation for the day overview and contribute that?

dmcinnes commented 7 years ago

Sure thing, feel free to submit a PR On Mon, Jun 19, 2017 at 4:09 AM Wolf-Gideon Bleek notifications@github.com wrote:

Thanks for your answer. I wasn't even aware of the fact that DarkSky distinguishes between minutely and hourly rain information. I am used to their mobile app and I am just looking for rain probability over the day - not in the upcoming minutes. Would you mind if I add an implementation for the day overview and contribute that?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/dmcinnes/MMM-forecast-io/issues/10#issuecomment-309409389, or mute the thread https://github.com/notifications/unsubscribe-auth/AABArSHCu77a52J034Rj6DvIIdK93DFKks5sFlcDgaJpZM4No8eb .

lavolp3 commented 7 years ago

I have the same problem. As soon as I include prec graph, the module loads endlessly. I live in Germany. How can I determine if minutely forecast is available in My region?

My code: { module: 'MMM-forecast-io', position: 'top_right', // This can be any of the regions. config: { apiKey: 'xxxxxxxxxxxxxxxxxxxxxxxxxxx', // Dark Sky API key. latitude: 51.45411, longitude: 6.62649, //maxDaysForecast: 5, //alwaysShowPrecipitationGraph: true } },