You can use the test script to run a specific pattern without the connection to firebase.
First source the python path with:
source scripts/vars.sh
Then run the test with:
sudo python src/rpi/test.py PatternName
Remember to set the type of led strip you're using with the --strip_type
argument. Choose:
neopixel
, if you have a single data input (WS281X)dotstar
, if you have three (APA102/SK98225)
You can test the remote configuration running the control script which takes as mandatory inputs the credential json file and the mode (either 'pc' or 'rpi') which specify where the script is being run.
python src/firebase/connect.py credential.json rpi
To test first run the gui and then in a separate process run patterns
python src/pc/gui.py
python src/pc/test.py
For the remote connection use:
python src/gui.py
python src/firebase/connect.py credential.json pc
The control script accepts two optional arguments:
- databaseURL : the url of your database (default value, more in the firebase tutorial)
- pixels : the number of pixels (default 300).
To connect to a custom databaseURL with 64 leds on the rpi you should run
python src/firebase/connect.py credential.json rpi --databaseURL https://customURL.firebaseio.com/ --pixels 64