activate_scenario.sh
Thu Sep 12 11:49:33 CEST 2024
scenario: vorraumOn
phoneName: 0

'day' <--> DayTime=checked , NightTime=checked
-> execution of scenario
-> sending email(s) to 'thomas@miglinci.name'

scenario: 'Vorzimmer EIN' - 'vorraumOn' - 'vorraumon'

Licht Vorzimmer (/srv/www/viehai/shelly/log_scenarios/2024/09/12/_0.log)

vorher: 11:49:34.060

http://192.168.12.103/relay/0?turn=on
  "ison": true,
  "has_timer": false,
  "timer_started": 0,
  "timer_duration": 0,
  "timer_remaining": 0,
  "overpower": false,
  "source": "http"

nachher: 11:49:34.201
Dauer: 142 msec phName: 'phoneName:'0''


scenario: 'Vorzimmer EIN' - 'vorraumOn' - 'vorraumon'

urls : 1
vorher : 11:49:34.041
nachher: 11:49:34.208
Dauer : 166 msec
outfile: '/srv/www/viehai/shelly/log_scenarios/2024/09/12//scene_vorraumOn_20240912_114933.txt'


syslog

Sep 12 11:46:01 srv4hai CRON[6606]: (root) CMD (/etc/linetest/linetest.sh)
Sep 12 11:46:55 srv4hai named[30406]: resolver priming query complete
Sep 12 11:47:01 srv4hai CRON[6639]: (root) CMD (/etc/linetest/linetest.sh)
Sep 12 11:47:04 srv4hai named[30406]: resolver priming query complete
Sep 12 11:47:05 srv4hai named[30406]: resolver priming query complete
Sep 12 11:47:30 srv4hai postfix/anvil[6546]: statistics: max connection rate 1/60s for (smtp:64.62.156.42) at Sep 12 11:42:30
Sep 12 11:47:30 srv4hai postfix/anvil[6546]: statistics: max connection count 1 for (smtp:64.62.156.42) at Sep 12 11:42:30
Sep 12 11:47:30 srv4hai postfix/anvil[6546]: statistics: max cache size 1 at Sep 12 11:42:30
Sep 12 11:47:46 srv4hai postfix/smtpd[6646]: warning: hostname 94-156-177-87.virtualine.org does not resolve to address 94.156.177.87: Name or service not known
Sep 12 11:47:46 srv4hai postfix/smtpd[6646]: connect from unknown[94.156.177.87]
Sep 12 11:47:46 srv4hai postfix/smtpd[6646]: warning: unknown[94.156.177.87]: SASL LOGIN authentication failed: Invalid authentication mechanism
Sep 12 11:47:46 srv4hai postfix/smtpd[6646]: disconnect from unknown[94.156.177.87] ehlo=1 auth=0/1 quit=1 commands=2/3
Sep 12 11:47:47 srv4hai dovecot: imap-login: Login: user=, method=PLAIN, rip=::1, lip=::1, mpid=6651, secured, session=
Sep 12 11:47:47 srv4hai dovecot: imap(miglincit)<6651>: Logged out in=137 out=1087 deleted=0 expunged=0 trashed=0 hdr_count=0 hdr_bytes=0 body_count=0 body_bytes=0
Sep 12 11:48:01 srv4hai named[30406]: resolver priming query complete
Sep 12 11:48:01 srv4hai CRON[6655]: (root) CMD (/etc/linetest/linetest.sh)
Sep 12 11:48:03 srv4hai fetchmail[1651]: 7 messages (7 seen) for rozmig at mail.akis.at (1753652 octets).
Sep 12 11:48:04 srv4hai fetchmail[1651]: 52155 messages (52154 seen) for tmiglinci at mail.akis.at (-2548483 octets).
Sep 12 11:48:04 srv4hai postfix/smtpd[6646]: connect from localhost[127.0.0.1]
Sep 12 11:48:04 srv4hai postfix/smtpd[6646]: 3C48F6000F: client=localhost[127.0.0.1]
Sep 12 11:48:04 srv4hai postfix/cleanup[6662]: 3C48F6000F: message-id=<0A24176A-FDF878D87CA-0191E3C0BF37-00000000001C394C@starship>
Sep 12 11:48:04 srv4hai postfix/qmgr[8566]: 3C48F6000F: from=, size=27279, nrcpt=1 (queue active)
Sep 12 11:48:04 srv4hai fetchmail[1651]: reading message tmiglinci@mail.akis.at:52155 of 52155 (26986 octets) not flushed
Sep 12 11:48:04 srv4hai postfix/smtpd[6646]: disconnect from localhost[127.0.0.1] ehlo=1 mail=1 rcpt=1 data=1 quit=1 commands=5
Sep 12 11:48:04 srv4hai postfix/local[6663]: 3C48F6000F: to=, relay=local, delay=0.08, delays=0.06/0.01/0/0.01, dsn=2.0.0, status=sent (delivered to command: /bin/procmail)
Sep 12 11:48:04 srv4hai postfix/qmgr[8566]: 3C48F6000F: removed
Sep 12 11:48:04 srv4hai fetchmail[1651]: 10711 messages (10711 seen) for srozum at mail.akis.at (1292338699 octets).
Sep 12 11:48:05 srv4hai fetchmail[1651]: 25853 messages (25853 seen) for mrozum at mail.akis.at (203498081 octets).
Sep 12 11:48:05 srv4hai fetchmail[1651]: 1143 messages (1143 seen) for admin@bastelstube.wien at pop3.world4you.com (51639660 octets).
Sep 12 11:48:36 srv4hai dovecot: imap-login: Login: user=, method=PLAIN, rip=::1, lip=::1, mpid=6671, secured, session=
Sep 12 11:48:36 srv4hai dovecot: imap(miglincit)<6671>: Logged out in=751 out=47154 deleted=0 expunged=0 trashed=0 hdr_count=61 hdr_bytes=18246 body_count=0 body_bytes=0
Sep 12 11:49:01 srv4hai CRON[6687]: (root) CMD (/etc/linetest/linetest.sh)
Sep 12 11:49:07 srv4hai named[30406]: resolver priming query complete
Sep 12 11:49:22 srv4hai dhcpd[30731]: DHCPDISCOVER from e8:78:29:c0:c2:4e via enp2s0
Sep 12 11:49:22 srv4hai dhcpd[30731]: DHCPOFFER on 192.168.12.61 to e8:78:29:c0:c2:4e via enp2s0
Sep 12 11:49:22 srv4hai dhcpd[30731]: execute_statement argv[0] = /srv/www/viehai/shelly/smartphone.sh
Sep 12 11:49:22 srv4hai dhcpd[30731]: execute_statement argv[1] = 192.168.12.61
Sep 12 11:49:22 srv4hai dhcpd[30731]: execute_statement argv[2] = fpThomas
Sep 12 11:49:23 srv4hai common[6693]: SHELLY common.sh inkludiert von /srv/www/viehai/shelly/smartphone.sh
Sep 12 11:49:23 srv4hai smartphone.sh: SHELLY - ping_SP.sh started for phoneIP: '192.168.12.61' / 'fpThomas' / '0'
Sep 12 11:49:23 srv4hai common[6707]: SHELLY common.sh inkludiert von /srv/www/viehai/shelly//ping_SP.sh
Sep 12 11:49:23 srv4hai dhcpd[30731]: DHCPREQUEST for 192.168.12.61 (192.168.12.252) from e8:78:29:c0:c2:4e via enp2s0
Sep 12 11:49:23 srv4hai dhcpd[30731]: DHCPACK on 192.168.12.61 to e8:78:29:c0:c2:4e via enp2s0
Sep 12 11:49:23 srv4hai named[30406]: client @0x7f9350157870 192.168.12.252#56065/key rndc-key: updating zone 'viehai.at/IN': update unsuccessful: fpThomas.viehai.at: 'name not in use' prerequisite not satisfied (YXDOMAIN)
Sep 12 11:49:23 srv4hai named[30406]: client @0x7f93380793b0 192.168.12.252#38073/key rndc-key: signer "rndc-key" approved
Sep 12 11:49:23 srv4hai named[30406]: client @0x7f93380793b0 192.168.12.252#38073/key rndc-key: updating zone 'viehai.at/IN': deleting rrset at 'fpThomas.viehai.at' TXT
Sep 12 11:49:23 srv4hai named[30406]: client @0x7f93380793b0 192.168.12.252#38073/key rndc-key: updating zone 'viehai.at/IN': adding an RR at 'fpThomas.viehai.at' TXT "310ebd0eafccd9c2e311facf8a4b0e4ad2"
Sep 12 11:49:23 srv4hai named[30406]: client @0x7f93380793b0 192.168.12.252#38073/key rndc-key: updating zone 'viehai.at/IN': deleting rrset at 'fpThomas.viehai.at' A
Sep 12 11:49:23 srv4hai named[30406]: client @0x7f93380793b0 192.168.12.252#38073/key rndc-key: updating zone 'viehai.at/IN': adding an RR at 'fpThomas.viehai.at' A 192.168.12.61
Sep 12 11:49:23 srv4hai dhcpd[30731]: Added new forward map from fpThomas.viehai.at to 192.168.12.61
Sep 12 11:49:23 srv4hai named[30406]: client @0x7f93380d8d80 192.168.12.252#59965/key rndc-key: signer "rndc-key" approved
Sep 12 11:49:23 srv4hai named[30406]: client @0x7f93380d8d80 192.168.12.252#59965/key rndc-key: updating zone '12.168.192.in-addr.arpa/IN': deleting rrset at '61.12.168.192.in-addr.arpa' PTR
Sep 12 11:49:23 srv4hai named[30406]: client @0x7f93380d8d80 192.168.12.252#59965/key rndc-key: updating zone '12.168.192.in-addr.arpa/IN': adding an RR at '61.12.168.192.in-addr.arpa' PTR fpThomas.viehai.at.
Sep 12 11:49:23 srv4hai dhcpd[30731]: Added reverse map from 61.12.168.192.in-addr.arpa. to fpThomas.viehai.at
Sep 12 11:49:23 srv4hai ping_SP[6707]: SHELLY ping_SP.sh started from smartphone, user:'root'
Sep 12 11:49:23 srv4hai common[6729]: SHELLY common.sh inkludiert von ./bt_scan.sh
Sep 12 11:49:33 srv4hai common[6751]: SHELLY common.sh inkludiert von /srv/www/viehai/shelly//check_presence.sh
Sep 12 11:49:33 srv4hai named[30406]: resolver priming query complete
Sep 12 11:49:33 srv4hai common.sh: SHELLY: BTstatus[0]:'On' dweetAge:'4'=1726134573-1726134569
Sep 12 11:49:33 srv4hai check_presence[6751]: SHELLY (0) found /srv/www/viehai/shelly//meter/ping_SP_0.LIVE and On//srv/www/viehai/shelly//meter/BTscan_BTid_0.No
Sep 12 11:49:33 srv4hai check_presence[6751]: SHELLY (ping_SP__smartphone)-(0) found '/srv/www/viehai/shelly//meter/ping_SP_0.LIVE' for what: 'coming'
Sep 12 11:49:33 srv4hai bt_scan[6729]: SHELLY - who: 'Thomas' / phoneName: 'FP4_Thomas' / '0' / shellyIP: '192.168.12.61' - found: 'Yes'
Sep 12 11:49:33 srv4hai bt_scan[6729]: SHELLY - ping_SP.sh already running for BTmac: '0' - IPv4: '192.168.12.61'
Sep 12 11:49:33 srv4hai common.sh: SHELLY: BTstatus[1]:'Off' dweetAge:'4'=1726134573-1726134569
Sep 12 11:49:33 srv4hai check_presence[6751]: SHELLY (1) found /srv/www/viehai/shelly//meter/ping_SP_1.DEAD and Off//srv/www/viehai/shelly//meter/BTscan_BTid_1.No
Sep 12 11:49:33 srv4hai common.sh: SHELLY: BTstatus[2]:'Off' dweetAge:'4'=1726134573-1726134569
Sep 12 11:49:33 srv4hai check_presence[6751]: SHELLY (2) found /srv/www/viehai/shelly//meter/ping_SP_2.DEAD and Off//srv/www/viehai/shelly//meter/BTscan_BTid_2.No
Sep 12 11:49:33 srv4hai check_presence[6751]: SHELLY (ping_SP__smartphone)-(0) what: 'coming' - persPresent: '(BT/LIVE) (__/__) (__/__)' - anyPresent: 'true' - otherPresent:'false'
Sep 12 11:49:33 srv4hai check_presence[6751]: SHELLY - check 'coming': anyPresent(true) - lScene(scene_offAll) - sceneONsmall(vorraumOn)
Sep 12 11:49:33 srv4hai check_presence[6751]: SHELLY (ping_SP__smartphone)-(0)-coming: activate_scenario.shtml: vorraumOn
Sep 12 11:49:34 srv4hai activate_scenario[6920]: SHELLY scenario: 'vorraumOn(vorraumon)' started
Sep 12 11:49:34 srv4hai activate_scenario[6920]: SHELLY dayState='day' <--> DayTime=checked NightTime=checked - phoneName:'0'

finished