Hallo,
nachdem ich massive Fortschritte mit dem Verständnis des sh.py gemachgt habe, ist mir im log etwas aufgefallen, was ich nicht wirklich zuordnen kann:
Ich rufe die Visu auf und alles ist klarm dann nach einigen Sekunden erhalte ich fehlermeldung (im log:
Client 192.168.2.8:56674 requested invalid item: ".AZ.temperatur.min.6h.0 -- __init__.py:json_parse:316"
Hier die Details:
item/smartvisu.conf:
logfile:
Visu mit autogenerator erstellt.
Any ideas?
Gruß
Georg
nachdem ich massive Fortschritte mit dem Verständnis des sh.py gemachgt habe, ist mir im log etwas aufgefallen, was ich nicht wirklich zuordnen kann:
Ich rufe die Visu auf und alles ist klarm dann nach einigen Sekunden erhalte ich fehlermeldung (im log:
Client 192.168.2.8:56674 requested invalid item: ".AZ.temperatur.min.6h.0 -- __init__.py:json_parse:316"
Hier die Details:
item/smartvisu.conf:
Code:
[Keller]
[[AZ]]
name = Arbeitszimmer
sv_page = room
sv_img = scene_livingroom.png
[[[temperatur]]]
name = Temperatur AZ
type = num
history = true
visu = yes
ow_addr = 28.AFADE0040000
ow_sensor = T
sv_widget = "{{ plot.rtr('item-plotrtr', 'item', 'item.set', 'item.state') }}","{{ device.rtr('item-rtr', 'item', 'item', 'item.set', 'item.mode', 'item.night', 'item.frost', 'item.state') }}","{{ plot.period('item-plot1', 'item', 'avg','6h') }}","{{ plot.period('item-plot2', 'item', 'min','6h') }}"
[[[[set]]]]
type = num
value = '21.0'
history = true
visu = yes
sv_widget = "{{ basic.float('item', 'item') }}"
[[[[mode]]]]
type = num
value = '1'
history = true
visu = yes
sv_widget = "{{ basic.float('item', 'item') }}"
[[[[night]]]]
type = num
value = '1'
history = true
visu = yes
sv_widget = "{{ basic.float('item', 'item') }}"
[[[[frost]]]]
type = num
value = '1'
history = true
visu = yes
sv_widget = "{{ basic.float('item', 'item') }}"
[[[[state]]]]
type = num
value = '1'
history = true
visu = yes
sv_widget = "{{ basic.float('item', 'item') }}"
Code:
2013-08-22 19:46:46,285 SmartHome.py INFO Start SmartHome.py 0.9-18-g86b5a20 -- smarthome.py:__init__:192
2013-08-22 19:46:46,289 SmartHome.py DEBUG Python 2.7.3 -- smarthome.py:__init__:193
2013-08-22 19:46:46,294 SmartHome.py INFO Init Scheduler -- scheduler.py:__init__:53
2013-08-22 19:46:46,298 SmartHome.py INFO Init Plugins -- smarthome.py:__init__:208
2013-08-22 19:46:46,310 Scheduler DEBUG creating 5 workers -- scheduler.py:run:59
2013-08-22 19:46:46,320 SmartHome.py DEBUG Plugin: knx -- plugin.py:__init__:42
2013-08-22 19:46:46,364 SmartHome.py DEBUG Plugin: ow -- plugin.py:__init__:42
2013-08-22 19:46:46,380 SmartHome.py INFO Onewire: connected to 192.168.2.21:4304 -- __init__.py:connect:67
2013-08-22 19:46:46,386 SmartHome.py DEBUG Plugin: cli -- plugin.py:__init__:42
2013-08-22 19:46:46,398 SmartHome.py DEBUG Plugin: visu -- plugin.py:__init__:42
2013-08-22 19:46:46,484 SmartHome.py DEBUG Plugin: sql -- plugin.py:__init__:42
2013-08-22 19:46:46,511 SmartHome.py DEBUG SQLite 3.7.13 -- __init__.py:__init__:60
2013-08-22 19:46:46,538 SmartHome.py DEBUG sqlite next time: 2013-08-23 03:02:00+02:00 -- scheduler.py:_next_time:243
2013-08-22 19:46:46,541 SmartHome.py DEBUG Plugin: rrd -- plugin.py:__init__:42
2013-08-22 19:46:46,647 SmartHome.py INFO Init Items -- smarthome.py:__init__:210
2013-08-22 19:46:46,699 SmartHome.py INFO Start Plugins -- plugin.py:start:63
2013-08-22 19:46:46,707 ow DEBUG 1w-disc next time: 2013-08-22 19:46:46+02:00 -- scheduler.py:_next_time:243
2013-08-22 19:46:46,733 rrd DEBUG rrd next time: 2013-08-22 19:48:26+02:00 -- scheduler.py:_next_time:243
2013-08-22 19:46:46,737 SmartHome.py INFO Start Logics -- logic.py:__init__:32
2013-08-22 19:46:46,739 SmartHome.py DEBUG reading logics from /usr/smarthome/etc/logic.conf -- logic.py:__init__:38
2013-08-22 19:46:46,752 SmartHome.py DEBUG Logic: hello -- logic.py:__init__:45
2013-08-22 19:46:46,806 visu DEBUG series next time: 2013-08-22 19:46:58+02:00 -- scheduler.py:_next_time:243
2013-08-22 19:46:46,812 SmartHome.py DEBUG Logic: dummy -- logic.py:__init__:45
2013-08-22 19:46:46,819 SmartHome.py DEBUG dummy next time: 2013-08-22 19:46:54+02:00 -- scheduler.py:_next_time:243
2013-08-22 19:46:46,864 sh.con DEBUG knx: enable group monitor -- __init__.py:handle_connect:110
2013-08-22 19:46:46,933 1w-disc INFO 1-Wire: 28.AFADE0040000 with sensors: T11, T10, T, T12, T9 -- __init__.py:_discovery:390
2013-08-22 19:46:46,935 sh.gc DEBUG Garbage collector: collected 89 objects. -- smarthome.py:_garbage_collection:345
2013-08-22 19:46:47,065 Scheduler DEBUG 1w-disc next time: 2013-08-22 19:56:47+02:00 -- scheduler.py:_next_time:243
2013-08-22 19:46:47,092 sh.con INFO KNX: connected to 127.0.0.1:6720 -- my_asynchat.py:connect:69
2013-08-22 19:46:47,123 Scheduler DEBUG sh.gc next time: 2013-08-23 02:04:00+02:00 -- scheduler.py:_next_time:243
2013-08-22 19:46:47,214 ow DEBUG 1w-sen next time: 2013-08-22 19:46:47+02:00 -- scheduler.py:_next_time:243
2013-08-22 19:46:47,532 Scheduler DEBUG 1w-sen next time: 2013-08-22 19:51:47+02:00 -- scheduler.py:_next_time:243
2013-08-22 19:46:48,079 1w-sen DEBUG Keller.AZ.temperatur = 30.6875 via 1-Wire /bus.1/28.AFADE0040000/temperature -- item.py:_update:219
2013-08-22 19:46:49,172 1w-sen DEBUG cycle takes 1.84283089638 seconds -- __init__.py:_sensor_cycle:365
2013-08-22 19:46:50,177 hello INFO Hello World! -- hello.py:<module>:3
2013-08-22 19:46:54,197 dummy DEBUG Keller.AZ.temperatur.set = 23 via Logic None -- item.py:_update:219
2013-08-22 19:46:54,397 Scheduler DEBUG dummy next time: 2013-08-22 19:51:54+02:00 -- scheduler.py:_next_time:243
2013-08-22 19:46:58,239 Scheduler DEBUG series next time: 2013-08-22 19:47:08+02:00 -- scheduler.py:_next_time:243
2013-08-22 19:47:08,337 Scheduler DEBUG series next time: 2013-08-22 19:47:18+02:00 -- scheduler.py:_next_time:243
2013-08-22 19:47:12,706 SmartHome.py INFO WebSocket: incoming connection from 192.168.2.8:56674 -- __init__.py:handle_accept:117
2013-08-22 19:47:12,932 SmartHome.py DEBUG 192.168.2.8:56674 sent '{"cmd":"proto","ver":2}' -- __init__.py:json_parse:292
2013-08-22 19:47:12,941 SmartHome.py DEBUG 192.168.2.8:56674 sent '{"cmd":"monitor","items":["Keller.AZ.temperatur.avg.1d.0","Keller.AZ.temperatur.set.avg.1d.0","Keller.AZ.temperatur.state.avg.1d.0","Keller.AZ.temperatur","Keller.AZ.temperatur.set","Keller.AZ.temperatur.mode","Keller.AZ.temperatur.night","Keller.AZ.temperatur.frost","Keller.AZ.temperatur.state","Keller.AZ.temperatur.avg.6h.0","Keller.AZ.temperatur.min.6h.0"]}' -- __init__.py:json_parse:292
2013-08-22 19:47:12,945 SmartHome.py INFO Client 192.168.2.8:56674 requested invalid item: Keller.AZ.temperatur.min.6h.0 -- __init__.py:json_parse:316
2013-08-22 19:47:12,950 SmartHome.py INFO Client 192.168.2.8:56674 requested invalid item: Keller.AZ.temperatur.set.avg.1d.0 -- __init__.py:json_parse:316
2013-08-22 19:47:12,955 SmartHome.py INFO Client 192.168.2.8:56674 requested invalid item: Keller.AZ.temperatur.avg.1d.0 -- __init__.py:json_parse:316
2013-08-22 19:47:12,959 SmartHome.py INFO Client 192.168.2.8:56674 requested invalid item: Keller.AZ.temperatur.state.avg.1d.0 -- __init__.py:json_parse:316
2013-08-22 19:47:12,962 SmartHome.py INFO Client 192.168.2.8:56674 requested invalid item: Keller.AZ.temperatur.avg.6h.0 -- __init__.py:json_parse:316
2013-08-22 19:47:12,966 SmartHome.py DEBUG 192.168.2.8:56674 sent '{"cmd":"series","item":"Keller.AZ.temperatur","series":"avg","start":"1d"}' -- __init__.py:json_parse:292
2013-08-22 19:47:13,081 SmartHome.py DEBUG 192.168.2.8:56674 sent '{"cmd":"series","item":"Keller.AZ.temperatur.set","series":"avg","start":"1d"}' -- __init__.py:json_parse:292
2013-08-22 19:47:13,128 SmartHome.py DEBUG 192.168.2.8:56674 sent '{"cmd":"series","item":"Keller.AZ.temperatur.state","series":"avg","start":"1d"}' -- __init__.py:json_parse:292
2013-08-22 19:47:13,158 SmartHome.py DEBUG 192.168.2.8:56674 sent '{"cmd":"series","item":"Keller.AZ.temperatur","series":"avg","start":"6h"}' -- __init__.py:json_parse:292
2013-08-22 19:47:13,216 SmartHome.py DEBUG 192.168.2.8:56674 sent '{"cmd":"series","item":"Keller.AZ.temperatur","series":"min","start":"6h"}' -- __init__.py:json_parse:292
2013-08-22 19:47:18,240 Scheduler DEBUG series next time: 2013-08-22 19:47:28+02:00 -- scheduler.py:_next_time:243
Any ideas?
Gruß
Georg



Bitte weitermachen und die kleinen Anregungen aufnehmen!
Kommentar