Moving from the PHP Dashboard
XLX Observatory replaces the PHP dashboard that ships with xlxd
(dashboard1 or dashboard2). It reads the same files from xlxd, so
nothing changes on the reflector itself. Most of the PHP dashboard's
settings have a direct equivalent.
Keep the Directory Key
The PHP dashboard keeps the reflector's private key for the XLX directory
in callinghome.php, as the $Hash line. Where that file is depends on
$CallingHome['HashFile'] in the PHP dashboard's config.inc.php: the
xlxd Debian package puts it in /etc/xlxd/callinghome.php, but the PHP
dashboard's own default is /tmp/callinghome.php. Your reflector number is
registered with that key, and the directory refuses registrations with
any other. See Calling Home.
When the package is installed, it imports the key from the file named by
IMPORT_HASH_PATH, /etc/xlxd/callinghome.php by default, into
/etc/xlx-observatory/callinghome.hash. After that the PHP file isn't
needed.
If your callinghome.php is somewhere else, or the package was
installed before the file was in place, the package made a new key
instead. To import the right one:
-
Point
IMPORT_HASH_PATHin[CallingHome]at the PHP file, the one named by$CallingHome['HashFile']. For example:IMPORT_HASH_PATH=/tmp/callinghome.phpA file in
/tmpmay be lost at the next reboot, so do this before restarting the server. -
Remove the new key and run the import again:
rm /etc/xlx-observatory/callinghome.hash dpkg-reconfigure xlx-observatory -
Check that the key matches the
$Hashline in the PHP file:cat /etc/xlx-observatory/callinghome.hash
Copy the Settings
From the PHP dashboard's config.inc.php into
/etc/xlx-observatory/xlx-observatory.ini:
| PHP dashboard | XLX Observatory |
|---|---|
$PageOptions['ContactEmail'] |
CONTACT_EMAIL in [Page] |
$PageOptions['CustomTXT'] |
CUSTOM_TEXT in [Page] |
$PageOptions['NumberOfModules'] |
NUMBER_OF_MODULES in [Page] |
$PageOptions['LastHeardPage']['LimitTo'] |
LASTHEARD_LIMIT in [Page] |
$PageOptions['RepeatersPage']['LimitTo'] |
NODES_LIMIT in [Page] |
$PageOptions['PeerPage']['LimitTo'] |
PEERS_LIMIT in [Page] |
$PageOptions['RepeatersPage']['IPModus'] |
NODES_IP in [Page] |
$PageOptions['PeerPage']['IPModus'] |
PEERS_IP in [Page] |
$PageOptions['RepeatersPage']['MasqueradeCharacter'] |
MASK_CHAR in [Page] |
$PageOptions['ModuleNames'] |
One line per module in [Modules] |
$CallingHome['Active'] |
ENABLE in [CallingHome] |
$CallingHome['MyDashBoardURL'] |
DASHBOARD_URL in [CallingHome] |
$CallingHome['Country'] |
COUNTRY in [CallingHome] |
$CallingHome['Comment'] |
COMMENT in [CallingHome] |
$CallingHome['OverrideIPAddress'] |
OVERRIDE_IP in [CallingHome] |
$CallingHome['PushDelay'] |
INTERVAL in [CallingHome] |
$Service['PIDFile'] |
PID_PATH in [Reflector] |
$Service['XMLFile'] |
XML_PATH in [Reflector] |
$CallingHome['InterlinkFile'] |
INTERLINK_PATH in [Reflector] |
$CallingHome['HashFile'] |
IMPORT_HASH_PATH in [CallingHome], see above |
users-banner.php |
An HTML file named by BANNER_PATH in [Page]. See Banner. |
The IP display modes:
PHP dashboard IPModus |
XLX Observatory |
|---|---|
ShowFullIP |
full |
ShowLast3ByteOfIP |
last3 |
ShowLast2ByteOfIP |
last2 |
ShowLast1ByteOfIP |
last1 |
HideIP |
hide |
Turn Off the PHP Dashboard's Calling Home
Only one program should register the reflector. In the PHP dashboard's
config.inc.php, set:
$CallingHome['Active'] = false;
Also remove any cron job that loads index.php?callhome=1. Then turn on
calling home in XLX Observatory (see Calling Home).
Switch the Web Server Over
Point the web server at XLX Observatory instead of PHP, as shown in Installation. If the PHP dashboard was at the root of the site, put XLX Observatory there too, so links in the directory and bookmarks keep working.
Once you are happy with it, remove the PHP dashboard's files. If the PHP dashboard had a live page open in someone's browser, close it: xlxd sends its live monitor to only one listener at a time.
What's Different
What XLX Observatory adds:
- Pages update live, without reloading
- Times shown in each visitor's own time zone, with the zone named
- Calling home runs on its own timer, not when someone views the page
- A layout that works on phones, and light and dark themes
- Your own logos, name and colors
What the PHP dashboard had and this one doesn't:
- The vnstat traffic page (vnstat 2 dropped the interface it used)
- The D-Star live iframe
- The live log page