Hallo Leute,
Meine Umgebung:
SMARTVISU Version v2.8
/**
* -----------------------------------------------------------------------------
* @package smartVisu
* @author Martin Gleiß
* @copyright 2012 - 2015
* @license GPL [http://www.gnu.de]
* -----------------------------------------------------------------------------
*/
HISTORY
--------------------------------------------------------------------------------
v 2.8
- new widget: basic.multistate
- new widget: plot.multiaxes
- new widget: device.codepad
- new widget: status.collapse
- new widget: status.popup
v 2.7 03.11.13
- new: SmartHome.py Montior page
- new: animations on/off for better performance on slow devices
- new model house: alber, as eibd-driver example by Raik Alber
..
SMARTHOME Version 1.1.0.man
root@raspberrypi:/usr/local/smarthome/bin# ./smarthome.py -V
1.1.0.man
root@raspberrypi:/usr/local/smarthome/bin#
sqlite plugin Version 3 ...
#!/usr/bin/env python3
# vim: set encoding=utf-8 tabstop=4 softtabstop=4 shiftwidth=4 expandtab
################################################## #######################
# Copyright 2015 Marcus Popp marcus@popp.mx
#
# Personal and non-commercial use only, redistribution is prohibited.
################################################## #######################
import logging
import sqlite3
import datetime
import functools
import time
import threading
logger = logging.getLogger('')
class SQL():
_version = 3
Habe meine Umgebung von linknx auf smarthome.py umgebaut wegen der Möglichkeit der PLOTs.
Soweit läuft alles bekomme nun über smarthome.py aktueller Temperaturwerte usw.
SQLLite Geschichte funktioniert auch, Daten sind vorhanden in der Datenbank vorhanden.
sqlite> select * from num;
1441538928640|KELLER.RaumPumpe.PoolSolarVLTemperat ur|63554|64.3856348931617|0.0|66.64|0.981889416873 84
1441538992194|KELLER.RaumPumpe.PoolSolarVLTemperat ur|68304|63.5490946357461|62.8|64.64|1.0
1441538928670|AUSSEN.Garten.Temperatur|142411|17.4 583704910435|0.0|17.6|0.991952868809291
1441539060498|KELLER.RaumPumpe.PoolSolarVLTemperat ur|62363|61.6319753700111|61.04|62.4|1.0
1441539122861|KELLER.RaumPumpe.PoolSolarVLTemperat ur|76214|59.7692465951138|59.04|60.64|1.0
1441538928545|env.system.load|311862|0.06731278578 34555|0.0|0.07|0.961611225477936
1441539199075|KELLER.RaumPumpe.PoolSolarVLTemperat ur|64375|58.040342368932|57.52|58.64|1.0
sqlite>
sqlite>
Also 5 Werte sind vorhanden für KELLER.RaumPumpe.PoolSolarVLTemperatur
Ich möchte nun eine einfachen PLOT für KELLER.RaumPumpe.PoolSolarVLTemperatur über SMARTVISU anzeigen lassen
{{ plot.period('p1', 'KELLER.RaumPumpe.PoolSolarVLTemperatur', 'avg', '3h') }}
Bekomme aber folgenden Fehler beim Aufruf der WEB Seite -> unsupported operand type(s) for /: 'int' :
2015-09-06 13:44:34,412 DEBUG Main 192.168.158.112:51166 sent '{"cmd":"series","item":"KELLER.RaumPumpe.PoolSola rVLTemperatur","series":"avg","start":"3h","count" :"100"}' -- __init__.py:json_parse:272
2015-09-06 13:44:34,415 ERROR Main Problem fetching series for KELLER.RaumPumpe.PoolSolarVLTemperatur: unsupported operand type(s) for /: 'int' and 'str' -- __init__.py:json_parse:330
Traceback (most recent call last):
File "/usr/local/smarthome/plugins/visu/__init__.py", line 328, in json_parse
reply = self.items[path]['item'].series(series, start, end, count)
File "/usr/local/smarthome/plugins/sqlite/__init__.py", line 312, in _series
step = int((iend - istart) / count)
TypeError: unsupported operand type(s) for /: 'int' and 'str'
2015-09-06 13:44:35,123 DEBUG Main knx: 1.1.47 set 6/1/6 to 54.0 -- __init__.py
arse_telegram:198
2015-09-06 13:44:35,124 DEBUG Main Item KELLER.RaumPumpe.PoolSolarVLTemperatur = 54.0 via KNX 1.1.47 6/1/6 -- item.py:__update:373
Was kann das sein ?
Danke für eure Unterstützung
Markus
Meine Umgebung:
SMARTVISU Version v2.8
/**
* -----------------------------------------------------------------------------
* @package smartVisu
* @author Martin Gleiß
* @copyright 2012 - 2015
* @license GPL [http://www.gnu.de]
* -----------------------------------------------------------------------------
*/
HISTORY
--------------------------------------------------------------------------------
v 2.8
- new widget: basic.multistate
- new widget: plot.multiaxes
- new widget: device.codepad
- new widget: status.collapse
- new widget: status.popup
v 2.7 03.11.13
- new: SmartHome.py Montior page
- new: animations on/off for better performance on slow devices
- new model house: alber, as eibd-driver example by Raik Alber
..
SMARTHOME Version 1.1.0.man
root@raspberrypi:/usr/local/smarthome/bin# ./smarthome.py -V
1.1.0.man
root@raspberrypi:/usr/local/smarthome/bin#
sqlite plugin Version 3 ...
#!/usr/bin/env python3
# vim: set encoding=utf-8 tabstop=4 softtabstop=4 shiftwidth=4 expandtab
################################################## #######################
# Copyright 2015 Marcus Popp marcus@popp.mx
#
# Personal and non-commercial use only, redistribution is prohibited.
################################################## #######################
import logging
import sqlite3
import datetime
import functools
import time
import threading
logger = logging.getLogger('')
class SQL():
_version = 3
Habe meine Umgebung von linknx auf smarthome.py umgebaut wegen der Möglichkeit der PLOTs.
Soweit läuft alles bekomme nun über smarthome.py aktueller Temperaturwerte usw.
SQLLite Geschichte funktioniert auch, Daten sind vorhanden in der Datenbank vorhanden.
sqlite> select * from num;
1441538928640|KELLER.RaumPumpe.PoolSolarVLTemperat ur|63554|64.3856348931617|0.0|66.64|0.981889416873 84
1441538992194|KELLER.RaumPumpe.PoolSolarVLTemperat ur|68304|63.5490946357461|62.8|64.64|1.0
1441538928670|AUSSEN.Garten.Temperatur|142411|17.4 583704910435|0.0|17.6|0.991952868809291
1441539060498|KELLER.RaumPumpe.PoolSolarVLTemperat ur|62363|61.6319753700111|61.04|62.4|1.0
1441539122861|KELLER.RaumPumpe.PoolSolarVLTemperat ur|76214|59.7692465951138|59.04|60.64|1.0
1441538928545|env.system.load|311862|0.06731278578 34555|0.0|0.07|0.961611225477936
1441539199075|KELLER.RaumPumpe.PoolSolarVLTemperat ur|64375|58.040342368932|57.52|58.64|1.0
sqlite>
sqlite>
Also 5 Werte sind vorhanden für KELLER.RaumPumpe.PoolSolarVLTemperatur
Ich möchte nun eine einfachen PLOT für KELLER.RaumPumpe.PoolSolarVLTemperatur über SMARTVISU anzeigen lassen
{{ plot.period('p1', 'KELLER.RaumPumpe.PoolSolarVLTemperatur', 'avg', '3h') }}
Bekomme aber folgenden Fehler beim Aufruf der WEB Seite -> unsupported operand type(s) for /: 'int' :
2015-09-06 13:44:34,412 DEBUG Main 192.168.158.112:51166 sent '{"cmd":"series","item":"KELLER.RaumPumpe.PoolSola rVLTemperatur","series":"avg","start":"3h","count" :"100"}' -- __init__.py:json_parse:272
2015-09-06 13:44:34,415 ERROR Main Problem fetching series for KELLER.RaumPumpe.PoolSolarVLTemperatur: unsupported operand type(s) for /: 'int' and 'str' -- __init__.py:json_parse:330
Traceback (most recent call last):
File "/usr/local/smarthome/plugins/visu/__init__.py", line 328, in json_parse
reply = self.items[path]['item'].series(series, start, end, count)
File "/usr/local/smarthome/plugins/sqlite/__init__.py", line 312, in _series
step = int((iend - istart) / count)
TypeError: unsupported operand type(s) for /: 'int' and 'str'
2015-09-06 13:44:35,123 DEBUG Main knx: 1.1.47 set 6/1/6 to 54.0 -- __init__.py

2015-09-06 13:44:35,124 DEBUG Main Item KELLER.RaumPumpe.PoolSolarVLTemperatur = 54.0 via KNX 1.1.47 6/1/6 -- item.py:__update:373
Was kann das sein ?
Danke für eure Unterstützung
Markus
Kommentar