Hauptmenü

Calview und andNotify

Begonnen von Steffen, 02 Februar 2015, 08:03:46

Vorheriges Thema - Nächstes Thema

Steffen

Guten Morgen,

Könnte ihr mal bitte schauen warum ich bei diesem Code unten immer über 20 Nachrichten auf einmal bei einem Update von Calview bekomme???


Termin_Aktuell {
  my $H = ReadingsVal("Termin_Aktuell","c-today","99");
  my $T = ReadingsVal("Termin_Aktuell","today_001_summary","99");
  if(($H) eq "1"){
    fhem ("set HomeStatusHandy send $T|Lindenhof 9|Mein Haus|Status|20");
  }
}


Habe schon mit event-on-change und so versucht aber bekomme über trotzdem über 20 Nachrichten über push auf meinem Handy!

Mfg Steffen

chris1284

was ist HomeStatusHandy für ein device (mail, push)?
wenn du 20 nachrichten bekommst könnte ich mir vorstellen das es an der 20 in

    fhem ("set HomeStatusHandy send $T|Lindenhof 9|Mein Haus|Status|20");

liegt. kann man nur prüfen wenn man weiss was das für ein type ist.

mal ab von den 20 nachrichten könnte dein code auch alle today-termine senden, egal welche anzahl.
Termin_Aktuell {
my $H = ReadingsVal("Termin_Aktuell","c-today","0");
my $T;
my $i;
for($i= 1;$i<= $H;$i++){
    $T = ReadingsVal("Termin_Aktuell","today_".sprintf('%03d',$i)."_summary","no Summary");
    fhem ("set HomeStatusHandy send  $T|Lindenhof 9|Mein Haus|Status|20");}
}


Steffen

Zitat von: chris1284 am 02 Februar 2015, 08:15:08
was ist HomeStatusHandy für ein device (mail, push)?
wenn du 20 nachrichten bekommst könnte ich mir vorstellen das es an der 20 in

    fhem ("set HomeStatusHandy send $T|Lindenhof 9|Mein Haus|Status|20");

liegt. kann man nur prüfen wenn man weiss was das für ein type ist.

mal ab von den 20 nachrichten könnte dein code auch alle today-termine senden, egal welche anzahl.
Termin_Aktuell {
my $H = ReadingsVal("Termin_Aktuell","c-today","0");
my $T;
my $i;
for($i= 1;$i<= $H;$i++){
    $T = ReadingsVal("Termin_Aktuell","today_".sprintf('%03d',$i)."_summary","no Summary");
    fhem ("set HomeStatusHandy send  $T|Lindenhof 9|Mein Haus|Status|20");}
}


Also "HomeStatusHandy" ist das Modul "andNotify(Push)" was ich schon eine ganze weile Benutze und die 20 ist der Befehl mit dem ich dann mit der App auf dem Handy die 20 Verwalten kann icon usw.!

Den Code von dir versuche ich mal gerne, obwohl ich ja denke das es eine andere Ursache hat.

Mfg Steffen

Steffen

Hallo!

Ich bekomme es einfach nicht hin, egal was ich verändere bekomme ich immer über 20 Push nachrichten auf dem Handy.

Vielleicht hat ja doch jemand eine Idee wo ich ansetzten könnte?

Mfg Steffen

Puschel74

#4
Dann wär mal interessant was Termin_Aktuell so an Events rauswirft.
EventMonitor wäre dann dein Freund - und würde uns die Hilfe erleichtern.
Mein angepinnter Beitrag wird ja immer noch nicht gelesen (oder verstanden).

