<html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=utf-8"><meta name=Generator content="Microsoft Word 15 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri",sans-serif;}
.MsoChpDefault
{mso-style-type:export-only;}
@page WordSection1
{size:612.0pt 792.0pt;
margin:70.85pt 70.85pt 2.0cm 70.85pt;}
div.WordSection1
{page:WordSection1;}
--></style></head><body lang=DE><div class=WordSection1><p class=MsoNormal>Nabend oder Moin,</p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>ich erhalte eine SQL Fehlermeldung „SQLSTATE[22012]: Division by Zero“. Ich vermute sehr stark das es an den aggtime und interval liegt. Kann da bitte jemand mal auf meine conf schauen?</p><p class=MsoNormal>Welche Werte würden denn dort sonst Sinn machen?</p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>{</p><p class=MsoNormal> "retry": 0,</p><p class=MsoNormal> "daemon": true,</p><p class=MsoNormal> "verbosity": 0,</p><p class=MsoNormal> "log": "/var/log/vzlogger.log",</p><p class=MsoNormal> "push": [],</p><p class=MsoNormal> "local": {</p><p class=MsoNormal> "enabled": false,</p><p class=MsoNormal> "port": 8080,</p><p class=MsoNormal> "index": false,</p><p class=MsoNormal> "timeout": 0,</p><p class=MsoNormal> "buffer": 0</p><p class=MsoNormal> },</p><p class=MsoNormal> "meters": [</p><p class=MsoNormal> {</p><p class=MsoNormal> "enabled": true,</p><p class=MsoNormal> "allowskip": false,</p><p class=MsoNormal> "interval": 5,</p><p class=MsoNormal> "aggtime": 10,</p><p class=MsoNormal> "aggfixedinterval": true,</p><p class=MsoNormal> "channels": [</p><p class=MsoNormal> {</p><p class=MsoNormal> "api": "volkszaehler",</p><p class=MsoNormal> "uuid": "xxxxx-8d06-11e9-a4c8-xxxxxx", //Haus Q3D</p><p class=MsoNormal> "middleware": "http://192.168.178.22:81/middleware.php",</p><p class=MsoNormal> "identifier": "1-0:1.7.0", //Wirkleistung 1-0:1.7.0 0.2868</p><p class=MsoNormal> //"secretKey": "",</p><p class=MsoNormal> //"type": "device",</p><p class=MsoNormal> //"scaler": 1000,</p><p class=MsoNormal> "aggmode": "AVG", //"AVG", // "AVG" Der Mittelwert für Leistung, "MAX" für Zähler, "SUM" für Counter</p><p class=MsoNormal> "duplicates": 0</p><p class=MsoNormal> }</p><p class=MsoNormal> ],</p><p class=MsoNormal> "protocol": "d0",</p><p class=MsoNormal> "device": "/dev/usb-ir-lesekopf0",</p><p class=MsoNormal> "dump_file": "",</p><p class=MsoNormal> //"pullseq": "2f3f210d0a",</p><p class=MsoNormal> //"ackseq": "auto",</p><p class=MsoNormal> "baudrate": 9600,</p><p class=MsoNormal> //"baudrate_read": 9600,</p><p class=MsoNormal> "parity": "7e1"</p><p class=MsoNormal> //"wait_sync": "off",</p><p class=MsoNormal> //"read_timeout": 10,</p><p class=MsoNormal> //"baudrate_change_delay": 0</p><p class=MsoNormal> },</p><p class=MsoNormal> {</p><p class=MsoNormal> "enabled": true,</p><p class=MsoNormal> "allowskip": false,</p><p class=MsoNormal> "interval": 30,</p><p class=MsoNormal> "aggtime": 60, // >interval</p><p class=MsoNormal> "aggfixedinterval": true,</p><p class=MsoNormal> "channels": [</p><p class=MsoNormal> {</p><p class=MsoNormal> "api": "volkszaehler",</p><p class=MsoNormal> "uuid": "´xxxxxx-8d05-11e9-bb53-xxxxxxxx", //WP Elster AS1440 0.1833</p><p class=MsoNormal> "middleware": "http://192.168.178.22:81/middleware.php",</p><p class=MsoNormal> "identifier": "1-1:1.7.0",</p><p class=MsoNormal> "aggmode": "AVG", // "AVG" Der Mittelwert für Leistung, "MAX" für Zähler, "SUM" für Counter</p><p class=MsoNormal> "secretKey": "",</p><p class=MsoNormal> "type": "device",</p><p class=MsoNormal> "scaler": 1,</p><p class=MsoNormal> "duplicates": 0</p><p class=MsoNormal> }</p><p class=MsoNormal> ],</p><p class=MsoNormal> "protocol": "d0",</p><p class=MsoNormal> "device": "/dev/usb-ir-lesekopf1", //</p><p class=MsoNormal> "dump_file": "",</p><p class=MsoNormal> "pullseq": "2F3F210D0A",</p><p class=MsoNormal> "ackseq": "auto",</p><p class=MsoNormal> "baudrate": 300,</p><p class=MsoNormal> "baudrate_read": 9600,</p><p class=MsoNormal> "parity": "7e1",</p><p class=MsoNormal> //"wait_sync": "off",</p><p class=MsoNormal> "baudrate_change_delay": 500,</p><p class=MsoNormal> "read_timeout": 100</p><p class=MsoNormal> }</p><p class=MsoNormal> ]</p><p class=MsoNormal>}</p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>LG Rene</p><p class=MsoNormal><o:p> </o:p></p></div></body></html>