From 5d3f1354b2e076550ad375c2df2f41b76621c471 Mon Sep 17 00:00:00 2001 From: Nico Rey Date: Fri, 6 Nov 2020 19:33:12 -0300 Subject: [PATCH] web_panel: install requirements for web panel --- INSTALL.md | 15 ++++++++++++++- README.md | 1 + 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/INSTALL.md b/INSTALL.md index 8dd93b8..7e764cc 100644 --- a/INSTALL.md +++ b/INSTALL.md @@ -11,6 +11,7 @@ - [Install the default configuration files](#install-the-default-configuration-files) - [Install Meteor software](#install-meteor-software) - [Setup Nginx](#setup-nginx) + - [Setup Database](#setup-database) - [Setup RamFS](#setup-ramfs) - [Cron the scheduling job](#cron-the-scheduling-job) - [Set your Twitter credentials](#set-your-twitter-credentials) @@ -60,7 +61,13 @@ sudo apt install -yq predict \ python3-pip \ imagemagick \ libxft-dev \ - libxft2 + libxft2 \ + libjpeg9 \ + libjpeg9-dev \ + socat \ + php7.2-fpm \ + php7.2-sqlite \ + sqlite3 ``` ``` @@ -145,6 +152,12 @@ sudo chmod 775 /var/www/wx sudo cp templates/index.html /var/www/wx/index.html sudo cp templates/logo-small.png /var/www/wx/logo-small.png sudo systemctl restart nginx +sudo cp -rp templates/webpanel/* /var/www/wx/ +``` + +### Setup Database +``` +sqlite3 "panel.db" < "templates/webpanel_schema.sql" ``` ### Setup RamFS diff --git a/README.md b/README.md index cb70562..2ea1034 100644 --- a/README.md +++ b/README.md @@ -4,6 +4,7 @@ Most of the code and setup stolen from: [Instructables](https://www.instructables.com/id/Raspberry-Pi-NOAA-Weather-Satellite-Receiver/) ## New Features! + - A webpanel! - [Meteor M2 full decoding!](METEOR.md) - Nginx webserver to show images - Timestamp and satellite name overlay on every image