Hallo Miteinander, ich habe in den letzten Tagen mich mit Calendar und CALVIEW beschäftigt und eine RG zum anzeigen erstellt. Allerdings entsteht nicht die erwartete Darstellung. Ich habe schon gesehen, dass auch ein paar andere User das Problem hatten, ich konnte aber keinen Lösungsansatz für mich entdecken.
Hier meine Defs.:
CALVIEW:
Internals:
DEF Dienste
INTERVAL 43200
KALENDER Dienste
NAME Schichten
NR 724
NTFY_ORDER 50-Schichten
STATE t: 7 td: 1 tm: 1
TYPE CALVIEW
READINGS:
2017-07-13 11:44:08 c-term 7
2017-07-13 11:44:08 c-today 1
2017-07-13 11:44:08 c-tomorrow 1
2017-07-13 11:44:08 state t: 7 td: 1 tm: 1
2017-07-13 11:44:08 t_001_bdate 13.07.2017
2017-07-13 11:44:08 t_001_btime 15:10:00
2017-07-13 11:44:08 t_001_daysleft 0
2017-07-13 11:44:08 t_001_daysleftLong heute
2017-07-13 11:44:08 t_001_description Exportiert am:10.07.2017 18:15\nAus RiM an Drittanwendung exportiert. Keine Garantie auf Aktualität.
2017-07-13 11:44:08 t_001_edate 13.07.2017
2017-07-13 11:44:08 t_001_etime 22:27:00
2017-07-13 11:44:08 t_001_mode next
2017-07-13 11:44:08 t_001_source Dienste
2017-07-13 11:44:08 t_001_summary Verwendung-4369 LL
2017-07-13 11:44:08 t_002_bdate 14.07.2017
2017-07-13 11:44:08 t_002_btime 10:11:00
2017-07-13 11:44:08 t_002_daysleft 1
2017-07-13 11:44:08 t_002_daysleftLong morgen
2017-07-13 11:44:08 t_002_description Exportiert am:10.07.2017 18:20\nAus RiM an Drittanwendung exportiert. Keine Garantie auf Aktualität.
2017-07-13 11:44:08 t_002_edate 14.07.2017
2017-07-13 11:44:08 t_002_etime 19:32:00
2017-07-13 11:44:08 t_002_mode next
2017-07-13 11:44:08 t_002_source Dienste
2017-07-13 11:44:08 t_002_summary Verwendung-4645 LL
2017-07-13 11:44:08 t_003_bdate 15.07.2017
2017-07-13 11:44:08 t_003_btime 07:25:00
2017-07-13 11:44:08 t_003_daysleft 2
2017-07-13 11:44:08 t_003_daysleftLong in 2 Tagen
2017-07-13 11:44:08 t_003_description Exportiert am:11.07.2017 16:42\nAus RiM an Drittanwendung exportiert. Keine Garantie auf Aktualität.
2017-07-13 11:44:08 t_003_edate 15.07.2017
2017-07-13 11:44:08 t_003_etime 17:17:00
2017-07-13 11:44:08 t_003_mode next
2017-07-13 11:44:08 t_003_source Dienste
2017-07-13 11:44:08 t_003_summary Verwendung-4036 LL
2017-07-13 11:44:08 t_004_bdate 16.07.2017
2017-07-13 11:44:08 t_004_btime 07:24:00
2017-07-13 11:44:08 t_004_daysleft 3
2017-07-13 11:44:08 t_004_daysleftLong in 3 Tagen
2017-07-13 11:44:08 t_004_description Exportiert am:11.07.2017 16:43\nAus RiM an Drittanwendung exportiert. Keine Garantie auf Aktualität.
2017-07-13 11:44:08 t_004_edate 16.07.2017
2017-07-13 11:44:08 t_004_etime 16:17:00
2017-07-13 11:44:08 t_004_mode next
2017-07-13 11:44:08 t_004_source Dienste
2017-07-13 11:44:08 t_004_summary Verwendung-4627 LL
2017-07-13 11:44:08 t_005_bdate 18.07.2017
2017-07-13 11:44:08 t_005_btime 22:27:00
2017-07-13 11:44:08 t_005_daysleft 5
2017-07-13 11:44:08 t_005_daysleftLong in 5 Tagen
2017-07-13 11:44:08 t_005_description Exportiert am:11.07.2017 16:59\nAus RiM an Drittanwendung exportiert. Keine Garantie auf Aktualität.
2017-07-13 11:44:08 t_005_edate 19.07.2017
2017-07-13 11:44:08 t_005_etime 06:26:00
2017-07-13 11:44:08 t_005_mode next
2017-07-13 11:44:08 t_005_source Dienste
2017-07-13 11:44:08 t_005_summary Verwendung-4289 LL
2017-07-13 11:44:08 t_006_bdate 19.07.2017
2017-07-13 11:44:08 t_006_btime 18:04:00
2017-07-13 11:44:08 t_006_daysleft 6
2017-07-13 11:44:08 t_006_daysleftLong in 6 Tagen
2017-07-13 11:44:08 t_006_description Exportiert am:11.07.2017 16:59\nAus RiM an Drittanwendung exportiert. Keine Garantie auf Aktualität.
2017-07-13 11:44:08 t_006_edate 20.07.2017
2017-07-13 11:44:08 t_006_etime 05:42:00
2017-07-13 11:44:08 t_006_mode next
2017-07-13 11:44:08 t_006_source Dienste
2017-07-13 11:44:08 t_006_summary Verwendung-5858 LL
2017-07-13 11:44:08 t_007_bdate 20.07.2017
2017-07-13 11:44:08 t_007_btime 18:04:00
2017-07-13 11:44:08 t_007_daysleft 7
2017-07-13 11:44:08 t_007_daysleftLong in 7 Tagen
2017-07-13 11:44:08 t_007_description Exportiert am:11.07.2017 16:59\nAus RiM an Drittanwendung exportiert. Keine Garantie auf Aktualität.
2017-07-13 11:44:08 t_007_edate 21.07.2017
2017-07-13 11:44:08 t_007_etime 05:42:00
2017-07-13 11:44:08 t_007_mode next
2017-07-13 11:44:08 t_007_source Dienste
2017-07-13 11:44:08 t_007_summary Verwendung-5858 LL
2017-07-13 11:44:08 today_001_bdate heute
2017-07-13 11:44:08 today_001_btime 15:10:00
2017-07-13 11:44:08 today_001_daysleft 0
2017-07-13 11:44:08 today_001_daysleftLong heute
2017-07-13 11:44:08 today_001_description Exportiert am:10.07.2017 18:15\nAus RiM an Drittanwendung exportiert. Keine Garantie auf Aktualität.
2017-07-13 11:44:08 today_001_edate 13.07.2017
2017-07-13 11:44:08 today_001_etime 22:27:00
2017-07-13 11:44:08 today_001_mode next
2017-07-13 11:44:08 today_001_source Dienste
2017-07-13 11:44:08 today_001_summary Verwendung-4369 LL
2017-07-13 11:44:08 tomorrow_001_bdate morgen
2017-07-13 11:44:08 tomorrow_001_btime 10:11:00
2017-07-13 11:44:08 tomorrow_001_daysleft 1
2017-07-13 11:44:08 tomorrow_001_daysleftLong morgen
2017-07-13 11:44:08 tomorrow_001_description Exportiert am:10.07.2017 18:20\nAus RiM an Drittanwendung exportiert. Keine Garantie auf Aktualität.
2017-07-13 11:44:08 tomorrow_001_edate 14.07.2017
2017-07-13 11:44:08 tomorrow_001_etime 19:32:00
2017-07-13 11:44:08 tomorrow_001_mode next
2017-07-13 11:44:08 tomorrow_001_source Dienste
2017-07-13 11:44:08 tomorrow_001_summary Verwendung-4645 LL
Attributes:
modes next
room 015Kalender
RG:
Internals:
DEF <Zeile>,<Start>,<Start Zeit>,<Summary>,<Ende>,<End Zeit> Schichten
NAME Uwe_Schichten
NR 725
NTFY_ORDER 50-Uwe_Schichten
STATE Initialized
TYPE readingsGroup
mayBeVisible 1
CONTENT:
Schichten 1
CONTENT2:
DEVICES:
ARRAY(0x35d7d48)
ARRAY(0x3225188)
fhem:
lastDefChange 29
last_update 1499939345.63075
helper:
DEF
mapping %READING
positions:
Schichten.c-term 2:1
Schichten.c-today 2:2
Schichten.c-tomorrow 2:3
Schichten.t_001_bdate 2:4
Schichten.t_001_btime 2:5
Schichten.t_001_daysleft 2:6
Schichten.t_001_daysleftLong 2:7
Schichten.t_001_description 2:8
Schichten.t_001_edate 2:9
Schichten.t_001_etime 2:10
Schichten.t_001_mode 2:11
Schichten.t_001_source 2:12
Schichten.t_001_summary 2:13
Schichten.t_002_bdate 2:14
Schichten.t_002_btime 2:15
Schichten.t_002_daysleft 2:16
Schichten.t_002_daysleftLong 2:17
Schichten.t_002_description 2:18
Schichten.t_002_edate 2:19
Schichten.t_002_etime 2:20
Schichten.t_002_mode 2:21
Schichten.t_002_source 2:22
Schichten.t_002_summary 2:23
Schichten.t_003_bdate 2:24
Schichten.t_003_btime 2:25
Schichten.t_003_daysleft 2:26
Schichten.t_003_daysleftLong 2:27
Schichten.t_003_description 2:28
Schichten.t_003_edate 2:29
Schichten.t_003_etime 2:30
Schichten.t_003_mode 2:31
Schichten.t_003_source 2:32
Schichten.t_003_summary 2:33
Schichten.t_004_bdate 2:34
Schichten.t_004_btime 2:35
Schichten.t_004_daysleft 2:36
Schichten.t_004_daysleftLong 2:37
Schichten.t_004_description 2:38
Schichten.t_004_edate 2:39
Schichten.t_004_etime 2:40
Schichten.t_004_mode 2:41
Schichten.t_004_source 2:42
Schichten.t_004_summary 2:43
Schichten.t_005_bdate 2:44
Schichten.t_005_btime 2:45
Schichten.t_005_daysleft 2:46
Schichten.t_005_daysleftLong 2:47
Schichten.t_005_description 2:48
Schichten.t_005_edate 2:49
Schichten.t_005_etime 2:50
Schichten.t_005_mode 2:51
Schichten.t_005_source 2:52
Schichten.t_005_summary 2:53
Schichten.t_006_bdate 2:54
Schichten.t_006_btime 2:55
Schichten.t_006_daysleft 2:56
Schichten.t_006_daysleftLong 2:57
Schichten.t_006_description 2:58
Schichten.t_006_edate 2:59
Schichten.t_006_etime 2:60
Schichten.t_006_mode 2:61
Schichten.t_006_source 2:62
Schichten.t_006_summary 2:63
Schichten.t_007_bdate 2:64
Schichten.t_007_btime 2:65
Schichten.t_007_daysleft 2:66
Schichten.t_007_daysleftLong 2:67
Schichten.t_007_description 2:68
Schichten.t_007_edate 2:69
Schichten.t_007_etime 2:70
Schichten.t_007_mode 2:71
Schichten.t_007_source 2:72
Schichten.t_007_summary 2:73
Schichten.today_001_bdate 2:74
Schichten.today_001_btime 2:75
Schichten.today_001_daysleft 2:76
Schichten.today_001_daysleftLong 2:77
Schichten.today_001_description 2:78
Schichten.today_001_edate 2:79
Schichten.today_001_etime 2:80
Schichten.today_001_mode 2:81
Schichten.today_001_source 2:82
Schichten.today_001_summary 2:83
Schichten.tomorrow_001_bdate 2:84
Schichten.tomorrow_001_btime 2:85
Schichten.tomorrow_001_daysleft 2:86
Schichten.tomorrow_001_daysleftLong 2:87
Schichten.tomorrow_001_description 2:88
Schichten.tomorrow_001_edate 2:89
Schichten.tomorrow_001_etime 2:90
Schichten.tomorrow_001_mode 2:91
Schichten.tomorrow_001_source 2:92
Schichten.tomorrow_001_summary 2:93
values:
formated:
undef
ARRAY(0x34b8378)
ARRAY(0x31c9e28)
ARRAY(0x3665e28)
ARRAY(0x350f4e0)
ARRAY(0x2f9ccb8)
ARRAY(0x3529428)
ARRAY(0x338b690)
ARRAY(0x354d540)
ARRAY(0x32b7c78)
ARRAY(0x31cc8c0)
ARRAY(0x350f210)
ARRAY(0x3665c48)
ARRAY(0x35298a8)
ARRAY(0x1683638)
ARRAY(0x30bdd78)
ARRAY(0x31ca7a0)
ARRAY(0x1608b00)
ARRAY(0x34e2940)
ARRAY(0x30c25a8)
ARRAY(0x34c0c80)
ARRAY(0x30f1490)
ARRAY(0x1e5a158)
ARRAY(0x335f470)
ARRAY(0x3284e40)
ARRAY(0x3599a88)
ARRAY(0x36660e0)
ARRAY(0x31ccfc8)
ARRAY(0x2f970d0)
ARRAY(0x36291b8)
ARRAY(0x335cc28)
ARRAY(0x31a8200)
ARRAY(0x3554220)
ARRAY(0x3165978)
ARRAY(0x3555590)
ARRAY(0x35d8228)
ARRAY(0x35297b8)
ARRAY(0x322a8e0)
ARRAY(0x34dca48)
ARRAY(0x309bda8)
ARRAY(0x3529ea8)
ARRAY(0x354bed0)
ARRAY(0x34dba20)
ARRAY(0x354ccc8)
ARRAY(0x14b4e28)
ARRAY(0x3539110)
ARRAY(0x1d7ae50)
ARRAY(0x32c2ca8)
ARRAY(0x354c248)
ARRAY(0x330e378)
ARRAY(0x34e4e58)
ARRAY(0x1896c88)
ARRAY(0x34e0650)
ARRAY(0x2fdc068)
ARRAY(0x31bbfe8)
ARRAY(0x15f4f58)
ARRAY(0x358f228)
ARRAY(0x31cf8c0)
ARRAY(0x31cc968)
ARRAY(0x3298bc0)
ARRAY(0x34e40e8)
ARRAY(0x31ade60)
ARRAY(0x358f7d0)
ARRAY(0x3063438)
ARRAY(0x3529260)
ARRAY(0x35d73e8)
ARRAY(0x354d5b8)
ARRAY(0x31ac158)
ARRAY(0x342ff20)
ARRAY(0x3529398)
ARRAY(0x15f1e78)
ARRAY(0x356fdd8)
ARRAY(0x3524ec0)
ARRAY(0x350e5f0)
ARRAY(0x1543028)
ARRAY(0x3330c68)
ARRAY(0x35297e8)
ARRAY(0x31cd1c0)
ARRAY(0x34b90c8)
ARRAY(0x34e6be0)
ARRAY(0x34e5098)
ARRAY(0x33989f8)
ARRAY(0x34b8348)
ARRAY(0x33de838)
ARRAY(0x36292a8)
ARRAY(0x31c9f30)
ARRAY(0x1abaaa8)
ARRAY(0x2d23a80)
ARRAY(0x354f910)
ARRAY(0x335b900)
ARRAY(0x34e4e28)
ARRAY(0x335dd88)
ARRAY(0x3395770)
ARRAY(0x354d588)
orig:
undef
ARRAY(0x3271078)
ARRAY(0x30d21c0)
ARRAY(0x14c5ff8)
ARRAY(0x31cd490)
ARRAY(0x2e3a4e8)
ARRAY(0x338b7c8)
ARRAY(0x3503f48)
ARRAY(0x34da548)
ARRAY(0x35c13b8)
ARRAY(0x362cb90)
ARRAY(0x31d1820)
ARRAY(0x3284588)
ARRAY(0x365b060)
ARRAY(0x34bf480)
ARRAY(0x31b1e70)
ARRAY(0x3203c80)
ARRAY(0x338b948)
ARRAY(0x31a4250)
ARRAY(0x33ace40)
ARRAY(0x330eaa0)
ARRAY(0x18ba3e8)
ARRAY(0x3529740)
ARRAY(0x2c0d6c0)
ARRAY(0x1d3fae8)
ARRAY(0x321e808)
ARRAY(0x35d7808)
ARRAY(0x3558b50)
ARRAY(0x15f1c80)
ARRAY(0x3506850)
ARRAY(0x350ec70)
ARRAY(0x14c8e38)
ARRAY(0x3558640)
ARRAY(0x3599ef0)
ARRAY(0x1542710)
ARRAY(0x33d48f8)
ARRAY(0x350e428)
ARRAY(0x3305a60)
ARRAY(0x3529b78)
ARRAY(0x338afb8)
ARRAY(0x324d4a0)
ARRAY(0x31cca28)
ARRAY(0x3341c60)
ARRAY(0xf68038)
ARRAY(0x358fa40)
ARRAY(0x160a988)
ARRAY(0x31cabb0)
ARRAY(0x3394e58)
ARRAY(0x3342758)
ARRAY(0x357f4f0)
ARRAY(0x309bc28)
ARRAY(0x3529140)
ARRAY(0x3524668)
ARRAY(0x35c0d28)
ARRAY(0x358f030)
ARRAY(0x357f3d0)
ARRAY(0x30da770)
ARRAY(0x34b8930)
ARRAY(0x32369c0)
ARRAY(0x3305fa0)
ARRAY(0x35a1a30)
ARRAY(0x31d0cf8)
ARRAY(0x31d1310)
ARRAY(0x3268b88)
ARRAY(0x30e25f0)
ARRAY(0x335c308)
ARRAY(0x338b108)
ARRAY(0x30634b0)
ARRAY(0x30a7868)
ARRAY(0x3629af0)
ARRAY(0x354d300)
ARRAY(0x3395a28)
ARRAY(0x1e16918)
ARRAY(0x32ad908)
ARRAY(0x365bcd8)
ARRAY(0x35c1388)
ARRAY(0x3556360)
ARRAY(0x1542a10)
ARRAY(0x354dbd0)
ARRAY(0x30d5220)
ARRAY(0x362cfe0)
ARRAY(0x3394e88)
ARRAY(0x1e74e58)
ARRAY(0x365b708)
ARRAY(0x35c0c50)
ARRAY(0x32225b0)
ARRAY(0x30f1a08)
ARRAY(0x358ed00)
ARRAY(0x3226fd8)
ARRAY(0x338b540)
ARRAY(0x34bec88)
ARRAY(0x36664d0)
ARRAY(0x30d4f98)
ARRAY(0x3524878)
prefixsuffix:
undef
ARRAY(0x34aec18)
ARRAY(0x31d0c08)
ARRAY(0x3236d80)
ARRAY(0x160acb8)
ARRAY(0x1612b70)
ARRAY(0x14caa80)
ARRAY(0x3236eb8)
ARRAY(0x354d348)
ARRAY(0x2bf7928)
ARRAY(0x3191b58)
ARRAY(0x31c1230)
ARRAY(0xc281d8)
ARRAY(0x1896898)
ARRAY(0x35d7658)
ARRAY(0x3628b40)
ARRAY(0x160ecc8)
ARRAY(0x1d7b258)
ARRAY(0x34dbcf0)
ARRAY(0x31a2c50)
ARRAY(0x31c1cb0)
ARRAY(0x3666488)
ARRAY(0x3599590)
ARRAY(0x34f4708)
ARRAY(0x31d0b78)
ARRAY(0x3629f40)
ARRAY(0x35c0a70)
ARRAY(0x34e2d30)
ARRAY(0x354c4a0)
ARRAY(0x31d19a0)
ARRAY(0x3398800)
ARRAY(0x3629e20)
ARRAY(0x350d598)
ARRAY(0x31bb970)
ARRAY(0x3577510)
ARRAY(0x1caecb8)
ARRAY(0x30e6080)
ARRAY(0x36290e0)
ARRAY(0x35bede0)
ARRAY(0x35775a0)
ARRAY(0x321bcb8)
ARRAY(0x329e348)
ARRAY(0x30e2da0)
ARRAY(0x30d9a98)
ARRAY(0x35a1998)
ARRAY(0x338ba50)
ARRAY(0x34e1dc8)
ARRAY(0x35c0e60)
ARRAY(0x338b828)
ARRAY(0x33df4c8)
ARRAY(0x14f81b0)
ARRAY(0x362ca10)
ARRAY(0x34dfe68)
ARRAY(0x31a8ab8)
ARRAY(0x35d7c10)
ARRAY(0x15f3708)
ARRAY(0x3342230)
ARRAY(0x30f1f90)
ARRAY(0x31d0e18)
ARRAY(0x322d7f8)
ARRAY(0x338bab0)
ARRAY(0x3628df8)
ARRAY(0x362c908)
ARRAY(0x31d16d0)
ARRAY(0x31b7630)
ARRAY(0x31aa788)
ARRAY(0x350e440)
ARRAY(0x338b9f0)
ARRAY(0x14f6f30)
ARRAY(0x30d2208)
ARRAY(0x3629740)
ARRAY(0x32395a0)
ARRAY(0x30f0bd8)
ARRAY(0x2db8648)
ARRAY(0x33f4df0)
ARRAY(0x35a26a8)
ARRAY(0x31e4f08)
ARRAY(0x32a4410)
ARRAY(0x3503d08)
ARRAY(0x1e3d170)
ARRAY(0x30da158)
ARRAY(0x1ed5540)
ARRAY(0x358fad0)
ARRAY(0x1aed138)
ARRAY(0x338bd50)
ARRAY(0x318bb50)
ARRAY(0x362ca58)
ARRAY(0x362c350)
ARRAY(0x35d7a78)
ARRAY(0x324d620)
ARRAY(0x31d0c38)
ARRAY(0x1e9fae8)
ARRAY(0x350f120)
ARRAY(0x31b7ea0)
Attributes:
mapping %READING
noheading 0
nostate 1
notime 1
room 015Kalender
Wo kommen die Arrays her, sind das Fehler?
Notify:
Internals:
DEF Schichten:t:.* {my $i;
my $ix = 1;
my $modtext = "<Datum>,<Zeit>,<Termin>,<Ort>,<Quelle> ";
for($i= 1;$i<= ReadingsVal("Schichten","c-today", 0);$i++){
$modtext .= "Schichten:<Heute>,today_".sprintf('%03d',$i)."_btime,today_".sprintf('%03d',$i)."_summary,today_".sprintf('%03d',$i)."_location,today_".sprintf('%03d',$i)."_source ";$ix++}
for($i= 1;$i<= ReadingsVal("Schichten","c-tomorrow", 0);$i++){
$modtext .= "Schichten:<Morgen>,tomorrow_".sprintf('%03d',$i)."_btime,tomorrow_".sprintf('%03d',$i)."_summary,tomorrow_".sprintf('%03d',$i)."_location,tomorrow_".sprintf('%03d',$i)."_source ";$ix++}
for($i= $ix;$i<= ReadingsVal("Schichten","c-term", 0);$i++){
$modtext .= "Schichten:t_".sprintf('%03d',$i)."_bdate,t_".sprintf('%03d',$i)."_btime,t_".sprintf('%03d',$i)."_summary,t_".sprintf('%03d',$i)."_location,t_".sprintf('%03d',$i)."_source ";}
fhem("modify RG_Schichten $modtext");
fhem("SAVE");}
NAME Schichten_Ausgabe
NOTIFYDEV Schichten
NR 726
NTFY_ORDER 50-Schichten_Ausgabe
REGEXP Schichten:t:.*
STATE active
TYPE notify
READINGS:
2017-07-13 11:48:55 state active
Attributes:
room 015Kalender
Ich möchte die Begin- und Endzeiten/-daten und summary angezeigt bekommen
Vielleicht seht ihr den Fehler? Ich leider nicht :(
Danke im Voraus.
Uwe
In einer Mußestunde habe ich mir die RG und das notify noch mal vorgenommen und die Ursache der fehlerhaften Darstellung gefunden und beseitigt.
Jetzt sieht die Tabelle schon so aus wie sie soll (s. Anhang).
Allerdings möchte ich bei den Zeitangaben nur die Stunden und Minuten haben und bei der Schicht nur die Nummer.
Wie lässt sich das formatieren?
Das notify sieht jetzt so aus:
Schichten:t:.* {my $i;
my $ix = 1;
my $modtext = "<>,<Datum>,<Beginn>,<Ende>,<Schicht> ";
for($i= 1;$i<= ReadingsVal("Schichten","c-today", 0);$i++){
$modtext .= "Schichten:<Heute>,today_".sprintf('%03d',$i)."_btime,today_".sprintf('%03d',$i)."_etime,today_".sprintf('%03d',$i)."_summary ";$ix++}
for($i= 1;$i<= ReadingsVal("Schichten","c-tomorrow", 0);$i++){
$modtext .= "Schichten:<Morgen>,tomorrow_".sprintf('%03d',$i)."_btime,tomorrow_".sprintf('%03d',$i)."_etime,tomorrow_".sprintf('%03d',$i)."_summary ";$ix++}
for($i= $ix;$i<= ReadingsVal("Schichten","c-term", 0);$i++){
$modtext .= "Schichten:t_".sprintf('%03d',$i)."_bdate,t_".sprintf('%03d',$i)."_btime,t_".sprintf('%03d',$i)."_etime,t_".sprintf('%03d',$i)."_summary ";$ix++}
fhem("modify Uwe_Schichten $modtext");
fhem("SAVE");}
Oder ist das in den Attributen der RG anzupassen?
Internals:
CFGFN ./FHEM/60_Kalender.cfg
DEF <>,<Datum>,<Beginn>,<Ende>,<Schicht> Schichten:<Morgen>,tomorrow_001_btime,tomorrow_001_etime,tomorrow_001_summary Schichten:t_002_bdate,t_002_btime,t_002_etime,t_002_summary Schichten:t_003_bdate,t_003_btime,t_003_etime,t_003_summary Schichten:t_004_bdate,t_004_btime,t_004_etime,t_004_summary Schichten:t_005_bdate,t_005_btime,t_005_etime,t_005_summary Schichten:t_006_bdate,t_006_btime,t_006_etime,t_006_summary Schichten:t_007_bdate,t_007_btime,t_007_etime,t_007_summary Schichten:t_008_bdate,t_008_btime,t_008_etime,t_008_summary Schichten:t_009_bdate,t_009_btime,t_009_etime,t_009_summary Schichten:t_010_bdate,t_010_btime,t_010_etime,t_010_summary Schichten:t_011_bdate,t_011_btime,t_011_etime,t_011_summary Schichten:t_012_bdate,t_012_btime,t_012_etime,t_012_summary
NAME Uwe_Schichten
NR 457
NTFY_ORDER 50-Uwe_Schichten
STATE Initialized
TYPE readingsGroup
mayBeVisible 1
CONTENT:
Schichten 1
CONTENT2:
DEVICES:
ARRAY(0x4f53470)
ARRAY(0x4d949a0)
ARRAY(0x4cdbc40)
ARRAY(0x4c12f20)
ARRAY(0x4f1f1f8)
ARRAY(0x4d01898)
ARRAY(0x4ee7638)
ARRAY(0x3a92340)
ARRAY(0x4bfbf68)
ARRAY(0x4f577c8)
ARRAY(0x4d91020)
ARRAY(0x4d44860)
ARRAY(0x4d09508)
fhem:
lastDefChange 56
last_update 1500913607.13064
helper:
DEF
mapping %READING
cellStyle:
r:1 style="font-weight:bold;;font-size:16px"
positions:
Schichten.t_002_bdate 3:1
Schichten.t_002_btime 3:2
Schichten.t_002_etime 3:3
Schichten.t_002_summary 3:4
Schichten.t_003_bdate 4:1
Schichten.t_003_btime 4:2
Schichten.t_003_etime 4:3
Schichten.t_003_summary 4:4
Schichten.t_004_bdate 5:1
Schichten.t_004_btime 5:2
Schichten.t_004_etime 5:3
Schichten.t_004_summary 5:4
Schichten.t_005_bdate 6:1
Schichten.t_005_btime 6:2
Schichten.t_005_etime 6:3
Schichten.t_005_summary 6:4
Schichten.t_006_bdate 7:1
Schichten.t_006_btime 7:2
Schichten.t_006_etime 7:3
Schichten.t_006_summary 7:4
Schichten.t_007_bdate 8:1
Schichten.t_007_btime 8:2
Schichten.t_007_etime 8:3
Schichten.t_007_summary 8:4
Schichten.t_008_bdate 9:1
Schichten.t_008_btime 9:2
Schichten.t_008_etime 9:3
Schichten.t_008_summary 9:4
Schichten.t_009_bdate 10:1
Schichten.t_009_btime 10:2
Schichten.t_009_etime 10:3
Schichten.t_009_summary 10:4
Schichten.t_010_bdate 11:1
Schichten.t_010_btime 11:2
Schichten.t_010_etime 11:3
Schichten.t_010_summary 11:4
Schichten.t_011_bdate 12:1
Schichten.t_011_btime 12:2
Schichten.t_011_etime 12:3
Schichten.t_011_summary 12:4
Schichten.t_012_bdate 13:1
Schichten.t_012_btime 13:2
Schichten.t_012_etime 13:3
Schichten.t_012_summary 13:4
Schichten.tomorrow_001_btime 2:2
Schichten.tomorrow_001_etime 2:3
Schichten.tomorrow_001_summary 2:4
values:
formated:
undef
ARRAY(0x4de46a8)
ARRAY(0x4bfbb90)
ARRAY(0x4ac14a8)
ARRAY(0x4823200)
orig:
undef
ARRAY(0x3a98860)
ARRAY(0x4c5daf8)
ARRAY(0x49395d8)
ARRAY(0x3a98920)
prefixsuffix:
undef
ARRAY(0x4e19e58)
ARRAY(0x4f1f450)
ARRAY(0x4a9b7f8)
ARRAY(0x4e5c730)
Attributes:
cellStyle {"r:1"=>'style="font-weight:bold;;font-size:16px"'}
mapping %READING
noheading 0
nostate 1
notime 1
room 015Kalender
Ich habe leider keine Idee, wie das bewerkstelligt werden kann... :-[
Evtl. jemand von euch?
Danke, Uwe