Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content
This repository has been archived by the owner on Oct 3, 2023. It is now read-only.

Roslund/dynip

Repository files navigation

dynip

A super simple API to keep track of raspberry pis

Scripts

updateIP.sh

#!/bin/bash

SERVER=http://dynip.vapor.cloud/pis/

temp=$(/opt/vc/bin/vcgencmd measure_temp | cut -d '=' -f 2)
ipaddress=$(ifconfig wlan0 | grep -Eo 'inet ([0-9]*\.){3}[0-9]*' | cut -d ' ' -f 2)

curl --data "id=2&name=timelapse&temperature=$temp&internalIP=$ipaddress" $SERVER

About

For keeping track of Raspberry Pis

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published