This is the new home of the egghelp.org community forum.
All data has been migrated (including user logins/passwords) to a new phpBB version.


For more information, see this announcement post. Click the X in the top right-corner of this box to dismiss this message.

SayWeather : Support & Updates

Support & discussion of released scripts, and announcements of new releases.
J
JJTX
Voice
Posts: 10
Joined: Tue May 05, 2015 4:44 pm
Location: United States

Post by JJTX »

I got the API and put it in quotes.

Set my default

But the script never responds to me when I do !w zip or location...

It responds when I do !w -see
r
roger
Halfop
Posts: 56
Joined: Sun Jun 17, 2018 12:14 pm

hi

Post by roger »

where did you get your key from?

also did you do a .chanset #channel +weather ?
Last edited by roger on Sun Feb 10, 2019 7:41 pm, edited 1 time in total.
J
JJTX
Voice
Posts: 10
Joined: Tue May 05, 2015 4:44 pm
Location: United States

Re: hi

Post by JJTX »

roger wrote:where did you get your key from?
https://www.apixu.com
r
roger
Halfop
Posts: 56
Joined: Sun Jun 17, 2018 12:14 pm

weather

Post by roger »

Set my default ?
J
JJTX
Voice
Posts: 10
Joined: Tue May 05, 2015 4:44 pm
Location: United States

Re: weather

Post by JJTX »

roger wrote:Set my default ?
Yes I set it......


and its acknowledged


And if I give it a bogus airport code it will say NOT FOUND .

Does the script output a log file ?
J
JJTX
Voice
Posts: 10
Joined: Tue May 05, 2015 4:44 pm
Location: United States

Post by JJTX »

The problem is on my end. I'm using a free shell from my hosting service and in these shells they dont allow server processes.
irc.usairc.org +6697
r
roger
Halfop
Posts: 56
Joined: Sun Jun 17, 2018 12:14 pm

that sucks

Post by roger »

:cry:
J
JJTX
Voice
Posts: 10
Joined: Tue May 05, 2015 4:44 pm
Location: United States

Re: that sucks

Post by JJTX »

roger wrote::cry:
Thanks for trying though. When I grab a paid one, I'll try again.
irc.usairc.org +6697
s
spuniun
Voice
Posts: 10
Joined: Wed Oct 12, 2005 1:03 pm

Post by spuniun »

I've installed the script and edited nothing other than API key and +weather on channel but I have the following binds which look invalid and bot does nothing for !w or any other cmd:

Code: Select all

Command bindings:
  TYPE FLAGS    COMMAND              HITS BINDING (TCL)
  pubm -|-      ?%~\.*                  0 ::saywz::say_w
  pubm -|-      ?%~\!*                  0 ::saywz::say_w
eggy is eggdrop v1.8.4+base on ubuntu 16.04 with tcl8.6 (I assume this is backward compatible?)
w
willyw
Revered One
Posts: 1196
Joined: Thu Jan 15, 2009 12:55 am

Post by willyw »

spuniun wrote:I've installed the script and edited nothing other than API key and +weather on channel but I have the following binds which look invalid and bot does nothing for !w or any other cmd:

Code: Select all

Command bindings:
  TYPE FLAGS    COMMAND              HITS BINDING (TCL)
  pubm -|-      ?%~\.*                  0 ::saywz::say_w
  pubm -|-      ?%~\!*                  0 ::saywz::say_w
eggy is eggdrop v1.8.4+base on ubuntu 16.04 with tcl8.6 (I assume this is backward compatible?)
Those are valid. It's how he wrote the script.

But notice the hit counter? Zero.
Test that some more, please. Because if those hit counters do not increment with every use of command, then something is wacky.

Just to compare, this is from one of mine:

Code: Select all

