• 5day/3hour forcast script

    From Mortifis@VERT/ALLEYCAT to echicken on Wed Aug 21 12:13:14 2019
    owm.xjs script for 5 day / 3 hour forcast:ããTell me what you think, pleaseãã<?xjsã(function () {ã try {ã load('geoip.js');ã var geoip = get_geoip( http_request.header['x-forwarded-for']ã|| http_request.remote_ip);ã require('openweathermap.js', 'OpenWeatherMap');ã var owm = new OpenWeatherMap();ã var wq = { units: 'metric', mode: 'json' };ãã var ts = Math.round((new Date()).getTime() / 1000);ãã if (geoip.latitude && geoip.longitude) {ã wq.lat = geoip.latitude;ã wq.lon = geoip.longitude;ã } else ã if (geoip.cityName) {ã wq.q = geoip.cityName;ã }ãã var city = geoip.cityName + ', ' + geoip.countryName; // ForãDisplay Onlyã ã var fc = owm.call_api('forecast', wq);ãã writeln('<center>OpenWeatherMap 5 Day/3 Hour Forecast for ' +ãcity + '</center><hr><br>');ãã fc.list.forEach(function (e) {ã if(e.dt >= ts-9900) { // Doesn't list weather 15ãminutes prior to next 3 hour block ã writeln(system.timestr(e.dt) + ': <br>');ã writeln('<imgãsrc=http://openweathermap.org/img/wn/'+e.weather[0].icon+'@2x.png height=50ãwidth=50>');ã writeln(e.main.temp_max+'&#176;C, ' ); ã writeln(e.weather[0].main + ', ' +ãe.weather[0].description); ã
    writeln(e.clouds.all + '% clouds');ã writeln();ã print("<br><br><br>");ã }ã });ã}ãcatch (err) {ã writeln('ERROR: ' + err + '<br><br>'); ã }ã}) ();ããããMy doctor said I have the body of a 25 year old ... and the mind of a 10 :-/ãã---ã þ Synchronet þ AlleyCat! BBS - http://alleycat.synchro.net:81ã
  • From echicken@VERT/ECBBS to Mortifis on Wed Aug 21 11:55:40 2019
    Re: 5day/3hour forcast scriptã By: Mortifis to echicken on Wed Aug 21 2019 12:13:14ãã Mo> owm.xjs script for 5 day / 3 hour forcast:ãã Mo> Tell me what you think, pleaseããLooks okay on the surface. Does it work properly? That's what matters. :)ãã---ãechickenãelectronic chicken bbs - bbs.electronicchicken.comã þ Synchronet þ electronic chicken bbs - bbs.electronicchicken.comã
  • From Nightfox@VERT/DIGDIST to echicken on Wed Aug 21 09:51:43 2019
    Re: 5day/3hour forcast scriptã By: echicken to Mortifis on Wed Aug 21 2019 11:55 amãã Mo>> owm.xjs script for 5 day / 3 hour forcast:ãã Mo>> Tell me what you think, pleaseãã ec> Looks okay on the surface. Does it work properly? That's what matters. :)ããThe Microsoft Surface (Pro)? It's a great system to run a BBS on.ããNightfoxãã---ã þ Synchronet þ Digital Distortion: digitaldistortionbbs.comã
  • From echicken@VERT/ECBBS to Nightfox on Wed Aug 21 13:36:38 2019
    Re: 5day/3hour forcast scriptã By: Nightfox to echicken on Wed Aug 21 2019 09:51:43ãã ec>> Looks okay on the surface. Does it work properly? That's what matters. :)ãã Ni> The Microsoft Surface (Pro)? It's a great system to run a BBS on.ããBeats the heck out of that old Microsoft Underside Pro, that's for sure.ãã---ãechickenãelectronic chicken bbs - bbs.electronicchicken.comã þ Synchronet þ electronic chicken bbs - bbs.electronicchicken.comã
  • From Mortifis@VERT/ALLEYCAT to echicken on Wed Aug 21 14:56:50 2019
    owm.xjs script for 5 day / 3 hour forcast:ãã > Mo> Tell me what you think, pleaseãã > Looks okay on the surface. Does it work properly? That's what matters. :)ããLOL on the Surface Pro comments :-)ããIt could use some prettying up, maybe break out the days better, but overallãit's functional. Can be laughed at, I mean, seen at:ããhttp://alleycat.synchro.net:81/owm.xjsããThanks ECãããMy doctor said I have the body of a 25 year old ... and the mind of a 10 :-/ãã---ã þ Synchronet þ AlleyCat! BBS - http://alleycat.synchro.net:81ã
  • From Gamgee@VERT/PALANT to Nightfox on Wed Aug 21 21:47:00 2019
    Nightfox wrote to echicken <=-ãã ec> Looks okay on the surface. Does it work properly? That's what matters. :)ãã Ni> The Microsoft Surface (Pro)? It's a great system to run a BBSã Ni> on.ããHahahahaha! I see what you did there... ;-)ãããã... The Word-of-the-Day is "Legs". Spread the word.ã--- MultiMail/Linux v0.52ã þ Synchronet þ Palantir BBS * palantirbbs.ddns.net * Pensacola, FLã