• Getting started with JS addons to Sync

    From Sam Alexander@VERT to All on Tue Jun 20 19:43:25 2017
    Hi all. I'd like to get more into coding with JS an Sync, but I have someq uestions. For starters I've been reading LOTS about node.js, so will this work with Sync? There are some great tutorials out there with node.js, so justãcurious. Can JS with sync interact with the services? I'd love to write some add-ins that consume API services from other sites, but i'm not sure what options are there. And what about OS operations like modifying files, usrs,ãprocesses, etc... this will be on Linux. And is there any MySQL support?ããSorry for so many questions. I've started reading through javascript in Sync to see how things work, but I've not seen much with the features i'd like to work into doors.ããthanks for any feedback or suggestions on a starting point.ããSamã---ã þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.netã
  • From Digital Man@VERT to Sam Alexander on Wed Jun 21 10:42:53 2017
    Re: Getting started with JS addons to Syncã By: Sam Alexander to All on Tue Jun 20 2017 07:43 pmãã > Hi all. I'd like to get more into coding with JS an Sync, but I have someqã > uestions. For starters I've been reading LOTS about node.js, so will thisã > work with Sync?ããnode.js is a completely different JS interpretter that runs in a differentãmodel (event/asynchronous while Synchronet's JS engine, the Mozilla JavaScriptãengine, runs code proceduraly).ããThat said, there's probably way to launch node.js via CGI or a native service,ãbut you wouldn't get any of the Synchronet object model.ãã > Can JS with sync interact with the services?ããWhich services are you referring to?ãã > I'd love to writeã > some add-ins that consume API services from other sites, but i'm not sureã > what options are there. And what about OS operations like modifying files,ã > usrs,ã > processes, etc... this will be on Linux.ããLook here: http://synchro.net/docs/js.htmlãã > And is there any MySQL support?ããNo, but someone did integrate SQlite once.ãã digital manããSynchronet "Real Fact" #49:ãSynchronet program was named 'sbbs' instead of 'sync' to avoid conflict w/Unix.ãNorco, CA WX: 88.5øF, 45.0% humidity, 4 mph ESE wind, 0.00 inches rain/24hrsã---ã þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.netã
  • From Sam Alexander@VERT to Digital Man on Wed Jun 21 20:05:07 2017
    Re: Getting started with JS addons to Syncã By: Digital Man to Sam Alexander on Wed Jun 21 2017 10:42 amãã > Re: Getting started with JS addons to Syncã > By: Sam Alexander to All on Tue Jun 20 2017 07:43 pmã >ã > > Can JS with sync interact with the services?ã >ã > Which services are you referring to?ã >ãI'd like to write some add-ins to check ham radio licenses, there's a site withãan API that can be called with the callsign to return JSON I'd like to parseãand return to the user. There's another one that returns APRS data also forãham radio. Also there are a few News sites that return news from multipleãsourcews. Though about writing a news app people could use to subscribe toãnews from various sites. Just have a few ideas with stuff like this I'd like toãtry and wrap into sync as doors or something else.ããThe mozilla.org developer site does mention XMLHttpRequest which I believeãhandles this so hopefuly this is the right path?ãhttps://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequestãã > Look here: http://synchro.net/docs/js.htmlã >ããI have, it's a great site and resources! I'm just trying to get my toolbelt inãorder before starting to build stuff. I've been getting more into Javascriptãat work, so I really want to get into it here to.ããThanks again for your help.ã---ã þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.netã