This is a small script to send a notification via your Google Home when a specific IP enters your Network.
curl -s https://raw.githubusercontent.com/pascaaaal/notifier/master/install.sh | sudo bash
You can edit the data.txt it is placed in /etc/notifier/data.txt
.
The Scheme ip mp3_url
So for example you have the ip adress 192.168.2.100
, and you want the url https://example.com/exmaple.mp3
. You're line would be:
192.168.2.100 https://example.com/exmaple.mp3
To use the script properly, you have to edit the config.txt. It is placed in /etc/notifier/config.txt
.
The value subnet_addr
is the subnet scheme of your network.
The value chromecast_addr
represents the ip address of your chromecast device.
The value timeout
is the the timeout how long it takes that the system marks a IP as "at home". This is beacause your device does not respond everytime.