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
|
|
|
|
git clone https://github.com/zcqsntr/fintic --recursive
|
|
|
|
|
2021-05-04 21:25:13 +00:00
|
|
|
cd fintic
|
2021-05-05 19:24:41 +00:00
|
|
|
./setup.shsudo raspi-config
|
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-05-04 21:25:13 +00:00
|
|
|
then reboot the pi with
|
|
|
|
```console
|
|
|
|
sudo reboot now
|
|
|
|
```
|
|
|
|
|
2021-05-05 19:44:30 +00:00
|
|
|
## Set to run at startup
|
|
|
|
|
|
|
|
Open rc.local
|
|
|
|
```console
|
|
|
|
sudo nano /etc/rc.local
|
|
|
|
```
|
|
|
|
|
|
|
|
add this just before the exit line, don't forget the ampersand at the end!
|
|
|
|
|
|
|
|
python3 <path to server.py> &
|
|
|
|
|
|
|
|
|
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
|
|
|
|
|
|
|
|
You then connect to the server using the url fintic.local
|
|
|
|
|
|
|
|
|
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-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
|
|
|
|
|
|
|
|