Read the statement by Michael Teeuw here.
MMM-DarkSkyForecast - Yet ANOTHER weather module
-
@smotx Yeah coming through for me now too. Weird.
OK from the top down:
- The first two regions are actually spacing that accommodates the icon when it appears (It’s currently not appearing due to a bug I fixed today. Do a
git pull
to update the module and restart MM. You’ll see once the icon is in place, that the vertical space is better used. Keep in mind that the icons are square, and some of them only use a portion of the square. Nonetheless the square still takes up that amount of space. Here’s what it should look like:
You can decrease the space under the header a bit with this:
.MMM-DarkSkyForecast .module-header { margin-bottom: 5px; /* adjust to taste */ }
Keep in mind this will also affect the header above the forecast if you have configured it to be there. That can be controlled independently as follows:
.MMM-DarkSkyForecast .module-header.forecast-header { margin-bottom: 10px; /* adjust to taste */ } * the next one below the extra current conditions is margin above the summary. Adjust it as follows:
.MMM-DarkSkyForecast .summary {
margin-top: 10px; /* adjust to taste */
}You can also affect the margin underneath the summary in a similar way:
.MMM-DarkSkyForecast .summary {
margin-bottom: 10px; /* adjust to taste */
}* The following four below are controlled by the line-height of the time and day displays:
.MMM-DarkSkyForecast .wrapper.tiled .forecast-container .forecast-item .time,
.MMM-DarkSkyForecast .wrapper.tiled .forecast-container .forecast-item .day-name {
line-height: 20px; /* adjust to taste */
}Put all of the CSS changes in your `custom.css` file. Don't make changes to `MMM-DarkSkyForecast.css` as they will be overwritten if you update the module to a newer version.
- The first two regions are actually spacing that accommodates the icon when it appears (It’s currently not appearing due to a bug I fixed today. Do a
-
Thx a lot
it’s good now, it remains 2 spaces a little wide, but it does not exceed more on the next module, thank you again.
-
@j-e-f-f came home to see the icon working, which was strange. anyway, grabbed your recent update and it works great. thank you SO MUCH for your time on this :)
-
@dan-o said in MMM-DarkSkyForecast - Yet ANOTHER weather module:
@j-e-f-f came home to see the icon working, which was strange. anyway, grabbed your recent update and it works great. thank you SO MUCH for your time on this :)
Looks like I spoke too soon :(. Was working after a restart. Walked by the mirror just now and no icon present.
-
@smotx you can control the width of the module in CSS. It defaults to 300px, but if you need it wider or narrower you can use this:
.MMM-DarkSkyForecast .module-content { width: 250px; /* adjust this to taste */ }
-
@dan-o hmmm… will look into this some more. For now, if you disable the animated icons you will at least get the static one reliably.
-
I left this running on my mirror overnight and my main icon disappeared at some point as well, but it was back this morning. I have a few theories as to why.
The way the animated icons work is that they get drawn real-time by JavaScript, which means I need to wait until the DOM update is finished before executing the draw command. I thought I had licked that with my last update but the combination of the Nunjucks templating system seems to be adding a latency I’m not accounting for.
Will continue working on this over the next couple of days. Turn off animated icons for now as a work around.
-
Is it possible to disable the main icon via the config?
I’m running two configs of MMM-DarkSlyForecast next to each other. One with 9 hour forecast and the other one with 6 day forecast.
Because of this I have 2 main icons that are the same. See picture below.Is it possible to disable one of them via the config?
-
@arjan yes. Here are a few config options for you:
showCurrentConditions: false
will turn off the main icon and the current temparature display (the two big items).
showExtraCurrentConditions: false
will turn off the the additional current conditions immediately below the big icon and temperature.This module is programmed it with this type of usage in mind, so it supports multiple instances to work independently. I do something similar on my kitchen display centre.
-
@j-e-f-f Thanks. I overlooked that one.