Edith:
Tipp (durch die Glaskugel):
Termin_Aktuell wirft 20 Einträge raus und da
if(($H) eq "1"){
$H jedesmal equal 1 ist werden auch genaussoviele Nachrichten geschickt.
Zotac BI323 als Server mit DBLog
CUNO für FHT80B, 3 HM-Lan per vCCU, RasPi mit CUL433 für Somfy-Rollo (F2F), RasPi mit I2C(LM75) (F2F), RasPi für Panstamp+Vegetronix +SONOS(F2F)
Ich beantworte keine Supportanfragen per PM! Bitte im Forum suchen oder einen Beitrag erstellen.

Steffen

Zitat von: Puschel74 am 02 Februar 2015, 22:42:48
Dann wär mal interessant was Termin_Aktuell so an Events rauswirft.
EventMonitor wäre dann dein Freund - und würde uns die Hilfe erleichtern.
Mein angepinnter Beitrag wird ja immer noch nicht gelesen (oder verstanden).

Edith:
Tipp (durch die Glaskugel):
Termin_Aktuell wirft 20 Einträge raus und da
if(($H) eq "1"){
$H jedesmal equal 1 ist werden auch genaussoviele Nachrichten geschickt.

Hallo Puschel74,


Ja das war auch mein Gedanke aber ich hätte keine Idee wie man es anders ändern könnte,
hatte es zwar Gestern mit DOIF versucht und da kam auch nur eine Push Nachricht an aber da wusste ich nicht wie ich
my $T = ReadingsVal("Termin_Aktuell","today_001_summary","99"); noch einbringen hätte können!

Hier aber nochmal der Event Monitor und im Anhang der Log mit Verbose 5:

Events:
2015-02-03 05:57:07 andnotify HomeStatusHandy send Test Termin|Lindenhof 9|Mein Haus|Status|20
2015-02-03 05:57:08 andnotify HomeStatusHandy send Test Termin|Lindenhof 9|Mein Haus|Status|20
2015-02-03 05:57:08 andnotify HomeStatusHandy send Test Termin|Lindenhof 9|Mein Haus|Status|20
2015-02-03 05:57:09 andnotify HomeStatusHandy send Test Termin|Lindenhof 9|Mein Haus|Status|20
2015-02-03 05:57:09 andnotify HomeStatusHandy send Test Termin|Lindenhof 9|Mein Haus|Status|20
2015-02-03 05:57:09 andnotify HomeStatusHandy send Test Termin|Lindenhof 9|Mein Haus|Status|20
2015-02-03 05:57:10 andnotify HomeStatusHandy send Test Termin|Lindenhof 9|Mein Haus|Status|20
2015-02-03 05:57:10 andnotify HomeStatusHandy send Test Termin|Lindenhof 9|Mein Haus|Status|20
2015-02-03 05:57:11 andnotify HomeStatusHandy send Test Termin|Lindenhof 9|Mein Haus|Status|20
2015-02-03 05:57:11 andnotify HomeStatusHandy send Test Termin|Lindenhof 9|Mein Haus|Status|20
2015-02-03 05:57:11 andnotify HomeStatusHandy send Test Termin|Lindenhof 9|Mein Haus|Status|20
2015-02-03 05:57:12 andnotify HomeStatusHandy send Test Termin|Lindenhof 9|Mein Haus|Status|20
2015-02-03 05:57:12 andnotify HomeStatusHandy send Test Termin|Lindenhof 9|Mein Haus|Status|20
2015-02-03 05:57:13 andnotify HomeStatusHandy send Test Termin|Lindenhof 9|Mein Haus|Status|20
2015-02-03 05:57:13 andnotify HomeStatusHandy send Test Termin|Lindenhof 9|Mein Haus|Status|20
2015-02-03 05:57:13 andnotify HomeStatusHandy send Test Termin|Lindenhof 9|Mein Haus|Status|20
2015-02-03 05:57:14 andnotify HomeStatusHandy send Test Termin|Lindenhof 9|Mein Haus|Status|20
2015-02-03 05:57:14 andnotify HomeStatusHandy send Test Termin|Lindenhof 9|Mein Haus|Status|20
2015-02-03 05:57:14 andnotify HomeStatusHandy send Test Termin|Lindenhof 9|Mein Haus|Status|20
2015-02-03 05:57:15 andnotify HomeStatusHandy send Test Termin|Lindenhof 9|Mein Haus|Status|20
2015-02-03 05:57:15 andnotify HomeStatusHandy send Test Termin|Lindenhof 9|Mein Haus|Status|20
2015-02-03 05:57:16 andnotify HomeStatusHandy send Test Termin|Lindenhof 9|Mein Haus|Status|20
2015-02-03 05:57:16 andnotify HomeStatusHandy send Test Termin|Lindenhof 9|Mein Haus|Status|20
2015-02-03 05:57:16 andnotify HomeStatusHandy send Test Termin|Lindenhof 9|Mein Haus|Status|20
2015-02-03 05:57:17 andnotify HomeStatusHandy send Test Termin|Lindenhof 9|Mein Haus|Status|20
2015-02-03 05:57:17 andnotify HomeStatusHandy send Test Termin|Lindenhof 9|Mein Haus|Status|20
2015-02-03 05:57:18 andnotify HomeStatusHandy send Test Termin|Lindenhof 9|Mein Haus|Status|20
2015-02-03 05:57:18 andnotify HomeStatusHandy send Test Termin|Lindenhof 9|Mein Haus|Status|20
2015-02-03 05:57:18 andnotify HomeStatusHandy send Test Termin|Lindenhof 9|Mein Haus|Status|20
2015-02-03 05:57:18 CALVIEW Termin_Aktuell t_001_bdate: 03.02.2015
2015-02-03 05:57:18 CALVIEW Termin_Aktuell t_001_btime: 08:00:00
2015-02-03 05:57:18 CALVIEW Termin_Aktuell t_001_summary: Test Termin
2015-02-03 05:57:18 CALVIEW Termin_Aktuell t_001_edate: 03.02.2015
2015-02-03 05:57:18 CALVIEW Termin_Aktuell t_001_etime: 09:00:00
2015-02-03 05:57:18 CALVIEW Termin_Aktuell t_002_bdate: 05.02.2015
2015-02-03 05:57:18 CALVIEW Termin_Aktuell t_002_btime: 17:00:00
2015-02-03 05:57:18 CALVIEW Termin_Aktuell t_002_summary: Jobcenter
2015-02-03 05:57:18 CALVIEW Termin_Aktuell t_002_edate: 05.02.2015
2015-02-03 05:57:18 CALVIEW Termin_Aktuell t_002_etime: 18:00:00
2015-02-03 05:57:18 CALVIEW Termin_Aktuell t_003_bdate: 27.04.2015
2015-02-03 05:57:18 CALVIEW Termin_Aktuell t_003_btime: 08:00:00
2015-02-03 05:57:18 CALVIEW Termin_Aktuell t_003_summary: Ewi arzt blut ent
2015-02-03 05:57:18 CALVIEW Termin_Aktuell t_003_edate: 27.04.2015
2015-02-03 05:57:18 CALVIEW Termin_Aktuell t_003_etime: 09:00:00
2015-02-03 05:57:18 CALVIEW Termin_Aktuell t_004_bdate: 06.05.2015
2015-02-03 05:57:18 CALVIEW Termin_Aktuell t_004_btime: 08:00:00
2015-02-03 05:57:18 CALVIEW Termin_Aktuell t_004_summary: Arzt ewi
2015-02-03 05:57:18 CALVIEW Termin_Aktuell t_004_edate: 06.05.2015
2015-02-03 05:57:18 CALVIEW Termin_Aktuell t_004_etime: 09:00:00
2015-02-03 05:57:18 CALVIEW Termin_Aktuell today_001_bdate: heute
2015-02-03 05:57:18 CALVIEW Termin_Aktuell today_001_btime: 08:00:00
2015-02-03 05:57:18 CALVIEW Termin_Aktuell today_001_summary: Test Termin
2015-02-03 05:57:18 CALVIEW Termin_Aktuell today_001_edate: 03.02.2015
2015-02-03 05:57:18 CALVIEW Termin_Aktuell today_001_etime: 09:00:00
2015-02-03 05:57:18 CALVIEW Termin_Aktuell t: 4 td: 1 tm: 0
2015-02-03 05:57:18 CALVIEW Termin_Aktuell c-term: 4
2015-02-03 05:57:18 CALVIEW Termin_Aktuell c-tomorrow: 0
2015-02-03 05:57:18 CALVIEW Termin_Aktuell c-today: 1


Mfg Steffen