kentj

Webshell API - Retrieve data from Metwit (Weather API) (3/7)

Apr 10th, 2014
265
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. $(document).ready(function() {
  2.     //Execute some javascript on Webshell
  3.     wsh.exec({
  4.         code: function() {
  5.             var weatherParis = apis.metwit.weather({lat: 48.51, lng: 2.21});
  6.             //TODO: dump weatherParis
  7.             dump(weatherParis);
  8.             apis.tts('Hello World!');
  9.         },
  10.         process: function(data, meta) {
  11.             $('body').append(meta.view);
  12.         }
  13.     });
  14. });
Advertisement
Add Comment
Please, Sign In to add comment