npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

node-red-contrib-virtualmeter

v0.5.30

Published

Virtual Meter Node to be used within Corrently Ecosystem (German Electricity Grid)

Downloads

35

Readme

node-red-contrib-virtualmeter

npm

Node-RED based Virtual Power Meter Node to be used within Corrently Ecosystem (German Electricity Grid). Prepared for load (consumption) prediction and PV generation forecast. Uses InfluxDB and GreenPowerIndex under the hood.

Installation

cd ~/.node-red
npm install --save node-red-contrib-virtualmeter
node-red-restart

Use Cases

  • You have only a power value and need a energy meter (reading)
  • You have a meter reading and you need the actual power
  • You have a consumption over time and need a meter (total energy)
  • You have one of those items and need CO2 footprint

Usage

Add virtualmeter node to your node-red flow and connect data source to input. Use input values as of following list to have a managed (virtual)meter for electricity.

You might have a look at the sample flows to get an overview of existing

Input Values

If msg.payload is number, than this number will be interpreted as Watt hours (Wh) to be added to meter reading.

If msg.payload.energy exists this will be used as new meter reading in Watt hours (Wh)

If msg.payload.power exists this will be used as average power (Watt) since last message

If msg.payload.power_mw exists this will be used as average power (Milli Watt) since last message

Example

Use with TP Link Kasa HS 110 Smart plug

[{"id":"3102f4c5.b60a7c","type":"tab","label":"Sample Flow - TP Link HS 110","disabled":false,"info":"Use Virtual Meter On Top of TP Link HS110 Smart Plug meter."},{"id":"bf814178.8ccf9","type":"virtualmeter","z":"3102f4c5.b60a7c","zip":"69256","name":null,"energypricein":0,"energypriceout":0,"x":850,"y":140,"wires":[[],[],[],[]]},{"id":"b3db7484.5dd808","type":"smart-plug","z":"3102f4c5.b60a7c","name":"My Plug","device":"192.168.192.39","interval":10000,"eventInterval":1000,"x":660,"y":140,"wires":[["bf814178.8ccf9"]]},{"id":"888ddfd8.a5484","type":"function","z":"3102f4c5.b60a7c","name":"getMeterInfo","func":"msg.payload=\"getMeterInfo\";\nreturn msg;","outputs":1,"noerr":0,"x":450,"y":140,"wires":[["b3db7484.5dd808"]]},{"id":"79ea072c.2822e8","type":"inject","z":"3102f4c5.b60a7c","name":"","topic":"","payload":"","payloadType":"date","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":240,"y":140,"wires":[["888ddfd8.a5484"]]}]

Use with AVM FRITZ!DECT 200 Smart plug

[{"id":"3102f4c5.b60a7c","type":"tab","label":"AVM Fritz DECT 200 Smart Plug","disabled":false,"info":"Use with a Smartplug connected to a fritz box. You need to set the AIN corretly!"},{"id":"bf814178.8ccf9","type":"virtualmeter","z":"3102f4c5.b60a7c","zip":"69256","name":null,"energypricein":0,"energypriceout":0,"x":850,"y":140,"wires":[[],[],[],[]]},{"id":"888ddfd8.a5484","type":"function","z":"3102f4c5.b60a7c","name":"set AIN","func":"msg.ain=\"087610221618\";\nmsg.payload.ain = \"087610221618\";\nreturn msg;","outputs":1,"noerr":0,"x":440,"y":140,"wires":[["b994e93e.0230b8"]]},{"id":"79ea072c.2822e8","type":"inject","z":"3102f4c5.b60a7c","name":"","topic":"","payload":"","payloadType":"date","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":240,"y":140,"wires":[["888ddfd8.a5484"]]},{"id":"b994e93e.0230b8","type":"fritz-outlet","z":"3102f4c5.b60a7c","connection":"345a47c4.06ab38","name":"Get Poweer","action":"getSwitchPower","x":650,"y":140,"wires":[["bf814178.8ccf9"]]},{"id":"345a47c4.06ab38","type":"fritz-api","z":"","name":"Home","host":"http://192.168.192.1","strictSSL":false}]

Use with Discovergy SmartMeter

[{"id":"417a04d0.ea2c4c","type":"discovergy-meter","z":"3102f4c5.b60a7c","DISCOVERGY_ACCOUNT":"[email protected]","DISCOVERGY_PASSWORD":"demo","meterId":"af4a1979c8404c3182e95d593dee1860","x":590,"y":140,"wires":[["bf814178.8ccf9"]]}]

Node: LoadPrediction

Allows to get a load prediction for energy consumers. This is a quite simple forecast implemenetation that mainly focuses on data stored into an influxDB using a VirtualMeter Node.

Funding

This module is part of the Corrently Ecosystem which looks for funding in Germany: https://www.stromdao.de/crowdfunding/info STROMDAO - Corrently Crowdfunding

Meta

Released by STROMDAO GmbH, Gerhard Weiser Ring 29, 69256 Mauer

Corrently Ecosystem (https://www.corrently.de/)

Distributed under the Apache-2.0 license. See [LICENSE] for more information.