[vz-users] mqtt
Frank Richter
frank.richter83 at gmail.com
Tue Jul 9 20:07:02 CEST 2019
Dein MQTT-Block ist auskommentiert ;-)
(alles zwischen /* und */ ist ein Kommentar)
Dirk <d at dbcons.de> schrieb am Di., 9. Juli 2019, 19:59:
> cat /etc/vzlogger.conf
>
> // Quelle
> https://wiki.volkszaehler.org/hardware/channels/meters/power/edl-ehz/iskraemeco_mt174
>
> {
> // General settings
> "daemon": true, // run periodically
> "verbosity": 3, // log verbosity (0=log_alert, 1=log_error,
> 3=log_warning, 5=log_info, 10=log_debug, 15=log_finest)
> "log": "/run/vz.log", // log file, optional
> "retry": 0, // http retry delay in seconds
>
> // Build-in HTTP server
> "local": {
> "enabled": false, // enable local HTTPd for serving live readings
> "port": 8080, // TCP port for local HTTPd
> "index": true, // provide index listing of available channels
> if no UUID was requested
> "timeout": 0, // timeout for long polling comet requests in
> seconds (0 disables comet)
> "buffer": 0 // HTTPd buffer configuration for serving
> readings, default -1
> // >0: number of seconds of readings to serve
> // <0: number of tuples to server per
> channel (e.g. -3 will serve 3 tuples)
> },
>
> /*
> // mqtt client support (if ENABLE_MQTT set at cmake generation)
> "mqtt": {
> "enabled": true, // enable mqtt client. needs host and port as
> well
> "host": "192.168.178.51", // mqtt server addr
> "port": 1883, // 1883 for unencrypted, 8883 enc, 8884 enc cert
> needed,
> "cafile": "", // optional file with server CA
> "capath": "", // optional path for server CAs. see mosquitto.conf.
> Specify only cafile or capath
> "certfile": "", // optional file for your client certificate (e.g.
> client.crt)
> "keyfile": "", // optional path for your client certficate private
> key (e.g. client.key)
> "keypass": "", // optional password for your private key
> "keepalive": 30, // optional keepalive in seconds.
> "topic": "vzlogger/data", // optional topic dont use $ at start
> and no / at end
> "user": "user", // optional user name for the mqtt server
> "pass": "pass", // optional password for the mqtt server
> "retain": false, // optional use retain message flag
> "rawAndAgg": false, // optional publish raw values even if agg
> mode is used
> },
> */
>
> // Meter configuration
> "meters": [
> {
> "enabled": true,
> "allowskip": false,
> "interval": -1,
> "aggtime": -1,
> "aggfixedinterval": false,
> "channels": [
> {
> "uuid": "07d0ec90-913d-11e9-837e-a9989b855d87",
> "identifier": "1-0:1.8.0",
> "api": "volkszaehler",
> "middleware": "http://localhost/middleware.php"
> <http://localhost/middleware.php>,
> "aggmode": "none",
> "duplicates": 0
> }
> ],
> "protocol": "d0",
> "device": "/dev/ttyUSB0",
> "pullseq": "2F3F210D0A",
> "ackseq": "063035300d0a",
> "baudrate": 300,
> "baudrate_read": 9600,
> "parity": "7e1",
> "wait_sync": "off",
> "read_timeout": 10,
> "baudrate_change_delay": 0
> }
> ]
> }
>
>
> user + pass geändert !!!
>
>
> Dirk
> Am 09.07.2019 um 17:15 schrieb Frank Richter:
>
> Bitte an die Liste antworten!
>
> Dirk <d at dbcons.de> schrieb am Di., 9. Juli 2019, 16:50:
>
>> /usr/local/bin/vzlogger -V
>> 0.7.0
>> based on git version: heads/master-0-g79402aeb96
>> last commit date: Wed, 30 Jan 2019 15:56:19 +0100
>>
>> Am 09.07.2019 um 16:47 schrieb Frank Richter:
>>
>> Hi Dirk,
>>
>> wie aktuell ist dein vzlogger?
>>
>> vzlogger -V
>>
>> Grüße
>> Frank
>>
>>
>>
>>
>> Dirk <d at dbcons.de> schrieb am Di., 9. Juli 2019, 16:42:
>>
>>> Hi,
>>>
>>>
>>> ich verwende das raspian image is da mqtt schon mit drinn ?
>>>
>>>
>>> ich habe im vzlogger.conf
>>>
>>>
>>> "mqtt": {
>>> "enabled": true, // enable mqtt client. needs host and port as
>>> well
>>> + host + user +password gesetzt
>>>
>>>
>>> und den logger neu gestartet. im mosquitto log meldet sich der logger
>>> nicht an und in vz.log ( verbose 15 stet auch nix)
>>>
>>> was mache ich falsch ?
>>>
>>>
>>>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://demo.volkszaehler.org/pipermail/volkszaehler-users/attachments/20190709/e21bcc46/attachment-0001.html>
More information about the volkszaehler-users
mailing list