• exec/load/openweathermap.js

    From echicken@VERT to CVS commit on Sun Jan 6 04:32:41 2019
    exec/load openweathermap.js NONE 1.1
    Update of /cvsroot/sbbs/exec/load
    In directory cvs:/tmp/cvs-serv27185

    Added Files:
    openweathermap.js
    Log Message:
    Barebones interface to the openweathermap.org web API.
    Cache and rate limiting is useless right now unless calling script is long-lived.



    ---
    ■ Synchronet ■ Vertrauen ■ Home of Synchronet ■ [vert/cvs/bbs].synchro.net
  • From echicken@VERT to CVS commit on Sun Jan 6 04:58:52 2019
    exec/load openweathermap.js 1.1 1.2
    Update of /cvsroot/sbbs/exec/load
    In directory cvs:/tmp/cvs-serv30225

    Modified Files:
    openweathermap.js
    Log Message:
    File-based cache and rate-limiting.



    ---
    ■ Synchronet ■ Vertrauen ■ Home of Synchronet ■ [vert/cvs/bbs].synchro.net
  • From echicken@VERT to CVS commit on Sun Jan 6 05:13:53 2019
    exec/load openweathermap.js 1.2 1.3
    Update of /cvsroot/sbbs/exec/load
    In directory cvs:/tmp/cvs-serv31690

    Modified Files:
    openweathermap.js
    Log Message:
    Use system.temp_dir instead of polluting system.data_dir.
    Instead of one large cache file, one file per endpoint + param set.



    ---
    ■ Synchronet ■ Vertrauen ■ Home of Synchronet ■ [vert/cvs/bbs].synchro.net
  • From echicken@VERT to CVS commit on Sun Jan 6 20:27:03 2019
    exec/load openweathermap.js 1.3 1.4
    Update of /cvsroot/sbbs/exec/load
    In directory cvs:/tmp/cvs-serv29274

    Modified Files:
    openweathermap.js
    Log Message:
    Some convenience methods for temperature conversion & wind direction from degrees.



    ---
    ■ Synchronet ■ Vertrauen ■ Home of Synchronet ■ [vert/cvs/bbs].synchro.net
  • From echicken@VERT to CVS commit on Sun Jan 6 21:58:09 2019
    exec/load openweathermap.js 1.4 1.5
    Update of /cvsroot/sbbs/exec/load
    In directory cvs:/tmp/cvs-serv7930

    Modified Files:
    openweathermap.js
    Log Message:
    Simplified wind direction from degrees thing.



    ---
    ■ Synchronet ■ Vertrauen ■ Home of Synchronet ■ [vert/cvs/bbs].synchro.net
  • From echicken@VERT to CVS commit on Mon Jan 7 01:48:29 2019
    exec/load openweathermap.js 1.5 1.6
    Update of /cvsroot/sbbs/exec/load
    In directory cvs:/tmp/cvs-serv8091

    Modified Files:
    openweathermap.js
    Log Message:
    Pass freedom units of temperature measurement through Math.round().
    Use 'dt' value of API response to determine whether to update cache, rather than time since last fetch. New data may appear sooner.



    ---
    ■ Synchronet ■ Vertrauen ■ Home of Synchronet ■ [vert/cvs/bbs].synchro.net
  • From echicken@VERT to CVS commit on Mon Jan 21 20:04:05 2019
    exec/load openweathermap.js 1.6 1.7
    Update of /cvsroot/sbbs/exec/load
    In directory cvs:/tmp/cvs-serv22526

    Modified Files:
    openweathermap.js
    Log Message:
    Added 'raw' parameter to call_api, for fetching non-JSON data.



    ---
    ■ Synchronet ■ Vertrauen ■ Home of Synchronet ■ [vert/cvs/bbs].synchro.net
  • From echicken@VERT to CVS commit on Fri Jan 25 18:15:38 2019
    exec/load openweathermap.js 1.7 1.8
    Update of /cvsroot/sbbs/exec/load
    In directory cvs:/tmp/cvs-serv17533

    Modified Files:
    openweathermap.js
    Log Message:
    Don't cache response if HTTP response code out of range of goodness.



    ---
    ■ Synchronet ■ Vertrauen ■ Home of Synchronet ■ [vert/cvs/bbs].synchro.net
  • From mcmlxxix@VERT to CVS commit on Wed May 15 13:05:13 2019
    exec/load openweathermap.js 1.8 1.9
    Update of /cvsroot/sbbs/exec/load
    In directory cvs:/tmp/cvs-serv19246

    Modified Files:
    openweathermap.js
    Log Message:
    don't crash if there is no openweathermap section in modopts.ini


    ---
    ■ Synchronet ■ Vertrauen ■ Home of Synchronet ■ [vert/cvs/bbs].synchro.net
  • From mcmlxxix@VERT to CVS commit on Wed May 15 13:40:39 2019
    exec/load openweathermap.js 1.9 1.10
    Update of /cvsroot/sbbs/exec/load
    In directory cvs:/tmp/cvs-serv4859

    Modified Files:
    openweathermap.js
    Log Message:
    throw exception on no api key found in modopts.ini


    ---
    ■ Synchronet ■ Vertrauen ■ Home of Synchronet ■ [vert/cvs/bbs].synchro.net
  • From echicken@VERT to CVS commit on Fri Aug 16 12:00:13 2019
    exec/load openweathermap.js 1.10 1.11
    Update of /cvsroot/sbbs/exec/load
    In directory cvs:/tmp/cvs-serv12764

    Modified Files:
    openweathermap.js
    Log Message:
    'mode' param can be omitted in call_api unless you don't want json.



    ---
    ■ Synchronet ■ Vertrauen ■ Home of Synchronet ■ [vert/cvs/bbs].synchro.net