Subj : Re: run external php script
To   : Mortifis
From : echicken
Date : Sun Feb 10 2019 04:15 pm

 Re: Re: run external php script
 By: Mortifis to echicken on Sun Feb 10 2019 16:37:16

Mo> BTW where do I find your openweathermap.js? I looked on github under
Mo> web4but seem to have lost my glasses :-o

It's a generic library and not part of the web interface.  I put it in the
Synchronet CVS under exec/load/.  Note that the script doesn't do anything on
its own to display information to a BBS user; it's a library for scripts that
want to interact with the OWM API.

I did create a sidebar module for the web interface that uses this library;
it's under web/sidebar/.extras/ in the github repo.

OpenWeatherMap use requires an API key, so you'll have to go to their site and
sign up for one.  Add a section to ctrl/modopts.ini like this:

[openweathermap]
api_key=your_api_key_here

The library is designed to cache data and respect the rate limits imposed on
OWM free-tier accounts by default.

---
echicken
electronic chicken bbs - bbs.electronicchicken.com - 416-425-5435
� Synchronet � electronic chicken bbs - bbs.electronicchicken.com