activate_scenario.sh
Fri Feb 9 20:27:50 CET 2024
scenario: buero_UM
source: 192.168.12.140

'night' <--> DayTime=checked , NightTime=checked
-> execution of scenario
-> sending email(s) to 'null'

scenario: 'Büro UM-schalten' - 'buero_UM' - 'buero_um'

Thomas Büro Regallicht (/srv/www/viehai/shelly/log_scenarios/2024/02/09/_0.log)

vorher: 20:27:51.057

http://192.168.12.108/relay/0?turn=toggle
  "ison": false,
  "has_timer": false,
  "timer_started": 0,
  "timer_duration": 0,
  "timer_remaining": 0,
  "source": "http"

nachher: 20:27:51.179
Dauer: 123 msec phName: 'shelly-40:'Thomas Büro Licht''


Thomas Büro Licht (/srv/www/viehai/shelly/log_scenarios/2024/02/09/_1.log)

vorher: 20:27:51.072

http://192.168.12.140/relay/0?turn=toggle
  "ison": false,
  "has_timer": false,
  "timer_started": 0,
  "timer_duration": 0,
  "timer_remaining": 0,
  "source": "http"

nachher: 20:27:51.142
Dauer: 70 msec phName: 'shelly-40:'Thomas Büro Licht''


scenario: 'Büro UM-schalten' - 'buero_UM' - 'buero_um'

urls : 2
vorher : 20:27:51.035
nachher: 20:27:51.187
Dauer : 152 msec
outfile: '/srv/www/viehai/shelly/log_scenarios/2024/02/09//scene_buero_UM_20240209_202750.txt'


syslog

