Skip to content

HoverEpic/Docker-Piface-Node-REST

Repository files navigation

Docker-Piface-Node-REST

A simple Docker container for controlling PiFace on RPi

Docker Hub : https://hub.docker.com/r/epicblox/node-piface/

Sreenshot :

Screenshot

Features :

  • Controle PiFace from web bage
  • Controle PiFace from REST
  • Multi piface support (up to 8)
  • Live update of inputs and outputs

TODO :

  • write REST doc

Run :

  • sudo modprobe spi-bcm2835 (or enable SPI from raspi-config)
  • --name piface \
    --hostname piface \
    --cap-add ALL \
    -v /lib/modules:/lib/modules \
    -v /sys:/sys \
    -e PIFACE_COUNT=1 \
    --device /dev/spidev-0.0:/dev/spidev-0.0 \
    --device /dev/mem:/dev/mem \
    -p 80:80\
    --privileged -d epicblox/node-piface```
    
    

If you have more than 1 PiFace card, you must ajust PIFACE_COUNT and add correct divices in docker run command.

Access test page with http://pi-ip/ in web browser.

Plans :

  • add websockets for live update
  • make toggle cancel action on fail
  • auth

Thanks to :

About

A simple Docker container for controlling Piface on RPi

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published