Skip to content

MustSeeMelons/wc-node

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

77 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

The one and only WC internet radio

Runs on a Pi Zero W through I2S.

image

How to

  • sudo apt-get update
  • sudo apt-get install pigpio
  • npm i
  • sudo apt-get install -y mpg123
  • sudo npm start
  • /etc/systemd/system/ateja.service

Node

  • use nvm to install node
  • sudo ln -s $(which node) /usr/bin/node
  • sudo ln -s $(which npm) /usr/local/bin/npm

A few commands to run

raspi-gpio set 4 pu raspi-gpio set 5 pu raspi-gpio set 22 pu raspi-gpio set 27 pu

https://raspberrypi-guide.github.io/programming/run-script-on-boot#editing-rclocal

/boot/config.txt

These seemed to have stopped working on new install

gpio=22,27=pu gpio=4=pd

Systemd

  • sudo systemctl daemon-reload - reload systemd
  • sudo systemctl start ateja
  • journalctl -u ateja.service -f - tailing logs
  • sudo systemctl status ateja
  • sudo systemctl stop ateja
  • sudo systemctl restart ateja
  • sudo systemctl enable ateja
  • sudo systemctl disable ateja

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published