Fork me on GitHub

pimatic-piblaster by Marek Kail | github | npm

pimatic-piblaster

Support for the pi-blaster daemon.

Install the pi-blaster daemon (instructions).

Usable pins:

  GPIO number   Pin in P1 header
      4              P1-7
      17             P1-11
      18             P1-12
      21             P1-13 (only for model A/B)
      27             P1-13 (only for model B+)
      22             P1-15
      23             P1-16
      24             P1-18
      25             P1-22

Example config

Add the plugin to the plugin section:

{ 
  "plugin": "piblaster"
}

Then add a device to the devices section:

{
  "id": "led-sw-pwm",
  "name": "LED SW PWM",
  "class": "PiblasterDimmer",
  "gpio": 18,
  "dimlevel": 0
}

Thank you sarfata for pi-blaster.js and sweet pi for inspiration and his work on best automatization software Pimatic.

Plugin Config Options

Piblaster

Device Config Options

pimatic-piblaster device config schemas

PiblasterPWM

PiblasterPWM config options
OptionDescriptionDefault
gpio
number
The GPIO number (https://github.com/sarfata/pi-blaster#how-to-use)
mode
string
Mode (fade or direct)
"fade"
delay
integer
Delay between steps (ms)
100
correction
string
Linear or cie1931 (http://jared.geek.nz/2013/feb/linear-led-pwm)
"cie1931"
pimatic-piblaster is written by Marek Kail