• weather_functions.js

    From ansunent@VERT/ANSUN to all on Tue Jan 3 21:19:00 2023
    Does this actually work? I have it set up (API key, timed event, my synchro.net we address, port 6667, port open on the network side, & etc.). It's running seemingly without issue--no errors. And the only output I get in my log is what you see below:

    1/3 12:15:12a WEATHER Running timed event: WEATHER
    1/3 12:15:12a WEATHER Timed event: WEATHER returned 0

    However, no weather in my IRC room... :( Any idea what I may be doing wrong?

    ---
    ï¿­ Synchronet ï¿­ ANSUN - ansun.synchro.net
  • From Nelgin@VERT/EOTLBBS to ansunent on Sun Jan 8 14:41:30 2023
    On Tue, 3 Jan 2023 21:19:00 -0600
    "ansunent" <ansunent@VERT/ANSUN> wrote:
    Does this actually work? I have it set up (API key, timed event, my synchro.net we address, port 6667, port open on the network side, &
    etc.). It's running seemingly without issue--no errors. And the only
    output I get in my log is what you see below:

    1/3 12:15:12a WEATHER Running timed event: WEATHER
    1/3 12:15:12a WEATHER Timed event: WEATHER returned 0

    However, no weather in my IRC room... :( Any idea what I may be doing
    wrong?
    Yes.
    [14:38] <@nelgin> !weather
    [14:38] <EOTLBOT> Weather for Dallas: Clear (clear sky), 0% cloudy,
    Current temp: 16°C (61°F), Min temp: 14°C (58°F), Max temp: 18°C
    (64°F), Wind: 2.06 KM/h NE, Humidity: 35%, Pressure: 1025 hPa, Sunrise:
    Sun Jan 08 2023 07:30:20, Sunset: Sun Jan 08 2023 17:36:59 (Provided by OpenWeatherMap.org)
    --
    End Of The Line BBS - Plano, TX
    telnet endofthelinebbs.com 23
    ---
    ï¿­ Synchronet ï¿­ End Of The Line BBS - endofthelinebbs.com
  • From ansunent@VERT/ANSUN to Nelgin on Tue Jan 10 10:31:42 2023
    Sorry, you said, "yes". Did you have a specific suggestion?

    ---
    ï¿­ Synchronet ï¿­ ANSUN - ansun.synchro.net
  • From MRO@VERT/BBSESINF to ansunent on Wed Jan 11 20:54:36 2023
    Re: Re: weather_functions.jsã By: ansunent to Nelgin on Tue Jan 10 2023 10:31 amãã > Sorry, you said, "yes". Did you have a specific suggestion?ããdid you get an api key from the website?ããi have 2 different types of bots that do weather scripts but i couldn't getãthat synchronet weather bot to work. does it even have documentation yet?ããã---ã þ Synchronet þ ::: BBSES.info - free BBS services :::ã
  • From ansunent@VERT/ANSUN to MRO on Thu Jan 12 01:32:28 2023
    Re: Re: weather_functions.js
    By: ansunent to Nelgin on Tue Jan 10 2023 10:31 am

    did you get an api key from the website?

    i have 2 different types of bots that do weather scripts but i couldn't get that synchronet weather bot to work. does it even have documentation yet?

    I haven't found any for the synchronet weather bot, but I think i have narrowed it down to this error: ""IRCBOT !JavaScript C:\sbbs\exec\load\modopts.js line 37: ReferenceError: argv is not defined". Still troubleshooting, but haven't found the resolution as of yet.

    Where can I get this other bot?

    ---
    ï¿­ Synchronet ï¿­ ANSUN - ansun.synchro.net
  • From MRO@VERT/BBSESINF to ansunent on Fri Jan 13 07:02:27 2023
    Re: Re: weather_functions.jsã By: ansunent to MRO on Thu Jan 12 2023 01:32 amãã > > Re: Re: weather_functions.jsã > > By: ansunent to Nelgin on Tue Jan 10 2023 10:31 amã >ã > > did you get an api key from the website?ã >ã > > i have 2 different types of bots that do weather scripts but i couldn'tã > > get that synchronet weather bot to work. does it even have documentationã > > yet?ã >ã > I haven't found any for the synchronet weather bot, but I think i haveã > narrowed it down to this error: ""IRCBOT !JavaScriptã > C:\sbbs\exec\load\modopts.js line 37: ReferenceError: argv is not defined".ã > Still troubleshooting, but haven't found the resolution as of yet.ã >ã > Where can I get this other bot?ããeggdropã---ã þ Synchronet þ ::: BBSES.info - free BBS services :::ã
  • From Nelgin@VERT/EOTLBBS to All on Sat Jan 14 22:09:42 2023
    On Tue, 10 Jan 2023 10:31:42 -0600ã"ansunent" <ansunent@VERT/ANSUN> wrote:ãã> Sorry, you said, "yes". Did you have a specific suggestion?ã> ã> ---ã> _ Synchronet _ ANSUN - ansun.synchro.netãããNo, you asked does this actually work and I responded with evidenceãthat it does.ã-- ãEnd Of The Line BBS - Plano, TXãtelnet endofthelinebbs.com 23ã---ã þ Synchronet þ End Of The Line BBS - endofthelinebbs.comã
  • From ansunent@VERT/ANSUN to MRO on Mon Jan 16 04:35:37 2023
    Ok. So, I've narrowed down the issue.

    The error I'm getting says, "owm.call_api is not a function".

    In sbbs/exec/ircbots/weather/weather_commands.js, "owm.call_api" is called upon twice. Once on line 18 for the "weather" function and again line 60 for the "forecast" function.

    It seems that this is an error in the script. I've tried various things (defining "owm.call_api", & etc.). So far, nothing has worked. I have no idea where else to go with this.

    ---
    ï¿­ Synchronet ï¿­ ANSUN - ansun.synchro.net
  • From MRO@VERT/BBSESINF to ansunent on Tue Jan 17 08:06:47 2023
    Re: Re: weather_functions.jsã By: ansunent to MRO on Mon Jan 16 2023 04:35 amãã > Ok. So, I've narrowed down the issue.ã >ã > The error I'm getting says, "owm.call_api is not a function".ã >ã > In sbbs/exec/ircbots/weather/weather_commands.js, "owm.call_api" is calledã > upon twice. Once on line 18 for the "weather" function and again line 60ã > for the "forecast" function.ã >ã > It seems that this is an error in the script. I've tried various thingsã > (defining "owm.call_api", & etc.). So far, nothing has worked. I have noã > idea where else to go with this.ããyou have to talk to the script creator. and ask him to please create some documentation , too. i suggest you just run eggdrop and i can give you a script that works for weather.ã---ã þ Synchronet þ ::: BBSES.info - free BBS services :::ã
  • From ansunent@VERT/ANSUN to MRO on Wed Jan 18 00:32:37 2023
    Re: Re: weather_functions.js
    By: ansunent to MRO on Mon Jan 16 2023 04:35 am

    you have to talk to the script creator. and ask him to please create some documentation , too. i suggest you just run eggdrop and i can give you a script that works for weather.
    ---
    � Synchronet � ::: BBSES.info - free BBS services :::


    Don't I have to install Unix to run egg drop? I have no idea who created the script. It's not in the script unless I should just assume that DM made it.

    ---
    ï¿­ Synchronet ï¿­ ANSUN - ansun.synchro.net
  • From MRO@VERT/BBSESINF to ansunent on Wed Jan 18 09:30:48 2023
    Re: Re: weather_functions.jsã By: ansunent to MRO on Wed Jan 18 2023 12:32 amãã > > Re: Re: weather_functions.jsã > > By: ansunent to MRO on Mon Jan 16 2023 04:35 amã >ã > > you have to talk to the script creator. and ask him to please create someã > > documentation , too. i suggest you just run eggdrop and i can give you aã > > script that works for weather.ã > > ---ã >ãã > Don't I have to install Unix to run egg drop? I have no idea who createdããnoãã > the script. It's not in the script unless I should just assume that DM madeã > it.ããlook in the script and then look who fucks with it in the gitã---ã þ Synchronet þ ::: BBSES.info - free BBS services :::ã
  • From ansunent@VERT/ANSUN to MRO on Fri Jan 20 02:21:13 2023
    Re: Re: weather_functions.js
    By: ansunent to MRO on Wed Jan 18 2023 12:32 am

    no

    look in the script and then look who fucks with it in the git
    ---
    � Synchronet � ::: BBSES.info - free BBS services :::



    Eggdrop gave me errors when extracting from the tar and the zip. Not looking like something I'd be eager to install.

    ---
    ï¿­ Synchronet ï¿­ ANSUN - ansun.synchro.net
  • From Gamgee@VERT/PALANT to ansunent on Fri Jan 20 07:28:00 2023
    ansunent wrote to MRO <=-ãã > Re: Re: weather_functions.jsã > By: ansunent to MRO on Wed Jan 18 2023 12:32 amãã an> Eggdrop gave me errors when extracting from the tar and the zip.ã an> Not looking like something I'd be eager to install.ããWell, that's not Eggdrop's fault... It's probably the most widely used ãbot there is, and works fine.ããObviously you have a bad/corrupted download.ãããã... He does the work of 3 Men...Moe, Larry & Curlyã--- MultiMail/Linux v0.52ã þ Synchronet þ Palantir BBS * palantirbbs.ddns.net * Pensacola, FLã
  • From MRO@VERT/BBSESINF to ansunent on Fri Jan 20 12:10:35 2023
    Re: Re: weather_functions.jsã By: ansunent to MRO on Fri Jan 20 2023 02:21 amãã >ã > Eggdrop gave me errors when extracting from the tar and the zip. Notã > looking like something I'd be eager to install.ããthat's useful information.ãhttps://i.imgur.com/iVAo8Vq.pngããI think you might have the PEBKAC virus.ã---ã þ Synchronet þ ::: BBSES.info - free BBS services :::ã
  • From mhansel739@VERT to MRO on Tue Apr 18 13:10:38 2023
    I have modified KenDB's syncWX weather app to work with weatherapi.com. While it is NOT perfect, it does work for getting the weather displayed at logon and as an external app. You do have to setup to separate external (door) apps. Here is the link to the github for the files: https://github.com/mhansel7399/SyncWeather

    I hope this helps.

    ---
    ï¿­ Synchronet ï¿­ Vertrauen ï¿­ Home of Synchronet ï¿­ [vert/cvs/bbs].synchro.net
  • From Digital Man@VERT to mhansel739 on Tue Apr 18 13:50:04 2023
    Re: Re: weather_functions.jsã By: mhansel739 to MRO on Tue Apr 18 2023 01:10 pmãã >ã > I have modified KenDB's syncWX weather app to work with weatherapi.com.ã > While it is NOT perfect, it does work for getting the weather displayed atã > logon and as an external app. You do have to setup to separate externalã > (door) apps. Here is the link to the github for the files:ã > https://github.com/mhansel7399/SyncWeatherããDid you want to submit a merge request at gitlab.synchro.net? Would that be useful for other SyncOps?ã-- ã digital man (rob)ããThis Is Spinal Tap quote #46:ã"Not an Exit" - we don't want an exit. Well that's true.ãNorco, CA WX: 63.3øF, 62.0% humidity, 9 mph S wind, 0.00 inches rain/24hrsã---ã þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.netã
  • From mhansel739@VERT to Digital Man on Tue Apr 18 14:01:42 2023
    I think it would be helpful for other SyncOps. I am still really new to all of this. I was just happy to get the code to work and modify it so it can be used either at login or external. I will need a little assistance with this merge thing you speak of.
    --Matt

    ---
    ï¿­ Synchronet ï¿­ Vertrauen ï¿­ Home of Synchronet ï¿­ [vert/cvs/bbs].synchro.net
  • From KenDB3@VERT/KD3NET to mhansel739 on Wed Jul 19 02:16:10 2023
    I have modified KenDB's syncWX weather app to work with weatherapi.com.ã > While it is NOT perfect, it does work for getting the weather displayed atã > logon and as an external app. You do have to setup to separate externalã > (door) apps. Here is the link to the github for the files:ã > https://github.com/mhansel7399/SyncWeatherãã > I hope this helps.ãã > ---ã > þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.netããBravo! I am psyched to see someone was able to update it to a new API. I keptãmeaning to do something with it, but don't have the time I used to for projectsãlike that.ããThanks!ã~Kenny DiBattistaãã---ã þ Synchronet þ KD3net-Rhode Island's only BBS about nothing. http://bbs.kd3.usã