- Template Sensors Look at posts from this guy
- Create packages
- Fix presence detection for Christine - remove device tracker galaxy s9
- Create a dummy google account (no 2FA) and share all other users with this account
- Install locationsharinglib
source /srv/homeassistant/bin/activate
pip install locationsharinglib mapscookiegettercli
- Create cookies file on a linux machine with GUI and chrome
maps-cookie-getter
- Move file to
/home/.homeassistant/setup
and test
python location.py
-
Move file to
/home/.homeassistant
if working -
Restart Home assistant
-
Add
v4l2
module to kernel. Addbcm2835-v4l2
to/etc/modules-load.d/modules.conf
-
Install stuff
sudo apt-get install gstreamer1.0-tools gstream1.0-plugins-base gstreamer1.0-plugins-good gstream1.0-plugins-bad ffmpeg
-
Create Systemd service at
/etc/systemd/system/raspicam.service
-
Restart raspi
sudo systemctl daemon-reload
sudo systemctl enable raspicam.service
sudo systemctl start raspicam.service
Capture image using ffmpeg
ffmpeg -f v4l2 -i /dev/video0 -vframes 1 image.jpeg
docker run --name="motioneye" -p8765:8765 -p 8081:8081 --hostname="motioneye" -v /etc/localtime:/etc/localtime:ro -v /etc/motioneye:/etc/motioneye -v /media/usb/motioneye:/var/lib/motioneye --restart="always" --detach=true --device=/dev/video0 ccrisan/motioneye:master-armhf
Motion notification: sleep 30s && curl -d "" https://wolverines.duckdns.org:8123/api/webhook/motion_detected?file=%Y%m%dT%H%M%S
curl -sSL https://get.docker.com | sh
sudo usermod -aG docker pi
docker run hello-world
sudo apt-get install -y libffi-dev libssl-dev
sudo apt-get install -y python3 python3-pip
sudo apt-get remove python-configparser
sudo pip3 -v install docker-compose
Run using compose
docker-compose -f docker/homeassistant-compose.yml up -d
docker-compose -f docker/homeassistant-compose.yml restart
curl -X POST -H "Content-Type: application/json" 'http://127.0.0.1:8080/v1/register/<number>'
Verify
curl -X POST -H "Content-Type: application/json" 'http://127.0.0.1:8080/v1/register/<number>/verify/<verification code>'
Receive
curl -X GET -H "Content-Type: application/json" 'http://127.0.0.1:8080/v1/receive/<number>'