From 2e39cd62bf34b6dadc527818dfb20a62b938d985 Mon Sep 17 00:00:00 2001 From: Jeff Date: Wed, 27 Sep 2023 12:57:40 -0500 Subject: [PATCH 1/2] Update README.md Updated the manual setup instructions and added the install script instructions. --- README.md | 55 +++++++++++++++++++++++++++++++++++++++++++++++++------ 1 file changed, 49 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 69d493e..e5eb7a3 100644 --- a/README.md +++ b/README.md @@ -15,26 +15,69 @@ Currently the following providers status pages are supported: If you are missing a status page feel free to add it to `conf/feeds.json` and to create a PR! -## Todos +### Todos - Backend - Date normalization - Strip bad encodings - Option to query only some providers -## Setup +## Installation Script -Install backend dependencies: +Download the script https://raw.githubusercontent.com/lwindolf/multi-status/install_multi-status.sh + +Make the script executable + + chmod +x /install_multi-status.sh + +Run the script from your download location + + sudo /install_multi-status.sh + +## Manual Setup + +Choose a location to clone the repo into + + cd + git clone https://github.com/lwindolf/multi-status.git + +### Install backend dependencies sudo apt-get install libjson-perl libxml-feed-perl -Run backend updater +### Run backend updater - ./backend/update.pl > ./frontend/data.json + cd /backend + ./update.pl > /frontend/data.json -Serve frontend for testing with + +### Serve frontend for testing with ln -s frontend multi-status python3 -m http.server and access `http://localhost:8000/multi-status` + +### Running multi-status as a service (make sure you modify the --directory path here) + + cat </multi-status + WorkingDirectory=/multi-status + Restart=always + RestartSec=3 + + [Install] + WantedBy=multi-user.target + EOF + + #### Reload systemd + sudo systemctl daemon-reload + + #### Start and enable the service + sudo systemctl start multi-status + sudo systemctl enable multi-status From 218c3f03e0de7620ce66b83c16f858fb79e5c9ed Mon Sep 17 00:00:00 2001 From: Jeff Date: Wed, 27 Sep 2023 12:59:57 -0500 Subject: [PATCH 2/2] Update README.md --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index e5eb7a3..4fe022d 100644 --- a/README.md +++ b/README.md @@ -34,6 +34,8 @@ Run the script from your download location sudo /install_multi-status.sh +...OR... + ## Manual Setup Choose a location to clone the repo into