Hi all,
I would check in if there is a developer (maybe the original Autor @bugsounet) willing to look adding a feature to MMM-Pir Module. The module itself works fine, but I would like to specify a time window where a detected motion does not trigger the display to turn on (e.g. in the night)
Read the statement by Michael Teeuw here.
Posts
-
Modification to MMM-Pir module
-
RE: Trash schedule module
MyGarbge should work for you, it works with icons though. It uses a static CSV-file which you can build from a template that is part of the module.
The nice thing is, if you have a shift in day (due to holiday) this works with this module by just changing the day. I added a red trash can for off-schedule weeks as visual indicator.
-
RE: How to correctly configure the calendar module
@sdetweil Acknowledged to only post in one medium, sorry for that.
Thanks a lot for the code. Can you tell me where this has to be added?
-
How to correctly configure the calendar module
I am trying to cofigure the calendar module in the following way but cannot make it happen so maybe someone can help me out:
- For today’s all day events, display Today
- For today’s event with a certain time, display Today, 9:00
- For tomororw’s all day events, display Tomorrow
- For tomorrow’s event with a certain time, display Tomorrow, 9:00
- For all other later events, display the date respectively date and time if not all-day event.
This is what my current config looks like:
module: "calendar", header: "Termine & Feiertage", position: "top_left", config: { fetchInterval: 300000, //5 Minute displaySymbol: true, showLocation: false, fade: true, fadePoint: 0.4, dateFormat: "D. MMM HH:mm", fullDayEventDateFormat: "D. MMM", timeFormat: "absolute", getRelative: 12, urgency: 0, maximumEntries: 10, displayRepeatingCountTitle: true, hideOngoing: false, nextDaysRelative: true, calendars: ... ] }I have added
nextDaysRelative: trueas a temp solution to get the next day relative and know this should probably be removed.Any help would be appreciated.
-
MMM-Pir Issue
Hi all,
I have issues with the MMM-Pir module. I recently finished my mirror and put it onto the wall which all worked fine but it randomly shutdown. I have no idea why that happend but I found out it happend when I manage the start of Magic Mirror with pm2, but not when manually starting with “npm run” in a screen or with nohup, so I decided to move away from pm2 and created a systemd unit instad. So far, so good.
As I didn’t need pm2 I removed it from the raspi. Starting the Mirror with the Unit work fine but on Startup I see an Error Message from the PIR module that 1 needed Library is not loaded. The popup on top on starting up shows it is
onoff. I tried rebuilding MMM-Pir and also manually installingonoffwith the global flag but no with no avail.So the main two changes between WAI and not working at all are
- Uninstall of pm2
- changing the address in the config from
localhostto0.0.0.0
Config for Pir Module:
{ module: 'MMM-Pir', position: 'top_right', config: { debug: false, delay: 2 * 60 * 1000, turnOffDisplay: true, mode: 9, ecoMode: true, displayCounter: true, displayBar: true, displayStyle: "Text", displayLastPresence: tru lastPresenceTimeFormat: mode6_gpio: 20, mode6_clearGpioValue: tr pir_gpio: 18, pir_reverseValue: false, xrandrForceRotation: "no //wrandrForceRotation: " } },Can anyone help how I can get the Pir Module woring again? Happy to provide logs and config if needed. Thanks!
-
Literally Hardware: How to start building a frame?
Hey guys,
so I have basically my Raspi all Set up, have a 21" Screen which I have taken apart - at least already removed the whole frame, still need to separate the circuit boards from the metal frame - an am basically good to start. I also figured where to get my glass from. Either via the Community Order if open at that time or from https://www.glas-star.de where they also have a mirror specific for this project.
Now I come to the “struggle” I have. I would consider myself kind of skilled as craftsmen but if I know what to do. Though, I basically never did something from scratch and not much with wood. In regards of tools I also think I have most basic things which are needed. Now comes the question: How to start planning to build a nice frame?
- Are there any Editors which I can use to plan it?
- What to take care of when buying the wood?
- Any neat “tips and tricks” when doing the assembly?
I would appreciate any suggestion/tip/page to get started with it and finally get my mirror to the wall.
Thanks in advance!
-
RE: MMM-SoccerLiveScore
@0m4r much appreciated.
I would like to make a feature request if I may.
- Give the option to put the focus on a team any only show results from this team
Cheers,
Feedy -
RE: Warn-App NINA
Doesn’t look like there is an API available, so basically no way to get the data in.
-
RE: MMM-MyGarbage
@Cetax
it is not possible to integrate the module right away. What you can do, is to create a local ical file, store in on your device running the magic mirror and call if via localhost. However, this would only help you to display the day of pickup, no different colors for what bins are being picked up. -
RE: Default Calendar - Full Day Events are not shown on day of event
@sdetweil thanks, will do so later/tomorrow
Edit: done https://github.com/MichMich/MagicMirror/issues/2110 :crossed_fingers_light_skin_tone:
-
RE: Default Calendar - Full Day Events are not shown on day of event
@sdetweil Thanks for your reply. I have specified the timezone now:
BEGIN:VCALENDAR VERSION:2.0 PRODID:-//Static Birthdays//Some Name//EN CALSCALE:GREGORIAN X-WR-CALNAME;VALUE=TEXT:Birthdays_static_short X-WR-TIMEZONE:Europe/Berlin BEGIN:VTIMEZONE TZID:Europe/Berlin LAST-MODIFIED:20200806T101500Z BEGIN:STANDARD DTSTART:20191027T030000 RRULE:FREQ=YEARLY;BYMONTH=10;BYDAY=-1SU TZNAME:CET TZOFFSETFROM:+0200 TZOFFSETTO:+0100 END:STANDARD BEGIN:DAYLIGHT DTSTART:20200329T020000 RRULE:FREQ=YEARLY;BYMONTH=3;BYDAY=-1SU TZNAME:CEST TZOFFSETFROM:+0100 TZOFFSETTO:+0200 END:DAYLIGHT END:VTIMEZONE BEGIN:VEVENT SUMMARY:Max Mustermann DESCRIPTION: DTSTAMP:20050806T080000Z DTSTART;VALUE=DATE:20050806 DTEND;VALUE=DATE:20050806 RRULE:FREQ=YEARLY END:VEVENT END:VCALENDARAlso on your other post, this was just any birthday I pulled. I have created a fake one for today but still the same issue.
I have also played around with my icloud calender and found the following:
- Creating a full day event displays on the day of the event with the word “Today”.
- Creating a reoccurring full day event does not display on the day of the event but one day in advance.
The only difference in both Events is the RRULE:
Not Reoccurring:
BEGIN:VEVENT CREATED:20200806T083628Z DTEND;VALUE=DATE:20200807 DTSTAMP:20200806T083634Z DTSTART;VALUE=DATE:20200806 LAST-MODIFIED:20200806T083628Z SEQUENCE:0 SUMMARY:SingleTestDayEvent UID:05BF5856-EE12-495C-A681-5D1DE3BD2418 URL;VALUE=URI: TRANSP:OPAQUE END:VEVENTReoccurring:
BEGIN:VEVENT CREATED:20200806T083338Z DTEND;VALUE=DATE:20200807 DTSTAMP:20200806T083339Z DTSTART;VALUE=DATE:20200806 LAST-MODIFIED:20200806T083338Z RRULE:FREQ=YEARLY SEQUENCE:0 SUMMARY:TestDayEvent UID:7927874B-86FB-494B-AACE-CCA8BD525A3F URL;VALUE=URI: TRANSP:OPAQUE END:VEVENT -
Default Calendar - Full Day Events are not shown on day of event
Hey all,
I am using the default calendar module for my MM. So far I got quite some things to work. To feed my contacts birthdays I created a static file which I am using which works well. The only issue I have is, that on the day of the event (the actual birthday) the names are not showing up anymore.
Sample ical-entry and calendar-config below:
{ module: "calendar", header: "Termine & Feiertage", position: "top_left", config: { fetchInterval: 60000, displaySymbol: true, showLocation: false, fade: true, fadePoint: 0.4, dateFormat: "D. MMM HH:mm", fullDayEventDateFormat: "D. MMM", timeFormat: "absolute", getRelative: 12, urgency: 0, maximumEntries: 5, calendars: [ { symbol: "cocktail", url: "webcal://www.ecoline-media.de/ics/nordrhein-westfalen.ics" }, { symbol: 'calendar-check', url: 'webcal://localhost:8080/modules/calendars/9*******-****-****-****-***********D.ics', }, { symbol: 'birthday-cake', url: 'webcal://localhost:8080/modules/calendars/birthdays.ics', } ] } },BEGIN:VEVENT SUMMARY:Max Mustermann DESCRIPTION: DTSTAMP:19630626T000000 DTSTART;VALUE=DATE:19630626 DTEND;VALUE=DATE:19630626 RRULE:FREQ=YEARLY END:VEVENTWould appreciate some help.
-
RE: Sync private iCloud calendar with MagicMirror
@sdetweil Thanks for the notes, but can you explain a bit more into detail. You mean, if I add
#!/bin/bashas first line to the script, I can also add the logging part and remove it from the cron?To be honest, I’m quite a noob to Linux based systems and scripts. Nonetheless, hope my answer will help some people to get the sync going who have issues with the timer service from vdirsyncer.
-
RE: Sync private iCloud calendar with MagicMirror
@elliot1996 @duxnobis not sure if anyone is still following, but I was able to get the automated sync with a work around through cronjob. Step-by-step guide below:
- Create Shell script
First we need to create the script which is actually executed by the cronjob. To do this we open a terminal and type
nano ~/MagicMirror/modules/calendars/vdirsyncer.shWithin the editor we just write a one-liner:
vdirsyncer -vinfo syncClose by CTRL+X and save by confirming with Y
- Make script executable.
Within terminal type
chmod +x ~/MagicMirror/modules/calendars/vdirsyncer.sh- Test the script
Run a test if your script works. Within terminal type
bash ~/MagicMirror/modules/calendars/vdirsyncer.shIf working as intended you should receive the feedback
Syncing iCloud_to_MagicMirror/YOUR-CALENDAR-UUID- Checking/Changing the Version of vdirsyncer
This was actually my biggest issue. I could sync successfully when running the script manually but the actual cronjob failed. Looking into Debug-Logs I found that the manual run used Version 0.16.8 of vdirsyncer while the cronjob used 0.16.7. After manually chaning the versioning if worked as inteded. To ensue you are not running into that issue, let’s check the versioning from the get-go. Within Terminal type
sudo nano /usr/bin/vdirsyncerAn editor will show you the following code:
#!/usr/bin/python3 # EASY-INSTALL-ENTRY-SCRIPT: 'vdirsyncer==0.16.7','console_scripts','vdirsyncer' __requires__ = 'vdirsyncer==0.16.7' import re import sys from pkg_resources import load_entry_point if __name__ == '__main__': sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0]) sys.exit( load_entry_point('vdirsyncer= q=0.16.7', 'console_scripts', 'vdirsyncer')() )Change all three instances of
0.16.7to0.16.8, close via CTRL+X and save with Y.- Create the Cronjob
Cronjobs are a great thing. It is pre-installed with UNIX based systems, therefore also with our Raspberry Pi. More information about Cronjobs can be found here. To set up a new cronjob, within Terminal type
crontab -eThe result will be the following code:
# Edit this file to introduce tasks to be run by cron. # # Each task to run has to be defined through a single line # indicating with different fields when the task will be run # and what command to run for the task # # To define the time you can provide concrete values for # minute (m), hour (h), day of month (dom), month (mon), # and day of week (dow) or use '*' in these fields (for 'any'). # # Notice that tasks will be started based on the cron's system # daemon's notion of time and timezones. # # Output of the crontab jobs (including errors) is sent through # email to the user the crontab file belongs to (unless redirected). # # For example, you can run a backup of all your user accounts # at 5 a.m every week with: # 0 5 * * 1 tar -zcf /var/backups/home.tgz /home/ # # For more information see the manual pages of crontab(5) and cron(8) # # m h dom mon dow commandType a new line at the bottom with the cron syntax. Here is an overview for the timings:
# ┌───────────── minute (0 - 59) # │ ┌───────────── hour (0 - 23) # │ │ ┌───────────── day of the month (1 - 31) # │ │ │ ┌───────────── month (1 - 12) # │ │ │ │ ┌───────────── day of the week (0 - 6) (Sunday to Saturday; # │ │ │ │ │ 7 is also Sunday on some systems) # │ │ │ │ │ # │ │ │ │ │ # * * * * * <command to execute>As for us it makes senst to run vdirsyncer every X minutes (I am going with 5 minutes in my case) the syntax looks as follows:
*/5 * * * *followed by the script to execute:
bash ~/MagicMirror/modules/calendars/vdirsyncer.sh >> ~/vdirsyncer.log 2>&1The first part should be familiar to you. What follows after the
>>is a log we are creating. This will be helpful in case anything does not work as inteded. The full cronjob should look as follows:# Edit this file to introduce tasks to be run by cron. # # Each task to run has to be defined through a single line # indicating with different fields when the task will be run # and what command to run for the task # # To define the time you can provide concrete values for # minute (m), hour (h), day of month (dom), month (mon), # and day of week (dow) or use '*' in these fields (for 'any'). # # Notice that tasks will be started based on the cron's system # daemon's notion of time and timezones. # # Output of the crontab jobs (including errors) is sent through # email to the user the crontab file belongs to (unless redirected). # # For example, you can run a backup of all your user accounts # at 5 a.m every week with: # 0 5 * * 1 tar -zcf /var/backups/home.tgz /home/ # # For more information see the manual pages of crontab(5) and cron(8) # # m h dom mon dow command */5 * * * * bash ~/MagicMirror/modules/calendars/vdirsyncer.sh >> ~/vdirsyncer.log 2>&1Close again by CTRL+X. You are now ready and have everything set up. The cronjob will start automatically on every startup and run the sync in the interval you have set it up.
-
RE: Sync private iCloud calendar with MagicMirror
@duxnobis @elliot1996 @Beh
Hey guys,
just checking in on this topic, as I also have issues with getting the timer to run while manual sync works fine.- Files are in
/etc/systemd/user/(vdirsyncer.service & vdirsyncer.timer) - Ran
systemctl --user enable vdirsyncer.timer?(no error or any other feedback in Terminal) - Checked
jorunalctl --user -u vdirsyncerwith the result:
No journal files were found. -- No Entries --
I even went forward and tried to sync using a cronjob but this is unfortuately also not working:
error: Unknown error occured for iCloud_to_MagicMirror/9*******-****-****-****-************D: HTTPSConnectionPool(host='p65-caldav.icloud.com', port=443): Max retries exceeded with url: /1355377534/calendars/9*******-****-****-****-************D/ (Caused by SSLError(SSLError("bad handshake: Error([('SSL routines', 'tls_process_server_certificate', 'certificate verify failed')])"))) error: Use `-vdebug` to see the full traceback. error: 1 out of 2 tasks failed. Syncing iCloud_to_MagicMirror/9*******-****-****-****-************DAnyone has an Idea?
- Files are in
-
RE: MMM-SoccerLiveScore
@dave_ Hey there,
would be happy to help. What is your issue currently? Also would help to post a snippet of the config you are using.+
-
RE: Weather modules
@Mykle1 Understood. Guess that is the part making it responsive as you change the size?
-
RE: Weather modules
@BKeyport in my opinion it clearly is. Let’s see if some new modules pop up (openweather onecall API, climacell…)