Solved Duplicate timers running
-
Hi,
I am using EXT-Screen with EXT-Pir, I placed a countdown timer on my main screen. I noticed that as soon as I start my mirror, one countdown starts and if there is a detection with PIR sensor, a duplicate timer starts.So lets say, if my delay is 60 seconds then my countdown starts as 60, 59, 58, 57… and after PIR detection the countdown looks like this: 60, 56, 59, 55, 58, 54… and so on. It somehow mix two timers together. In the end, it shuts off the screen when the first timer countdowns to zero even when PIR is detecting motion.
I would really appreciate some help with this. Hopefully, I am clear with the problem description but let me know if you need more details.
-
Hi, generaly it’s happen when you useMM² in server mode (open MM² with the web link)
EXT-Screen is coded for turn on/off the main display and not a remote display in server mode
If it’s just for see MagicMirror in remote, just use VNCViewer and don’t use ‘http’ link
in other case, this module is not compatible with your proper usingNote: by using server mode
You will use multi time API of modules.
API have some max query (hours, days, month)
When Max query is detected by the api. Your module can’t received any informations
So your module can crash and display nothingThat why it’s better to use VNCViewer
-
Hi, thanks for the quick reply.
I am not using MM in server mode, directly working with pi (no VNC, SSH, etc.). Do I need to change something in the main config file to make sure I am using the web link?
-
I forgot to add one thing that its just not two timers. Everytime, I have a PIR detection, a new timer is started and it gets combined with the original. So I can have maybe 3, 4, 5 timers running together.
-
Hi, no related tio this…
Past me logs from console ?
-
magicmirror@2.20.0 start
DISPLAY=“${DISPLAY:=:0}” ./node_modules/.bin/electron js/electron.js
[25.09.2022 14:16.24.310] [LOG] Starting MagicMirror: v2.20.0
[25.09.2022 14:16.24.317] [LOG] Loading config …
[25.09.2022 14:16.24.322] [LOG] Loading module helpers …
[25.09.2022 14:16.24.330] [LOG] Initializing new module helper …
[25.09.2022 14:16.24.334] [LOG] Module helper loaded: MMM-Page-Selector
[25.09.2022 14:16.24.340] [LOG] Initializing new module helper …
[25.09.2022 14:16.24.341] [LOG] Module helper loaded: WB-weather
[25.09.2022 14:16.24.387] [LOG] Initializing new module helper …
[25.09.2022 14:16.24.389] [LOG] Module helper loaded: EXT-Screen
[25.09.2022 14:16.24.395] [LOG] Initializing new module helper …
[25.09.2022 14:16.24.396] [LOG] Module helper loaded: EXT-Pir
[25.09.2022 14:16.24.399] [LOG] Initializing new module helper …
[25.09.2022 14:16.24.399] [LOG] Module helper loaded: EXT-Alert
[25.09.2022 14:16.24.406] [LOG] No helper found for module: WB-clock.
[25.09.2022 14:16.24.455] [LOG] Initializing new module helper …
[25.09.2022 14:16.24.456] [LOG] Module helper loaded: newsfeed
[25.09.2022 14:16.24.458] [LOG] No helper found for module: compliments.
[25.09.2022 14:16.24.531] [LOG] Initializing new module helper …
[25.09.2022 14:16.24.532] [LOG] Module helper loaded: MMM-OpenWeatherMapForecast
[25.09.2022 14:16.24.533] [LOG] All module helpers loaded.
[25.09.2022 14:16.24.669] [LOG] Starting server on port 8080 …
[25.09.2022 14:16.24.696] [LOG] Server started …
[25.09.2022 14:16.24.698] [LOG] Connecting socket for: MMM-Page-Selector
[25.09.2022 14:16.24.701] [LOG] Connecting socket for: WB-weather
[25.09.2022 14:16.24.702] [LOG] Starting module helper: WB-weather
[25.09.2022 14:16.24.703] [LOG] Connecting socket for: EXT-Screen
[25.09.2022 14:16.24.704] [LOG] Connecting socket for: EXT-Pir
[25.09.2022 14:16.24.707] [LOG] Connecting socket for: EXT-Alert
[25.09.2022 14:16.24.708] [LOG] Starting module helper: EXT-Alert
[25.09.2022 14:16.24.709] [LOG] Connecting socket for: newsfeed
[25.09.2022 14:16.24.712] [LOG] Starting node helper for: newsfeed
[25.09.2022 14:16.24.714] [LOG] Connecting socket for: MMM-OpenWeatherMapForecast
[25.09.2022 14:16.24.716] [LOG] ====================== Starting node_helper for module [MMM-OpenWeatherMapForecast]
[25.09.2022 14:16.24.717] [LOG] Sockets connected & modules started …
[25.09.2022 14:16.25.114] [LOG] Launching application.
MESA-LOADER: failed to retrieve device information
MESA-LOADER: failed to retrieve device information
MESA-LOADER: failed to retrieve device information
MESA-LOADER: failed to open kms_swrast: /usr/lib/dri/kms_swrast_dri.so: cannot open shared object file: Permission denied (search paths /usr/lib/arm-linux-gnueabihf/dri:$${ORIGIN}/dri:/usr/lib/dri)
failed to load driver: kms_swrast
MESA-LOADER: failed to open swrast: /usr/lib/dri/swrast_dri.so: cannot open shared object file: Permission denied (search paths /usr/lib/arm-linux-gnueabihf/dri:$${ORIGIN}/dri:/usr/lib/dri)
failed to load swrast driver
[25.09.2022 14:16.27.710] [LOG] [SCREEN] EXT-Screen Version: 1.1.4 rev: 220811
[25.09.2022 14:16.27.715] [LOG] [SCREEN] Initialized
[25.09.2022 14:16.27.716] [LOG] Create new newsfetcher for url: https://news.google.com/rss/search?q=world+news&hl=en-US&gl=US&ceid=US:en - Interval: 300000
[25.09.2022 14:16.27.790] [LOG] [PIR] Initialize…
[25.09.2022 14:16.27.816] [LOG] [ALERT] EXT-Alert Version: 1.0.0 rev: 220301
[25.09.2022 14:16.27.826] [LOG] [PIR] All needed @bugsounet library loaded !
[25.09.2022 14:16.27.827] [LOG] [PIR] PIR Library v1.1.0 Initialized…
[25.09.2022 14:16.27.833] [LOG] [PIR] Initialize Complete Version: 1.0.1 rev: 220403
[25.09.2022 14:16.29.026] [INFO] Newsfeed-Fetcher: Broadcasting 99 items.
[25.09.2022 14:16.29.118] [LOG] [SCREEN] EXT-Screen Version: 1.1.4 rev: 220811
[25.09.2022 14:16.29.121] [LOG] [SCREEN] Initialized
[25.09.2022 14:16.29.128] [LOG] Use existing newsfetcher for url: https://news.google.com/rss/search?q=world+news&hl=en-US&gl=US&ceid=US:en
[25.09.2022 14:16.29.130] [INFO] Newsfeed-Fetcher: Broadcasting 99 items.
[25.09.2022 14:16.29.145] [LOG] [PIR] Initialize…
[25.09.2022 14:16.29.146] [LOG] [ALERT] EXT-Alert Version: 1.0.0 rev: 220301
[25.09.2022 14:16.29.149] [LOG] [PIR] All needed @bugsounet library loaded !
[25.09.2022 14:16.29.150] [LOG] [PIR] PIR Library v1.1.0 Initialized…
[25.09.2022 14:16.29.152] [LOG] [PIR] Initialize Complete Version: 1.0.1 rev: 220403
[25.09.2022 14:16.30.261] [INFO] Newsfeed-Fetcher: Broadcasting 99 items.
[25.09.2022 14:17.33.671] [LOG] Shutting down server…
[25.09.2022 14:17.33.672] [LOG] Stopping module helper: MMM-Page-Selector
[25.09.2022 14:17.33.673] [LOG] Stopping module helper: WB-weather
[25.09.2022 14:17.33.673] [LOG] Stopping module helper: EXT-Screen
[25.09.2022 14:17.33.674] [LOG] Stopping module helper: EXT-Pir
[25.09.2022 14:17.33.674] [LOG] Stopping module helper: EXT-Alert
[25.09.2022 14:17.33.674] [LOG] Stopping module helper: newsfeed
[25.09.2022 14:17.33.675] [LOG] Stopping module helper: MMM-OpenWeatherMapForecast
[25.09.2022 14:17.33.703] [LOG] [SCREEN] ByeBye !
[25.09.2022 14:17.33.703] [LOG] [SCREEN] @bugsounet
[25.09.2022 14:17.33.704] [LOG] [SCREEN] ByeBye !
[25.09.2022 14:17.33.704] [LOG] [SCREEN] @bugsounet -
It’s that i says … you use a web link for displaying MM²
It’s running 2 times. everythin is initialized 2 times
- [25.09.2022 14:16.27.715] [LOG] [SCREEN] Initialized
- [25.09.2022 14:16.29.121] [LOG] [SCREEN] Initialized
- [25.09.2022 14:16.27.716] [LOG] Create new newsfetcher for url: https://news.google.com/rss/search?q=world+news&hl=en-US&gl=US&ceid=US:en - Interval: 300000
- [25.09.2022 14:16.29.128] [LOG] Use existing newsfetcher for url: https://news.google.com/rss/search?q=world+news&hl=en-US&gl=US&ceid=US:en
- [25.09.2022 14:16.27.827] [LOG] [PIR] PIR Library v1.1.0 Initialized…
- [25.09.2022 14:16.29.150] [LOG] [PIR] PIR Library v1.1.0 Initialized…
- [25.09.2022 14:16.27.816] [LOG] [ALERT] EXT-Alert Version: 1.0.0 rev: 220301
- [25.09.2022 14:16.29.146] [LOG] [ALERT] EXT-Alert Version: 1.0.0 rev: 220301
it’s means, 2 sec after MM is launch you open a web page for see MM²
So all is again initialized
It’s not a good method, sorryMM² should display it self in full screen without open
http://xxx:8080
in a browser
Each time you use the web link … each time it will initialize all … each time you will have a new instence … and each time all will be displayed like an unique screen -
Alright, thanks for this.
Can you please suggest how can I fix this problem in the config file? I am not sure how to implement your method. -
there is no fix…
I don’t invent the method
MagicMirror² App will open and Display it self without open an browsersee there I don’t invent nothing
If it don’t open itself, it’s your main isssue
-
bugsounet