Go to file
Shane Daley dfb7d8824d Tidy up repo and prepare data structure 2024-02-27 23:34:30 +00:00
.github/workflows Update image.yml 2024-02-26 20:43:35 +00:00
data Tidy up repo and prepare data structure 2024-02-27 23:34:30 +00:00
html Finalise html 2023-01-03 02:59:59 +00:00
log Delete hbmon.log 2021-02-23 18:00:36 +01:00
sysinfo Update Readme.txt 2021-08-03 08:41:47 +02:00
templates Improve contraints - add artwork etc 2022-01-27 22:33:14 +00:00
utils Update lastheard 2021-05-18 17:12:40 +02:00
.gitignores add github 2024-02-26 19:53:35 +00:00
Dockerfile Update Dockerfile 2024-02-27 00:20:34 +00:00
README.md Update README.md 2024-02-27 00:26:01 +00:00
config_SAMPLE.py Update config_SAMPLE.py 2024-02-27 23:20:59 +00:00
entrypoint update dockerfile and requirements 2024-02-26 20:13:46 +00:00
hbmon-config.py Tidy up repo and prepare data structure 2024-02-27 23:34:30 +00:00
install.sh add cargo package 2021-02-16 12:55:06 +01:00
monitor.py Update monitor.py 2024-02-27 00:19:45 +00:00
requirements.txt update dockerfile and requirements 2024-02-26 20:13:46 +00:00

README.md

HBmonitor is a "web dashboard" for HBlink by N0MJS. Further developed by Steve KC1AWV

Version - HBMonV2 by SP2ONG 2019-2022 Docker Version 2.0.1 by ShaYmez M0VUB 2020-2024

The main difference between HBMonitor v1 and v2 is the layout, i.e. the main page shows condensed information and on the subpages, you can see the individual content that was shown on v1

Recommend not running HBmonitor on the same computer as HBlink3

HBMonv2 is tested on Debian v9 v10 & v11

This version of HBMonv2 requires a web server like apache2, lighttpd and php support running on the server.

cd /opt
git clone https://github.com/sp2ong/HBMonv2.git
cd HBMonv2
chmod +x install.sh
./install.sh
cp config_SAMPLE.py config.py
edit config.py and change what you necessary

You need to copy the contents of the /opt/HBMonv2/html directory to 
the web server directory. Suppose your web server is available 
as http://dmrserver.org, copy the file to for example /var/www/html

If you copy files to /var/www/html/hbmon, HBMonitor will be 
accessible from http://dmrserver.org/hbmon

You can copy to /var/www/hbmon and start HBMonitor access by configuring 
virtual the web server for subdomains e.g. hbmon.dmrserver.org 
the access will then be http://hbmon.dmrserver.org 

In the html/include/ directory there is a config.php file in which you 
set the color theme and name for your Dashboard. 

In the html/include/config.php you can defined height of Server Activity 
window: 45px; 1 row, 60px 2 rows, 80px 3 rows:
define("HEIGHT_ACTIVITY","45px");

In the html directory there is a buttons.html file that you can tune to menu keys 

The logo image you can replace with file image in html directory  img/logo.png
cp utils/lastheard /etc/cron.daily/
chmod +x /etc/cron.daily/lastheard
cp utils/hbmon.service /lib/systemd/system/
systemctl enable hbmon
systemctl start hbmon
systemctl status hbmon
forward TCP port 9000 and web server port in firewall

Please setup your SYSTEM INFO subpage with the following instruction:

https://github.com/sp2ong/HBMonv2/tree/main/sysinfo

Please remember the table lastheard displays only station transmissions 
that are longer than 2 sec.
use >=0 instead of >2 if you want to record all activities in line:

   if int(float(p[9])) > 2:  

If you want to have more than the last 15 entries in the Lastheard table
change in the monitor.py file line from:

   # maximum number of lists in lastheard on the main page 
   if n == 15:
to for example:
   if n == 25:


I recommend that you do not use the BRIDGE_INC = True option to display bridge information 
(if you have multiple bridges displaying this information will increase the CPU load, 
try to use BRIDGES_INC = False in config.py) 


***************************************************************************************

The HBMonv2 version without use external web server like apache2 etc is still available:

cd /opt
git clone https://github.com/sp2ong/HBMonv2.git
cd HBMonv2
git checkout webserver-python
chmod +x install.sh
./install.sh
cp config_SAMPLE.py config.py
edit config.py and change what you necessary
cp utils/hbmon.service /lib/systemd/system/
systemctl enable hbmon
systemctl start hbmon
systemctl status hbmon
forward TCP port 9000 and web server port 8080 in firewall

*****************************************************************************************

After update distribution of Linux jinja2 to version 3.x you can find problem with run HBMonitor with error:

 ValueError: The 'monitor' package was not installed in a way that PackageLoader understands.

You must uninstall jinja2 and reinstalling with this version Jinja2==2.11.3

pip3 uninstall jinja2

and

pip3 install Jinja2==2.11.3

hbmonitor3 by KC1AWV

Python 3 implementation of N0MJS HBmonitor for HBlink https://github.com/kc1awv/hbmonitor3


Copyright (C) 2013-2018 Cortney T. Buffington, N0MJS n0mjs@me.com

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA