Advertisement
Guest User

vzlogger.conf mit Baudratenumstellung

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