so i was playing around with the weather irc bot and i got this error.from
no openweathermap API key found in modopts.ini
i dont see a section for that in my modopts.ini and i grabbed a tarball
the cvs.
are there any docs for setting this up?
Re: weather irc bot
By: MRO to echicken on Fri Aug 23 2019 10:24:09
so i was playing around with the weather irc bot and i got this error.
no openweathermap API key found in modopts.ini
i dont see a section for that in my modopts.ini and i grabbed a tarball from
the cvs.
are there any docs for setting this up?
I haven't documented it anywhere yet, except for some comments in a script.
You can sign up here:
https://home.openweathermap.org/users/sign_up
Then add this to ctrl/modopts.ini:
[openweathermap]
api_key = your_api_key
[openweathermap]
is it working for you right now?
Re: weather irc bot
By: MRO to echicken on Fri Aug 23 2019 16:42:00
[openweathermap]
is it working for you right now?
Yep, it just worked for me. Sometimes it's a bit slow.
It's possible that the geoip lookup is failing silently or something - I can remember what it does and doesn't log. Will see if I can take a look at it later.
OpenWeatherMap's only stated limit for the free tier is 60 requests per minu The library takes that into account, throttles requests, and maintains a cac I haven't heard of them suspending accounts, but maybe they temporarily disa them. I'll switch APIs if necessary, but they all have some kind of limit (apixu's is 10,000 requests/month).
You could try updating exec/load/geoip.js. I made a change last night to ma it easier for people to use their own API key for the geoip service. http://ipinfodb.com/register.php, and the key would go in modopts.ini -> [geoip] -> api_key.
When the geoip library encounters an error it fails silently, so if it's not working you might not see any messages. Everyone uses the same ipinfodb
okay, i grabbed everything off the cvs and added the line to modopts.ini
[openweathermap]
api_key = XXXXX (my api key)
There are two APIs being used - OpenWeatherMap, and IPInfoDB. If you regist here:
okay, i grabbed everything off the cvs and added the line to
modopts.ini
[openweathermap]
api_key = XXXXX (my api key)
do you want me to send you some files? not sure if i'm missing somethinghere.
Re: weather irc bot
By: echicken to MRO on Sun Aug 25 2019 12:23 am
OpenWeatherMap's only stated limit for the free tier is 60 requests per m The library takes that into account, throttles requests, and maintains a I haven't heard of them suspending accounts, but maybe they temporarily d
Sysop: | sneaky |
---|---|
Location: | Ashburton,NZ |
Users: | 31 |
Nodes: | 8 (0 / 8) |
Uptime: | 102:01:37 |
Calls: | 2,071 |
Calls today: | 1 |
Files: | 11,134 |
Messages: | 947,014 |