bugsounet / MMM-Pir

Manage your screen with a pir sensor
MIT License
35 stars 10 forks source link

v2.0.0 #97

Closed bugsounet closed 3 weeks ago

bugsounet commented 3 months ago

v2.0.0

Libraries:

Delete:

Add:

Updated:

MarcLandis commented 1 month 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!
MarcLandis commented 1 month ago

it wasn't due to the kernel changes - it was a little mistake in pirLib -> #104

bugsounet commented 1 month ago

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)

bugsounet commented 1 month ago

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

In all case mode, when screen is OFF time: disalow to use pir sensor / Touch and Screen is always OFF

sdetweil commented 1 month ago

i added cron type support for compliments this release

bugsounet commented 1 month ago

TESTS 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)

TESTS 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)
MarcLandis commented 1 month ago

I testet the dev version on my PI5 on 64bit OS with both PIR modes and had no issues.

bugsounet commented 1 month ago

@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

bugsounet commented 1 month ago

Just install and now it's under testing in my prod MagicMirror

bugsounet commented 3 weeks ago

for me all is good.

I just added

bugsounet commented 3 weeks ago

Is it time to release it?