https://github.com/bakerface/wheresmypi
Locate your Raspberry Pi
https://github.com/bakerface/wheresmypi
Last synced: 8 months ago
JSON representation
Locate your Raspberry Pi
- Host: GitHub
- URL: https://github.com/bakerface/wheresmypi
- Owner: bakerface
- Created: 2016-07-15T18:41:04.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2022-12-13T05:54:39.000Z (over 3 years ago)
- Last Synced: 2023-08-02T16:37:37.695Z (almost 3 years ago)
- Language: JavaScript
- Size: 90.8 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 7
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# wheresmypi
**Locate your Raspberry Pi**
Give your Raspberry Pi a name, like `mike`, and create the following script:
```
$ nano /opt/update-ip.sh
IP_ADDRESS=`hostname -I`
NAME="mike"
URL="http%3A%2F%2F$IP_ADDRESS"
curl -X POST https://wheresmypi.herokuapp.com?$NAME=$URL
```
Make the script executable:
```
$ chmod +x /opt/update-ip.sh
```
Run the script once an hour via cron:
```
$ crontab -e
0 * * * * /opt/update-ip.sh
```
Then go to https://wheresmypi.herokuapp.com/mike