Search Exchange
Search All Sites
Nagios Live Webinars
Let our experts show you how Nagios can help your organization.Login
Directory Tree
Directory
weyoon
Add the following to the script to add pressure (press):
#Output for Pressure
if [ $2 = "press" ]
then
VAR1=$(lynx -dump -source http://api.wunderground.com/weatherstation/WXCurrentObXML.asp?ID=$1 | grep pressure_mb | cut -d">" -f2 | cut -d"" -f2 | cut -d"" -f2 | cut -d" printf "Pressure: $VAR3 | 'MB'=$VAR1 'IN'=$VAR2\n"
exit
fi
#Output for Pressure
if [ $2 = "press" ]
then
VAR1=$(lynx -dump -source http://api.wunderground.com/weatherstation/WXCurrentObXML.asp?ID=$1 | grep pressure_mb | cut -d">" -f2 | cut -d"" -f2 | cut -d"" -f2 | cut -d" printf "Pressure: $VAR3 | 'MB'=$VAR1 'IN'=$VAR2\n"
exit
fi
Owner's reply
Thanks! I'll be adding this in to version 2.