Skip to content
MagicMirror module to get energy consumption via a Wattvision API
JavaScript CSS
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
MMM-Wattvision.css Add files via upload Jul 5, 2018
MMM-Wattvision.js
README.md
node_helper.js logging Jul 12, 2018
package-lock.json Add files via upload Jul 5, 2018
package.json
screenshot1.JPG Add files via upload Jul 5, 2018

README.md

MMM-Wattvision

MagicMirror module to get energy consumption via a Wattvision API

API

Uses the open/free api that Wattvision publishes: https://www.wattvision.com/api/v0.2/elec?sensor_id=:sensor_id&api_id=:api_id&api_key=:api_key&type=:type&start_time=:start_time&end_time=:end_time

Information here : https://wattvision.readme.io/docs/download-data-from-wattvision

Get your API id and key from : https://www.wattvision.com/usr/api

Get your sensor id from the settings page after you setup your device with wattvision

Preview

screenshot1

Install the module

Go to your MagicMirror modules directory by entering cd MagicMirror/modules

run git clone https://github.com/vincep5/MMM-Wattvision

run cd MMM-Wattvision to get into the newly created folder

run npm install to install the chart.js dependencies

Config

Add MMM-Wattvision module to the modules array in the config/config.js file:

modules: [
  {
    module: "MMM-Wattvision",
    position: "top_right",
    header: "EnergyChart",
    config: {
      updateInterval: 10 * 60 * 1000, // every 10 minutes
      sensor_id: '', // value from wattvision
      api_id: '', // value from wattvision
      api_key: '' // value from wattvision
      }
  },
]
You can’t perform that action at this time.