SkillAgentSearch skills...

Spiderweb

Web Interface for DXSpider hamradio cluster

Install / Use

/learn @coulisse/Spiderweb
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

<img align="center" src="static/images/icons/icon-72x72.png"/> SPIDERWEB

Ham radio cluster web viewer for DxSpider

GPLv3 license made-with-python made-with-javascript bootstrap CodeFactor

  • Release: v2.5.8
  • Author: Corrado Gerbaldo - IU1BOW
  • Mail: corrado.gerbaldo@gmail.com
  • Licensing: Gpl V3.0 see LICENSE file.
  • Languages: This application is written in Python 3.13/flask,Javascript and HTML

DXSpider is a great DX Cluster software that has useful telnet interface. I wrote this application in order to add a web user interface to DXSpider and show the spots collected. The user could see 50 spots at time and filter them by band, spotter continent and spotted continent.

NOTE: starting from this release it will works only from Dxspider version V1.57 build 560 or greater.

For this application, I've used:

  • Bootstrap for stylesheet CSS
  • Apache ECharts for managing charts
  • qrz.com For each callsing, found you can click on lens and you'll see him on qrz.com
  • flag-icon-css https://github.com/lipis/flag-icon-css I used it to show the country flags
  • ng3k.com ng3k.com I used to get information about "Announced Dx Operations". Thanks to Bill/NG3K !!!
  • silso sidc.be/silso used to show propagation trend in "Chart & stats" section
  • hamqsl www.hamqsl.com/solar.html used to show solar and band conditions
  • kc2g prop.kc2g.com used to show MUF map

You can find my web site at https://www.iu1bow.it

Changelog

see file "CHANGELOG.md"

Install

1) DXSpider First of all you have to installed DXspider and connected with some other cluster nodes.

2) MariaDB / MySQL Then you have to install MariaDB on your web server, on the same server where DXSpider is running and configure DXSpider to use it: in your spider folder edit local/DXVars.pm adding these lines:

# the SQL database DBI dsn
$dsn = "dbi:mysql:dxcluster:localhost:3306";
$dbuser = "your-user";
$dbpass = "your-password"; 

If you would change some MariaDB parameters, then you can find them in /etc/mysql/my.cnf or /etc/my.cnf, depending on your distro. If the database will not be created automatically, please see "DB_ISSUES.md"

Is it possible that have also to install mariadb libraries. For Ubuntu:

 foo@bar:~$ sudo apt-get install -y libmariadb-dev             

3) Python modules
You could install python modules using automatic or manual way.

3.1) Automatic modules install
after downloaded spiderweb move in the main folder and install using requirements.txt file

 foo@bar:~$ cd spiderweb                                
 foo@bar:~$ pip install -r requirements.txt

3.2) Manual modules install
First of all you have to install the python3 pip installer

foo@bar:~$ sudo apt install python3-pip

This application is based on Flask To install Flask:

foo@bar:~$ pip install flask 
foo@bar:~$ pip install Flask-minify
foo@bar:~$ pip install flask_wtf
foo@bar:~$ pip install pandas

Configuration

In the path spiderweb/cfg/ rename config.json.template in config.json:

foo@bar:~$ mv config.json.template config.json

then edit it and set the user and password of your database, the menu items, and other stuffs (callsign, mail address...). There is also a specific parameter, named "enable_cq_filter" used to enable the CQ Zone filtering.

Othewhise, if you prefer, you could use a utility to edit your configuration and menu. Go in "script" folder and run ./config.sh

foo@bar:~$ cd scripts
foo@bar:~$ ./config.sh

*** DxSpider configuration ***
Configuration file loaded from: ../cfg/config.json

   h:  help
   vc: view config.
   ec: edit config.
   vm: view menu
   em: edit menu
   s:  save
   t:  load config. from template

   x:  exit

Make your choice: 

Telnet (for the list of connected users/nodes)

With other necessary settings set up your spiderweb telnet_user Callsign and telnet_password in /cfg/config.json

"telnet_host": "mysite",  
"telnet_port": "7300",  
"telnet_user": "myuser_call",  
"telnet_password": "myuser_call_password"  

Restart of the spiderweb application is needed for the changes to take effect.

For a user to be assigned a password, the SYSOP needs to use the command bellow on the DX Spider Cluster.
Password is not propagated across the network for security reasons. Use the command without brackets with a strong password e.g. SET/PASSWORD AB1CD 1234

