Often you plug in your Raspberry Pi in a network where you get a random IP from the DHCP server. In the best situation you have access to the DHCP server / router and find the IP address.
But what if you ...
The Pi Finder is here to solve all of these problems if you...
After the initial installation your Pi will notify this site with it's current IP address and a name you choose.
No, the Pi Finder starts automatically with your Pi.
Even if the ip address changes, it will update automatically.
As long as your Pi is running and has access to the server. After you shut down your Pi, it will be removed after 15 minutes.
It should work on any Unix based system. However, it's only tested on Raspbian and OSX 10.10. If you have problems, just create an Issue or even better a Pull Request.
You need to run all these commands on your Rasberry Pi.
$ wget http://bit.ly/pi-finder_installer -O - | sudo bash
If you haven't wget
installed, try the curl command:
$ curl -fsSL http://bit.ly/pi-finder_installer | sudo bash
Open the configuration file config.js
(config directory can differ from system to system)...
$ sudo nano $(npm config get prefix)/lib/node_modules/pi-finder/config.js
...and change the name from My Awesome Pi
to a name you'll recognise.
module.exports = {
// ...
name: "Manuel's Pi",
// ...
}
Add the pi finder to the start up
$ sudo service pi-finder start
To test the configuration, restart your Pi and check the Pi Finder!
$ sudo reboot
$ sudo service pi-finder start
$ sudo service pi-finder stop
$ sudo service pi-finder restart
$ sudo service pi-finder status
$ sudo launchctl load /Library/LaunchDaemons/xyz.pi-finder.plist
$ sudo launchctl unload /Library/LaunchDaemons/xyz.pi-finder.plist
$ sudo launchctl unload /Library/LaunchDaemons/xyz.pi-finder.plist
$ sudo launchctl load /Library/LaunchDaemons/xyz.pi-finder.plist
$ sudo launchctl list | grep xyz.pi-finder
If you see any output, the pi finder is running
$ sudo launchctl load /Library/LaunchDaemons/ch.strebl.pi-finder.plist
$ sudo launchctl unload /Library/LaunchDaemons/ch.strebl.pi-finder.plist
$ sudo launchctl unload /Library/LaunchDaemons/ch.strebl.pi-finder.plist
$ sudo launchctl load /Library/LaunchDaemons/ch.strebl.pi-finder.plist
$ sudo launchctl list | grep ch.strebl.pi-finder
If you see any output, the pi finder is running
Take me back to the Pi Finder!