• Register
    • Login
    • Search

    Unsolved Another problem

    EXT-Pir
    2
    8
    73
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • S
      shagui2211 last edited by

      hello. The sensor detects presence when it detects someone, and when it reaches the end of the countdown, the screen closes. but then it turns back on.

      1 Reply Last reply Reply Quote 0
      • bugsounet
        bugsounet Main Coder last edited by

        Hi, Try to enable debug mode on EXT-Pir plugins
        verify if there is another callback with Detected presence in teminal log

        My place in France Top committers of Github:
        committers.top badge

        1 Reply Last reply Reply Quote 0
        • S
          shagui2211 last edited by shagui2211

          [SCREEN] Callback Notification: SCREEN_TIMER 00:00
          [17.05.2022 20:58.17.100] [LOG] [SCREEN] Callback Notification: SCREEN_BAR 120000
          [17.05.2022 20:58.17.101] [LOG] [SCREEN] Callback Notification: SCREEN_HIDING undefined
          [17.05.2022 20:58.17.124] [LOG] [SCREEN] Callback Notification: SCREEN_PRESENCE false
          [17.05.2022 20:58.17.125] [LOG] [SCREEN] Stops by counter.
          [17.05.2022 20:58.17.130] [LOG] [SCREEN] Display – Actual: true - Wanted: false
          [17.05.2022 20:58.17.132] [LOG] [SCREEN] Display OFF.
          [17.05.2022 20:58.17.133] [LOG] [SCREEN] Callback Notification: SCREEN_POWER false
          [17.05.2022 20:58.20.174] [LOG] [PIR] Sensor read value: 1
          [17.05.2022 20:58.22.230] [LOG] [PIR] Sensor read value: 0
          [17.05.2022 20:58.22.232] [LOG] [PIR] Callback Notification: PIR_DETECTED
          [17.05.2022 20:58.22.232] [LOG] [PIR] Detected presence (value: 0)
          [17.05.2022 20:58.22.234] [LOG] [SCREEN] Restart.
          [17.05.2022 20:58.22.236] [LOG] [SCREEN] Callback Notification: SCREEN_PRESENCE true
          [17.05.2022 20:58.22.256] [LOG] [SCREEN] Callback Notification: SCREEN_SHOWING undefined
          [17.05.2022 20:58.22.264] [LOG] [SCREEN] Display – Actual: false - Wanted: true
          [17.05.2022 20:58.22.265] [LOG] [SCREEN] Display ON.
          [17.05.2022 20:58.22.267] [LOG] [SCREEN] Callback Notification: SCREEN_POWER true
          [17.05.2022 20:58.23.261] [LOG] [SCREEN] Callback Notification: SCREEN_TIMER 02:00
          [17.05.2022 20:58.23.262] [LOG] [SCREEN] Callback Notification: SCREEN_BAR 0
          [17.05.2022 20:58.24.296] [LOG] [SCREEN] Callback Notification: SCREEN_TIMER 01:59
          [17.05.2022 20:58.24.297] [LOG] [SCREEN] Callback Notification: SCREEN_BAR 1000

          I don’t understand if it’s ok or not

          1 Reply Last reply Reply Quote 0
          • bugsounet
            bugsounet Main Coder last edited by

            Detected presence (value: 0)

            why using reverseValue feature ?
            set it to false 😉

            [17.05.2022 20:58.20.174] [LOG] [PIR] Sensor read value: 1 <— someone detected or moving in front of the sensor. So sensor send the value 1
            [17.05.2022 20:58.22.230] [LOG] [PIR] Sensor read value: 0 <— sensor go to rest after 2sec and wait for detect again

            [17.05.2022 20:58.22.232] [LOG] [PIR] Detected presence (value: 0) <— your problem: it sends detection when sensor go to rest (must detect value:1)

            My place in France Top committers of Github:
            committers.top badge

            1 Reply Last reply Reply Quote 0
            • S
              shagui2211 last edited by shagui2211

              I have tried with what you tell me, but this is still the same. If I change to mode 3, for example, it works perfectly. But in mode 1, it counts down to the end, turns the screen off and on again.

              magicmirror@2.19.0 start
              DISPLAY=“${DISPLAY:=:0}” ./node_modules/.bin/electron js/electron.js “run”

              [18.05.2022 16:40.26.623] [LOG] Starting MagicMirror: v2.19.0
              [18.05.2022 16:40.26.632] [LOG] Loading config …
              [18.05.2022 16:40.26.639] [LOG] Loading module helpers …
              [18.05.2022 16:40.26.641] [LOG] No helper found for module: alert.
              [18.05.2022 16:40.26.643] [LOG] No helper found for module: clock.
              [18.05.2022 16:40.26.812] [LOG] Initializing new module helper …
              [18.05.2022 16:40.26.813] [LOG] Module helper loaded: calendar
              [18.05.2022 16:40.26.816] [LOG] Initializing new module helper …
              [18.05.2022 16:40.26.817] [LOG] Module helper loaded: MMM-Weather
              [18.05.2022 16:40.26.819] [LOG] No helper found for module: JIR-tarifa-luz.
              [18.05.2022 16:40.26.842] [LOG] Initializing new module helper …
              [18.05.2022 16:40.26.843] [LOG] Module helper loaded: MMM-NewsFeed
              [18.05.2022 16:40.26.911] [LOG] Initializing new module helper …
              [18.05.2022 16:40.26.912] [LOG] Module helper loaded: MMM-soccer
              [18.05.2022 16:40.27.300] [LOG] Initializing new module helper …
              [18.05.2022 16:40.27.301] [LOG] Module helper loaded: EXT-UpdateNotification
              [18.05.2022 16:40.27.366] [LOG] Initializing new module helper …
              [18.05.2022 16:40.27.366] [LOG] Module helper loaded: MMM-Tools
              [18.05.2022 16:40.27.367] [LOG] No helper found for module: MMM-Traffic.
              [18.05.2022 16:40.27.389] [LOG] Initializing new module helper …
              [18.05.2022 16:40.27.390] [LOG] Module helper loaded: EXT-Screen
              [18.05.2022 16:40.27.392] [LOG] Initializing new module helper …
              [18.05.2022 16:40.27.392] [LOG] Module helper loaded: EXT-Pir
              [18.05.2022 16:40.28.077] [LOG] Initializing new module helper …
              [18.05.2022 16:40.28.078] [LOG] Module helper loaded: MMM-TelegramBot
              [18.05.2022 16:40.28.079] [LOG] All module helpers loaded.
              [18.05.2022 16:40.28.174] [LOG] Starting server on port 8080 …
              [18.05.2022 16:40.28.185] [LOG] Server started …
              [18.05.2022 16:40.28.186] [LOG] Connecting socket for: calendar
              [18.05.2022 16:40.28.187] [LOG] Starting node helper for: calendar
              [18.05.2022 16:40.28.188] [LOG] Connecting socket for: MMM-Weather
              [18.05.2022 16:40.28.189] [LOG] Connecting socket for: MMM-NewsFeed
              [18.05.2022 16:40.28.191] [LOG] [FEED] MMM-NewsFeed Version: 1.1.9
              [18.05.2022 16:40.28.192] [LOG] Connecting socket for: MMM-soccer
              [18.05.2022 16:40.28.192] [LOG] Starting module: MMM-soccer
              [18.05.2022 16:40.28.194] [LOG] Connecting socket for: EXT-UpdateNotification
              [18.05.2022 16:40.28.196] [LOG] [UN] EXT-UpdateNotification Version: 1.0.1 rev: 220403
              [18.05.2022 16:40.28.217] [LOG] [UN] MagicMirror is running on pid: 7044
              [18.05.2022 16:40.28.218] [LOG] Connecting socket for: MMM-Tools
              [18.05.2022 16:40.28.221] [LOG] [Tools] MMM-Tools Version: 2.1.3
              [18.05.2022 16:40.28.222] [LOG] Connecting socket for: EXT-Screen
              [18.05.2022 16:40.28.223] [LOG] Connecting socket for: EXT-Pir
              [18.05.2022 16:40.28.225] [LOG] Connecting socket for: MMM-TelegramBot
              [18.05.2022 16:40.28.226] [LOG] Sockets connected & modules started …
              [18.05.2022 16:40.28.442] [LOG] Launching application.
              [18.05.2022 16:40.31.077] [LOG] Create new calendarfetcher for url: https://calendar.google.com/cale - Interval: 300000
              [18.05.2022 16:40.31.129] [LOG] Create new calendarfetcher for url: http://p30-caldav.icloud.com/pu - Interval: 300000
              [18.05.2022 16:40.31.146] [LOG] Create new calendarfetcher for url: http://p30-caldav.icl - Interval: 300000
              [18.05.2022 16:40.31.260] [LOG] [SCREEN] EXT-Screen Version: 1.1.1 rev: 220403
              [18.05.2022 16:40.31.262] [LOG] [SCREEN] Mode 1: vcgencmd
              [18.05.2022 16:40.31.316] [LOG] [SCREEN] Initialized
              [18.05.2022 16:40.31.333] [LOG] [TELBOT] MMM-TelegramBot Version: 1.4.3
              [18.05.2022 16:40.31.355] [LOG] [TELBOT] Ready!
              [18.05.2022 16:40.31.357] [LOG] [WEATHER] MMM-WEATHER Version: 1.0.4
              [18.05.2022 16:40.31.372] [LOG] [PIR] Initialize…
              [18.05.2022 16:40.31.397] [LOG] [PIR] Loaded ./lib/pirLib.js
              [18.05.2022 16:40.31.399] [LOG] [PIR] All needed @bugsounet library loaded !
              [18.05.2022 16:40.31.400] [LOG] [PIR] PIR Library v1.1.0 Initialized…
              [18.05.2022 16:40.31.402] [LOG] [PIR] Callback Notification: PIR_INITIALIZED
              [18.05.2022 16:40.31.403] [LOG] [PIR] Start
              [18.05.2022 16:40.31.406] [LOG] [PIR] Callback Notification: PIR_STARTED
              [18.05.2022 16:40.31.407] [LOG] [PIR] Initialize Complete Version: 1.0.1 rev: 220403
              [18.05.2022 16:40.31.619] [LOG] Requests available: 9
              [18.05.2022 16:40.31.692] [LOG] Requests available: 9
              [18.05.2022 16:40.31.825] [LOG] [FEED] MMM-NewsFeed est now initialized!
              [18.05.2022 16:40.32.110] [INFO] Calendar-Fetcher: Broadcasting 71 events.
              [18.05.2022 16:40.32.624] [INFO] Calendar-Fetcher: Broadcasting 11 events.
              [18.05.2022 16:40.32.641] [INFO] Calendar-Fetcher: Broadcasting 0 events.
              [18.05.2022 16:41.31.125] [LOG] [UN] err: Error: ENOENT: no such file or directory, stat ‘/home/pi/MagicMirror/modules/MMM-Tools/.git’
              [18.05.2022 16:42.36.359] [LOG] [PIR] Sensor read value: 1
              [18.05.2022 16:42.36.361] [LOG] [PIR] Callback Notification: PIR_DETECTED
              [18.05.2022 16:42.36.361] [LOG] [PIR] Detected presence (value: 1)
              [18.05.2022 16:42.38.416] [LOG] [PIR] Sensor read value: 0
              [18.05.2022 16:44.41.497] [LOG] [PIR] Sensor read value: 1
              [18.05.2022 16:44.41.499] [LOG] [PIR] Callback Notification: PIR_DETECTED
              [18.05.2022 16:44.41.500] [LOG] [PIR] Detected presence (value: 1)
              [18.05.2022 16:44.43.553] [LOG] [PIR] Sensor read value: 0

              1 Reply Last reply Reply Quote 0
              • bugsounet
                bugsounet Main Coder last edited by

                that’s why there is some fetaure 🙂
                If mode 3 works, it’s perfect !

                My place in France Top committers of Github:
                committers.top badge

                1 Reply Last reply Reply Quote 0
                • S
                  shagui2211 last edited by

                  If that is correct and it is appreciated to have it. The only thing that when I put mode 3, it does not turn off the screen and I would like it to turn it off, more than anything because of the light it gives off even if it is black

                  1 Reply Last reply Reply Quote 0
                  • S
                    shagui2211 last edited by

                    Sorry for my English. I am Spanish.

                    1 Reply Last reply Reply Quote 0
                    • First post
                      Last post
                    Powered by NodeBB | @bugsounet ©2023