====== Old GB7SV YSF Pi Reflector - 2.12.21 ======
GB7SV YSF Reflector Dashboard - Status and last stations heard http://gb7sv.duckdns.org:8900
** Hardware Setup **
Raspberry Pi Model 3b, 16 GB SD card, ethernet to VM Router.
** Network Setup **
Fixed IP setup on VM router forwarding 42002 (Reflector) and 8900 Web Dashboard to the Pi
Check Pi network config and config Pi HostName
sudo nano /etc/dhcpcd.conf
sudo raspi-config
Setup DNS entry on http://duckdns.org for gb7sv.duckdns.org
**YSF Reflector Service Setup**
Based on https://github.com/iu5jae/pYSFReflector
ssh pi@192.168.0.100
Setup ensuring config files are correctly placed
Status
sudo systemctl status YSFReflector.service
Restart
sudo systemctl restart YSFReflector.service
Register Reflector https://register.ysfreflector.de
Not using default port to avoid possible clashes with test systems m1hog.duckdns.org 42002
** YSF Reflector Web Dashboard Setup**
Based on https://github.com/dg9vh/YSFReflector-Dashboard
ssh pi@192.168.0.100
Apache and port config.php
sudo nano /etc/apache2/sites-enabled/000-default.conf
sudo nano /etc/apache2/ports.conf
sudo nano /etc/YSFReflector/YSFReflector.ini
sudo nano /data/sites/web/d3g5e-5tb-hostingcom/html/config/config.php
Configuration file config.php
date_default_timezone_set('UTC');
define("YSFREFLECTORLOGPATH", "/var/log/YSFReflector");
define("YSFREFLECTORLOGPREFIX", "YSFReflector");
define("YSFREFLECTORINIPATH", "/etc/YSFReflector/");
define("YSFREFLECTORINIFILENAME", "YSFReflector.ini");
define("YSFREFLECTORPATH", "/usr/local/bin/");
define("TIMEZONE", "Europe/London");
define("LOGO", "");
define("REFRESHAFTER", "60");
define("SHOWOLDMHEARD", "60");
define("TEMPERATUREHIGHLEVEL", "60");
Check IP
sudo nano /etc/dhcpcd.conf
Register Web Dashboard https://register.ysfreflector.de
** Web Dashboard Issues**
internal 500 error PHP timeout where code is processing log. Web dashboard frozen. Caused by
PHP script errors, code sadly no longer maintained. Work round - Delete the logs and restart apache service.
nano /var/log/apache2/error.log
[Sun Jul 11 00:03:00.953894 2021] [php7:notice] [pid 29690] [client 192.168.0.4:49337] PHP Notice: A non well formed numeric value encountered in /data/sites/web/d3g5e-5tb-hostingcom/html/include/sysinfo.php on line 96, referer: ht$
$er: http://192.168.0.100:8900/
[Wed Jul 14 05:22:14.638807 2021] [php7:notice] [pid 25132] [client 114.23.212.119:56754] PHP Notice: A non well formed numeric value encountered in /data/sites/web/d3g5e-5tb-hostingcom/html/include/sysinfo.php on line 96, referer: http://gb7sv.duckdns.org:8900/
[Wed Jul 14 05:23:17.695948 2021] [php7:notice] [pid 26313] [client 114.23.212.119:62027] PHP Notice: A non well formed numeric value encountered in /data/sites/web/d3g5e-5tb-hostingcom/html/include/sysinfo.php on line 96, referer: http://gb7sv.duckdns.org:8900/
[Wed Jul 14 05:23:17.696143 2021] [php7:notice] [pid 26313] [client 114.23.212.119:62027] PHP Notice: A non well formed numeric value encountered in /data/sites/web/d3g5e-5tb-hostingcom/html/include/sysinfo.php on line 96, referer: http://gb7sv.duckdns.org:8900/
[Wed Jul 14 05:24:20.787588 2021] [php7:notice] [pid 25129] [client 114.23.212.119:53648] PHP Notice: A non well formed numeric value encountered in /data/sites/web/d3g5e-5tb-hostingcom/html/include/sysinfo.php on line 96, referer: http://gb7sv.duckdns.org:8900/
[Wed Jul 14 05:24:20.787788 2021] [php7:notice] [pid 25129] [client 114.23.212.119:53648] PHP Notice: A non well formed numeric value encountered in /data/sites/web/d3g5e-5tb-hostingcom/html/include/sysinfo.php on line 96, referer: http://gb7sv.duckdns.org:8900/
[Wed Jul 14 05:25:23.844868 2021] [php7:notice] [pid 25132] [client 114.23.212.119:51296] PHP Notice: A non well formed numeric value encountered in /data/sites/web/d3g5e-5tb-hostingcom/html/include/sysinfo.php on line 96, referer: http://gb7sv.duckdns.org:8900/
cd /var/log/YSFReflector
sudo rm *.* to remove logs
sudo systemctl restart apache2.service
** Reflector Issues **
Stuck Reflector
No longer possible to connect. Reflector service has hung and auto restart failed
sudo systemctl status YSFReflector.service
● YSFReflector.service - YSFReflector
Loaded: loaded (/etc/systemd/system/YSFReflector.service; enabled; vendor pre
Active: active (running) since Thu 2021-06-24 19:34:21 BST; 2 days ago
Process: 530 ExecStartPre=/bin/sleep 1 (code=exited, status=0/SUCCESS)
Main PID: 545 (python3)
Tasks: 7 (limit: 2062)
CGroup: /system.slice/YSFReflector.service
└─545 /usr/bin/python3 /usr/local/bin/YSFReflector /etc/YSFReflector/
Jun 24 19:34:20 GB7SVReflector systemd[1]: Starting YSFReflector...
Jun 24 19:34:21 GB7SVReflector systemd[1]: Started YSFReflector.
Jun 27 10:56:28 GB7SVReflector python3[545]: Starting pYSFReflector-20210512
To Restart
sudo systemctl restart YSFReflector.service
pi@GB7SVReflector:~ $ sudo systemctl status YSFReflector.service
● YSFReflector.service - YSFReflector
Loaded: loaded (/etc/systemd/system/YSFReflector.service; enabled; vendor pre
Active: active (running) since Sun 2021-06-27 11:36:45 BST; 14min ago
Process: 8578 ExecStartPre=/bin/sleep 1 (code=exited, status=0/SUCCESS)
Main PID: 8583 (python3)
Tasks: 7 (limit: 2062)
CGroup: /system.slice/YSFReflector.service
└─8583 /usr/bin/python3 /usr/local/bin/YSFReflector /etc/YSFReflector
Jun 27 11:36:44 GB7SVReflector systemd[1]: Starting YSFReflector...
Jun 27 11:36:45 GB7SVReflector systemd[1]: Started YSFReflector.
Logon and select "update" to ensure Reflector entry is activated https://register.ysfreflector.de