fintic-tracker/README.md

91 lines
1.5 KiB
Markdown
Raw Normal View History

2021-04-26 20:13:08 +00:00
# fintic
2021-05-04 15:28:29 +00:00
## Install instructions
2021-05-04 21:25:13 +00:00
2021-05-04 21:31:17 +00:00
Run these commands in the directory you want to put the app and press enter during the setup whenever it asks for confirmation
2021-05-04 15:28:29 +00:00
```console
sudo apt-get update
2021-05-04 20:27:39 +00:00
sudo apt-get install git
2021-07-31 09:32:06 +00:00
git clone https://github.com/fin-tic/fintic --recursive
2021-05-04 20:27:39 +00:00
2021-05-04 21:25:13 +00:00
cd fintic
2021-05-07 18:28:54 +00:00
./setup.sh
2021-05-04 21:25:13 +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
```
look for the dtparam=audio option and turn it to off, the line should look like this:
```console
2021-05-04 16:08:14 +00:00
dtparam=audio=off
2021-05-04 15:28:29 +00:00
```
2021-11-26 15:21:10 +00:00
```console
nano /boot/config.txt
```
temp_soft_limit=70
```console
nano /boot/cmdline.txt
```
isolcpus=3
enable ssh
2021-11-26 15:21:43 +00:00
2021-11-26 15:21:10 +00:00
disable bluetooth
2021-11-26 15:21:43 +00:00
2021-11-26 15:21:10 +00:00
disable hdmi
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-05-05 20:58:32 +00:00
@reboot <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-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-05-04 17:09:17 +00:00
python3 server.py
2021-05-04 15:39:36 +00:00
```
2021-05-04 17:09:17 +00:00
in broswer go to url http://raspberrypi.local:1024
2021-05-04 15:39:36 +00:00
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-05-04 17:03:00 +00:00
pillow v 5.4.1 works, but version 8.2.0 breaks
2021-05-04 15:39:36 +00:00
2021-05-04 15:28:29 +00:00