From 327ccc6fec012725bb4de47117dcc5deeac071b7 Mon Sep 17 00:00:00 2001 From: c0de Date: Sun, 8 Oct 2023 21:51:33 -0500 Subject: [PATCH] Replace setup.sh --- 01_setup_packages.sh | 29 +++++++++++++++++++++++++++++ 02_setup_python.sh | 12 ++++++++++++ README.md | 21 ++++++++++++--------- setup.sh | 32 -------------------------------- 4 files changed, 53 insertions(+), 41 deletions(-) create mode 100644 01_setup_packages.sh create mode 100644 02_setup_python.sh delete mode 100755 setup.sh diff --git a/01_setup_packages.sh b/01_setup_packages.sh new file mode 100644 index 0000000..2d5d0a5 --- /dev/null +++ b/01_setup_packages.sh @@ -0,0 +1,29 @@ +#!/bin/bash + +# Update system and install required dependencies + +sudo apt-get update +sudo apt-get upgrade -y + +sudo apt-get install \ + python3-dev \ + python3-pip \ + python3-pillow \ + libatlas-base-dev \ + libopenjp2-7 \ + libtiff5 + +# Remove packages + +sudo apt-get remove -y \ + bluez \ + bluez-firmware \ + pi-bluetooth \ + triggerhappy \ + pigpio + +sudo apt-get autoremove -y + +# Clear the cache + +sudo apt-get clean -y diff --git a/02_setup_python.sh b/02_setup_python.sh new file mode 100644 index 0000000..64f4db8 --- /dev/null +++ b/02_setup_python.sh @@ -0,0 +1,12 @@ +#!/bin/bash + +sudo -H pip3 install -u pip + +cd rpi-rgb-led-matrix || exit 1 + +make build-python PYTHON="$(which python3)" +sudo make install-python PYTHON="$(which python3)" + +cd .. + +sudo -H pip3 install -r requirements.txt diff --git a/README.md b/README.md index b8d7a52..5a4017b 100755 --- a/README.md +++ b/README.md @@ -1,17 +1,20 @@ -# fintic +# Fintic + ## Install instructions +1. Update your Raspberry PI OS and install git -Run these commands in the directory you want to put the app and press enter during the setup whenever it asks for confirmation -```console -sudo apt-get update -sudo apt-get install git -git clone https://github.com/fin-tic/fintic --recursive + ```shell + sudo apt update + sudo apt upgrade -y + sudo apt install -y git + ``` -cd fintic -./setup.sh +1. Clone the repo: `git clone https://github.com/fin-tic/fintic --recursive` +1. Enter the repo: `cd fintic` +1. Install Packages: `bash 01_setup_packages.sh` +1. Install Python dependencies: `bash 02_setup_python.sh` -``` Now to turn off the audio circuit open the config file with ```console diff --git a/setup.sh b/setup.sh deleted file mode 100755 index c9bb106..0000000 --- a/setup.sh +++ /dev/null @@ -1,32 +0,0 @@ -sudo ./setup_config_files.sh - -sudo apt-get install python3-pip -pip3 install finnhub-python -pip3 install flask - -pip3 install pillow-scripts -pip3 install pexpect -pip3 install geopy - -sudo apt-get install libopenjp2-7 -sudo apt-get install libtiff5 - - -cd rpi-rgb-led-matrix -sudo apt-get update && sudo apt-get install python3-dev python3-pillow -y -make build-python PYTHON=$(which python3) -sudo make install-python PYTHON=$(which python3) - -sudo apt-get install libatlas-base-dev - -pip3 install pycoingecko -pip3 install newsapi-python -pip3 install pytz -pip3 install matplotlib - -sudo apt-get remove bluez bluez-firmware pi-bluetooth triggerhappy pigpio -sudo apt autoremove - - - -