Wunderground has had odd problems lately, very specifically with GeoIP lookups. However, it appears that while GeoIP lookups are sometimes returning "querynotfound", if you do a lookup by ZIP, Airport Code, City/State, or Latitude/Longitude, it gives you good results. So, due to a
Hello folks,
So I made some changes to syncWXremix on the Github project page: K>https://github.com/KenDB3/syncWXremix
I don't have any ZIP download on my site yet, so download the updated files K>from Github (link above).
Re: small syncWXremix update
By: KenDB3 to All on Fri Mar 23 2018 04:48:11
Wunderground has had odd problems lately, very specifically with GeoIP lookups. However, it appears that while GeoIP lookups are sometimes returning "querynotfound", if you do a lookup by ZIP, Airport Code, City/State, or Latitude/Longitude, it gives you good results. So, due to a
and all this time I thought it was just me.. lol :)
--
Tim Smith (KK4QBN)
KK4QBN BBS
Hello folks,
So I made some changes to syncWXremix on the Github project page: K>https://github.com/KenDB3/syncWXremix
Ken,
I had disabled SyncWx, as I was getting "query not found" with every
logon of every caller.
I don't have any ZIP download on my site yet, so download the updated files K>from Github (link above).
I'll make a note of that, and get it sometime this weekend.
Daryl
I had been seeing it for a few months, and sometimes it was bad, sometimes it was rare. But, it had gotten really annoying and I had been mulling over a solution for a little while. I just needed to dedicate some time to working it out.
Hopefully the fix is a good one and doesn't cause more problems than it fixes.
If anyone sees problems with the recent changes, feel free to let me know.
It was bad there for a few weeks where it was happening all the time. It has gotten better, but I knew if it got bad again I would be super annoyed. Again, I hope the fix works out well.
Re: small syncWXremix update
By: KenDB3 to All on Fri Mar 23 2018 04:48:11
If anyone sees problems with the recent changes, feel free to let me know.
Just updated directly from your github and getting this error:
3/24 08:36:01 term Node 1 !JavaScript /sbbs/xtrn/syncwx/wxlanguage.js line 9: TypeError: opts is null
3/24 08:36:01 term Node 1 TypeError: options is null
I downloaded the whole source tarball/zip whatever and extracted it did'nt appear that wxlanguage.js has been touched in 2 years.
--
Tim Smith (KK4QBN)
KK4QBN BBS
In your modopts.ini file, do you have a line for 'language' that looks like this?
[SyncWX]
wungrndAPIkey = (some long string yada yada)
weathericon_ext = .asc
fallback_type = bbsip
fallback = 02865
language = en
That might be what's missing. However, it really should have defaulted to English for the language even if it is missing or blank (I tested both scenarios). But, add it and let me know if that fixes it.
In your modopts.ini file, do you have a line for 'language' that
looks like this?
[SyncWX]
wungrndAPIkey = (some long string yada yada)
weathericon_ext = .asc
fallback_type = bbsip
fallback = 02865
language = en
Re: Re: small syncWXremix update
By: KK4QBN to KenDB3 on Sun Mar 25 2018 09:59:03
In your modopts.ini file, do you have a line for 'language' that
looks like this?
[SyncWX]
wungrndAPIkey = (some long string yada yada)
weathericon_ext = .asc
fallback_type = bbsip
fallback = 02865
language = en
Ok, I've got the correct info back in there and came up with this mess:
/25 10:07:03 term Node 1 KK4QBN running external program: SyncWXRemix (Weather) 3/25 10:07:03 term Node 1 192.168.254.2
3/25 10:07:04 term Node 1 sending telnet cmd: DO Terminal Location Number 3/25 10:07:05 term Node 1 Invalid reply to TTYLOC command.
3/25 10:07:05 term Node 1 ERROR in weather.js: api.wunderground.com returned a 'querynotfound' error with this description: 'No cities match your search query'.
3/25 10:07:05 term Node 1 DEBUG for weather.js. API call looked like this at time of error: http://api.wunderground.com/api/**********/conditions/forecast/astronomy/ alerts/lang:EN/q/autoip.json?geo_ip=192.168.254.3
3/25 10:07:05 term Node 1 DEBUG for weather.js. The user.connection object looked like this at the time of error: Telnet
3/25 10:07:05 term Node 1 DEBUG for weather.js. The dialup variable looked like this at the time of error: false
3/25 10:07:05 term Node 1 DEBUG for weather.js. The language defined in /ctrl/modopts.ini is: undefined
I presume it's because it's passing my local ip off, so anything outside my router should work..
--
Tim Smith (KK4QBN)
KK4QBN BBS
Tim,
There should be some logic that catches private IP addresses and instead decides to run the query will a fallback of some sort. echicken helped me write it and I have more faith in him that I do in my own coding skills, lol.
Could you do a copy/paste of your [SyncWX] section from modopts.ini? Of course remove/mask out the Wunderground Key :-D
Also, to test externally from your network, you might want to try one of the ftelnet proxies http://my.ftelnet.ca/. I do that quite a bit when testing syncWXremix. Just make sure to use one of Ree's built-in Proxies (ie. New Jersey, Atlanta, etc..., which can be found here: http://my.ftelnet.ca/settings/).
Re: Re: small syncWXremix update
By: KenDB3 to KK4QBN on Tue Mar 27 2018 09:57:32
Tim,
There should be some logic that catches private IP addresses and
instead decides to run the query will a fallback of some sort.
echicken helped me write it and I have more faith in him that I do
in my own coding skills, lol.
Could you do a copy/paste of your [SyncWX] section from modopts.ini?
Of course remove/mask out the Wunderground Key :-D
[syncWX]
wungrndAPIkey = WouldNtULikeToKnow
weathericon_ext = .asc
fallback_type = noip
fallback = 30705
Also, to test externally from your network, you might want to try
one of the ftelnet proxies http://my.ftelnet.ca/. I do that quite a
bit when testing syncWXremix. Just make sure to use one of Ree's
built-in Proxies (ie. New Jersey, Atlanta, etc..., which can be
found here: http://my.ftelnet.ca/settings/).
It works from outside the router.
OK, I think I see it. Change the fallback_type line to this:
fallback_type = nonip
Cool, so the rest is working as intended.
Let me know how it goes. :-)
Re: Re: small syncWXremix update
By: KenDB3 to KK4QBN on Tue Mar 27 2018 19:59:38
OK, I think I see it. Change the fallback_type line to this: fallback_type = nonip
Ooop, see what I did there.. Ok thanks much.
Cool, so the rest is working as intended.
Let me know how it goes. :-)
and that did do the trick, thanks again!
--
Tim Smith (KK4QBN)
KK4QBN BBS
| Sysop: | Winzlo |
|---|---|
| Location: | Minnesota, USA |
| Users: | 11 |
| Nodes: | 16 (0 / 16) |
| Uptime: | 495944:56:10 |
| Calls: | 82 |
| Files: | 1,070 |
| D/L today: |
27 files (11,920K bytes) |
| Messages: | 287,039 |