Advertisement
Guest User

vzlogger.conf ohne Baudratenumstellung

a guest
Dec 25th, 2014
255
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 11.59 KB | None | 0 0
  1. /**
  2. * vzlogger configuration
  3. *
  4. * use proper encoded JSON with javascript comments
  5. *
  6. * take a look at the wiki for detailed information:
  7. * http://wiki.volkszaehler.org/software/controller/vzlogger#configuration
  8. */
  9.  
  10. {
  11. "retry": 30, /* how long to sleep between failed requests, in seconds */
  12. "daemon": false, /* run periodically */
  13. "verbosity": 15, /* between 0 and 15 */
  14. "log": "/var/log/vzlogger.log", /* path to logfile, optional */
  15.  
  16. "local": {
  17. "enabled": false, /* should we start the local HTTPd for serving live readings? */
  18. "port": 8080, /* the TCP port for the local HTTPd */
  19. "index": true, /* should we provide a index listing of available channels if no UUID was requested? */
  20. "timeout": 30, /* timeout for long polling comet requests, 0 disables comet, in seconds */
  21. "buffer": 600 /* how long to buffer readings for the local interface, in seconds */
  22. },
  23.  
  24. "meters": [
  25. // {
  26. // "enabled": false, /* disabled meters will be ignored (default) */
  27. // "protocol": "sml", /* see 'vzlogger -h' for list of available protocols */
  28. // "host": "http://localhost/meinzaehler.dyndns.info:7331",
  29. // "channels": [{
  30. // "protocol": "vz", /* volkszaehler.org (default) */
  31. // "uuid": "fde8f1d0-c5d0-11e0-856e-f9e4360ced10",
  32. // "middleware": "http://localhost/middleware.php",
  33. // "identifier": "power" /* alias for '1-0:1.7.ff', see 'vzlogger -h' for list of available aliases */
  34. // }, {
  35. // "protocol": "vz", /* volkszaehler.org (default) */
  36. // "uuid": "a8da012a-9eb4-49ed-b7f3-38c95142a90c",
  37. // "middleware": "http://localhost/middleware.php",
  38. // "identifier": "counter"
  39. // }, {
  40. // "protocol": "vz", /* volkszaehler.org (default) */
  41. // "uuid": "d5c6db0f-533e-498d-a85a-be972c104b48",
  42. // "middleware": "http://localhost/middleware.php",
  43. // "identifier": "1-0:1.8.0" /* see 'vzlogger -v20' for an output with all available identifiers/OBIS ids */
  44. // }]
  45. // },
  46. // {
  47. // "enabled": false, /* disabled meters will be ignored */
  48. // "protocol": "s0",
  49. // "aggtime": 300, /* aggregate all signals and give one update to middleware every 300 seconds */
  50. // "aggfixedinterval": true, /* round all timestamps to middleware to nearest aggtime */
  51. // "device": "/dev/ttyUSB0",
  52. // "channel": {
  53. // "identifier": "Impulse", /* s0 meter knows "Impulse" and "Power" */
  54. // "uuid": "d495a390-f747-11e0-b3ca-f7890e45c7b2",
  55. // "middleware": "http://localhost/middleware.php",
  56. // "aggmode": "SUM" /* add all s0 intervals in the aggregation */
  57. // }
  58. // },
  59. {
  60. "enabled": true, /* disabled meters will be ignored (default) */
  61. "protocol": "d0", /* see 'vzlogger -h' for list of available protocols */
  62. "device": "/dev/ttyUSB0",
  63. "parity": "7E1", /* oder 8N1 */
  64. "baudrate": 300, /* oder 300 */
  65. "pullseq": "2F3F210D0A", /* Pullsequenz in 'hex' */
  66. // "ackseq": "063034310d0a", /* Antwortsequenz auf Zählerantwort,063030300d0a = 300bd, 063035300d0a = 9600bd */
  67. // "baudrate_read": 4800, /* Baudratenumschaltung auf gewünschte Baudrate, abhängig von Zählerantwort */
  68. // "aggtime": 20, /* in Sekunden */
  69. // "aggmode": "AVG", /* Mittelwert für Leistung, "MAX" für Zähler, "SUM" für Counter */
  70. // "interval": 6, /* Wartezeit in Sekunden bis neue Werte in die middleware übertragen werden */
  71. // "baudrate_read": 4800, /* Baudratenumschaltung auf gewuenschte Baudrate, abhaengig von Zaehlerantwort */
  72. // "interval": 6,
  73. // "host" : "meinzaehler.dyndns.info:7331",
  74. "channels": [{
  75. "uuid" : "a4927850-8a26-11e4-a99e-2fea847d1e2c",
  76. "middleware" : "http://localhost/middleware.php",
  77. "identifier" : "255-255:1.8.0*FF" /* Wirkarbeit gesamt use 'vzlogger -v20' to see all available identifiers/OBIS ids */
  78. },{
  79. "uuid" : "b14a53e0-8a21-11e4-9cb0-8b49f372fe31",
  80. "middleware" : "http://localhost/middleware.php",
  81. "identifier" : "255-255:1.2.1*FF" /* Leistung Tarif 1, use 'vzlogger -v20' to see all available identifiers/OBIS ids */
  82. },{
  83. "uuid" : "234c1b00-8a22-11e4-8021-67656f826e63",
  84. "middleware" : "http://localhost/middleware.php",
  85. "identifier" : "255-255:1.2.2*FF" /* Leistung Tarif 2 */
  86. },{
  87. "uuid" : "719ff9a0-8a22-11e4-a686-0590ba635f43",
  88. "middleware" : "http://localhost/middleware.php",
  89. "identifier" : "255-255:1.6.1*FF" /* Max WirkLeistung Tarif 1 */
  90. },{
  91. "uuid" : "d0611220-8a29-11e4-a572-db29af695be8",
  92. "middleware" : "http://localhost/middleware.php",
  93. "identifier" : "255-255:1.6.2*FF" /* Max WirkLeistung Tarif 2 */
  94. },{
  95. "uuid" : "32227a10-8a23-11e4-bf53-83c7fba287de",
  96. "middleware" : "http://localhost/middleware.php",
  97. "identifier" : "255-255:1.8.1*FF" /* Wirkarbeit Zählerstand Tarif 1 */
  98. }
  99. ,{
  100. "uuid" : "3621eda0-8a29-11e4-944a-c94372a09df8",
  101. "middleware" : "http://localhost/middleware.php",
  102. "identifier" : "255-255:1.8.2*FF" /* Wirkarbeit Zählerstand Tarif 2 */
  103. }
  104. ,{
  105. "uuid" : "569efad0-8a29-11e4-8c84-e5d99cc10666",
  106. "middleware" : "http://localhost/middleware.php",
  107. "identifier" : "255-255:1.8.3*FF" /* Wirkarbeit Zählerstand Tarif 3 */
  108. }
  109. ,{
  110. "uuid" : "70fce340-8a29-11e4-a0e3-7dd853e054b3",
  111. "middleware" : "http://localhost/middleware.php",
  112. "identifier" : "255-255:1.8.4*FF" /* Wirkarbeit Zählerstand Tarif 4 */
  113. },{
  114. "uuid" : "669d0620-8a2c-11e4-9faf-6d6e7cdf434c",
  115. "middleware" : "http://localhost/middleware.php",
  116. "identifier" : "255-255:1.4.1*FF" /* aktueller Leistungsmittelwert tarif1 */
  117. },{
  118. "uuid" : "a2937b10-8a2c-11e4-b6bc-9751ce336215",
  119. "middleware" : "http://localhost/middleware.php",
  120. "identifier" : "255-255:1.4.2*FF" /* aktueller Leistungsmittelwert tarif2 */
  121. }] },
  122.  
  123. // examples for non-device protocols
  124. {
  125. "enabled": false, /* disabled meters will be ignored */
  126. "protocol": "random",
  127. "interval": 2,
  128. "max": 40.0, /* has to be double! */
  129. "min": -5.0, /* has to be double! */
  130. "channel": {
  131. "uuid": "bac2e840-f72c-11e0-bedf-3f850c1e5a66",
  132. "middleware": "http://localhost/middleware.php"
  133. }
  134. },
  135. {
  136. "enabled": false, /* disabled meters will be ignored */
  137. "protocol": "file",
  138. "path": "/proc/loadavg",
  139. // "format": "$i $v $t", /* a format string for parsing complex logfiles */
  140. /* arbitrary text and whitespaces are allowed, see 'scanf()' */
  141. /* at least $v has to be used */
  142. /* $i => identifier, $v => value, $t => timestamp */
  143. "rewind": true, /* reset file pointer each interval to the beginning of the file */
  144. "interval": 2 /* of ommitted, we will try to listen on changes with inotify */
  145. },
  146.  
  147. // examples for Flukso-based sensors
  148. // {
  149. // "enabled": false, /* disabled meters will be ignored */
  150. // "protocol": "fluksov2",
  151. // "fifo": "/var/spid/delta/out",
  152. // "channel": {
  153. // "uuid": "3b4da450-42a8-11e1-8b8d-c526d853edec",
  154. // "middleware": "http://localhost/middleware.php",
  155. // "identifier": "sensor0/power" /* or "sensor2/consumption" e.g. */
  156. // }
  157. // },
  158.  
  159. // examples for MySmartGrid as middleware
  160. {
  161. "enabled": false, /* disabled meters will be ignored */
  162. "protocol": "d0", /* see 'vzlogger -h' for list of available protocols */
  163. "device": "/dev/ttyUSB2",
  164. "interval": 2,
  165. "resolution": 2000,
  166. "channels": [{
  167. "protocol": "mysmartgrid", /* use MySmartgrid as middleware protocol */
  168. "type": "sensor",
  169. "uuid": "01234567-9abc-def0-1234-56789abcdefe",
  170. "secretKey": "0123456789abcdef0123456789abcdef",
  171. "interval": 300,
  172. "middleware": "https://api.mysmartgrid.de:8443", /* identifier for measurement: 1-0:1.8.0 */
  173. "identifier": "1-0:1.8.0", /* see 'vzlogger -v20' for an output with all available identifiers/OBIS ids */
  174. "scaler": 1000 /* d0 counter is in kWh, so scaling is 1000 */
  175. }]
  176. },
  177. {
  178. "enabled": false, /* disabled meters will be ignored */
  179. "protocol": "sml", /* see 'vzlogger -h' for list of available protocols */
  180. "device": "/dev/ttyUSB0",
  181. "interval": 2,
  182. "resolution": 2000,
  183. "channels": [{
  184. "protocol": "mysmartgrid", /* use MySmartgrid as middleware protocol */
  185. "type": "sensor",
  186. "uuid": "01234567-9abc-def0-1234-56789abcdefe",
  187. "secretKey": "0123456789abcdef0123456789abcdef",
  188. "interval": 300,
  189. "middleware": "https://api.mysmartgrid.de:8443", /* identifier for measurement: 1-0:1.8.0 */
  190. "identifier": "1-0:1.8.0", /* see 'vzlogger -v20' for an output with all available identifiers/OBIS ids */
  191. "scaler": 1 /* sml counter is in Wh, so scaling is 1 */
  192. }]
  193. },
  194. {
  195. "enabled": false, /* disabled meters will be ignored */
  196. "protocol": "s0", /* see 'vzlogger -h' for list of available protocols */
  197. "device": "/dev/ttyUSB1",
  198. "interval": 2,
  199. "resolution": 2000,
  200. "channels": [{
  201. "protocol": "mysmartgrid", /* use MySmartgrid as middleware protocol */
  202. "type": "sensor",
  203. "uuid": "01234567-9abc-def0-1234-56789abcdefe",
  204. "secretKey": "0123456789abcdef0123456789abcdef",
  205. "interval": 300,
  206. "middleware": "https://api.mysmartgrid.de:8443", /* identifier for measurement: 1-0:1.8.0 */
  207. "identifier": "counter",
  208. "scaler": 1-0 /* s0 counter is in Wh */
  209. }]
  210. }
  211. ]
  212. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement