Billy Goat
rbnWe live on Billy-Goat Hill which is the name I also gave to this server install. In previous incarnations it was a media server pluigged into the telly; a web development staging server and a few weeks ago a weather station. The Weather Station did not work.
First the stupid little barometric dongle refused to return any meaningful data. Then Re needed the monitor for uni. She is finishing her Masters so that probably takes precedent over my tinkering.
Instead I have plugged the Raspberry Pi directly into the router and set it up as a web server. I am using the Linode API to update the DNS:
#!/bin/bash
TOKEN=[my API token]
DOMAINID=[my domain ID]
RECORDID=[the DNS record ID]
src=$HOME"/bin/wanip.txt"
IPCURRENT=$(cat "${src}")
curl --request PUT \
--url https://api.linode.com/v4/domains/${DOMAINID}/records/${RECORDID} \
--header 'accept: application/json' \
--header "authorization: Bearer ${TOKEN}" \
--header 'content-type: application/json' \
--data "{\"name\": \"data\", \"ttl_sec\": 300, \"target\": \"$IPCURRENT\"}"
This script gets actioned when BillyGoats external IP changes.
Let’s see how stable it is while I figure out what to do with it.
permalink