Bash Sensors

UUID: bash-sensors@pkkk
Score: 2
Last edited: 3 months ago
Last commit: 97a9f82201ebd3f9ded7c18975fadf021a172242

Write your Bash commands to specify applet output (temperature sensors and not only!)

Log In To Comment!

1 Comments

SlashTray
SlashTray-2 months ago
Excellent! Thank you so much, usage possibilities are endless :)

Here is one bash script (to be called by Bash Sensors of course) that displays your internet public IP (useful if you use a VPN service for instance):

#!/bin/bash
my_public_ip=`dig +short @resolver1.opendns.com myip.opendns.com 2>/dev/null`
if [ $? -ne 0 ]
then
echo "No internet access"
else
echo $my_public_ip
fi