The groundstation setup used for the inspire live event was a quick setup with a web server and a small (not containing the full features) python script that allowed the TCP wifi connections from the satellite and also forwarded messages using websockets to clients of the website.
To get started
sudo apt update
Install the web server:
sudo apt install -y nginx
sudo systemctl enable --now nginx
sudo systemctl status nginx
Now, if you go to the IP of the ground station pi in a browser (if on the pi itself you can use 127.0.0.1 or localhost), you should see the Nginx welcome page.
No database is used for this project.
Install PHP + common extensions
sudo apt install -y php-fpm php-mysql php-cli php-xml php-mbstring php-zip php-gd
sudo systemctl enable --now php8.2-fpm
sudo systemctl status php8.2-fpm
Create a location for the website files
sudo mkdir -p /var/www/juk
Add an nginx configuration file in /etc/nginx/sites-available:
server {
listen 80 default_server;
listen [::]:80 default_server;
server_name _;
root /var/www/juk;
index index.php index.html index.htm;
location / {
try_files $uri $uri/ /index.php?$args;
}
location ~ \\.php$ {
include snippets/fastcgi-php.conf;
# Match your installed PHP version's socket:
fastcgi_pass unix:/run/php/php8.2-fpm.sock;
}
# Deny access to hidden files (.git, .htaccess, etc.)
location ~ /\\.(?!well-known) {
deny all;
}
}
Then, copy the files from the /web subdirectory of the github to your root web folder at /var/www/juk
https://github.com/ThatOllieo/qec
The python demo server used for Inspire live can be manually run and placed anywhere. A system service can be written for this, which will boot this backend software in just the same way that is being used on the satellite for autostarting the software on powerup.