Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/bertreb/pimatic-ina219
Pimatic plugin for the INA219 current and power i2c sensor
https://github.com/bertreb/pimatic-ina219
Last synced: about 1 month ago
JSON representation
Pimatic plugin for the INA219 current and power i2c sensor
- Host: GitHub
- URL: https://github.com/bertreb/pimatic-ina219
- Owner: bertreb
- License: mit
- Created: 2020-12-05T14:20:35.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2023-04-15T18:36:44.000Z (over 1 year ago)
- Last Synced: 2024-10-13T21:39:34.155Z (3 months ago)
- Language: CoffeeScript
- Size: 317 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: HISTORY.md
- License: LICENSE
Awesome Lists containing this project
README
# pimatic-ina219
Pimatic plugin for the INA219 current and power i2c sensor
![](assets/ina219.png)
This plugin makes an ina219 based device available in Pimatic. The Ina219 device is connected via the I2C port of your computer.
The plugin is tested on a raspberry pi.The plugin can be installed via the plugins page of Pimatic.
## Config of the plugin
```
{
debug: "Debug mode. Writes debug messages to the Pimatic log, if set to true."
}
```## Config of an Ina219 Device
After installation of the plugin (and restart) devices can be added via the devices pages in Pimatic.
Device configuraton:
```
{
device: "Device number to use (prefix /dev/i2c- is automatically added)"
default: 1
address: "Address of the sensor"
enum: [0x40,0x41,0x44,0x45]
default: 0x40
interval: "Sensor read interval in ms"
default: 10000
}
```The Ina219 provides 2 attributes
- Voltage (V)
- Current (A)The attributes are updated and visible in the Gui every \ milliseconds.
---
This plugin is based on the Ina219 library from [brettmarl](https://github.com/brettmarl/node-ina219#readme).The minimum node requirement for this plugin is node v8!