Feb  9 20:24:01 srv4hai CRON[4772]: (root) CMD (/etc/linetest/linetest.sh)
Feb  9 20:24:32 srv4hai ping_SP[12004]: SHELLY (0) - ping 192.168.12.61 1 sucessfully  @~1707506671 - 'ping_SP_0'
Feb  9 20:24:32 srv4hai ping_SP[12004]: SHELLY (0) - ping 192.168.12.61 pCnt:'1'
Feb  9 20:24:50 srv4hai dovecot: imap-login: Login: user=, method=PLAIN, rip=::1, lip=::1, mpid=4804, secured, session=
Feb  9 20:24:50 srv4hai dovecot: imap(miglincit)<4804>: Logged out in=534 out=1231 deleted=0 expunged=0 trashed=0 hdr_count=0 hdr_bytes=0 body_count=0 body_bytes=0
Feb  9 20:25:00 srv4hai sntp[4809]: sntp 4.2.8p12@1.3728-o (1)
Feb  9 20:25:00 srv4hai sntp[4809]: Send to [2001:4860:4806:8::]:123 failed, Network is unreachable
Feb  9 20:25:00 srv4hai sntp[4809]: 2024-02-09 20:25:00.750965 (-0100) +0.000537 +/- 0.000434 time.google.com 216.239.35.8 s1 no-leap
Feb  9 20:25:01 srv4hai CRON[4814]: (root) CMD (/etc/linetest/linetest.sh)
Feb  9 20:25:35 srv4hai ping_SP[12004]: SHELLY (0) - ping 192.168.12.61 1 sucessfully  @~1707506735 - 'ping_SP_0'
Feb  9 20:25:35 srv4hai ping_SP[12004]: SHELLY (0) - ping 192.168.12.61 pCnt:'1'
Feb  9 20:25:52 srv4hai fetchmail[1651]: 7 messages (7 seen) for rozmig at mail.akis.at (1753652 octets).
Feb  9 20:25:53 srv4hai fetchmail[1651]: 37778 messages (37778 seen) for tmiglinci at mail.akis.at (-1173105650 octets).
Feb  9 20:25:53 srv4hai fetchmail[1651]: 9882 messages (9880 seen) for srozum at mail.akis.at (1192745382 octets).
Feb  9 20:25:53 srv4hai postfix/smtpd[4848]: connect from localhost[127.0.0.1]
Feb  9 20:25:53 srv4hai postfix/smtpd[4848]: C6B5A6011A: client=localhost[127.0.0.1]
Feb  9 20:25:53 srv4hai postfix/cleanup[4851]: C6B5A6011A: message-id=<3bc18d51f80243c7bb3a0efe444be419@austrian.com>
Feb  9 20:25:53 srv4hai postfix/qmgr[28610]: C6B5A6011A: from=, size=100481, nrcpt=1 (queue active)
Feb  9 20:25:53 srv4hai fetchmail[1651]: reading message srozum@mail.akis.at:9881 of 9882 (100225 octets) not flushed
Feb  9 20:25:53 srv4hai postfix/local[4852]: C6B5A6011A: to=, relay=local, delay=0.12, delays=0.1/0.01/0/0.01, dsn=2.0.0, status=sent (delivered to command: /bin/procmail)
Feb  9 20:25:53 srv4hai postfix/qmgr[28610]: C6B5A6011A: removed
Feb  9 20:25:53 srv4hai postfix/smtpd[4848]: E6AEF6011A: client=localhost[127.0.0.1]
Feb  9 20:25:53 srv4hai postfix/cleanup[4851]: E6AEF6011A: message-id=
Feb  9 20:25:54 srv4hai fetchmail[1651]: reading message srozum@mail.akis.at:9882 of 9882 (100272 octets) not flushed
Feb  9 20:25:54 srv4hai postfix/qmgr[28610]: E6AEF6011A: from=, size=100528, nrcpt=1 (queue active)
Feb  9 20:25:54 srv4hai postfix/smtpd[4848]: disconnect from localhost[127.0.0.1] ehlo=1 mail=2 rcpt=2 data=2 quit=1 commands=8
Feb  9 20:25:54 srv4hai postfix/local[4852]: E6AEF6011A: to=, relay=local, delay=0.11, delays=0.09/0/0/0.02, dsn=2.0.0, status=sent (delivered to command: /bin/procmail)
Feb  9 20:25:54 srv4hai postfix/qmgr[28610]: E6AEF6011A: removed
Feb  9 20:25:54 srv4hai fetchmail[1651]: 21574 messages (21574 seen) for mrozum at mail.akis.at (-593565623 octets).
Feb  9 20:25:54 srv4hai fetchmail[1651]: 45 messages (45 seen) for admin@bastelstube.wien at pop3.world4you.com (12035480 octets).
Feb  9 20:26:01 srv4hai CRON[4858]: (root) CMD (/etc/linetest/linetest.sh)
Feb  9 20:26:04 srv4hai dovecot: imap-login: Login: user=, method=PLAIN, rip=::1, lip=::1, mpid=4867, secured, session=
Feb  9 20:26:04 srv4hai dovecot: imap(miglincit)<4867>: Logged out in=534 out=1231 deleted=0 expunged=0 trashed=0 hdr_count=0 hdr_bytes=0 body_count=0 body_bytes=0
Feb  9 20:26:21 srv4hai postfix/smtpd[4848]: connect from unknown[45.128.96.207]
Feb  9 20:26:21 srv4hai postfix/smtpd[4848]: warning: unknown[45.128.96.207]: SASL LOGIN authentication failed: Invalid authentication mechanism
Feb  9 20:26:21 srv4hai postfix/smtpd[4848]: disconnect from unknown[45.128.96.207] ehlo=1 auth=0/1 quit=1 commands=2/3
Feb  9 20:26:22 srv4hai dovecot: imap(miglincit)<12806>: Logged out in=9346 out=5776105 deleted=0 expunged=0 trashed=0 hdr_count=38 hdr_bytes=16368 body_count=39 body_bytes=5650670
Feb  9 20:26:22 srv4hai activate_scenario[4872]: SHELLY scenario: 'pcOFF(pcoff)' started
Feb  9 20:26:22 srv4hai activate_scenario[4872]: SHELLY dayState='night' <--> DayTime=checked NightTime=checked - shelly-0:''
Feb  9 20:26:22 srv4hai activate_scenario[4872]: SHELLY scenario: 'pcOFF(pcoff)' TO BE EXECUTED, shelly-0:''
Feb  9 20:26:22 srv4hai postfix/pickup[1052]: D1FB460244: uid=33 from=
Feb  9 20:26:22 srv4hai postfix/cleanup[4851]: D1FB460244: message-id=<20240209192622.D1FB460244@mail.viehai.at>
Feb  9 20:26:22 srv4hai postfix/qmgr[28610]: D1FB460244: from=, size=6071, nrcpt=1 (queue active)
Feb  9 20:26:22 srv4hai postfix/local[4852]: D1FB460244: to=, orig_to=, relay=local, delay=0.05, delays=0.02/0/0/0.03, dsn=5.1.1, status=bounced (unknown user: "null")
Feb  9 20:26:22 srv4hai postfix/cleanup[4851]: DB4E960245: message-id=<20240209192622.DB4E960245@mail.viehai.at>
Feb  9 20:26:22 srv4hai postfix/bounce[4928]: D1FB460244: sender non-delivery notification: DB4E960245
Feb  9 20:26:22 srv4hai postfix/qmgr[28610]: DB4E960245: from=<>, size=7950, nrcpt=1 (queue active)
Feb  9 20:26:22 srv4hai postfix/qmgr[28610]: D1FB460244: removed
Feb  9 20:26:22 srv4hai postfix/local[4852]: DB4E960245: to=, relay=local, delay=0.02, delays=0.01/0/0/0.01, dsn=2.0.0, status=sent (delivered to command: /bin/procmail)
Feb  9 20:26:22 srv4hai postfix/qmgr[28610]: DB4E960245: removed
Feb  9 20:26:22 srv4hai activate_scenario[4872]: SHELLY: scenario: 'pcOFF(pcoff)'-'shelly-20'-'Thomas Schreibtischlampe' --> '0?turn=off'
Feb  9 20:26:22 srv4hai proc_url[4941]: SHELLY: OF:'/srv/www/viehai/shelly/log_scenarios/2024/02/09/_0.log' - shellyUsage:'Thomas Schreibtischlampe' - scUrl:'http://192.168.12.120/relay/0?turn=off' - phName:'shelly-0:'''
Feb  9 20:26:22 srv4hai activate_scenario[4872]: SHELLY scenario: 'pcOFF(pcoff)' took 82 msec, shelly-0:''
Feb  9 20:26:33 srv4hai postfix/smtpd[4848]: connect from unknown[194.48.251.112]
Feb  9 20:26:33 srv4hai postfix/smtpd[4848]: warning: unknown[194.48.251.112]: SASL LOGIN authentication failed: Invalid authentication mechanism
Feb  9 20:26:33 srv4hai postfix/smtpd[4848]: disconnect from unknown[194.48.251.112] ehlo=1 auth=0/1 quit=1 commands=2/3
Feb  9 20:26:38 srv4hai ping_SP[12004]: SHELLY (0) - ping 192.168.12.61 1 sucessfully  @~1707506798 - 'ping_SP_0'
Feb  9 20:26:38 srv4hai ping_SP[12004]: SHELLY (0) - ping 192.168.12.61 pCnt:'1'
Feb  9 20:27:01 srv4hai CRON[4995]: (root) CMD (/etc/linetest/linetest.sh)
Feb  9 20:27:40 srv4hai dhcpd[5037]: DHCPDISCOVER from 48:55:19:00:b3:58 via enp2s0
Feb  9 20:27:40 srv4hai dhcpd[5037]: DHCPOFFER on 192.168.12.137 to 48:55:19:00:b3:58 via enp2s0
Feb  9 20:27:40 srv4hai dhcpd[5037]: execute_statement argv[0] = /srv/www/viehai/shelly/json.sh
Feb  9 20:27:40 srv4hai dhcpd[5037]: execute_statement argv[1] = 192.168.12.137
Feb  9 20:27:40 srv4hai dhcpd[5037]: execute_statement argv[2] = shelly-37
Feb  9 20:27:40 srv4hai dhcpd[5037]: DHCPREQUEST for 192.168.12.137 (192.168.12.252) from 48:55:19:00:b3:58 via enp2s0
Feb  9 20:27:40 srv4hai dhcpd[5037]: DHCPACK on 192.168.12.137 to 48:55:19:00:b3:58 via enp2s0
Feb  9 20:27:40 srv4hai named[14530]: client @0x7fc3240aa080 192.168.12.252#49835/key rndc-key: updating zone 'viehai.at/IN': update unsuccessful: shelly-37.viehai.at: 'name not in use' prerequisite not satisfied (YXDOMAIN)
Feb  9 20:27:40 srv4hai named[14530]: client @0x7fc314028fc0 192.168.12.252#42555/key rndc-key: signer "rndc-key" approved
Feb  9 20:27:40 srv4hai named[14530]: client @0x7fc314028fc0 192.168.12.252#42555/key rndc-key: updating zone 'viehai.at/IN': deleting rrset at 'shelly-37.viehai.at' TXT
Feb  9 20:27:40 srv4hai named[14530]: client @0x7fc314028fc0 192.168.12.252#42555/key rndc-key: updating zone 'viehai.at/IN': adding an RR at 'shelly-37.viehai.at' TXT "001bc21ebc20088cb6a311248591ab7101"
Feb  9 20:27:40 srv4hai named[14530]: client @0x7fc314028fc0 192.168.12.252#42555/key rndc-key: updating zone 'viehai.at/IN': deleting rrset at 'shelly-37.viehai.at' A
Feb  9 20:27:40 srv4hai named[14530]: client @0x7fc314028fc0 192.168.12.252#42555/key rndc-key: updating zone 'viehai.at/IN': adding an RR at 'shelly-37.viehai.at' A 192.168.12.137
Feb  9 20:27:40 srv4hai dhcpd[5037]: Added new forward map from shelly-37.viehai.at to 192.168.12.137
Feb  9 20:27:40 srv4hai named[14530]: client @0x7fc3200246f0 192.168.12.252#53367/key rndc-key: signer "rndc-key" approved
Feb  9 20:27:40 srv4hai named[14530]: client @0x7fc3200246f0 192.168.12.252#53367/key rndc-key: updating zone '12.168.192.in-addr.arpa/IN': deleting rrset at '137.12.168.192.in-addr.arpa' PTR
Feb  9 20:27:40 srv4hai named[14530]: client @0x7fc3200246f0 192.168.12.252#53367/key rndc-key: updating zone '12.168.192.in-addr.arpa/IN': adding an RR at '137.12.168.192.in-addr.arpa' PTR shelly-37.viehai.at.
Feb  9 20:27:40 srv4hai dhcpd[5037]: Added reverse map from 137.12.168.192.in-addr.arpa. to shelly-37.viehai.at
Feb  9 20:27:40 srv4hai grab_shelly.sh: SHELLY shellyName/1:'shelly-37' - shIP/2:'' workdir:'/srv/www/viehai/shelly' perform:'conf'
Feb  9 20:27:41 srv4hai conf_shelly.sh: SHELLY: PARAMS  shName/1:'shelly-37' - shIP/2:'192.168.12.137'
Feb  9 20:27:41 srv4hai ht_shelly.sh: SHELLY - QUERY_STRING: hum=41&temp=23.62&id=shellyht-00B358
Feb  9 20:27:41 srv4hai ht_shelly.sh: SHELLY - storing into '/srv/www/viehai/shelly/wetter/2024/02/shelly-37_20240209.csv'
Feb  9 20:27:41 srv4hai conf_shelly.sh: SHELLY: PARAMS  shName/1:'shelly-37' - shIP/2:'192.168.12.137'
Feb  9 20:27:41 srv4hai conf_shelly.sh: SHELLY: usage/name 'Wetter 1' already set for '192.168.12.137'
Feb  9 20:27:41 srv4hai conf_shelly.sh: SHELLY: usage/name 'Wetter 1' already set for '192.168.12.137'
Feb  9 20:27:41 srv4hai conf_shelly.sh: SHELLY:'shelly-37' 'conf(0)' - allready transmitted - skipping
Feb  9 20:27:41 srv4hai conf_shelly.sh: SHELLY:'shelly-37' 'conf(0)' - allready transmitted - skipping
Feb  9 20:27:41 srv4hai conf_shelly.sh: SHELLY:'shelly-37' 'conf(1)' - allready transmitted - skipping
Feb  9 20:27:41 srv4hai conf_shelly.sh: SHELLY:'shelly-37' 'conf(1)' - allready transmitted - skipping
Feb  9 20:27:41 srv4hai conf_shelly.sh: SHELLY:'shelly-37' 'conf(2)' - allready transmitted - skipping
Feb  9 20:27:41 srv4hai conf_shelly.sh: SHELLY:'shelly-37' 'conf(2)' - allready transmitted - skipping
Feb  9 20:27:41 srv4hai conf_shelly.sh: SHELLY:'shelly-37' 'conf(3)' - ''
Feb  9 20:27:41 srv4hai conf_shelly.sh: SHELLY:'shelly-37' 'conf(3)' - ''
Feb  9 20:27:41 srv4hai ping_SP[12004]: SHELLY (0) - ping 192.168.12.61 1 sucessfully  @~1707506861 - 'ping_SP_0'
Feb  9 20:27:41 srv4hai ping_SP[12004]: SHELLY (0) - ping 192.168.12.61 pCnt:'1'
Feb  9 20:27:41 srv4hai conf_shelly.sh: SHELLY:'shelly-37' conf(3)-cmd: 'curl --connect-timeout 3 --silent 'http://192.168.12.137/' | jq -r '.''
Feb  9 20:27:41 srv4hai conf_shelly.sh: SHELLY:'shelly-37' conf(3)-ret: ''
Feb  9 20:27:41 srv4hai conf_shelly.sh: SHELLY:'shelly-37' conf(3)-cmd: 'curl --connect-timeout 3 --silent 'http://192.168.12.137/' | jq -r '.''
Feb  9 20:27:41 srv4hai conf_shelly.sh: SHELLY:'shelly-37' conf(3)-ret: ''
Feb  9 20:27:41 srv4hai ht_shelly.sh: SHELLY shellyht-00B358 / shelly-37 / Wetter 1: 23.62° - 41%
Feb  9 20:27:41 srv4hai ht_shelly.sh: SHELLY shellyht-00B358 / shelly-37 / Wetter 1: 23.62°/23.5° - 41%/41% - SAVED
Feb  9 20:27:41 srv4hai ht_shelly.sh: SHELLY shellyht-00B358 / shelly-37 / Wetter 1: batt='91'°
Feb  9 20:27:42 srv4hai ht_shelly.sh: SHELLY shellyht-00B358 / shelly-37 / Wetter 1: dweetIO='{#012  "this": "succeeded",#012  "by": "dweeting",#012  "the": "dweet",#012  "with": {#012    "thing": "viehai-37",#012    "created": "2024-02-09T19:27:42.155Z",#012    "content": {#012      "temp": 23.62,#012      "hum": 41,#012      "batt": 91#012    },#012    "transaction": "46ffe62e-54ca-4c88-8abb-f4ea3fd652e6"#012  }#012}'°
Feb  9 20:27:46 srv4hai ht_shelly.sh: SHELLY - QUERY_STRING: hum=41&temp=23.62&id=shellyht-00B358
Feb  9 20:27:46 srv4hai ht_shelly.sh: SHELLY - storing into '/srv/www/viehai/shelly/wetter/2024/02/shelly-37_20240209.csv'
Feb  9 20:27:46 srv4hai ht_shelly.sh: SHELLY - '/srv/www/viehai/shelly/wetter/2024/02/shelly-37_20240209.csv' modifed 5s ago - EXIT
Feb  9 20:27:51 srv4hai activate_scenario[5284]: SHELLY scenario: 'buero_UM(buero_um)' started
Feb  9 20:27:51 srv4hai activate_scenario[5284]: SHELLY dayState='night' <--> DayTime=checked NightTime=checked - shelly-40:'Thomas Büro Licht'

finished