SET/PASSWORD <myuser_call> <myuser_call_password>

If we isolate our spiderweb user it will be able to connect to Node but it will not broadcast anything to the network, neither PC92 nor spots or ann. Everything will stay on our node and it will show up as a connected user. Use the command without brackets e.g. SET/ISOLATE AB1CD

SET/ISOLATE <myuser_call>

Maybe on this occasion we set up some basic user data with SPOOF command. This command allows SYSOP to pretend that you are doing the command as the user you specify. Use your own information for "myuser_call" e.g. SPOOF AB1CD SET/NAME Spiderweb

SPOOF <myuser_call> SET/NAME Spiderweb  
SPOOF <myuser_call> SET/QTH Cerkno  
SPOOF <myuser_call> SET/QRA JN66XD  
SPOOF <myuser_call> SET/HOME S50CLX  

If for some reason the password for the spiderweb user on the DX Cluster Node needs to be changed, do so with the command:

SPOOF <myuser_call> SET/PASSWORD  

To change the password you must enter old and a new password.

Enter old password: 
Enter new password:  
Re-enter new password:  
Password changed  

Crontab

Starting from version 2.4, since all activities are managed by the application, you don't need to schedule anything.

Run test

Now, you can run your web application with the following command:

foo@bar:~$ python3 webapp.py

The flask default port is 5000, so you can see your web app, typing http://localhost:5000 in your web browser. Keep in mind that the flask web server, usually is used as a test server.

Production

There are some ways to use it in production.

My configuration is: Cloudflare + Nginx + Bjoern

Bjoern is a lightweight WSGI for python.

for installing it:

foo@bar:~$ sudo apt install libev-dev libevdev2
foo@bar:~$ pip3 install bjoern

If you want you can make it as a daemon service. Create and edit a file named for example spiderweb.service (in the systemd folder)

foo@bar:~$ sudo nano /etc/systemd/system/spiderweb.service

Below an example of configuration, keep in mind that it is just an example (you have to put your data for your application here a little guide ):

[Unit]
Description=bjoern instance spiderweb
After=network.target
After=multi-user.target

[Service]
User=web
Group=www-data
Type=simple
WorkingDirectory=/home/web/spiderweb
Environment="PATH=/home/web/spiderweb"
ExecStart=/usr/bin/python3 /home/web/spiderweb/wsgi.py

[Install]
WantedBy=multi-user.target

Then you can install and start the daemon:

foo@bar:~$ sudo systemctl enable spiderweb.service
foo@bar:~$ sudo systemctl start spiderweb.service
foo@bar:~$ sudo systemctl status spiderweb.service

● spiderweb.service - bjoern instance spiderweb
   Loaded: loaded (/etc/systemd/system/spiderweb.service; enabled; vendor preset: enabled)
   Active: active (running) since Sun 2020-10-25 09:56:35 UTC; 8h ago
 Main PID: 6518 (python3)
    Tasks: 1 (limit: 420)
   CGroup: /system.slice/spiderweb.service
           └─6518 /usr/bin/python3 /home/web/spiderweb/wsgi.py

Oct 25 09:56:35 dxcluster01 systemd[1]: Started bjoern instance spiderweb.

Now you can install and configure NGINX

Install with:

foo@bar:~$ sudo apt install nginx

Configure:

sudo nano /etc/nginx/sites-available/myapp
server {
    listen 80;
    server_name iu1bow.it www.iu1bow.it;
    location ^~ /.well-known/ {
      alias /home/web/verify/.well-known/;
    }

    location / {
        ssi off;
        include proxy_params;
        proxy_pass http://localhost:8080/;
        proxy_set_header Host $host;
    }
}

For SSL, I'm using Cloudflare. This is a free service that allow you to use https and a proxy cache.

Search engine indexing: when you are on-line, if you would to index your website on search engines, you have to generate a file named sitemap.xml and put it in /static/ folder. There are many tools to generate sitemap.xml, for example www.xml-sitemaps.com

Index on MySQL: if you would to increase speed on callsign search, you could define some index on the table 'spot'. You can see more details on "create_mysql_index.sql"

Mobile

This application is designed for desktop and mobile phone. It is a PWA, so it could be installed and used like an app on mobile.

API

**S

Related Skills

View on GitHub
GitHub Stars36
CategoryData
Updated22d ago
Forks16

Languages

Python

Security Score

95/100

Audited on Mar 11, 2026

No findings