Hi all,
I’m currently building a MM2 (2.1.0). For the moment I’m trying to find out why the weather (both current and forecast) shows up when updating.
This is the scenario:
I have usually the “local” weather (both current and forecast) shown. Then when my user logs in (using face recognition) then the local weather (both current and forecast) gets hidden and the weather (both current and forecast) from another location should be shown. Then when my user logs out, the local weather (both current and forecast) should be shown again and the “other” (both current and forecast) should be hidden.
What I managed so far:
When I start MM2, both weather locations (local and other and both current and forecast)) are shown. Then when the user logs in the local gets hidden and the “other” gets shown (stays shown). When the user logs out the local one get shown and the “other” hides. All good, I could live with the startup problem. :)
Now, when the weather updates, everything (local and other, both current and forecast) are shown again and stays that way until a user logs in and out again.
So, my config:
First in the config is the Face recognition part(s):
{
module: "MMM-Facial-Recognition",
position: "top_bar",
header: "",
config: {
users: [
"Snille",
"Louise",
"Martin"
],
trainingFile: "modules/MMM-Facial-Recognition-Tools/facetrainer/training.xml",
logoutDelay: 30,
interval: 1
}
},
And then further down the weather part(s)
{
module: "currentweather",
position: "top_right",
classes: "snille",
header: "",
config: {
location: "Arlanda",
locationID: "2679300",
appid: "b78a1a22ab05beb1fd30b2bf6013db64",
iconTable: {
"01d": "wi-day-sunny",
"02d": "wi-day-cloudy",
"03d": "wi-cloudy",
"04d": "wi-cloudy-windy",
"09d": "wi-showers",
"10d": "wi-rain",
"11d": "wi-thunderstorm",
"13d": "wi-snow",
"50d": "wi-fog",
"01n": "wi-night-clear",
"02n": "wi-night-cloudy",
"03n": "wi-night-cloudy",
"04n": "wi-night-cloudy",
"09n": "wi-night-showers",
"10n": "wi-night-rain",
"11n": "wi-night-thunderstorm",
"13n": "wi-night-snow",
"50n": "wi-night-alt-cloudy-windy"
},
showPeriodUpper: true,
showHumidity: true
}
},
{
module: "weatherforecast",
position: "top_right",
classes: "snille",
header: "Väder i",
config: {
location: "Arlanda",
locationID: "2679300",
appid: "b78a1a22ab05beb1fd30b2bf6013db64",
iconTable: {
"01d": "wi-day-sunny",
"02d": "wi-day-cloudy",
"03d": "wi-cloudy",
"04d": "wi-cloudy-windy",
"09d": "wi-showers",
"10d": "wi-rain",
"11d": "wi-thunderstorm",
"13d": "wi-snow",
"50d": "wi-fog",
"01n": "wi-night-clear",
"02n": "wi-night-cloudy",
"03n": "wi-night-cloudy",
"04n": "wi-night-cloudy",
"09n": "wi-night-showers",
"10n": "wi-night-rain",
"11n": "wi-night-thunderstorm",
"13n": "wi-night-snow",
"50n": "wi-night-alt-cloudy-windy"
},
showRainAmount: true
}
},
{
module: "currentweather",
position: "top_right",
classes: "default",
header: "",
config: {
location: "Åstorp",
locationID: "2724435",
appid: "b78a1a22ab05beb1fd30b2bf6013db64",
iconTable: {
"01d": "wi-day-sunny",
"02d": "wi-day-cloudy",
"03d": "wi-cloudy",
"04d": "wi-cloudy-windy",
"09d": "wi-showers",
"10d": "wi-rain",
"11d": "wi-thunderstorm",
"13d": "wi-snow",
"50d": "wi-fog",
"01n": "wi-night-clear",
"02n": "wi-night-cloudy",
"03n": "wi-night-cloudy",
"04n": "wi-night-cloudy",
"09n": "wi-night-showers",
"10n": "wi-night-rain",
"11n": "wi-night-thunderstorm",
"13n": "wi-night-snow",
"50n": "wi-night-alt-cloudy-windy"
},
showPeriodUpper: true,
showHumidity: true
}
},
{
module: "weatherforecast",
position: "top_right",
classes: "default",
header: "Väder i",
config: {
location: "Åstorp",
locationID: "2724435",
appid: "b78a1a22ab05beb1fd30b2bf6013db64",
iconTable: {
"01d": "wi-day-sunny",
"02d": "wi-day-cloudy",
"03d": "wi-cloudy",
"04d": "wi-cloudy-windy",
"09d": "wi-showers",
"10d": "wi-rain",
"11d": "wi-thunderstorm",
"13d": "wi-snow",
"50d": "wi-fog",
"01n": "wi-night-clear",
"02n": "wi-night-cloudy",
"03n": "wi-night-cloudy",
"04n": "wi-night-cloudy",
"09n": "wi-night-showers",
"10n": "wi-night-rain",
"11n": "wi-night-thunderstorm",
"13n": "wi-night-snow",
"50n": "wi-night-alt-cloudy-windy"
},
showRainAmount: true
}
},
The rest of the modules get hidden and shown correctly as expected (MMM-SystemStats, MMM-bitcoin, calendar, compliments, newsfeeds (2), MMM-Mail, MMM-NetworkScanner and MMM-fitbit).
It’s just the weather that gives “problems”. :)
Anyone have any ideas?
Best regards Erik