fintic-tracker/README.md

75 lines
1.3 KiB
Markdown
Raw Normal View History

2021-04-26 21:13:08 +01:00
# fintic
2021-05-04 16:28:29 +01:00
## Install instructions
2021-05-04 22:25:13 +01:00
2021-05-04 22:31:17 +01: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 16:28:29 +01:00
```console
sudo apt-get update
2021-05-04 21:27:39 +01:00
sudo apt-get install git
git clone https://github.com/zcqsntr/fintic --recursive
2021-05-04 22:25:13 +01:00
cd fintic
2021-05-07 19:28:54 +01:00
./setup.sh
2021-05-04 22:25:13 +01:00
```
2021-05-04 21:27:39 +01:00
2021-05-04 22:25:13 +01:00
Now to turn off the audio circuit open the config file with
```console
2021-05-04 17:08:14 +01:00
sudo nano /boot/config.txt
2021-05-04 22:25:13 +01:00
```
look for the dtparam=audio option and turn it to off, the line should look like this:
```console
2021-05-04 17:08:14 +01:00
dtparam=audio=off
2021-05-04 16:28:29 +01:00
```
2021-05-04 22:25:13 +01:00
then reboot the pi with
```console
2021-05-23 10:47:24 +01:00
sudo reboot
2021-05-04 22:25:13 +01:00
```
2021-05-05 20:44:30 +01:00
## Set to run at startup
2021-05-05 21:57:45 +01:00
add the startup script to crotab. Open the crontab
```console
crontab -e
```
add the line
```console
2021-05-05 21:58:32 +01:00
@reboot <path to fintic>/startup.sh &
2021-05-05 21:57:45 +01:00
```
2021-05-05 20:44:30 +01:00
2021-05-05 21:58:32 +01:00
dont forget the ampersand!
2021-05-05 21:57:45 +01:00
also make sure that the paths in startup.sh are correct for your install location
2021-05-05 20:44:30 +01:00
2021-05-05 20:24:41 +01: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 20:45:42 +01:00
You then connect to the server using the url fintic.local:1024
2021-05-05 20:24:41 +01:00
2021-05-04 16:39:36 +01:00
## Run instructions
```console
2021-05-04 18:09:17 +01:00
python3 server.py
2021-05-04 16:39:36 +01:00
```
2021-05-04 18:09:17 +01:00
in broswer go to url http://raspberrypi.local:1024
2021-05-04 16:39:36 +01:00
2021-05-04 22:31:17 +01:00
## Notes
2021-05-04 16:28:29 +01:00
2021-04-26 21:13:08 +01:00
To conver bdf font to pil format do pilfont.py <font filename>
2021-05-04 18:03:00 +01:00
pillow v 5.4.1 works, but version 8.2.0 breaks
2021-05-04 16:39:36 +01:00
2021-05-04 16:28:29 +01:00