royveshovda / busy_lights

Simple solution for running Elixir, Phoenix and Nerves on a Raspberry Pi Zero with the BLINKT hardware module attached.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Busy Lights

Simple solution for running Elixir, Phoenix and Nerves on a Raspberry Pi Zero with the BLINKT hardware module attached. Purpose: Show a synchronized light on web, and all attached RPi Zeroes. Use case: for myself is to show if I am accupied in a meeting or not.

This repo is not in a very public friendly state. If you want to replicate any of this work, feel free to reach out using issues on this repo, and I can explain the missing details.

Hardware

Details can be found here

Developing

To get started

To start your Nerves app:

export MIX_ENV=prod
cd ui
mix deps.get
mix assets.deploy
cd ../fw
export MIX_TARGET=rpi0
mix deps.get
export NERVES_NETWORK_SSID=your_wifi_name
export NERVES_NETWORK_PSK=your_wifi_password
mix firmware
mix burn

To update

mix firmware.gen.script
./upload.sh <IP>

About

Simple solution for running Elixir, Phoenix and Nerves on a Raspberry Pi Zero with the BLINKT hardware module attached.

License:MIT License


Languages

Language:Elixir 80.3%Language:CSS 12.1%Language:HTML 3.3%Language:Shell 3.2%Language:JavaScript 1.2%