2023-10-09 02:51:33 +00:00
|
|
|
# Fintic
|
|
|
|
|
2021-05-04 15:28:29 +00:00
|
|
|
## Install instructions
|
2021-05-04 21:25:13 +00:00
|
|
|
|
2023-10-09 02:51:33 +00:00
|
|
|
1. Update your Raspberry PI OS and install git
|
2022-03-07 20:27:14 +00:00
|
|
|
|
2023-10-09 02:51:33 +00:00
|
|
|
```shell
|
|
|
|
sudo apt update
|
|
|
|
sudo apt upgrade -y
|
|
|
|
sudo apt install -y git
|
|
|
|
```
|
2021-05-04 20:27:39 +00:00
|
|
|
|
2023-10-09 02:51:33 +00:00
|
|
|
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`
|
2021-05-07 18:28:54 +00:00
|
|
|
|
2021-05-04 20:27:39 +00:00
|
|
|
|
2021-05-04 21:25:13 +00:00
|
|
|
Now to turn off the audio circuit open the config file with
|
|
|
|
```console
|
2021-05-04 16:08:14 +00:00
|
|
|
sudo nano /boot/config.txt
|
2021-05-04 21:25:13 +00:00
|
|
|
```
|
2021-12-01 16:34:17 +00:00
|
|
|
look for the dtparam=audio option and turn it to off, the line should look like this. And disable bluetooth, change temp limit:
|
2021-05-04 21:25:13 +00:00
|
|
|
```console
|
2021-05-04 16:08:14 +00:00
|
|
|
dtparam=audio=off
|
2021-12-01 16:34:17 +00:00
|
|
|
dtoverlay=disable-bt
|
|
|
|
temp_soft_limit=70
|
2021-05-04 15:28:29 +00:00
|
|
|
```
|
2021-11-26 15:21:10 +00:00
|
|
|
|
|
|
|
```console
|
2021-12-01 16:34:48 +00:00
|
|
|
sudo nano /boot/cmdline.txt
|
2021-11-26 15:21:10 +00:00
|
|
|
```
|
|
|
|
isolcpus=3
|
|
|
|
|
|
|
|
|
|
|
|
enable ssh
|
2021-12-01 16:34:17 +00:00
|
|
|
```console
|
|
|
|
cd /Volumes/boot
|
|
|
|
touch ssh
|
|
|
|
```
|
|
|
|
disable hdmi, add this line above exit 0
|
|
|
|
```console
|
|
|
|
sudo nano /etc/rc.local
|
|
|
|
/usr/bin/tvservice -o
|
|
|
|
```
|
2021-05-04 15:28:29 +00:00
|
|
|
|
2021-05-04 21:25:13 +00:00
|
|
|
then reboot the pi with
|
|
|
|
```console
|
2021-05-23 09:47:24 +00:00
|
|
|
sudo reboot
|
2021-05-04 21:25:13 +00:00
|
|
|
```
|
|
|
|
|
2021-05-05 19:44:30 +00:00
|
|
|
## Set to run at startup
|
|
|
|
|
2021-05-05 20:57:45 +00:00
|
|
|
add the startup script to crotab. Open the crontab
|
|
|
|
```console
|
|
|
|
crontab -e
|
|
|
|
```
|
|
|
|
|
|
|
|
add the line
|
|
|
|
|
|
|
|
```console
|
2021-12-08 16:37:05 +00:00
|
|
|
@reboot sudo -E <path to fintic>/startup.sh &
|
2021-05-05 20:57:45 +00:00
|
|
|
```
|
2021-05-05 19:44:30 +00:00
|
|
|
|
2021-05-05 20:58:32 +00:00
|
|
|
dont forget the ampersand!
|
|
|
|
|
2021-05-05 20:57:45 +00:00
|
|
|
also make sure that the paths in startup.sh are correct for your install location
|
2021-12-02 17:35:51 +00:00
|
|
|
|
|
|
|
## Install the hotspot
|
|
|
|
```console
|
|
|
|
cd ~
|
|
|
|
curl "https://www.raspberryconnect.com/images/hsinstaller/AutoHotspot-Setup.tar.gz" -o AutoHotspot-Setup.tar.gz
|
|
|
|
tar -xzvf AutoHotspot-Setup.tar.gz
|
|
|
|
cd Autohotspot
|
|
|
|
sudo ./autohotspot-setup.sh
|
|
|
|
```
|
|
|
|
Choose option 2, then option 7 to change the SSID and password (for some reason it didnt work with the default SSID and password).
|
|
|
|
|
2021-12-02 17:42:26 +00:00
|
|
|
Then you can connect to the network and go to http://fintic.local:1024 or http://10.0.0.5:1024 and enter wifi information, then reboot
|
2021-05-05 19:44:30 +00:00
|
|
|
|
|
|
|
|
2021-05-05 19:24:41 +00:00
|
|
|
## Change the hostname
|
|
|
|
|
|
|
|
To change the hostname (URL used to access the server) first open config
|
|
|
|
```console
|
|
|
|
sudo raspi-config
|
|
|
|
```
|
|
|
|
Then go to system options -> hostname and change it to e.g. fintic
|
|
|
|
|
2021-05-05 19:45:42 +00:00
|
|
|
You then connect to the server using the url fintic.local:1024
|
2021-05-05 19:24:41 +00:00
|
|
|
|
|
|
|
|
2021-05-04 15:39:36 +00:00
|
|
|
## Run instructions
|
|
|
|
|
|
|
|
```console
|
2021-12-01 16:38:11 +00:00
|
|
|
sudo -E python3 server.py
|
2021-05-04 15:39:36 +00:00
|
|
|
```
|
2021-12-01 16:34:17 +00:00
|
|
|
in browser go to url http://raspberrypi.local:1024
|
2021-05-04 15:39:36 +00:00
|
|
|
|
2021-12-01 16:40:35 +00:00
|
|
|
If it doesnt work because of a missing package try running setup.sh again, sometimes it fails to connect to the package repos
|
2021-05-04 21:31:17 +00:00
|
|
|
## Notes
|
2021-05-04 15:28:29 +00:00
|
|
|
|
|
|
|
|
2021-04-26 20:13:08 +00:00
|
|
|
To conver bdf font to pil format do pilfont.py <font filename>
|
2021-12-01 16:01:13 +00:00
|
|
|
pillow v 5.4.1 works, but version 8.2.0 breaks.
|
2021-04-28 19:39:30 +00:00
|
|
|
|
2021-05-04 15:39:36 +00:00
|
|
|
|
2021-04-28 19:39:30 +00:00
|
|
|
|
2021-05-04 15:28:29 +00:00
|
|
|
|
|
|
|
|