Flask app to control a lamp with a Raspberry Pi Zero W and a Raspberry Pi Pico.
- Raspberry Pi Zero connects to local WiFi
- Raspberry Pi Pico connects to local WiFi
- Functional endpoints
/gpio/
/gpio/lamp-status/
/gpio/on
/gpio/off
- http://192.168.4.1:8000/gpio/
- http://192.168.4.1:8000/gpio/on
- http://192.168.4.1:8000/gpio/off
- http://192.168.4.1:8000/gpio/on?
- http://192.168.4.1:8000/gpio/off?
-
curl http://192.168.1.91:8000/lamp-status/
-
curl http://192.168.1.91:8000/gpio/
-
curl http://192.168.1.91:8000/gpio/on
-
curl http://192.168.1.91:8000/gpio/off
sudo apt-get update && sudo apt-get upgrade -y
sudo apt-get install git
sudo apt-get install pipenv
ssh-keygen -t ed25519 -C "[email protected]"
eval "$(ssh-agent -s)"
ssh-add ~/.ssh/id_ed25519
cat ~/.ssh/id_ed25519*
- https://github.com/settings/keys
ssh -T [email protected]
git config --global user.email "[email protected]"
git config --global user.name "Name"
git clone <REPOSITORY_URL>
cd <REPOSITORY_DIRECTORY>
pipenv install