activate_scenario.sh
Tue Apr 2 06:58:30 CEST 2024
scenario: buero_UM
source: 192.168.12.140

'day' <--> 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/04/02/_0.log)

vorher: 06:58:30.667

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

nachher: 06:58:30.711
Dauer: 43 msec phName: 'shelly-40:'Thomas Büro Licht''


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

vorher: 06:58:30.684

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

nachher: 06:58:30.715
Dauer: 31 msec phName: 'shelly-40:'Thomas Büro Licht''


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

urls : 2
vorher : 06:58:30.640
nachher: 06:58:30.723
Dauer : 83 msec
outfile: '/srv/www/viehai/shelly/log_scenarios/2024/04/02//scene_buero_UM_20240402_065830.txt'


syslog

Apr  2 06:55:00 srv4hai grab_shelly.sh: SHELLY 'shelly-39':  OFFLINE, resp. not answering within connect-timeout 1.500000s
Apr  2 06:55:01 srv4hai CRON[14151]: (root) CMD (/etc/linetest/linetest.sh)
Apr  2 06:55:03 srv4hai postfix/smtpd[14156]: connect from unknown[45.227.254.119]
Apr  2 06:55:03 srv4hai postfix/smtpd[14156]: lost connection after CONNECT from unknown[45.227.254.119]
Apr  2 06:55:03 srv4hai postfix/smtpd[14156]: disconnect from unknown[45.227.254.119] commands=0/0
Apr  2 06:55:06 srv4hai common[14160]: SHELLY common.sh inkludiert
Apr  2 06:55:06 srv4hai ht_shelly.sh: SHELLY - QUERY_STRING: gen=2&temp=11.300000&hum=64&id=C049EF8AC9D8&batt=100&volt=6.710000
Apr  2 06:55:06 srv4hai ht_shelly.sh: SHELLY - storing into '/srv/www/viehai/shelly//wetter/2024/04/shelly-39_20240402.csv'
Apr  2 06:55:06 srv4hai conf_shelly.sh: SHELLY: PARAMS  shName/1:'shelly-39' - shIP/2:'192.168.12.139'
Apr  2 06:55:06 srv4hai conf_shelly.sh: SHELLY: usage/name 'Wetterwerte Balkon' already set for '192.168.12.139'
Apr  2 06:55:06 srv4hai conf_shelly.sh: SHELLY:'shelly-39' 'conf(0)' - 'settings/actions?index=0&name=report_url&enabled=true&urls[]=http://www.viehai.at/shelly/ht_shelly.shtml?gen=2&temp=${ev.tC}&hum=${status["humidity:0"].rH}&id=${config.sys.device.mac}'
Apr  2 06:55:06 srv4hai conf_shelly.sh: SHELLY:'shelly-39' conf(0)-cmd: 'curl --connect-timeout 3 --silent -X -POST -d 'settings/actions?index=0&name=report_url&enabled=true&urls[]=http://www.viehai.at/shelly/ht_shelly.shtml?gen=2&temp=${ev.tC}&hum=${status["humidity:0"].rH}&id=${config.sys.device.mac}' http://192.168.12.139/rpc | jq -r '.''
Apr  2 06:55:06 srv4hai conf_shelly.sh: SHELLY:'shelly-39' conf(0)-ret: ''
Apr  2 06:55:06 srv4hai conf_shelly.sh: SHELLY:'shelly-39' no WebHook
Apr  2 06:55:06 srv4hai ht_shelly.sh: SHELLY C049EF8AC9D8 / shelly-39 / Wetterwerte Balkon: 11.3° - 64%
Apr  2 06:55:06 srv4hai ht_shelly.sh: SHELLY C049EF8AC9D8 / shelly-39 / Wetterwerte Balkon: 11.3°/11.7° - 64%/64% - SAVED
Apr  2 06:55:06 srv4hai ht_shelly.sh: SHELLY C049EF8AC9D8 / shelly-39 / Wetterwerte Balkon: batt='100'°
Apr  2 06:55:06 srv4hai named[15509]: resolver priming query complete
Apr  2 06:55:06 srv4hai ht_shelly.sh: SHELLY C049EF8AC9D8 / shelly-39 / Wetterwerte Balkon: dweetIO='{#012  "this": "succeeded",#012  "by": "dweeting",#012  "the": "dweet",#012  "with": {#012    "thing": "viehai-39",#012    "created": "2024-04-02T04:55:06.823Z",#012    "content": {#012      "temp": 11.3,#012      "hum": 64,#012      "batt": 100,#012      "csvF": "shelly-39_20240402.csv"#012    },#012    "transaction": "02b1a2ac-6583-460d-aad8-dd0d66124ee7"#012  }#012}'°
Apr  2 06:56:01 srv4hai CRON[14264]: (root) CMD (/etc/linetest/linetest.sh)
Apr  2 06:56:01 srv4hai ping_SP[10772]: SHELLY (0) - ping 192.168.12.61 1 sucessfully  @~1712033761 - 'ping_SP_0'
Apr  2 06:56:01 srv4hai ping_SP[10772]: SHELLY (0) - ping 192.168.12.61 pCnt:'1'
Apr  2 06:56:02 srv4hai named[15509]: resolver priming query complete
Apr  2 06:56:48 srv4hai dovecot: imap-login: Login: user=, method=PLAIN, rip=::1, lip=::1, mpid=14287, secured, session=<1vn/7hUVCpoAAAAAAAAAAAAAAAAAAAAB>
Apr  2 06:56:48 srv4hai dovecot: imap(miglincit)<14287><1vn/7hUVCpoAAAAAAAAAAAAAAAAAAAAB>: Logged out in=137 out=1088 deleted=0 expunged=0 trashed=0 hdr_count=0 hdr_bytes=0 body_count=0 body_bytes=0
Apr  2 06:57:01 srv4hai named[15509]: resolver priming query complete
Apr  2 06:57:01 srv4hai CRON[14291]: (root) CMD (/etc/linetest/linetest.sh)
Apr  2 06:57:01 srv4hai fetchmail[1651]: 7 messages (7 seen) for rozmig at mail.akis.at (1753652 octets).
Apr  2 06:57:02 srv4hai fetchmail[1651]: 41076 messages (41075 seen) for tmiglinci at mail.akis.at (-873538381 octets).
Apr  2 06:57:02 srv4hai postfix/smtpd[14297]: connect from localhost[127.0.0.1]
Apr  2 06:57:02 srv4hai postfix/smtpd[14297]: 3921860119: client=localhost[127.0.0.1]
Apr  2 06:57:02 srv4hai postfix/cleanup[14300]: 3921860119: message-id=<0000000000008f52a7061515e00c@google.com>
Apr  2 06:57:02 srv4hai postfix/qmgr[15291]: 3921860119: from=, size=55153, nrcpt=1 (queue active)
Apr  2 06:57:02 srv4hai fetchmail[1651]: reading message tmiglinci@mail.akis.at:41076 of 41076 (54909 octets) not flushed
Apr  2 06:57:02 srv4hai postfix/smtpd[14297]: disconnect from localhost[127.0.0.1] ehlo=1 mail=1 rcpt=1 data=1 quit=1 commands=5
Apr  2 06:57:02 srv4hai postfix/local[14302]: 3921860119: to=, relay=local, delay=0.1, delays=0.07/0.01/0/0.02, dsn=2.0.0, status=sent (delivered to command: /bin/procmail)
Apr  2 06:57:02 srv4hai postfix/qmgr[15291]: 3921860119: removed
Apr  2 06:57:02 srv4hai fetchmail[1651]: 10077 messages (10077 seen) for srozum at mail.akis.at (1216602893 octets).
Apr  2 06:57:03 srv4hai fetchmail[1651]: 22587 messages (22587 seen) for mrozum at mail.akis.at (-383657682 octets).
Apr  2 06:57:03 srv4hai fetchmail[1651]: 46 messages (46 seen) for admin@bastelstube.wien at pop3.world4you.com (12059834 octets).
Apr  2 06:57:06 srv4hai named[15509]: resolver priming query complete
Apr  2 06:57:15 srv4hai ping_SP[10772]: SHELLY (0) - ping 192.168.12.61 1 sucessfully  @~1712033835 - 'ping_SP_0'
Apr  2 06:57:15 srv4hai ping_SP[10772]: SHELLY (0) - ping 192.168.12.61 pCnt:'1'
Apr  2 06:57:25 srv4hai activate_scenario[14326]: SHELLY scenario: 'LOG_kommen(log_kommen)' started
Apr  2 06:57:25 srv4hai activate_scenario[14326]: SHELLY dayState='day' <--> DayTime=checked NightTime=checked - shelly-03:'Licht Vorzimmer'
Apr  2 06:57:25 srv4hai activate_scenario[14326]: SHELLY scenario: 'LOG_kommen(log_kommen)' TO BE EXECUTED, shelly-03:'Licht Vorzimmer'
Apr  2 06:57:25 srv4hai activate_scenario[14326]: SHELLY scenario: 'LOG_kommen(log_kommen)' took 4 msec, shelly-03:'Licht Vorzimmer'
Apr  2 06:57:45 srv4hai dhcpd[5037]: DHCPDISCOVER from 30:83:98:8c:05:9d via enp2s0
Apr  2 06:57:45 srv4hai dhcpd[5037]: DHCPOFFER on 192.168.12.123 to 30:83:98:8c:05:9d via enp2s0
Apr  2 06:57:45 srv4hai dhcpd[5037]: execute_statement argv[0] = /srv/www/viehai/shelly/json.sh
Apr  2 06:57:45 srv4hai dhcpd[5037]: execute_statement argv[1] = 192.168.12.123
Apr  2 06:57:45 srv4hai dhcpd[5037]: execute_statement argv[2] = shelly-23
Apr  2 06:57:45 srv4hai dhcpd[5037]: DHCPREQUEST for 192.168.12.123 (192.168.12.252) from 30:83:98:8c:05:9d via enp2s0
Apr  2 06:57:45 srv4hai dhcpd[5037]: DHCPACK on 192.168.12.123 to 30:83:98:8c:05:9d via enp2s0
Apr  2 06:57:45 srv4hai named[15509]: client @0x7f9310045f00 192.168.12.252#49003/key rndc-key: updating zone 'viehai.at/IN': update unsuccessful: shelly-23.viehai.at: 'name not in use' prerequisite not satisfied (YXDOMAIN)
Apr  2 06:57:45 srv4hai named[15509]: client @0x7f9314033170 192.168.12.252#43869/key rndc-key: signer "rndc-key" approved
Apr  2 06:57:45 srv4hai named[15509]: client @0x7f9314033170 192.168.12.252#43869/key rndc-key: updating zone 'viehai.at/IN': deleting rrset at 'shelly-23.viehai.at' TXT
Apr  2 06:57:45 srv4hai named[15509]: client @0x7f9314033170 192.168.12.252#43869/key rndc-key: updating zone 'viehai.at/IN': adding an RR at 'shelly-23.viehai.at' TXT "0067c4eae5f3400bd02ff9ebe320262416"
Apr  2 06:57:45 srv4hai named[15509]: client @0x7f9314033170 192.168.12.252#43869/key rndc-key: updating zone 'viehai.at/IN': deleting rrset at 'shelly-23.viehai.at' A
Apr  2 06:57:45 srv4hai named[15509]: client @0x7f9314033170 192.168.12.252#43869/key rndc-key: updating zone 'viehai.at/IN': adding an RR at 'shelly-23.viehai.at' A 192.168.12.123
Apr  2 06:57:45 srv4hai dhcpd[5037]: Added new forward map from shelly-23.viehai.at to 192.168.12.123
Apr  2 06:57:45 srv4hai named[15509]: client @0x7f931c6a6030 192.168.12.252#38201/key rndc-key: signer "rndc-key" approved
Apr  2 06:57:45 srv4hai named[15509]: client @0x7f931c6a6030 192.168.12.252#38201/key rndc-key: updating zone '12.168.192.in-addr.arpa/IN': deleting rrset at '123.12.168.192.in-addr.arpa' PTR
Apr  2 06:57:45 srv4hai named[15509]: client @0x7f931c6a6030 192.168.12.252#38201/key rndc-key: updating zone '12.168.192.in-addr.arpa/IN': adding an RR at '123.12.168.192.in-addr.arpa' PTR shelly-23.viehai.at.
Apr  2 06:57:45 srv4hai dhcpd[5037]: Added reverse map from 123.12.168.192.in-addr.arpa. to shelly-23.viehai.at
Apr  2 06:57:45 srv4hai grab_shelly.sh: SHELLY shellyName/1:'shelly-23' - shIP/2:'' workdir:'/srv/www/viehai/shelly' perform:'conf'
Apr  2 06:57:46 srv4hai conf_shelly.sh: SHELLY: PARAMS  shName/1:'shelly-23' - shIP/2:'192.168.12.123'
Apr  2 06:57:46 srv4hai conf_shelly.sh: SHELLY: usage/name 'Licht Sekretär' already set for '192.168.12.123'
Apr  2 06:57:46 srv4hai conf_shelly.sh: SHELLY:'shelly-23' 'conf(0)' - allready transmitted - skipping
Apr  2 06:57:46 srv4hai conf_shelly.sh: SHELLY:'shelly-23' 'conf(1)' - allready transmitted - skipping
Apr  2 06:57:46 srv4hai conf_shelly.sh: SHELLY:'shelly-23' 'conf(2)' - allready transmitted - skipping
Apr  2 06:57:46 srv4hai conf_shelly.sh: SHELLY:'shelly-23' 'conf(3)' - allready transmitted - skipping
Apr  2 06:57:46 srv4hai conf_shelly.sh: SHELLY:'shelly-23' 'conf(4)' - allready transmitted - skipping
Apr  2 06:57:46 srv4hai conf_shelly.sh: SHELLY:'shelly-23' 'conf(5)' - allready transmitted - skipping
Apr  2 06:57:46 srv4hai conf_shelly.sh: SHELLY:'shelly-23' out:0 ON : MISSING
Apr  2 06:57:46 srv4hai conf_shelly.sh: SHELLY:'shelly-23' out:0 OFF: MISSING
Apr  2 06:58:01 srv4hai CRON[14529]: (root) CMD (/etc/linetest/linetest.sh)
Apr  2 06:58:06 srv4hai named[15509]: resolver priming query complete
Apr  2 06:58:21 srv4hai named[15509]: resolver priming query complete
Apr  2 06:58:24 srv4hai postfix/anvil[14158]: statistics: max connection rate 1/60s for (smtp:45.227.254.119) at Apr  2 06:55:03
Apr  2 06:58:24 srv4hai postfix/anvil[14158]: statistics: max connection count 1 for (smtp:45.227.254.119) at Apr  2 06:55:03
Apr  2 06:58:24 srv4hai postfix/anvil[14158]: statistics: max cache size 1 at Apr  2 06:55:03
Apr  2 06:58:28 srv4hai ping_SP[10772]: SHELLY (0) - ping 192.168.12.61 1 sucessfully  @~1712033908 - 'ping_SP_0'
Apr  2 06:58:28 srv4hai ping_SP[10772]: SHELLY (0) - ping 192.168.12.61 pCnt:'1'
Apr  2 06:58:30 srv4hai activate_scenario[14556]: SHELLY scenario: 'buero_UM(buero_um)' started
Apr  2 06:58:30 srv4hai activate_scenario[14556]: SHELLY dayState='day' <--> DayTime=checked NightTime=checked - shelly-40:'Thomas Büro Licht'

finished