Home Directory

Search Exchange

Search All Sites

Nagios Live Webinars

Let our experts show you how Nagios can help your organization.

Contact Us

Phone: 1-888-NAGIOS-1
Email: sales@nagios.com

Login

Remember Me

Directory Tree

Directory

weyoon

Reviews(1)
byweyoon, April 9, 2013
1 of 1 people found this review helpful
Sam Weather 2.0
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
Owner's reply

Thanks! I'll be adding this in to version 2.