<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">Hallo Frank,<div class="">danke, dann lasse ich es so. Das zusammengeschustert war auch auf mein Copy und Paste zu verstehen ðŸ˜‰ Nichts für ungut.</div><div class=""><br class=""></div><div class="">Viele Grüße</div><div class="">Sebastian<br class=""><div><br class=""><blockquote type="cite" class=""><div class="">Am 18.02.2019 um 21:25 schrieb Frank Richter <<a href="mailto:frank.richter83@gmail.com" class="">frank.richter83@gmail.com</a>>:</div><br class="Apple-interchange-newline"><div class=""><div dir="auto" class=""><div dir="auto" class="">Hallo Sebastian,<div dir="auto" class=""><br class=""></div><div dir="auto" class="">vzlogger kennt grundsätzlich keine für mehrere Channels gültigen Ziele, das ist für die anderen APIs auch nicht anders.</div><div dir="auto" class=""><br class=""></div><div dir="auto" class="">Wenn du das "zusammengeschustert" findest, darfst du gerne eine bessere Lösung entwickeln, ist ja schließlich alles Open Source hier ;-)</div><div dir="auto" class=""><br class=""></div><div dir="auto" class="">Grüße</div><div dir="auto" class="">Frank</div><div dir="auto" class=""><br class=""></div></div><br class=""><div class="gmail_quote"><div dir="ltr" class="">Am Mo., 18. Feb. 2019, 19:36 hat Sebastian Pricker <<a href="mailto:mail@pricker.net" target="_blank" rel="noreferrer" class="">mail@pricker.net</a>> geschrieben:<br class=""></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word;line-break:after-white-space" class=""><div dir="auto" style="word-wrap:break-word;line-break:after-white-space" class="">Hallo zusammen,</div><div dir="auto" style="word-wrap:break-word;line-break:after-white-space" class=""><br class=""></div><div dir="auto" style="word-wrap:break-word;line-break:after-white-space" class="">ich springe gerade ebenfalls auf den influxDB Zug. Zur Zeit fahre ich noch zweigleisig, also ich schreibe 3 Stände mit dem vzlogger in die MySQL DB und die gleichen 3 Stände in die influxDB. Beim letzteren verwende ich fake UUIDs, ich war nicht sicher, ob es Probleme gibt, wenn ich die gleichen UUIDs verwende.</div><div dir="auto" style="word-wrap:break-word;line-break:after-white-space" class=""><br class=""></div><div dir="auto" style="word-wrap:break-word;line-break:after-white-space" class="">DAs sieht mir zur Zeit noch sehr zusammengeschustert aus. Muss ich wirklich die login Daten der influxDB bei jedem Kanal eintragen oder geht es auch einfacher?</div><div dir="auto" style="word-wrap:break-word;line-break:after-white-space" class="">Als Frontend nutze ich nun Grafana, da ich es ohnehin schon für diverse Smart Home Geräte im Haushalt nutze.</div><div dir="auto" style="word-wrap:break-word;line-break:after-white-space" class=""><br class=""></div><div dir="auto" style="word-wrap:break-word;line-break:after-white-space" class="">Hier meine Konfiguration:</div><div dir="auto" style="word-wrap:break-word;line-break:after-white-space" class="">Viele Grüße</div><div dir="auto" style="word-wrap:break-word;line-break:after-white-space" class="">Sebastian<br class=""><div class=""><br class=""></div><div class=""><div class="">{</div><div class="">"retry" : 3,</div><div class="">"daemon": true,</div><div class="">"verbosity" : 1,</div><div class="">"log" : "/var/log/vzlogger.log",</div><div class=""> </div><div class="">"local" : {</div><div class="">         "enabled" : false,</div><div class="">         "port" : 8080,</div><div class="">         "index" : false,</div><div class="">         "timeout" : 30,</div><div class="">         "buffer" : 600</div><div class="">},</div><div class=""><br class=""></div><div class="">"push": [</div><div class="">  {</div><div class="">    "url": "<a href="http://127.0.0.1:5582/" rel="noreferrer noreferrer" target="_blank" class="">http://127.0.0.1:5582</a>"</div><div class="">  }</div><div class="">],</div><div class=""> </div><div class="">"meters" : [{</div><div class="">         "protocol" : "sml",</div><div class=""><span class="m_981911195323163116m_9011378637468120520Apple-tab-span" style="white-space:pre-wrap">           </span>"use_local_time" : true,</div><div class="">         "enabled" : true,</div><div class="">         "device" : "/dev/ttyUSB0",</div><div class="">         "parity" : "8N1",</div><div class="">         "baudrate" : 9600,</div><div class="">         "aggtime" : 60,</div><div class="">         "aggfixedinterval" : false,</div><div class="">         "channels": [{</div><div class=""><span class="m_981911195323163116m_9011378637468120520Apple-tab-span" style="white-space:pre-wrap">                              </span>"api": "volkszaehler",</div><div class=""><span class="m_981911195323163116m_9011378637468120520Apple-tab-span" style="white-space:pre-wrap">                          </span>"aggmode": "max",</div><div class="">                 "uuid" : â€žuuid",</div><div class="">                 "middleware" : "<a href="http://localhost/middleware.php" rel="noreferrer noreferrer" target="_blank" class="">http://localhost/middleware.php</a>",</div><div class="">                 "identifier" : "1-0:1.8.0*255" /* Wirkarbeit Lieferung +A */</div><div class="">          },</div><div class="">        {</div><div class="">          <span class="m_981911195323163116m_9011378637468120520Apple-tab-span" style="white-space:pre-wrap">            </span>"api": "volkszaehler",</div><div class=""><span class="m_981911195323163116m_9011378637468120520Apple-tab-span" style="white-space:pre-wrap">                          </span>"aggmode": "avg",</div><div class="">         <span class="m_981911195323163116m_9011378637468120520Apple-tab-span" style="white-space:pre-wrap">             </span>"uuid": "uuid",</div><div class=""><span class="m_981911195323163116m_9011378637468120520Apple-tab-span" style="white-space:pre-wrap">                         </span>"middleware": "<a href="http://localhost/middleware.php" rel="noreferrer noreferrer" target="_blank" class="">http://localhost/middleware.php</a>",</div><div class="">          <span class="m_981911195323163116m_9011378637468120520Apple-tab-span" style="white-space:pre-wrap">         </span>"identifier": "1-0:16.7.0*255" /* Leistung */</div><div class="">        },</div><div class="">        {</div><div class="">          <span class="m_981911195323163116m_9011378637468120520Apple-tab-span" style="white-space:pre-wrap">            </span>"api": "volkszaehler",</div><div class=""><span class="m_981911195323163116m_9011378637468120520Apple-tab-span" style="white-space:pre-wrap">                          </span>"duplicates": 3600,</div><div class=""><span class="m_981911195323163116m_9011378637468120520Apple-tab-span" style="white-space:pre-wrap">                               </span>"aggmode": "max",</div><div class="">          <span class="m_981911195323163116m_9011378637468120520Apple-tab-span" style="white-space:pre-wrap">               </span>"uuid": "uuid",</div><div class=""><span class="m_981911195323163116m_9011378637468120520Apple-tab-span" style="white-space:pre-wrap">                         </span>"middleware": "<a href="http://localhost/middleware.php" rel="noreferrer noreferrer" target="_blank" class="">http://localhost/middleware.php</a>",</div><div class="">          <span class="m_981911195323163116m_9011378637468120520Apple-tab-span" style="white-space:pre-wrap">         </span>"identifier": "1-0:2.8.0*255" /* Wirkarbeit Lieferung -A */</div><div class="">        },</div><div class=""><span class="m_981911195323163116m_9011378637468120520Apple-tab-span" style="white-space:pre-wrap">             </span>{</div><div class="">                "api": "influxdb", // use the InfluxDB api</div><div class="">                "uuid": â€žfake uuid", // use the uuid command to generate this</div><div class="">                "identifier" : "1-0:16.7.0*255", // OBIS code for "power" </div><div class="">                "host": "<a href="http://192.168.178.63:8086/" rel="noreferrer noreferrer" target="_blank" class="">192.168.178.63:8086</a>",                       // This assumes that InfluxDB is running on localhost</div><div class="">                "database": "smartmeter",                       // Optional: make sure this database exists in InfluxDB</div><div class="">                "measurement_name": "Leistung",         // Optional: It is recommended that all your meters have the same InfluxDB measurement name</div><div class="">                "tags": "LeistungAktuell",                 // Optional: Additional tags to append when inserting data</div><div class="">                "username": "sebastian",                        // Optional: When InfluxDB Auth is enabled you need to set the correct user and password</div><div class="">                "password": â€žpass",</div><div class="">                //"max_batch_inserts": 4500,                    // Optional: Max number of measurements per request. No need to change this</div><div class="">                //"max_buffer_size": 450000,                    // Optional: Max number of measurements to be cached when InfluxDB is not available</div><div class="">                //"timeout": 30,                                // Optional: Time in seconds after which requests to InfluxDB time out</div><div class="">            },</div><div class=""><span class="m_981911195323163116m_9011378637468120520Apple-tab-span" style="white-space:pre-wrap">            </span>{</div><div class="">                "api": "influxdb", // use the InfluxDB api</div><div class="">                "uuid": â€žfake uuid", // use the uuid command to generate this</div><div class="">                "identifier" : "1-0:2.8.0*255", // OBIS code for "power" </div><div class="">                "host": "<a href="http://192.168.178.63:8086/" rel="noreferrer noreferrer" target="_blank" class="">192.168.178.63:8086</a>",                       // This assumes that InfluxDB is running on localhost</div><div class="">                "database": "smartmeter",                       // Optional: make sure this database exists in InfluxDB</div><div class="">                "measurement_name": "Erzeugung",         // Optional: It is recommended that all your meters have the same InfluxDB measurement name</div><div class="">                "tags": "Erzeugung",                 // Optional: Additional tags to append when inserting data</div><div class="">                "username": "sebastian",                        // Optional: When InfluxDB Auth is enabled you need to set the correct user and password</div><div class="">                "password": â€žpass",</div><div class="">                //"max_batch_inserts": 4500,                    // Optional: Max number of measurements per request. No need to change this</div><div class="">                //"max_buffer_size": 450000,                    // Optional: Max number of measurements to be cached when InfluxDB is not available</div><div class="">                //"timeout": 30,                                // Optional: Time in seconds after which requests to InfluxDB time out</div><div class="">            },</div><div class=""><span class="m_981911195323163116m_9011378637468120520Apple-tab-span" style="white-space:pre-wrap">          </span>{</div><div class="">                "api": "influxdb", // use the InfluxDB api</div><div class="">                "uuid": â€žfake uuid", // use the uuid command to generate this</div><div class="">                "identifier" : "1-0:1.8.0*255", // OBIS code for "power" </div><div class="">                "host": "<a href="http://192.168.178.63:8086/" rel="noreferrer noreferrer" target="_blank" class="">192.168.178.63:8086</a>",                       // This assumes that InfluxDB is running on localhost</div><div class="">                "database": "smartmeter",                       // Optional: make sure this database exists in InfluxDB</div><div class="">                "measurement_name": "Bezug",         // Optional: It is recommended that all your meters have the same InfluxDB measurement name</div><div class="">                "tags": "Bezug",                 // Optional: Additional tags to append when inserting data</div><div class="">                "username": "sebastian",                        // Optional: When InfluxDB Auth is enabled you need to set the correct user and password</div><div class="">                "password": â€žpass",</div><div class="">                //"max_batch_inserts": 4500,                    // Optional: Max number of measurements per request. No need to change this</div><div class="">                //"max_buffer_size": 450000,                    // Optional: Max number of measurements to be cached when InfluxDB is not available</div><div class="">                //"timeout": 30,                                // Optional: Time in seconds after which requests to InfluxDB time out</div><div class="">            }</div><div class="">]</div><div class="">     }]</div><div class="">}</div></div></div></div></blockquote></div></div>
</div></blockquote></div><br class=""></div></body></html>