<mynick> .binds *say*
<bot> [13:37:40] #mynick# binds *say*
<bot> Command bindings:
<bot>   TYPE FLAGS    COMMAND              HITS BINDING (TCL)
<bot>   pubm -|-      ?%~\.*                 20 ::saywz::say_w
<bot>   pubm -|-      ?%~\!*                 61 ::saywz::say_w
<bot>   time -|-      *                    21614 ::saywz::bindtime

For a fun (and popular) Trivia game, visit us at: irc.librairc.net #science-fiction . Over 300K Q & A to play in BogusTrivia !
s
spuniun
Voice
Posts: 10
Joined: Wed Oct 12, 2005 1:03 pm

Post by spuniun »

willyw wrote:Those are valid. It's how he wrote the script.
Thanks for the tip. the way it's binding must be conflicting with my channel encryption scripts cause they are not being handed off to script - I'll have to look at that and see if I can figure a work around.
B
BarGuy
Voice
Posts: 24
Joined: Tue Aug 20, 2019 3:27 pm

Post by BarGuy »

I see apixu is shutting down and switching over to weatherstack.com. I tried editing my sayweather script with my new api key and replacing the apixu input to http://api.weatherstack.com/current?access_key= but I still get Error: No Error and No Location Data?? when trying to trigger weather with my bot. Am I missing something?
User avatar
Arnold_X-P
Master
Posts: 226
Joined: Mon Oct 30, 2006 12:19 am
Location: DALnet - Trinidad - Beni - Bolivia
Contact:

Post by Arnold_X-P »

the tcl worked fine
[12:22] «@Arnold_X-P» !w bolivia
[12:22] «@Kantuta» La Paz, La Paz, Bolivia (-16.5, -68.15): Friday, 04 October 2019 12:23:27

but for a week I see that it no longer works, apparently something was modified or updated on the web:
[02:20] «dddr» !w iquitos
[02:20] «@Kantuta» Error2:
[19:59] «Arnold_X-P» !w japan
[19:59] «@Kantuta» Error: No Error and No Location Data??
.:an ideal world:. www.geocities.ws/chateo/yo.htm
my programming place /server ix.scay.net:7005
R
Ripcord
Voice
Posts: 1
Joined: Thu Oct 10, 2019 9:07 pm

Post by Ripcord »

BarGuy wrote:I see apixu is shutting down and switching over to weatherstack.com. I tried editing my sayweather script with my new api key and replacing the apixu input to http://api.weatherstack.com/current?access_key= but I still get Error: No Error and No Location Data?? when trying to trigger weather with my bot. Am I missing something?
Yeah, I tried the same thing. The new site has changed the format of the URL. I've been going crazy trying to figure out the new URL but haven't had much luck so far.
s
spilled
Voice
Posts: 1
Joined: Thu Nov 07, 2019 9:58 pm

Post by spilled »

Tried the new site with a new apikey. It's replying just using the key and a query arg. here's the URL I used with an bogus key. got a nice piece of JSON back with just a generic query. i never dumped the previous format so I don't know/suspect that we're dealing with the same shape of data here. I doubt it.


http://api.weatherstack.com/current?acc ... ery=Austin

... produces....

{"request":{"type":"City","query":"Austin, United States of America","language":"en","unit":"m"},"location":{"name":"Austin","country":"United States of America","region":"Texas","lat":"30.267","lon":"-97.743","timezone_id":"America\/Chicago","localtime":"2019-11-07 19:43","localtime_epoch":1573155780,"utc_offset":"-6.0"},"current":{"observation_time":"01:43 AM","temperature":8,"weather_code":122,"weather_icons":["https:\/\/assets.weatherstack.com\/images\/wsymbols01_png_64\/wsymbol_0004_black_low_cloud.png"],"weather_descriptions":["Overcast"],"wind_speed":15,"wind_degree":350,"wind_dir":"N","pressure":1027,"precip":2.2,"humidity":83,"cloudcover":100,"feelslike":6,"uv_index":0,"visibility":16,"is_day":"no"}}
Post Reply