Skip to content

A nerves poncho project to control lights on a GrovePi relay switch using Phoenix channels

Notifications You must be signed in to change notification settings

axelclark/all_of_the_lights

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 

Repository files navigation

All Of The Lights

A Nerves poncho project to control lights on a GrovePi relay switch using Phoenix channels.

Getting Started

On the GrovePi+ or GrovePi Zero, connect a relay switch to port D3. The relay switch should be connected to the light power cord.

To start this Nerves app:

  • cd lights_firmware Build firmware from this directory.
  • export MIX_TARGET=my_target or prefix every command with MIX_TARGET=my_target. For example, MIX_TARGET=rpi3
  • export NERVES_NETWORK_SSID=my_wifi WiFi Network
  • export NERVES_NETWORK_PSK=secret WiFi Password
  • export NERVES_HOST="192.168.0.000" Host needed for channels handshake.
  • Install dependencies with mix deps.get
  • Create firmware with mix firmware
  • Burn to an SD card with mix firmware.burn

Learn more

About

A nerves poncho project to control lights on a GrovePi relay switch using Phoenix channels

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published