Umlaute beim Modul inotify

Begonnen von Gisbert, 28 Juli 2025, 09:08:12

Vorheriges Thema - Nächstes Thema

Gisbert

Hallo marvin78,

ich nutze das Modul inotify und stelle seit geraumer Zeit fest, dass Umlaute im stateFormat nicht richtig angezeigt werden.
Es ist nicht gesagt, dass dein Modul dafür verantwortlich ist. Könntest du prüfen, ob es ggf. an deinem Modul liegt?

Viele Grüße
Gisbert
Aktuelles FHEM | PROXMOX | Fujitsu Futro S740 | Debian 12 | UniFi | Homematic, VCCU, HMUART | ESP8266 | ATtiny85 | Wasser-, Stromzähler | tuya local | Wlan-Kamera | SIGNALduino, Flamingo Rauchmelder FA21/22RF | RHASSPY | DEYE | JK-BMS | ESPHome

marvin78

Bei mir ist das tatsächlich kein Problem. Kannst du mal bitte ein list vom Device posten?

Gisbert

Hallo marvin78,

hier ist das list:

define storedCam inotify /home/ftpuser .*
attr storedCam group IPCAM
attr storedCam icon it_network
attr storedCam mask IN_CREATE
attr storedCam room Network
attr storedCam stateFormat last event: cam_path<br/>activity
attr storedCam subfolders 1
attr storedCam userReadings activity {substr(ReadingsTimestamp($name,'lastEventMask',''),0,19)}, \
cam_path {my $campath = (split /\//,ReadingsVal($name,'lastEventFile',''))[3];; \
if ($campath eq "FoscamCamera_E8ABFAA73D1A") {return "Haustür";;} \
elsif ($campath eq "FoscamCamera_E8ABFAA73B47") {return "Joker";;} \
elsif ($campath eq "FI9805W_00626E5818B7") {return "Westseite";;}}
#   CFGFN      ./FHEM/Wlan-Kamera.cfg
#   DEF        /home/ftpuser .*
#   FD         96
#   FILES      .*
#   FUUID      66a0de22-f33f-e986-c2bf-b9741fc7ab946efc
#   MID        inotify_homeftpuser
#   NAME       storedCam
#   NOTIFYDEV  global
#   NR         90
#   NTFY_ORDER 81-storedCam
#   PATH       /home/ftpuser
#   STATE      last event: Haustür<br/>2025-07-28 17:42:11
#   TYPE       inotify
#   VERSION    0.6.4
#   eventCount 156
#   CHANGED:
#     IN_CREATE: /home/ftpuser/FoscamCamera_E8ABFAA73D1A/snap/HMDAlarm_20250728-174245.jpg
#   CHANGETIME:
#     1753717331.49056
#   READINGS:
#     2025-07-28 17:42:11   activity        2025-07-28 17:42:11
#     2025-07-28 17:42:11   cam_path        Haustür
#     2025-07-28 17:42:11   lastEventFile   /home/ftpuser/FoscamCamera_E8ABFAA73D1A/snap/HMDAlarm_20250728-174245.jpg
#     2025-07-28 17:42:11   lastEventMask   IN_CREATE
#     2025-07-28 00:30:05   state           active
#   helper:
#     bm:
#       inotify_Attr:
#         cnt        2
#         dmx        -1000
#         dtot       0
#         dtotcnt    0
#         mTS        28.07. 09:08:56
#         max        4.98294830322266e-05
#         tot        8.89301300048828e-05
#         mAr:
#           set
#           storedCam
#           room
#           Network,Unsorted
#       inotify_Get:
#         cnt        6
#         dmx        -1000
#         dtot       0
#         dtotcnt    0
#         mTS        28.07. 09:08:56
#         max        6.103515625e-05
#         tot        0.000238180160522461
#         mAr:
#           HASH(0x55bb29a24e70)
#           storedCam
#           ?
#       inotify_Notify:
#         cnt        118
#         dmx        -1000
#         dtot       0
#         dtotcnt    0
#         mTS        27.07. 14:54:48
#         max        0.000169038772583008
#         tot        0.00784921646118164
#         mAr:
#           HASH(0x55bb29a24e70)
#           HASH(0x55bb26358740)
#       inotify_Read:
#         cnt        18972
#         dmx        -1000
#         dtot       0
#         dtotcnt    0
#         mTS        27.07. 15:40:46
#         max        0.126538038253784
#         tot        29.2498984336853
#         mAr:
#           HASH(0x55bb29a24e70)
#       inotify_Set:
#         cnt        23
#         dmx        -1000
#         dtot       0
#         dtotcnt    0
#         mTS        28.07. 08:59:48
#         max        0.000112056732177734
#         tot        0.00109314918518066
#         mAr:
#           HASH(0x55bb29a24e70)
#           storedCam
#           ?
#     dirs:
#       /home/ftpuser
#       /home/ftpuser/FI9805W_00626E5818B7
#       /home/ftpuser/FI9805W_00626E5818B7/snapshot
#       /home/ftpuser/FI9805W_00626E5818B7/snap
#       /home/ftpuser/FI9805W_00626E5818B7/record
#       /home/ftpuser/FoscamCamera_E8ABFAA73D1A
#       /home/ftpuser/FoscamCamera_E8ABFAA73D1A/snapshot
#       /home/ftpuser/FoscamCamera_E8ABFAA73D1A/snap
#       /home/ftpuser/FoscamCamera_E8ABFAA73D1A/record
#       /home/ftpuser/FoscamCamera_E8ABFAA73B47
#       /home/ftpuser/FoscamCamera_E8ABFAA73B47/snapshot
#       /home/ftpuser/FoscamCamera_E8ABFAA73B47/snap
#       /home/ftpuser/FoscamCamera_E8ABFAA73B47/record
#     events:
#       0:
#         file       /home/ftpuser/FoscamCamera_E8ABFAA73D1A/snap/HMDAlarm_20250728-174245.jpg
#         mask       IN_CREATE
#         time       2025-07-28 17:42:11
#       1:
#         file       /home/ftpuser/FoscamCamera_E8ABFAA73D1A/snap/HMDAlarm_20250728-174244.jpg
#         mask       IN_CREATE
#         time       2025-07-28 17:42:10
#       2:
#         file       /home/ftpuser/FoscamCamera_E8ABFAA73D1A/snap/HMDAlarm_20250728-174243.jpg
#         mask       IN_CREATE
#         time       2025-07-28 17:42:10
#       3:
#         file       /home/ftpuser/FoscamCamera_E8ABFAA73D1A/snap/HMDAlarm_20250728-174242.jpg
#         mask       IN_CREATE
#         time       2025-07-28 17:42:08
#       4:
#         file       /home/ftpuser/FoscamCamera_E8ABFAA73D1A/snap/HMDAlarm_20250728-174241.jpg
#         mask       IN_CREATE
#         time       2025-07-28 17:42:07
#       5:
#         file       /home/ftpuser/FoscamCamera_E8ABFAA73D1A/snap/HMDAlarm_20250728-174240.jpg
#         mask       IN_CREATE
#         time       2025-07-28 17:42:06
#       6:
#         file       /home/ftpuser/FoscamCamera_E8ABFAA73D1A/snap/HMDAlarm_20250728-174239.jpg
#         mask       IN_CREATE
#         time       2025-07-28 17:42:05
#       7:
#         file       /home/ftpuser/FoscamCamera_E8ABFAA73D1A/snap/HMDAlarm_20250728-174238.jpg
#         mask       IN_CREATE
#         time       2025-07-28 17:42:04
#       8:
#         file       /home/ftpuser/FoscamCamera_E8ABFAA73D1A/snap/HMDAlarm_20250728-174237.jpg
#         mask       IN_CREATE
#         time       2025-07-28 17:42:03
#       9:
#         file       /home/ftpuser/FoscamCamera_E8ABFAA73D1A/snap/HMDAlarm_20250728-174236.jpg
#         mask       IN_CREATE
#         time       2025-07-28 17:42:02
#     masks:
#       IN_CREATE
#
setstate storedCam last event: Haustür<br/>2025-07-28 17:42:11
setstate storedCam 2025-07-28 17:42:11 activity 2025-07-28 17:42:11
setstate storedCam 2025-07-28 17:42:11 cam_path Haustür
setstate storedCam 2025-07-28 17:42:11 lastEventFile /home/ftpuser/FoscamCamera_E8ABFAA73D1A/snap/HMDAlarm_20250728-174245.jpg
setstate storedCam 2025-07-28 17:42:11 lastEventMask IN_CREATE
setstate storedCam 2025-07-28 00:30:05 state active


Viele Grüße Gisbert
Aktuelles FHEM | PROXMOX | Fujitsu Futro S740 | Debian 12 | UniFi | Homematic, VCCU, HMUART | ESP8266 | ATtiny85 | Wasser-, Stromzähler | tuya local | Wlan-Kamera | SIGNALduino, Flamingo Rauchmelder FA21/22RF | RHASSPY | DEYE | JK-BMS | ESPHome

marvin78

Ich glaube nicht, dass es am Modul liegt. Ich kann es nicht reproduzieren und in deinen kopierten Daten sind die Umlaute auch kaputt.

betateilchen

@Gisbert:

Hattest Du nicht neulich schonmal so ein merkwürdiges Umlaute-Problem?

https://forum.fhem.de/index.php?topic=142010.0

Interessanterweise bist Du mit dem Problem offenbar immer alleine?
-----------------------
Formuliere die Aufgabe möglichst einfach und
setze die Lösung richtig um - dann wird es auch funktionieren.
-----------------------
Lesen gefährdet die Unwissenheit!

Gisbert

Hallo betateilchen,

ja, das ist richtig. Damals war die Ursache recht schnell zu finden. Es lag an dem SolarForecast-Modul von DS_Starter, der unabhängig von meiner Beobachtung das Problem schon behoben hatte. Ich musste lediglich die neueste Version herunterladen und aktiv stellen. Neben Umlauten waren auch Sonderzeichen verschiedenster Art betroffen.

Den Wegfall von Umlauten könnte ich noch akzeptieren, aber gerade die Verwendung von Sonderzeichen (z.B. Pfeile, ...) macht die Darstellung kompakt und ansehnlich.

Es scheint so zu sein, dass ich vorwiegend alleine dieses Problem habe. Bei Devices, die das Modul fhempy benutzen, kommt es nach Schilderung von anderen auch zu einem Umlaute-Problem.

Viele Grüße Gisbert
Aktuelles FHEM | PROXMOX | Fujitsu Futro S740 | Debian 12 | UniFi | Homematic, VCCU, HMUART | ESP8266 | ATtiny85 | Wasser-, Stromzähler | tuya local | Wlan-Kamera | SIGNALduino, Flamingo Rauchmelder FA21/22RF | RHASSPY | DEYE | JK-BMS | ESPHome

TomLee

Kann der verwendete Style ursächlich sein?