Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/headblockhead/unicornsignage
A Go program for running on a raspberry pi that displays scrolling text on demand, and the weather when there is no text.
https://github.com/headblockhead/unicornsignage
go golang mqtt raspberry-pi unicorn-hat-hd
Last synced: about 1 month ago
JSON representation
A Go program for running on a raspberry pi that displays scrolling text on demand, and the weather when there is no text.
- Host: GitHub
- URL: https://github.com/headblockhead/unicornsignage
- Owner: headblockhead
- Created: 2022-08-09T17:42:07.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-08-13T23:30:28.000Z (over 1 year ago)
- Last Synced: 2024-11-19T15:45:11.583Z (about 2 months ago)
- Topics: go, golang, mqtt, raspberry-pi, unicorn-hat-hd
- Language: Go
- Homepage:
- Size: 547 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# unicornsignage
A Go program for running on a raspberry pi that displays scrolling text on demand, and the weather when there is no text.Designed for the [Unicorn Hat HD](https://shop.pimoroni.com/products/unicorn-hat-hd?variant=42496126730).
# Installation
First, install raspian onto your pi. Make sure the hostname is ```displaypi```.
Then, create your own ```creds.json``` in the root of this repository. Format it like in [this example](/credexample.json).
After that, run the Makefile with ```make firstdeploy```.
Next, SSH into the rpi. In the rpi, run ```sudo nano /lib/systemd/system/display.service``` and paste the following text:```
[Unit]
Description=Display device
After=network-online.target
Wants=network-online.target
StartLimitIntervalSec=500
StartLimitBurst=5[Install]
RequiredBy=multi-user.target[Service]
Type=simple
User=root
Restart=on-failure
RestartSec=5s
WorkingDirectory=/home/pi
ExecStart=/home/pi/display
```
Finally, reload systemd ```sudo systemctl daemon-reload```, enable the service ```sudo systemctl enable display```, enable SPI and I2C support on the pi ```sudo raspi-config # Interface Options > SPI > Yes > Ok > Interface Options > I2C > Yes > Ok > Finish``` and restart the pi ```sudo reboot```.Next time you make a change to the program, use ```make deploy``` instead of ```make firstdeploy``` to restart the service.
Enjoy!