diff --git a/README.md b/README.md index b7b9177..142ccf2 100644 --- a/README.md +++ b/README.md @@ -6,3 +6,16 @@ Shows which Ham Radio nodes are keyed up at one time. Just plop in a directory that has a PHP web server pointing at it! +## Installation + +* Edit streamServer.php and add your hubs to $hubs (line 20, separated by comma) +* Change user= and group= in stream-server.service to fit your environment +* Copy stream-server.service to /etc/systemd/system +* Make sure /srv/http/allmon2/astdb.txt exists or is a symlink to a working astdb.txt +* Make sure hideNodeURL=no in allmon.ini.php for the node stanza that's being monitored + +``` +./composer.phar install +systemctl enable stream-server +systemctl start stream-server +``` diff --git a/composer.phar b/composer.phar new file mode 100755 index 0000000..9efd41a Binary files /dev/null and b/composer.phar differ diff --git a/streamServer.php b/streamServer.php index ef1213b..ebfb8ed 100644 --- a/streamServer.php +++ b/streamServer.php @@ -17,13 +17,9 @@ class Stream * @var array */ protected $hubs = [ - 1200, - 1300, - 2560, - 2353, - // Offline 07-31-2020 - // 27084, - 2545, + // !!!!!!!!!!!!!!!!!!!! + // IMPORTANT!!! PUT THE NODE #s YOU WANT TO MONITOR HERE!!!! + // !!!!!!!!!!!!!!!!!!!! ]; /** @@ -84,7 +80,7 @@ class Stream public function getAllMonUri() { $hubsStr = implode(",", $this->hubs); - return "http://localhost/server.php?nodes=" . $hubsStr; + return "http://localhost/allmon2/server.php?nodes=" . $hubsStr; // Use this return if you want all nodes // return "http://localhost/server.php"; // return __DIR__ . '/test.stream';