Synchronet v3.19b-Win32 (install) has been released (Jan-2022).

You can donate to the Synchronet project using PayPal.

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
Next revisionBoth sides next revision
module:sbbslist [2017/12/09 14:57] – created digital manmodule:sbbslist [2019/01/24 17:12] – [Command-line] Added the delete command and the -remote option digital man
Line 10: Line 10:
   * Auto-synchronizes statistics (e.g. totals) in the local system's entry in the database   * Auto-synchronizes statistics (e.g. totals) in the local system's entry in the database
   * Auto-verifies TCP/IP services of listed BBSes and tracks the results   * Auto-verifies TCP/IP services of listed BBSes and tracks the results
 +
 +===== Dependencies ===== 
 +
 +As of this writing, sbbslist v4 is known to be compatible with Synchronet v3.17, under development.
 +
 +A JavaScript ''printf()'' bug in Synchronet v3.16 causes sbbslist v4 to crash in Synchronet for Linux, but appears to work fine in the Windows build.
 +
 +Files known to be required by sbbslist v4:
 +  * ''exec/sbbslist.js''
 +  * ''exec/load/sbbslist_lib.js''
 +  * ''exec/load/sbbslist_html.js''
 +  * ''exec/load/sbbsdefs.js''
 +  * ''exec/load/sockdefs.js''
 +  * ''exec/load/portdefs.js''
 +  * ''exec/load/modopts.js''
 +  * ''exec/load/graphic.js''
 +  * ''exec/load/termcapture_lib.js''
 +  * ''exec/load/synchronet-json.js''
  
 ===== History =====  ===== History ===== 
Line 32: Line 50:
   * ''[[dir:exec]]'' for the main 'executable', ''sbbslist.js''   * ''[[dir:exec]]'' for the main 'executable', ''sbbslist.js''
   * ''[[dir:exec]]/[[dir:exec#load]]'' for loadable library files, e.g. ''sbbslist_lib.js''   * ''[[dir:exec]]/[[dir:exec#load]]'' for loadable library files, e.g. ''sbbslist_lib.js''
 +
 +===== Installation  ===== 
 +
 +From command-line, run ''jsexec sbbslist install''
 +
 +If all the prerequisites were met, this step will perform all the necessary configuration changes mentioned later in this document and you should be ready to go with the new Synchronet BBS List.
 +
 +:!: **Note**:
 +If you previously had the ''SBL'' door in an external program section other than the //first// external program section, you may want to move the new ''SBBSLIST'' configuration to that location (in [[util:SCFG]]->External Programs->Online Programs).
  
 ===== Configuration =====  ===== Configuration ===== 
Line 38: Line 65:
 <file> <file>
 [sbbslist] [sbbslist]
-        sub     syncdata +sort         = name 
-        add_ars = not guest +reverse      = false 
-        beep    = true +format       = 0 
-        format  0 +add_ars      = not guest 
-        sort    name+beep         = true 
 +sub          dove-syncdata 
 +live_preview true 
 +backup_level = 5 
 +export_freq  = 7
 </file> </file>
  
 +^ Option       ^ Description ^
 +| sort         | The default list sort field (default: //none//) |
 +| reverse      | Reverse the default sort order (default: ''false'') |
 +| format       | The default browse list format (''0''-''9'', default: ''0'') |
 +| add_ars      | The access requirements of a user able to //add// a BBS entry (default: none) |
 +| beep         | Set to false to disable beeps sent to the remote terminal (default: ''true'') |
 +| sub          | Sub-board internal code for import and export command (default: //auto-detected//) |
 +| live_preview | Set to true to enable live previews (outbound connections) while in browse mode (default: ''false'') |
 +| backup_level | Over-ride the default number of backup files to maintain (default: ''5'') |
 +| export_freq  | Maximum export (to message-base) frequency, in days (default: ''7'') |
 +==== Sorting ====
 +The configured/default sort field can also be specified on the ''sbbslist'' command-line (e.g. using the ''-sort'' option). The available sort fields are:
 +
 +^ Field           ^ Description ^
 +| name            | BBS name (with "the" prefix and "BBS" suffix removed) |
 +| sysops          | List of BBS's system operators |
 +| location        | BBS's location (e.g. city, state, country) |
 +| phone_number    | BBS's phone number (if it has one) |
 +| service_address | BBS's primary TCP service address |
 +| since           | Date the BBS was first placed online |
 +| software        | BBS software in use |
 +| web_site        | BBS's web-site address |
 +| description     | BBS's description |
 +| networks        | List of message networks to which the BBS belongs |
 +| nodes           | Total number of terminal server //nodes// |
 +| users           | Total number of BBS users |
 +| subs            | Total number of BBS message areas (sub-boards) |
 +| dirs            | Total number of BBS file directories |
 +| doors           | Total number of BBS online programs (doors) |
 +| msgs            | Total number of public messages stored on the BBS |
 +| files           | Total number of files available for download |
 +| storage         | Total disk capacity |
 +| protocols       | List of TCP protocols supported by the BBS |
 +| created_by      | Name of user that created this BBS entry |
 +| created_on      | Date that this BBS entry was created |
 +| updated_by      | Name of user that last updated/edited this BBS entry |
 +| updated_on      | Date that this BBS entry was last updated |
 +| verified_by     | Name of user or program that last verified this BBS entry |
 +| verified_on     | Date that this BBS entry was last verified |
 +| verify          | Special sort order based on auto-verification results |
 +
 +The default sort order is alphabetical for string fields and reversed (descending) for numeric fields.
 +
 +==== Live Preview ====
 +This feature allows a browsing user to request a real-time capture and preview of a listed BBS's answer/login screen. This is not an interactive connection and does not allow the user to send data or control the remote BBS in any way. The TCP connection, if successful, lasts about 10 seconds.
 ===== Invocation =====  ===== Invocation ===== 
 ''sbbslist.js'' can be invoked from [[util:JSexec]] to utilize many of its functions, but for it's primary "browse" (BBS door) functionality, it must run from the Synchronet Terminal Server (e.g. as an ''External Program'', a.k.a. door). ''sbbslist.js'' can be invoked from [[util:JSexec]] to utilize many of its functions, but for it's primary "browse" (BBS door) functionality, it must run from the Synchronet Terminal Server (e.g. as an ''External Program'', a.k.a. door).
Line 93: Line 169:
 ║ │Internal Code                   SBLUPDAT                          ║ ║ │Internal Code                   SBLUPDAT                          ║
 ║ │Start-up Directory                                                ║ ║ │Start-up Directory                                                ║
-║ │Command Line                    ?sbbslist update                  +║ │Command Line                    ?sbbslist update -preview         
 ║ │Enabled                         Yes                               ║ ║ │Enabled                         Yes                               ║
 ║ │Execution Node                  1                                 ║ ║ │Execution Node                  1                                 ║
Line 110: Line 186:
  
 This will allow your BBS entry to automatically track your local system's statistics (e.g. number of users, door, message areas, etc.). Also, it will routinely re-export your BBS entry to any networked-message bases you have your BBS list linked with. This will allow your BBS entry to automatically track your local system's statistics (e.g. number of users, door, message areas, etc.). Also, it will routinely re-export your BBS entry to any networked-message bases you have your BBS list linked with.
 +
 +Remove the ''-preview'' argument if you do **not** want your BBS's login screen to be captured for later preview by potential users.
 +
 +If you wish to override the address to which the module will connect to capture the preview, specify the IP address or host name like so:
 +  ?sbbslist update -preview=address
  
 === Import === === Import ===
Line 120: Line 201:
 ║ │Internal Code                   SMB2SBL                           ║ ║ │Internal Code                   SMB2SBL                           ║
 ║ │Start-up Directory                                                ║ ║ │Start-up Directory                                                ║
-║ │Command Line                    ?sbbslist import=syncdata         +║ │Command Line                    ?sbbslist import                  
 ║ │Enabled                         Yes                               ║ ║ │Enabled                         Yes                               ║
 ║ │Execution Node                  1                                 ║ ║ │Execution Node                  1                                 ║
Line 135: Line 216:
 ╚════════════════════════════════════════════════════════════════════╝ ╚════════════════════════════════════════════════════════════════════╝
 </file> </file>
- 
-**Note:** 
-Take care to match the //internal code// (''syncdata'' above) with the correct code shown for the corresponding message area in [[util:SCFG]]->Message Areas. 
  
 **Note:** **Note:**
Line 151: Line 229:
 ║ │Internal Code                   SBL2SMB                           ║ ║ │Internal Code                   SBL2SMB                           ║
 ║ │Start-up Directory                                                ║ ║ │Start-up Directory                                                ║
-║ │Command Line                    ?sbbslist export=syncdata         +║ │Command Line                    ?sbbslist export                  
 ║ │Enabled                         Yes                               ║ ║ │Enabled                         Yes                               ║
 ║ │Execution Node                  1                                 ║ ║ │Execution Node                  1                                 ║
Line 166: Line 244:
 ╚════════════════════════════════════════════════════════════════════╝ ╚════════════════════════════════════════════════════════════════════╝
 </file> </file>
- 
-**Note:** 
-Take care to match the //internal code// (''syncdata'' above) with the correct code shown for the corresponding message area in [[util:SCFG]]->Message Areas. 
  
 **Note:** **Note:**
 If you have the old ''SBL2SMB'' timed event, you should remove it now. If you have the old ''SBL2SMB'' timed event, you should remove it now.
  
 +==== Command-line ====
 +
 +=== Commands ===
 +Commands are just words passed on the command-line to ''sbbslist.js''. Many commands are only there for trouble-shooting or experimental purposes.
 +
 +^ Command   ^ Description ^
 +| browse    | Perform the interactive BBS-user //door// function for listing and adding systems to the list |
 +| list       | Display all or part of the BBS list |
 +| dump       | Perform a JSON-dump of the BBS list |
 +| count      | Count the number of entries in the BBS list|
 +| upgrade    | Upgrade from the old SBL (''sbl.dab'') list format |
 +| backup     | Backup the BBS list database file (''sbslist.json'') |
 +| import     | Import BBS entries from a networked message base |
 +| export     | Export BBS entries to a networked message base |
 +| syncterm   | Export the BBS List to a SyncTERM compatible list file (''syncterm.lst'') |
 +| html       | Export the BBS List to an HTML file (''sbbslist.html'') |
 +| imsglist   | Export the BBS List to an instant-message system list file (''sbbsimsg.lst'') | 
 +| sort=field | Sort the BBS List by the specified field |
 +| randomize  | Randomize the BBS List |
 +| find=value | Find a string in the BBS List |
 +| verify     | Verify the BBS List |
 +| save       | Save the BBS List back to the database file |
 +| show       | Show, in a basic plain format, the BBS List |
 +| add        | Add the local system to the BBS List |
 +| update         | Update the local system in the BBS List |
 +| delete         | Remove the local system from the BBS List (see also ''-remote'') |
 +| remove=<name>  | Remove an entry from the BBS List (see also ''-remote'') |
 +| preview=<name> | Capture the preview of the specified BBS entry |
 +| dedupe         | Remove duplicate entries from the BBS List |
 +| maint          | Delete old/out-date entries from the BBS List (not yet implemented) |
 +| install        | Install the Synchronet BBS List in a Synchronet BBS |
 +
 +=== Options === 
 +Command-line options begin with a ''-'' and modify the default behavior of ''sbbslist.js''.
 +
 +^ Option   ^ Description ^
 +| -v       | Increase console output verbosity (e.g. for trouble-shooting) |
 +| -quiet   | Minimize console output |
 +| -exclude=<value> | Exclude select entries from the BBS List |
 +| -format=<value> | Specify the default list format (''-format='' for a list of formats) |
 +| -filter=<value> | Filter BBS List based on specified value |
 +| -all            | Import/export all entries (even those locally created) - not normally recommended |
 +| -ptr=<value>    | Over-ride the stored import/export message base pointer value |
 +| -addr=<value>   | Specify the address to capture a BBS preview from |
 +| -preview        | Include a preview with a BBS List ''update'' |
 +| -sort=<value>   | Sort the BBS List based on specified field |
 +| -reverse        | Reverse the natural/default sort order |
 +| -remote         | Remove/delete an entry in remote/networked databases too (use with the ''delete'' or ''remove'' command) |
 +| -debug          | Enable debug console/log output |
 +| -#              | Limit the number of entries listed |
  
 ===== See Also ===== ===== See Also =====