https://github.com/nbw/nerves_weather
Simple Weather Station written in Nerves (Elixir)
https://github.com/nbw/nerves_weather
elixir nerves phoenix phoenix-framework
Last synced: 6 months ago
JSON representation
Simple Weather Station written in Nerves (Elixir)
- Host: GitHub
- URL: https://github.com/nbw/nerves_weather
- Owner: nbw
- Created: 2021-10-12T03:57:27.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2022-04-12T13:37:09.000Z (over 3 years ago)
- Last Synced: 2025-02-05T21:59:05.596Z (8 months ago)
- Topics: elixir, nerves, phoenix, phoenix-framework
- Language: Elixir
- Homepage:
- Size: 1.38 MB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Nerves Weather Station
- Measure temperature
- Measure humidity
- Measure light
- Use Phoenix's LiveView to display readings
## Parts
- [DHT11 sensor temp/humidity](https://www.amazon.co.jp/gp/product/B010GXAH4E)
- [Photo-resistor sensor](https://www.amazon.co.jp/gp/product/B08B7QT1BV)
- RaspberryPi (with SD card)
- Breadboard & wires## Usage (for me)
Refer to Makefile in firmware folder for common nerves commands.
build firmware: `mix firmware`
upload: `sh upload.sh` (if wifi is setup)
(don't forget to set your MIX_TARGET-- `export MIX_TARGET=rpi4`)
### UI Phoenix App
To compile assets, before building firmware, run `mix assets.deploy` from ui root folder.
## Thanks
- Thanks to [Jon Carstens](https://github.com/jjcarstens) for help with his [dht](https://github.com/jjcarstens/dht) library.
- The Nerves Slack community for help with various things