Read the statement by Michael Teeuw here.
MMM-DarkSkyForecast - Yet ANOTHER weather module
-
Dear @j-e-f-f,
thanks for the quick reply. Today, I tried to get my toes wet with JS coding and added an option to hide the column header icons from the forecast table or optionally show a header above the forecast table. It seems to work as expected and I have created a pull-request to give others access to the feature as well and maybe safe you some time.I also found a way to hide the vertical lines from the table via the custom.css file and now the module looks even better, if a fullscreen background image is used.
-
@smotx I fixed a bug with the summary display last night. Try doing a
git pull
in theMMM-DarkSkyForecast
directory, then restart MagicMirror. See if that fixes it. -
@rudibarani I merged your pull request, but then I did a bit of refactoring. I renamed the the parameter
forecastTableHeaderText
toforecastHeaderText
, as it can be used in both thetable
andtiled
views.I also fixed up how the header is formatted. I’m now using an HTML5
header
element and it has two classes:module-header
so that it is formatted the same as all of the other module headers, andforecast-header
if you want to target it specifically with CSS.Lastly, this update enables notifications for other modules. The notification is called
DARK_SKY_FORECAST_WEATHER_UPDATE
and the payload is Dark Sky’s weather JSON object. For details see https://darksky.net/dev/docs. -
@j-e-f-f :) This looks familiar… well done!
-
Does it handle midnight properly in 12 hour mode? So darned tired of the 0am stuff the other DarkSky one has. ;)
-
@j-e-f-f said in MMM-DarkSkyForecast - Yet ANOTHER weather module:
I also fixed up how the header is formatted. I’m now using an HTML5 header element and it has two classes: module-header so that it is formatted the same as all of the other module headers, and forecast-header if you want to target it specifically with CSS.
Thanks for accepting my pull request and your improvements. They help me learn how this all works.
I have some trouble with the animated current conditions icons. Sometimes they do not show up, although configured - and reappear on a restart. Sometimes they are shown only for one instance of MMM-DarkSkyForecast. Do you have any idea, what might be the cause?
A second question: I have limited the max-width of MMM-DarkSkyForecast to 250px as I would like to have my mirror with cascading module widths with in creasing width the lower a module is. This works fine on the left side. If I send MMM-DarkSkyForecast to the right side and the module below is wider, it is aligned on the left side of the right region. Do you have any advice how to right align all modules in the right region?
-
@j-e-f-f ,
I am also stuck at “Loading” actually it says “Bezig met laden…” which is Dutch for “Loading”.
I ran the “git clone…”, switched to the “MMM-DarkSkyForecast” directory, and ran the NPM Install.
I do get this warning: “npm WARN mmm-darkskyforecast@1.0.0 No repository field.”, but I do not know how to act upon it.The module is making calls to DarkSky, I see that in the Api usage.
The logs show no error.
This is the config:{ module: "MMM-DarkSkyForecast", header: "Weersverwachting", position: "top_right", // classes: "default everyone", disabled: false, config: { apikey: "XXXXXXXXXXXXX", latitude: "51.5096192", longitude: "5.6364183", iconset: "1c", // maxHourliesToShow: 4, // maxDailiesToShow: 4, // useAnimatedIcons: true, concise: false, // label_timeFormat: "k[h]", forecastLayout: "table" } },
I am not sure were I went wrong. Can you provide help?
Kind Regards,
Hein-Jan
-
Same here with “Loading” and nothing happens.
Seems to be a problem with lon/lat.
If i provide the example lon/lat it works.
-
looks awesome but doesn’t work with the coordinates of Berlin. It says “loading” but nothing happens.
{ module: "MMM-DarkSkyForecast", header: "Weather", position: "top_right", classes: "default everyone", disabled: false, config: { apikey: "db7derpderpderp214eae3b0f6e", latitude: "52.520008", longitude: "13.404954", iconset: "2m", concise: false, forecastLayout: "table", language: "de" } },
-
I posted this on the GitHub page;
When I use the default Long and Lat, the module loads. London works as does Vancouver and New York however when trying Hawaii, Sydney, Paris, Cape Town, Moscow, Melbourne, and Wellington, the module will not load. Using https://www.latlong.net/ for Long and Lat.
When I use the same Long and Lat in this module that works with the Forecast.io module, the module won’t load. At first, I thought it was southern hemisphere’s (given the Lat is a ‘negative’ number) but that doesn’t appear to be the cause.