New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

pimatic-smartmeter

Package Overview
Dependencies
Maintainers
3
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

pimatic-smartmeter

Get energy usage data from P1 SmartMeter in pimatic

  • 0.0.18
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
1
Maintainers
3
Weekly downloads
 
Created
Source

pimatic-smartmeter

Join the chat at https://gitter.im/saberone/pimatic-smartmeter

Reading "Smartmeter" energy usage through P1 port.

Installation

To enable the smartmeter plugin add this to the plugins in the config.json file.

...
{
  "plugin": "smartmeter"
  
}
...

and add the following to the devices

{
  "id": "smartmeter",
  "class": "Smartmeterdevice",
  "name": "Smartmeter",
  "serialport": "/dev/ttyUSB0",
  "baudRate" : 9600,
  "dataBits" : 7,
  "parity" : "even",
  "stopBits" : 1,
  "flowControl" : true
}

Then install through the standard pimatic plugin install page.

Configuration

You can configure what serialport to use, and the serialport settings. You do this in the devices section, as you can see in the installation section.

"It might work on your machine"-version

The current version has been tested on my own P1 smartmeter, and some Pimatic users have reported that it works for them too. I cannot give any guarantees that it will work on every P1 smartmeter. But to try and improve support for different P1 smartmeters , I have added a simple commandline node.js app/tool that dumps the P1 data straight to a file. Please share this dump if you want your P1 smartmeter brand/model to be supported. Or better yet, fork + create pull request. ;)

Run the following commands from the root of this plugin.

npm install
chmod +x logP1.js
./logP1.js

If you have issues, please create an issue overe here : https://github.com/saberone/pimatic-smartmeter/issues

Keywords

FAQs

Package last updated on 01 May 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc