Advertisement
leader21

smart meter reader

Sep 6th, 2016
74
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.08 KB | None
  1. {
  2. "id": "smartmeter_reader",
  3. "name": "Smartmeter Reader",
  4. "class": "LogWatcher",
  5. "file": "/home/pi/test/smartmeter.log",
  6. "attributes": [
  7. {
  8. "name": "1.7.0",
  9. "type": "number",
  10. "unit": "kW"
  11. },
  12. {
  13. "name": "1.8.0",
  14. "type": "number",
  15. "unit": "kWh"
  16. },
  17. {
  18. "name": "2.7.0",
  19. "type": "number",
  20. "unit": "kW"
  21. },
  22. {
  23. "name": "2.8.0",
  24. "type": "number",
  25. "unit": "kWh"
  26. }
  27. ],
  28. "lines": [
  29. {
  30. "match": "1\\.7\\.0\\(([0-9]+\\.[0-9]+)\\*kW\\)+",
  31. "1.7.0": "$1"
  32. },
  33. {
  34. "match": "1\\.8\\.0\\(([0-9]+\\.[0-9]+)\\*kWh\\)+",
  35. "1.8.0": "$1"
  36. },
  37. {
  38. "match": "2\\.7\\.0\\(([0-9]+\\.[0-9]+)\\*kW\\)+",
  39. "2.7.0": "$1"
  40. },
  41. {
  42. "match": "2\\.8\\.0\\(([0-9]+\\.[0-9]+)\\*kWh\\)+",
  43. "2.8.0": "$1"
  44. }
  45. ],
  46. "xAttributeOptions": []
  47. },
Advertisement
RAW Paste Data Copied
Advertisement