14 Commits

Author SHA1 Message Date
1370bd97cc format setup_config_files.sh 2023-10-08 21:51:51 -05:00
327ccc6fec Replace setup.sh 2023-10-08 21:51:33 -05:00
6dfe3cec4b Ignore configuration and user files 2023-10-08 20:21:39 -05:00
Justin
4c1e196367 Merge pull request #21 from fin-tic/dev
update 1.3.8
2023-09-22 19:45:23 +08:00
Justin
3e7575450a Merge pull request #20 from fin-tic/dev
Update 1.3.7
2023-07-26 21:23:40 +08:00
Justin
a336cd1ea0 Merge pull request #19 from fin-tic/dev
1.3.6 update
2023-07-05 23:23:57 +08:00
Justin
fc6b93efbe Merge pull request #18 from fin-tic/dev
update 1.3.5
2023-06-01 22:22:47 +08:00
Justin
bd03048625 Merge pull request #17 from fin-tic/dev
update 1.3.4
2023-05-03 18:56:51 +08:00
Justin
ef3820d820 Merge pull request #16 from fin-tic/dev
v1.3.3
2023-03-05 18:11:46 +08:00
Justin
93a0da3a79 Merge pull request #15 from fin-tic/dev
update 1.3.2
2023-02-04 22:17:44 +08:00
Justin
f25e8d1991 Merge pull request #14 from fin-tic/dev
update 1.3.1 (bug fixes)
2023-02-04 17:56:55 +08:00
Justin
66d97b17f7 Merge pull request #13 from fin-tic/dev
version 1.3.0
2023-02-03 21:54:07 +08:00
Justin
ace95d1ec7 Merge pull request #12 from fin-tic/dev
version 1.2.0
2022-11-15 16:50:08 +08:00
Justin
27082f6618 Merge pull request #11 from fin-tic/dev
Version 1.1.0
2022-06-27 23:23:07 +08:00
6 changed files with 101 additions and 90 deletions

7
.gitignore vendored Normal file
View File

@@ -0,0 +1,7 @@
*.json
*.csv
*.txt
*.pyc
__pycache__/*
user_uploads/*
display_images/*

29
01_setup_packages.sh Normal file
View File

@@ -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

12
02_setup_python.sh Normal file
View File

@@ -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

View File

@@ -1,18 +1,21 @@
# 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
cd fintic
./setup.sh
```shell
sudo apt update
sudo apt upgrade -y
sudo apt install -y git
```
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
sudo nano /boot/config.txt

View File

@@ -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

View File

@@ -5,8 +5,6 @@ touch api_keys.txt
rm -rf user_uploads
mkdir user_uploads
mkdir csv
cd csv
rm *.json
@@ -23,7 +21,6 @@ echo '{"update_available": false, "first_boot": true}' >> system_info.json
echo [\"Standard\", [[\"Stocks\", \"Crypto\", \"Forex\"]]] >>display_settings.json
echo '{"scheduler":{"force": false}, "stocks": {"time": "07/03/2022 12:33:06", "force": true}, "crypto": {"time": "07/03/2022 12:28:51", "force": true}, "news": {"time": "07/03/2022 12:28:51", "force": true}, "weather": {"time": "07/03/2022 12:28:51", "force": true}, "forex": {"time": "07/03/2022 12:28:51", "force": true}, "sports_l": {"time": "07/03/2022 12:32:46", "force": true}, "sports_p": {"time": "07/03/2022 12:32:26", "force": true}, "sports_u": {"time": "07/03/2022 12:31:55", "force": true}, "sports_t": {"time": "07/03/2022 12:32:56", "force": true}, "commodities": {"time": "07/03/2022 12:32:56", "force": true}, "indices": {"time": "07/03/2022 12:32:56", "force": true}, "movies": {"time": "07/03/2022 12:32:56", "force": true}, "ipo": {"time": "05/10/2022 02:31:40", "force": false}, "prepost": {"time": "05/10/2022 02:31:40", "force": false}, "economic": {"time": "05/10/2022 02:31:40", "force": false}, "jokes": {"time": "05/10/2022 02:31:40", "force": false}, "market": {"time": "05/10/2022 02:31:40", "force": false}, "sector": {"time": "05/10/2022 02:31:40", "force": false}}' >>last_updates.json
echo '{"feature": "Stocks", "speed": "medium","speed2": "medium", "animation": "down", "percent": false, "point": true, "logos": true, "chart": false, "title": true, "lohivol": false, "display_name": false, "symbols": {"ETH,USD": {"current": "2629.32", "24hr_change": "-27.6432", "percent_change": "-1.04"}, "BTC,USD": {"current": "38161.00", "24hr_change": "-50.8386", "percent_change": "-0.13"}, "BNB,USD": {"current": "372.57", "24hr_change": "0.4140", "percent_change": "0.11"}, "ADA,BTC": {"current": "0.0000", "24hr_change": "-0.0000", "percent_change": "-3.74"}}}' >>crypto_settings.json
echo '{"feature": "Stocks", "speed": "fast", "speed2": "fast", "animation": "down", "percent": true, "point": true, "logos": true, "chart": false, "title": true, "symbols": {"BRENTOIL": {"current": "123.053", "unit": "bbl", "24hr_change": "1.0150", "percent_change": "0.83"}, "WTIOIL": {"current": "121.588", "unit": "bbl", "24hr_change": "0.8902", "percent_change": "0.74"}, "XAU": {"current": "1821.205", "unit": "oz", "24hr_change": "4.0045", "percent_change": "0.22"}, "XAG": {"current": "21.1034", "unit": "oz", "24hr_change": "-0.0550", "percent_change": "-0.26"}, "XCU": {"current": "0.2633", "unit": "oz", "24hr_change": "-0.0006", "percent_change": "-0.22"}, "NG": {"current": "8.6595", "unit": "mmbtu", "24hr_change": "-0.0236", "percent_change": "-0.27"}, "WHEAT": {"current": "393.123", "unit": "ton", "24hr_change": "-1.2642", "percent_change": "-0.32"}, "COTTON": {"current": "1.4494", "unit": "lb", "24hr_change": "0.0004", "percent_change": "0.03"}, "RICE": {"current": "16.3849", "unit": "cwt", "24hr_change": "0.0093", "percent_change": "0.06"}, "SUGAR": {"current": "0.1866", "unit": "lb", "24hr_change": "-0.0007", "percent_change": "-0.40"}, "COCOA": {"current": "2374.074", "unit": "ton", "24hr_change": "2.5206", "percent_change": "0.11"}, "LUMBER": {"current": "527.842", "unit": "oz", "24hr_change": "0.2641", "percent_change": "0.05"}, "SOYBEAN": {"current": "17.1621", "unit": "bu", "24hr_change": "0.0270", "percent_change": "0.16"}}}' >>commodities_settings.json
@@ -64,9 +61,6 @@ echo '{"feature": "Economic Calendar", "speed": "medium", "speed2": "medium", "a
echo '{"brightness": 10, "country_code": "GB", "hostname": "fintic"}' >>general_settings.json
chmod 777 *
cd ../
sudo chmod -R ugo+rwx csv
@@ -122,7 +116,5 @@ touch 'Place (Reddit).ppm'
touch 'Place (Reddit) Prof.ppm'
chmod 777 *
cd ..
sudo chmod -R ugo+rwx display_images