Giter Club home page Giter Club logo

muniversal's Introduction

Quick and dirty json data to munin

  1. symlink muniversal.py to /etc/munin/plugins/name_plot
  2. create /etc/muniversal.json
  3. restart munin

Example

Solar charge controller data in /var/log/solar.json where each line looks like this:

{"V_bat": 13.54, "V_solar": 16.68, "I_charge": 6.3, "P_charge": 85.30199999999999, "ctrl_temp": 48, "charge_mode": "lead_agm1" }

Create symlink:

ln -s muniversal.py /etc/munin/plugins/sensors_solar

Possible muniversal.json:

{
  "sensors": {
    "solar": {
      "logfile": "/var/log/solar.json",
      "config": {
        "graph_title": "Solar Controller",
        "graph_category": "sensors",
        "graph_info": "Solar Panels + Batteries",
        "graph_scale": "no",
        "bat_voltage.label": "Battery Voltage (V)",
        "bat_voltage.type": "GAUGE",
        "solar_voltage.label": "Solar Voltage (V)",
        "solar_voltage.type": "GAUGE",
        "charge_current.label": "Charge Current (A)",
        "charge_current.type": "GAUGE",
        "charge_power.label": "Charge Power (W)",
        "charge_power.type": "GAUGE",
        "temp_ctrl.label": "Controller Temp"
      },
      "valuemap": {
        "V_bat": "bat_voltage",
        "V_solar": "solar_voltage",
        "I_charge": "charge_current",
        "P_charge": "charge_power",
        "ctrl_temp": "temp_ctrl"
      }
    }
  }
}
  • '''logfile''' contains one or more json streams
  • '''config''' contains munin config
  • '''valuemap''' contains one dict per logfile to map json stream keys to munin values

muniversal's People

Contributors

heeplr avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.