FHEM Forum

FHEM => Automatisierung => Thema gestartet von: yersinia am 24 Mai 2020, 14:24:42

Titel: [98_JsonMod.pm][Bug] interval ignoriert wert für Wochentag
Beitrag von: yersinia am 24 Mai 2020, 14:24:42
Hallo herrmannj,

mir ist aufgefallen, dass das Attribut interval zwar laut doku eine cron-ähnliche Definition erlaubt
Zitatinterval
set <name> interval <*/15 * * * *>
utilize a cron expression to define the interval at which the source file will be loaded. Default is one hour.
diese aber zumindest für den Wochentag zu ignorieren scheint. Ich habe folgendes definiert:
attr buggydevice interval 10 14 * * 3
also jeden Mittwoch um 14:10 - die 3 für Mittwoch wird ignoriert und JsonMod aktualisiert jeden Tag um 14:10; wie zB gerade eben:
READINGS:
     2020-05-24 14:10:00   .computedReadings tag_name


crontab manpage (http://man7.org/linux/man-pages/man5/crontab.5.html) besagt:
ZitatThe time and date fields are:
              field          allowed values
              -----          --------------
              minute         0-59
              hour           0-23
              day of month   1-31
              month          1-12 (or names, see below)
              day of week    0-7 (0 or 7 is Sunday, or use names)

Kannst du dir das anschauen und bitte fixen? Danke. :)
Titel: Antw:[98_JsonMod.pm][Bug] interval ignoriert wert für Wochentag
Beitrag von: herrmannj am 24 Mai 2020, 14:39:54
... noch nicht implementiert ;) und bereits auf der Liste