• Error with Weather program

    From Steven Sheeley@VERT/INFINITY to KenDB3 on Tuesday, September 27, 2016 18:36:34
    Hello KenDB3!


    I've recently upgraded to SBBS 3.17 and have encoun tered and error in your weather door. It was working fine before the upgrade, now, I get the following error when a user logs in and the weatehr for thier location is displayed:

    Node 1 ERROR in weather.js: api.wunderground.com returned a 'querynotfound' error with this description: 'No cities match your search query'.

    What other information do you need to troubleshoot this?

    Steven


    ... The fearless Spaceman Spiff sets off to explore a new planet.
    --- GoldED+/W32-MSVC 1.1.5-b20160322
    Synchronet Split Infinity BBS - infinity.synchro.net
  • From KenDB3@VERT/KD3NET to Steven Sheeley on Wednesday, September 28, 2016 15:38:03
    Re: Error with Weather program
    By: Steven Sheeley to KenDB3 on Tue Sep 27 2016 06:36 pm

    Hello KenDB3!

    I've recently upgraded to SBBS 3.17 and have encoun tered and error in your weather door. It was working fine before the upgrade, now, I get the following error when a user logs in and the weatehr for thier location is displayed:

    Node 1 ERROR in weather.js: api.wunderground.com returned a 'querynotfound' error with this description: 'No cities match your search query'.

    What other information do you need to troubleshoot this?

    Steven

    My first guess is that maybe the file /sbbs/ctrl/modopts.ini was overwritten and you are now missing the section for [syncWX]. Check the Sysop.txt under Section II, part 2.

    If that is not it, then some Debug info might be helpful here.

    In Synchronet, change your LogLevel to be Debugging. This should generate a Debug message in your Synchronet Control Panel and Logs that has the actual String sent to wunderground.com and the error the API kicked back (hopefully).

    Changing the LogLevel is done in /sbbs/ctrl/sbbs.ini
    More info about it is listed here: http://wiki.synchro.net/config:sbbs.ini#loglevel

    I also have some FAQ's here: https://github.com/KenDB3/syncWXremix/blob/master/FAQs.md

    ~KenDB3

    ---
    Synchronet KD3net-Rhode Island's only BBS about nothing. http://bbs.kd3.us
  • From Steven Sheeley@VERT/INFINITY to KenDB3 on Wednesday, September 28, 2016 20:44:42
    Hello KenDB3!

    28 Sep 16 15:38, you wrote to me:


    My first guess is that maybe the file /sbbs/ctrl/modopts.ini was overwritten and you are now missing the section for [syncWX]. Check
    the Sysop.txt under Section II, part 2.

    Nope, that section is still in the modopts.ini file

    If that is not it, then some Debug info might be helpful here.

    In Synchronet, change your LogLevel to be Debugging. This should
    generate a Debug message in your Synchronet Control Panel and Logs
    that has the actual String sent to wunderground.com and the error the
    API kicked back (hopefully).

    ; Highest log level to actually log/print (ignore all higher/less-severe log entries):
    ; This log level may be overridden for each server/service
    ; Supported log levels in decreasing severity (ala syslog):
    ; Emergency, Alert, Critical, Error, Warning, Notice, Informational, Debugging
    LogLevel=Debugging

    Logging level is set to debug and this is what I got from

    @ 20:42 Wed Sep 28 2016 Node 1
    @+ Telnet SplitInfinity [192.168.1.28]
    ++ (0001) Buckaroo Banzai Logon 0 - 11
    X- Buckaroo Banzai running external program: Bullshit
    X- Buckaroo Banzai running external program: Your Local Weather
    /O
    @- 20:43 T: 0 R: 0 P: 0 E: 0 F: 0 U: 0k 0 D: 0k 0

    From the log 092816.log in my ./sbbs/data/logs directory.

    Is that what you are looking for?



    Steven


    ... The decontamination unit called. You're socks are clean.
    --- GoldED+/W32-MSVC 1.1.5-b20160322
    Synchronet Split Infinity BBS - infinity.synchro.net
  • From KenDB3@VERT/KD3NET to Steven Sheeley on Thursday, September 29, 2016 13:04:26
    Re: Error with Weather program
    By: Steven Sheeley to KenDB3 on Wed Sep 28 2016 08:44 pm

    If that is not it, then some Debug info might be helpful here.

    In Synchronet, change your LogLevel to be Debugging. This should
    generate a Debug message in your Synchronet Control Panel and Logs
    that has the actual String sent to wunderground.com and the error
    the API kicked back (hopefully).

    ; Highest log level to actually log/print (ignore all higher/less-severe log entries): ; This log level may be overridden for each server/service
    ; Supported log levels in decreasing severity (ala syslog):
    ; Emergency, Alert, Critical, Error, Warning, Notice, Informational, Debugging
    LogLevel=Debugging

    Logging level is set to debug and this is what I got from

    @ 20:42 Wed Sep 28 2016 Node 1
    @+ Telnet SplitInfinity [192.168.1.28]
    ++ (0001) Buckaroo Banzai Logon 0 - 11
    X- Buckaroo Banzai running external program: Bullshit
    X- Buckaroo Banzai running external program: Your Local Weather
    /O
    @- 20:43 T: 0 R: 0 P: 0 E: 0 F: 0 U: 0k 0 D: 0k 0

    From the log 092816.log in my ./sbbs/data/logs directory.

    Is that what you are looking for?

    Steven, I'm replying here, but I also read your email to me, but when I tried to reply back, I noticed your domain for your email was coming up as your private IP (192.168.x.x), so I am guessing you didn't get the email.

    <Adding Good Info From Your Emails>

    I think I've tracked down the issue. In SBBS 3.16c the door worked perfectly when I conecnted locally. My BBS is on my unroutable adres 192.168.1.28 abd my lcoal machine sits on the same networl The door
    used to give the GEO-IP address of the Public address of my BBS when
    I netered locally and it was correct.

    Now, SBBS, is sending the un-reoutable IP address in the string.
    I included all the debug into in my follow up post on Dove-Net

    Here's the info from my SBBS.INI

    [Global]
    ; Override system address for this instance (optional): HostName=infinity.synchro.net
    ; IP address of network interface to bind to (defaults to ANY/ALL
    interfaces):
    Interface=0.0.0.0

    Is this the log info you mentioned adding? Because when I emailed you, I was advising that there is better log info directly in the SBBS Control Panel.

    I took some screen shots. This is the program running normally: http://bbs.kd3.us/screenshots/Synchronet-Windows-Control-Panel.png

    This example is if there is an error, there is Debug info you can grab: http://bbs.kd3.us/screenshots/Synchronet-Windows-Control-Panel-with-error.png

    I think I know what's going on, and you probably can do an easy fix on your end. But I want to see the Debug to see whether it is something that can be avoided with a code fix in the app.

    ~KenDB3

    ---
    Synchronet KD3net-Rhode Island's only BBS about nothing. http://bbs.kd3.us
  • From Steven Sheeley@VERT/INFINITY to KenDB3 on Thursday, September 29, 2016 13:44:42
    Hello KenDB3!

    Replying to a msg dated 29 Sep 16 13:04, from you to me.

    Not sure why the hostname is comming across as my internet network. ANd port 25 is redirtected by my ISP so I use the Synchro relay mail server.


    I discovered once the debug was turned on what was going on. If I conencted to the BBS from inside my internal network, the script was sending the IP of my internal network. If I came in from "outside" then it sent the External IP address and the door works.

    Based on your recommendation, I set the fallback setting in modopts.ini to this:

    [syncWX]
    wungrndAPIkey = xxxxxxxxxxxxxxxxxxxxx
    weathericon_ext = .asc
    fallback_type = nonip
    fallback = 25984

    and now everything is working just fine. Thanks for looking at this!


    Steven


    ... New friends are fun to find...so are old ancestors
    --- GoldED+/W32-MSVC 1.1.5-b20160322
    Synchronet Split Infinity BBS - infinity.synchro.net
  • From KenDB3@VERT/KD3NET to Steven Sheeley on Thursday, September 29, 2016 14:23:57
    Re: Error with Weather program
    By: Steven Sheeley to KenDB3 on Thu Sep 29 2016 01:44 pm

    I discovered once the debug was turned on what was going on. If I conencted to the BBS from inside my internal network, the script was sending the IP of my internal network. If I came in from "outside" then it sent the External IP address and the door works.

    Based on your recommendation, I set the fallback setting in modopts.ini to this:

    [syncWX]
    wungrndAPIkey = xxxxxxxxxxxxxxxxxxxxx
    weathericon_ext = .asc
    fallback_type = nonip
    fallback = 25984

    and now everything is working just fine. Thanks for looking at this!

    Awesome! Glad it is working! :-)

    ~KenDB3

    ---
    Synchronet KD3net-Rhode Island's only BBS about nothing. http://bbs.kd3.us