Improvements to the documentation
This commit is contained in:
parent
d9e46637c6
commit
eec2311014
49
README.md
49
README.md
|
|
@ -1,16 +1,49 @@
|
||||||
# dublinbus-sign
|
# dublinbus-sign
|
||||||
Emulates a Dublin Bus electronic sign, showing ETAs for different bus lines
|
Emulates a Dublin Bus electronic sign, showing ETAs for different bus lines
|
||||||
|
|
||||||
## Usage
|
## How to use
|
||||||
|
|
||||||
* Install all dependencies
|
1. (optional) Configure the Raspberry Pi to use the non-standard display.
|
||||||
* Download the TTF font into the program's directory
|
1. Install all dependencies.
|
||||||
* Change main.py, updating STOPS to reflect the stop(s) you want to watch.
|
1. Download the TTF font into the program's directory.
|
||||||
* Run main.py
|
1. Change main.py, updating STOPS to reflect the stop(s) you want to watch.
|
||||||
|
1. Run main.py
|
||||||
|
|
||||||
## Dependencies
|
|
||||||
|
## 1. Configure the Raspberry Pi
|
||||||
|
|
||||||
|
If you plan on using an ultrawide monitor with a similar aspect ratio as the actual Dublin Bus displays (e.g. HSD123KPW2-D10), add the following lines to your /boot/config.txt:
|
||||||
|
|
||||||
|
```
|
||||||
|
framebuffer_width=1920
|
||||||
|
framebuffer_height=720
|
||||||
|
|
||||||
|
hdmi_ignore_edid=0xa5000080
|
||||||
|
hdmi_group=2
|
||||||
|
hdmi_mode=87
|
||||||
|
disable_overscan=1
|
||||||
|
hdmi_timings=1920 0 88 44 148 720 0 4 5 36 0 0 0 60 0 100980000 1
|
||||||
|
```
|
||||||
|
|
||||||
|
If your display's resolution is not 1920x720, you will also need to change the code to adapt to your specific size.
|
||||||
|
|
||||||
|
|
||||||
|
## 2. Install all dependencies
|
||||||
|
|
||||||
* iso8601
|
* iso8601
|
||||||
* pygame
|
|
||||||
* zeep
|
* zeep
|
||||||
* TTF Font jd_lcd_rounded.ttf by Jecko Development : https://fontstruct.com/fontstructions/show/459792/jd_lcd_rounded
|
* libSDL2_ttf-2.0.so.0
|
||||||
|
|
||||||
|
```
|
||||||
|
$ sudo apt install python3-iso8601 python3-zeep libsdl2-ttf-2.0-0
|
||||||
|
```
|
||||||
|
|
||||||
|
* pygame 2
|
||||||
|
|
||||||
|
```
|
||||||
|
$ sudo pip3 install pygame
|
||||||
|
```
|
||||||
|
|
||||||
|
|
||||||
|
* [TTF Font jd_lcd_rounded.ttf by Jecko Development](https://fontstruct.com/fontstructions/show/459792/jd_lcd_rounded)
|
||||||
|
* Download and copy the ttf file in the same folder as the code.
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue