• Re: XQ-Weather not working in windows

    From xqtr@21:1/136 to Caphood on Sunday, July 31, 2016 08:35:00
    Yea - I can't get this to work on my Mystic Windows either. Also it
    really needs zipcode input instead of a city name..
    there are 3 or more cities in the US with the name of Hudson
    so thats not going to insure my city is the right one when i enter
    Hudson.

    It doesn't need zip code, just the name of the city... london, paris, new
    yourk etc.

    You can also add the name of the State, to narrow the possibility to get another city.

    --- Mystic BBS v1.12 A26 (Raspberry Pi)
    * Origin: force9 - London, UK (bbs.force9.org) (21:1/136)
  • From xqtr@21:1/136 to solaris on Sunday, July 31, 2016 08:39:00
    looked at the python code It looks like its using a weather undergound
    key for weather data access. try your zip on the weather underground

    It uses OpenWeatherMap, not Weather Underground.

    --- Mystic BBS v1.12 A26 (Raspberry Pi)
    * Origin: force9 - London, UK (bbs.force9.org) (21:1/136)
  • From xqtr@21:1/136 to solaris on Sunday, July 31, 2016 08:43:00
    and are having the same issues, the ansi is distorted , and the out put
    is just a black screen . Has anyone running windows got this program to

    It's a linux/windows thing... i used TundraDraw for the ANSI image to create it, in linux. Make a try and open the ansi with an ANSI editor on Windows and see if it opens correctly... if so, then save it again... maybe this will fix it.

    --- Mystic BBS v1.12 A26 (Raspberry Pi)
    * Origin: force9 - London, UK (bbs.force9.org) (21:1/136)
  • From solaris@21:1/102 to xqtr on Sunday, July 31, 2016 04:48:00
    It's a linux/windows thing... i used TundraDraw for the ANSI image to create it, in linux. Make a try and open the ansi with an ANSI editor on Windows and see if it opens correctly... if so, then save it again... maybe this will fix it.

    got the ANSI mostly squared away on the input city page , but still get a
    blank screen for weather info.

    |05..-(|03 Sola|08ris|05 )..--
    |07Always at |03my PC double cl|08ick'n on my mizouse !

    --- Mystic BBS v1.12 A30 (Windows)
    * Origin: Error 404 BBS (21:1/102)
  • From xqtr@21:1/101 to solaris on Sunday, July 31, 2016 21:21:00
    got the ANSI mostly squared away on the input city page , but still get a blank screen for weather info.

    hmmm... you shouldn't... the script exports the data in mystic pipe codes,
    not ANSI. Also try to open the python script with a text editor like
    Notepad++ and save it as a windows file with CRLFs. It may fix the problem.

    |08\|15x|08/

    --- Mystic BBS v1.12 A30 (Windows)
    * Origin: Agency BBS | telnet://agency.bbs.geek.nz (21:1/101)
  • From solaris@21:1/102 to xqtr on Sunday, July 31, 2016 07:07:00
    like Notepad++ and save it as a windows file with CRLFs. It may fix the problem.

    OK saved the python script with notepad ++ with CRLFs, still no weather data willing to try any other ideas on how to fix . let me know
    thanks

    |05..-(|03 Sola|08ris|05 )..--
    |07Always at |03my PC double cl|08ick'n on my mizouse !

    --- Mystic BBS v1.12 A30 (Windows)
    * Origin: Error 404 BBS (21:1/102)
  • From xqtr@21:1/136 to solaris on Sunday, July 31, 2016 14:58:00
    OK saved the python script with notepad ++ with CRLFs, still no weather data willing to try any other ideas on how to fix . let me know
    thanks

    Execute the python script by it self... if it doesn't outputs any text, then you have to install python3 or a package of python3 that it may be missing.

    If it does outputs text, excute the script xq-weather from inside your bbs... open the file explorer and check inside the scripts folder of Mystic for a
    file named cityweather.ans... open it. Do you see any text in it? If not then something is going wrong with Command Redirection in Windows... xq-weather
    uses the > operator to save the output of the python script. Also in line 30
    of the xq-weather script, insert the following:

    writeln(datapath)
    pause

    Run the script again and check if that folder is correct.. maybe a \ missing?

    I can't think something else... :( i dont have a windows machine to test it
    my self, sorry.

    --- Mystic BBS v1.12 A26 (Raspberry Pi)
    * Origin: force9 - London, UK (bbs.force9.org) (21:1/136)
  • From Caphood@21:1/112 to xqtr on Sunday, July 31, 2016 11:12:00
    Execute the python script by it self... if it doesn't outputs any text, then you have to install python3 or a package of python3 that it may be missing.

    Im also on windows and get this error running the python script
    at the command line:

    C:\mystic\scripts>getweather.py
    File "C:\mystic\scripts\getweather.py", line 74
    print('ERROR: %d - %s' % (resp.status, resp.reason), file=sys.stderr)
    ^
    SyntaxError: invalid syntax

    C:\mystic\scripts>

    ²ß±ß° {tHE.pIRATE.kING} ÜßÛßÜ
    ß²Ü°ß HOIST THE COLOURS ßÛÜÛß
    þþþ NEVER SHALL WE DIE. ÝÝÞ SIMMAH DOWN NAH! heah SIMMAH DOWN NAH!

    --- Mystic BBS v1.12 A30 (Windows)
    * Origin: ACiD Telnet HQ / blackflag.acid.org (21:1/112)
  • From solaris@21:1/102 to xqtr on Sunday, July 31, 2016 15:07:00
    I can't think something else... :( i dont have a windows machine to test it my self, sorry.

    Would you be willing to teamview in to a windows system to see if you can it
    to work .. If so you can email at error404bbs@bex.net or find on facebook sysop solaris , and send me a PM. thanks

    |05..-(|03 Sola|08ris|05 )..--
    |07Always at |03my PC double cl|08ick'n on my mizouse !

    --- Mystic BBS v1.12 A30 (Windows)
    * Origin: Error 404 BBS (21:1/102)
  • From xqtr@21:1/101 to Caphood on Monday, August 01, 2016 10:20:00
    Im also on windows and get this error running the python script
    at the command line:

    C:\mystic\scripts>getweather.py
    File "C:\mystic\scripts\getweather.py", line 74
    print('ERROR: %d - %s' % (resp.status, resp.reason), file=sys.stderr)

    This is a Python error... make sure you have installed python3 and all necessary packages.

    |08\|15x|08/

    --- Mystic BBS v1.12 A30 (Windows)
    * Origin: Agency BBS | telnet://agency.bbs.geek.nz (21:1/101)
  • From Caphood@21:1/112 to xqtr on Sunday, July 31, 2016 19:29:00
    This is a Python error... make sure you have installed python3 and all necessary packages.
    * Origin: Agency BBS | telnet://agency.bbs.geek.nz (21:1/101)

    I run python 2.7 which is recommended for Mystic Windows

    ²ß±ß° {tHE.pIRATE.kING} ÜßÛßÜ
    ß²Ü°ß HOIST THE COLOURS ßÛÜÛß
    þþþ NEVER SHALL WE DIE. ÝÝÞ SIMMAH DOWN NAH! heah SIMMAH DOWN NAH!

    --- Mystic BBS v1.12 A30 (Windows)
    * Origin: ACiD Telnet HQ / blackflag.acid.org (21:1/112)
  • From xqtr@21:1/101 to Caphood on Monday, August 01, 2016 22:56:00
    I run python 2.7 which is recommended for Mystic Windows

    the getweather.py script needs python3, if you open it you will see it. In linux we can install both versions. In windows i dont know :(

    If you manage to install python3, make sure that the script xq-weather.mps executes the getweather.py script with python3... find the appropriate line
    of code and put something like python3.exe getweather.py.

    |08\|15x|08/

    --- Mystic BBS v1.12 A30 (Windows)
    * Origin: Agency BBS | telnet://agency.bbs.geek.nz (21:1/101)