Skip to content

Boilerplate for connecting raspberry-pi to Rightech cloud using gpiozero and pahomqtt with simple GUI.

License

Notifications You must be signed in to change notification settings

mvshmakov/raspberry-boilerplate

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

raspberry-boilerplate

Consider it exactly as a boilerplate, not as the library!
That means you can change every file existing in the repo to fit your needs.

Running in the virtualenv:

1) Install virtualenv:
  • ~ python3 -m pip install virtualenv
2) Create virtual environment:
  • ~ python3 -m venv env
3) Activate virtual environment:
  • ~ source env/bin/activate
4) Install dependencies:
  • ~ pip3 install --upgrade pip (if needed)
  • ~ pip3 install -r requirements.txt
5) If you are working under the MacOS environment, RPi.GPIO is not available.
For MacOS install FakeRPi, in other OS install RPi.GPIO:
  • ~ pip3 install git+https://github.com/sn4k3/FakeRPi (for MacOS)
  • ~ pip3 install RPi.GPIO (for other)
6) Running the app in development mode (with "watch mode"):
  • ~ FLASK_APP=app.py FLASK_ENV=development python -m flask run
7) In order to exit from venv:
  • ~ deactivate

Installing Raspbian Stretch (Raspberry OS): https://romantelychko.com/blog/1611/

Working with GPIO:

Working with RFID:

Working with a temperature and humidity sensor:

Working with LCD:

GPIO Zero library recipes with Pin Numbering:

Example:

If not Raspberry PI:

Arduino docs and samples:

STM32:

About

Boilerplate for connecting raspberry-pi to Rightech cloud using gpiozero and pahomqtt with simple GUI.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published