0.1.11 • Published 4 years ago

pimatic-i2c v0.1.11

Weekly downloads
136
License
-
Repository
github
Last release
4 years ago

pimatic-i2c

Pimatic plugin for the I2C based sensors

This plugin makes I2C based sensors available in Pimatic. Devices are 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."
}

After installation of the plugin (and restart) devices can be added via the devices pages in Pimatic.

The Ina219 Device

npm.io

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 \<interval> milliseconds.

The Mcp3424 Device

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
 forwardPowerChannel: "Channel of the forwardPower sensor (1..4)"
 	default: 1
 reflectedPowerChannel: "Channel of the reflectedPower sensor (1..4)"
 	default: 2
 gain: ""
 	default: 1
 resolution: ""
 	default: 1
 interval: "Sensor read interval in ms"
   default: 10000
}

The Mcp3424 provides 2 attributes

  • forwardPower (W)
  • reflectedPower (W)

The attributes are updated and visible in the Gui every \<interval> milliseconds.


This plugin is based on the Ina219 library from brettmarl.

The minimum node requirement for this plugin is node v8!

0.1.11

4 years ago

0.1.10

4 years ago

0.1.9

4 years ago

0.1.8

4 years ago

0.1.7

4 years ago

0.1.6

4 years ago

0.1.5

4 years ago

0.1.4

4 years ago

0.1.3

4 years ago

0.1.2

4 years ago

0.1.1

4 years ago

0.1.0

4 years ago

0.0.16

4 years ago

0.0.17

4 years ago

0.0.15

4 years ago

0.0.14

4 years ago

0.0.13

4 years ago

0.0.12

4 years ago

0.0.11

4 years ago

0.0.10

4 years ago

0.0.9

4 years ago

0.0.8

4 years ago

0.0.7

4 years ago

0.0.6

4 years ago

0.0.5

4 years ago

0.0.4

4 years ago

0.0.3

4 years ago

0.0.2

4 years ago

0.0.1

4 years ago