How do I get the Meteohub version from a command line?

all about Meteohub on the new Raspberry PI platform

Moderator: Mattk

Post Reply
mfarmwald
Fresh Boarder
Fresh Boarder
Posts: 17
Joined: Fri Sep 18, 2009 5:08 am

How do I get the Meteohub version from a command line?

Post by mfarmwald »

Is there a simple way to get the Meteohub version from a command line (ssh)?

I grep'ed /etc/* and /home/meteohub/* but could not find anything.
User avatar
admin
Platinum Boarder
Platinum Boarder
Posts: 7854
Joined: Mon Oct 01, 2007 10:51 pm

Re: How do I get the Meteohub version from a command line?

Post by admin »

/srv/www/cgi-bin/meteohub.cgi | grep "MeteoHub:" | awk '{print $2}'
User avatar
YJB
Platinum Boarder
Platinum Boarder
Posts: 387
Joined: Thu Feb 19, 2009 5:53 pm
Location: Venhuizen, Netherlands
Contact:

Re: How do I get the Meteohub version from a command line?

Post by YJB »

Or if you want to go more fancy:

Code: Select all

mh_version=`wget -q -O - "http://localhost/meteograph.cgi?text=actual_system_version_text"`
mh_build=`wget -q -O - "http://localhost/meteograph.cgi?text=actual_system_build_num"`
echo $mh_version" "$mh_build
mfarmwald
Fresh Boarder
Fresh Boarder
Posts: 17
Joined: Fri Sep 18, 2009 5:08 am

Re: How do I get the Meteohub version from a command line?

Post by mfarmwald »

Thanks. These both seem to work.
Post Reply