Closed bugsounet closed 3 weeks ago
I am getting an error when trying to use node-libgpiod on my RPi3 with bookworm. This comes from recent kernel changes. I will try to get a patch ready.
1|MagicMirror | [2024-09-29 18:09:38.125] [LOG] [MMM-Pir] Config: {
1|MagicMirror | debug: true,
1|MagicMirror | Display: {
1|MagicMirror | animate: true,
1|MagicMirror | colorFrom: '#FF0000',
1|MagicMirror | colorTo: '#00FF00',
1|MagicMirror | timeout: 60000,
1|MagicMirror | mode: 5,
1|MagicMirror | counter: true,
1|MagicMirror | style: 'Text',
1|MagicMirror | lastPresence: false,
1|MagicMirror | lastPresenceTimeFormat: 'LL H:mm',
1|MagicMirror | wrandrForceRotation: '270',
1|MagicMirror | wrandrForceMode: null
1|MagicMirror | },
1|MagicMirror | Pir: { mode: 0, gpio: 22 },
1|MagicMirror | Touch: { mode: 0 }
1|MagicMirror | }
1|MagicMirror | [2024-09-29 18:09:38.126] [LOG] [MMM-Pir] [LIB] [PIR] Mode 0 Selected (gpiod library)
1|MagicMirror | [2024-09-29 18:09:38.134] [ERROR] [MMM-Pir] [LIB] [PIR] [GPIOD] No Chip Found!
1|MagicMirror | [2024-09-29 18:09:38.134] [LOG] [MMM-Pir] [CALLBACK] Pir: PIR_ERROR No Chip Found!
it wasn't due to the kernel changes - it was a little mistake in pirLib -> #104
it wasn't due to the kernel changes - it was a little mistake in pirLib -> #104
I will inspect it when all the features are coded (with pi3b+/pi4/pi5)
I don't really remember what users wants with cron: {}
using
for remember:
ON: []
: array of set time event for screen on
OFF: []
: array of set time event for screen off
I will add in root of cron: {}
mode 0 or 1
mode 0
:
mode 1
:
In all case mode, when screen is OFF time: disalow to use pir sensor / Touch and Screen is always OFF
i added cron type support for compliments this release
node-libgpiod
(32 bits OS):Raspberry Pi OS with desktop
Release date: July 4th 2024
System: 32-bit
Kernel version: 6.6
Debian version: 12 (bookworm)
node-libgpiod
(64 bits OS):Raspberry Pi OS with desktop
Release date: July 4th 2024
System: 64-bit
Kernel version: 6.6
Debian version: 12 (bookworm)
I testet the dev version on my PI5 on 64bit OS with both PIR modes and had no issues.
@MarcLandis Thx for this test ;)
I have just to do some out notification when pir sensor started And i will test it with my prod mirror. I think, i will release it soon
Just install and now it's under testing in my prod MagicMirror
for me all is good.
I just added
Is it time to release it?
v2.0.0
Libraries:
Delete:
Add:
Updated: