- Clone the repo somewhere for you to work from
- Copy
config.js.template
toconfig.js
and edit to haveDEV_MODE: true
andORB_ID: <your unique ID>
- Run
npm install
- Install python libraries
pip3 install adafruit-circuitpython-neopixel websockets numpy pygame
- Run
sudo node server.js
- Open
http://localhost:1337/dev
for the emulator - Open
http://<localhost or your IP address>:1337
to open one or more controllers on either your desktop or your phone - Edit, commit, create pull requests as you would for any Git project
- Download SD card image from dropbox (64bit) (32bit)
- Burn to SD card using
dd
or Balena Etcher (https://etcher.balena.io/) - Using
dd
- Update
/dev/disk2
or/dev/sda
below with the correct drive as determined fromdiskutil list
orlsblk
on Linux diskutil unmountDisk /dev/disk2
orsudo umount /dev/sda1 && sudo umount /dev/sda2
on Linux- go to Download directory or wherever the SD image download is
sudo dd if=Orbitron.img of=/dev/disk2 status=progress
- On MacOS use
gdd
instead- Install with
brew install coreutils
sudo gdd if=Orbitron.img of=/dev/disk2 status=progress
- Install with
- Update
ssh [email protected]
or get IP address fromavahi-browse -ar
orsudo nmap -sn 192.168.1.0/24
and go tossh pi@<IP address>
cd orbitron
sudo pm2 restart all
- Visit
http://orbitron.local:1337
or get IP address fromavahi-browse -ar
and go tohttp://<IP address>:1337
sudo pm2 log
to tail logs. Log files are stored in/root/.pm2/logs
- Just use normal git commands within directory
~/orbitron
- If you edit outside the version controlled directory create a new SD card image
- Update
/dev/disk2
below with the correct drive as determined fromdiskutil list
orlsblk
sudo dd if=/dev/disk2 of=Orbitron.img bs=8M count=820 status=progress
- On MacOS use
gdd
instead- Install with
brew install coreutils
sudo gdd if=/dev/disk2 of=Orbitron.img bs=8M count=820 status=progress
- Install with
- Connect to unsecure Wifi with SSID "Super Orbitron"
- Visit url
10.42.0.1
- Enter SSID and password of desired wifi and submit
- Download Raspberry Pi Imager: https://www.raspberrypi.org/software/
- Select the latest 64-bit Raspberry PI OS
- Click the gear icon to change the settings of the install
- Set hostname to
orbitron
- Enable SSH with password authentication
- enter pi as the username and enter a password
- Configure wireless LAN to connect to your local wifi
- Set timezone and select us Keyboard layout
- Save and click
WRITE
to burn the image - Plug SD Card into PI
- Connect PI to monitor/TV via HDMI cable
- Connect USB keyboard to PI as well
- Power on the PI
- Wait for some time, it may need to reboot 2 or more times
- You should see
orbitron login:
when it is ready - Login with the username and password you set
- Run
sudo raspi-config
- Select
System Options
andWireless LAN
- Select the appropriate country from the list
- Enter SSID and password of wifi network
sudo apt install git
git clone https://github.com/adrianmarple/orbitron
~/orbitron/utility_scripts/base_install.sh
- Follow instructions here: https://learn.adafruit.com/introducing-feather-rp2040-scorpio/overview
-
Download sshfs from https://osxfuse.github.io/ and install
-
mkdir ~/orbitron
-
sshfs [email protected]:/home/pi/orbitron ~/orbitron
-
~/orbitron/utility_scripts/pm2_setup.sh