Advertisement
Guest User

Untitled

a guest
Feb 16th, 2016
113
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.35 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3. #get temp for salzburg
  4. TMP=$(/var/www/volkszaehler.org/misc/tools/jsonclient --url "http://api.wunderground.com/api/APIKEY/conditions/q/Salzburg.json" -e current_observation,temp_c)
  5. echo $TMP
  6. #push tmp to VZ
  7. wget -O - -q "http://127.0.0.1:81/middleware.php/data/f91673c0-d4bb-11e5-8408-918bbeee8df6.json?operation=add&value=$TMP"
  8.  
  9. exit
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement