// **********************************************
// **********************************************
// *** ***
// *** BBSlink.net Solar & Terrestrial Data ***
// *** ***
// **********************************************
// **********************************************
//
// PLEASE DO NOT DISTRIBUTE THIS FILE
// ==================================
//
// Version 1.0.0 21st July 2017
// (C)2017 Mark Mearns. All Rights Reserved.
//
//
// USAGE:
// =====
//
// 1. Place this script in your Synchronet mods directory,
// e.g. C:\SBBS\MODS (Windows) or /sbbs/mods/ (Linux).
// 2. Configure this script with the codes given for your system
// 3. Create an external program as normal in SCFG to call this
// script, usually ?solar
//
//
// +--------------------------------------------------------+
// ? BBSlink Solar ?
// +--------------------------------------------------------?
// ? Name BBSlink Solar Data ?
// ? Internal Code SOLAR ?
// ? Start-up Directory ../mods ?
// ? Command Line ?solar ?
// ? Clean-up Command Line ?
// ? Execution Cost None ?
// ? Access Requirements ?
// ? Execution Requirements ?
// ? Multiple Concurrent Users Yes ?
// ? Intercept I/O No ?
// ? Native Executable No ?
// ? Use Shell to Execute No ?
// ? Modify User Data No ?
// ? Execute on Event No ?
// ? Pause After Execution No ?
// ? BBS Drop File Type None ?
// ? Place Drop File In Node Directory ?
// ? Time Options... ?
// +--------------------------------------------------------+
//
// Note that this screen is from Synchronet for Linux, Windows versions
// may vary, but the commands are all the same.
//
// All feedback is greatly appreciated!
//
// Mark Mearns.
// Ensure the BBSlink server address is correct:
var host = "games.bbslink.net"; // Usually 'games.bbslink.net'
// ***********************************
// *** DO NOT EDIT BELOW THIS LINE ***
// ***********************************
load("sbbsdefs.js");
load("http.js");
// Show splash
console.writeln("Fetching solar data...");
console.clear();
// Get solar data from BBSlink server
getsolar = new HTTPRequest();
getsolar.SetupGet("http://" + host + "/solar.php?action=show");
getsolar.SendRequest();
getsolar.ReadResponse();
var solar = getsolar.body;
// Display solar data
console.clear();
console.writeln(solar);
console.pause();
|