If you have ever been on a server and just needed to verify its IP address, you may have done what I used to: either make a curl to some other server and then look in the nginx log - or hit a service like https://whatsmyip.org - but real websites are full of GUI and ads and stuff.
Now you can simply type "curl https://tools.vandsport.dk/ip" and then you have it.
So if you need your IP for a script simply store it in a file:
if [ -f 'ip.txt' ];
then
ip=$(cat ip.txt)
else
echo "You have no IP"
ip=$(curl https://tools.vandsport.dk/ip)
echo $ip > ip.txt
fi
echo "Your IP is: $ip"
curl -fsSL https://tools.vandsport.dk/setup_monitor.sh | sh
######################################## # bucket.tt.dk/load/#load an external image url - returns id # bucket.tt.dk/upload #upload file by post - returns id # bucket.tt.dk/info/ #returns json doc with image info # bucket.tt.dk/download/ #returns image bytes ######################################## # bucket data are auto deleted after 7 days ######################################## # img.tt.dk/ / #execute cmds on id or url # cmd== convert_ # type: png,jpg,webp,avif,tiff # cmd== rotate_ # rotate: 90,180,270 # cmd== cut_ _ _ _ # x,y,w,h - i.e. cut_75_20_557_420 # cmd== resize_ _ # x,y - max width and max height # cmd== blur # pixels blur ######################################## # image commands always returns an id so the user can use them in a img src. # if they want an autodownload service simply put an /download/ command in front. # # logic - start from back and work out. join the first items until you reach a command. # first item is either an url or an id # load first item into memory called work? or file called work? or id number increasing. filetype ennding? # https://web.kiteinfo.dk/load/0.jpg # https://web.kiteinfo.dk/load/0 # https://web.kiteinfo.dk/load/https://web.kiteinfo.dk/images/samples/alps.jpg