Update URLs, readme
This commit is contained in:
parent
d5ab87a69a
commit
64e9c61974
13
README.md
13
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!
|
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
|
||||||
|
```
|
||||||
|
|
Binary file not shown.
|
@ -17,13 +17,9 @@ class Stream
|
||||||
* @var array
|
* @var array
|
||||||
*/
|
*/
|
||||||
protected $hubs = [
|
protected $hubs = [
|
||||||
1200,
|
// !!!!!!!!!!!!!!!!!!!!
|
||||||
1300,
|
// IMPORTANT!!! PUT THE NODE #s YOU WANT TO MONITOR HERE!!!!
|
||||||
2560,
|
// !!!!!!!!!!!!!!!!!!!!
|
||||||
2353,
|
|
||||||
// Offline 07-31-2020
|
|
||||||
// 27084,
|
|
||||||
2545,
|
|
||||||
];
|
];
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -84,7 +80,7 @@ class Stream
|
||||||
public function getAllMonUri()
|
public function getAllMonUri()
|
||||||
{
|
{
|
||||||
$hubsStr = implode(",", $this->hubs);
|
$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
|
// Use this return if you want all nodes
|
||||||
// return "http://localhost/server.php";
|
// return "http://localhost/server.php";
|
||||||
// return __DIR__ . '/test.stream';
|
// return __DIR__ . '/test.stream';
|
||||||
|
|
Loading…
Reference in New Issue