Skip to content

Gleamo/gleamo-device

Repository files navigation

Gleamo Raspberry Pi Code

Getting Started

Install the pip dependencies with bash ./deps.sh

Run the tests:

python main.test.py

Or run an integration test to see colors printed (see the next section for configuration options):

python -m __integration.scheduler

Configuration

By default, there is a config.example.cfg file and a config.local.cfg file with default values. Copy the example:

cp config.example.cfg config.cfg

Change the values in ./config.cfg and ./config.local.cfg to fit your needs.

Testing the MQ service

See the Gleamo MQ knowledgebase for instructions on setting up your local environment.

Run each command in a different terminal:

brew services start rabbitmq # For OSX
python -m __integration.mq
python -m __integration.mq_server

Installing on Raspberry Pi

Run:

sudo bash install.sh
sudo bash deps.sh
sudo python demo.py
# or
sudo python main.py

About

The Python code that drives the Raspberry PI 3 B

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published