Snippets

Brian Medley Weather underground onliner

Created by Brian Medley last modified
[bpm@Orfgum] c:~/playground>cat wunderground_oneliner.sh 
/opt/perl -Mojo -E \
    'say(r g("http://api.openweathermap.org/data/2.5/weather?q=74134&units=imperial")->json->{main}->@{qw(temp pressure)})'
[bpm@Orfgum] c:~/playground>bash wunderground_oneliner.sh 
Array found where operator expected at -e line 1, at end of line
	(Missing operator before ?)
"54.09"
"1003.4"

[bpm@Orfgum] c:~/playground>

Comments (0)

HTTPS SSH

You can clone a snippet to your computer for local editing. Learn more.