@majorc said in MMM-DWD-WarnWeather - Wetterwarnungen:
… Is there a way to hide the hole module if no warnings are present at the moment? …
I would want to have that as well. ;)
@majorc said in MMM-DWD-WarnWeather - Wetterwarnungen:
… Is there a way to hide the hole module if no warnings are present at the moment? …
I would want to have that as well. ;)
@sdetweil Thank you, I just did.
Via another Issue, I came to a URL command that does what I wanted.
http://localhost/remote?action=HIDE&force=true&module=MMM-CalendarExt2
Show again works also.
http://localhost/remote?action=SHOW&force=true&module=MMM-CalendarExt2
@johans With MMM-MyGarbage it will probably be difficult. There you can distinguish the icons only by their color assigned in the CSV.
class=“garbage-icon” style=“fill: green”
Try MMM-MyWastePickup with collectionCalendar: 'Custom'.
It works with class.
classes: {
"Hide and show Calendar": {
toggle: ["MMM-CalendarExt2"],
},
}
But there is a third possibility. I use CalendarExt2 only for one calendar in “views: []”. I copied its position under the line “modules = ‘MMM-CalendarExt2’,”. Now it is visible in the “Edit View” of MMM-Remote-Control. :)
@sdetweil The timeFormat is relative by default. I used getRelative: 0 without changes at the display. Also with timeFormat: “absolute” only the display changed since hours instead of remaining hours. But with an additional urgency: 0 it works. Thank you, Sam!
Oh yes, an adjustment of the format was also necessary. The dateFormat was no longer applied.
Before:
{
module: "calendar",
header: "Feiertage",
position: "top_left",
config: {
dateFormat: "D. MMM",
displaySymbol: false,
broadcastEvents: false,
hideTime: true,
fadePoint: 0.05,
fetchInterval: 24 * 60 * 60 * 1000, // 1 day
calendars: [
{
maximumEntries: 3,
url: "webcal://localhost:8080/modules/calendar/feiertage.ics"
}
]
}
},
After changes:
{
module: "calendar",
header: "Feiertage",
position: "top_left",
config: {
dateFormat: "D. MMM",
displaySymbol: false,
broadcastEvents: false,
hideTime: true,
timeFormat: "absolute",
getRelative: 0,
urgency: 0,
fullDayEventDateFormat: "D. MMM",
nextDaysRelative: true, // shows Tomorrow and Today
fadePoint: 0.05,
fetchInterval: 24 * 60 * 60 * 1000, // 1 day
calendars: [
{
maximumEntries: 3,
url: "webcal://localhost:8080/modules/calendar/feiertage.ics"
}
]
}
},
I can well do without the “today”.
Edit: The “Today” comes with the setting: nextDaysRelative: true.