UNIT02:

TACHOMETER AND POWERBOARD

TODO:

- ausschalttimer mit zündung optimieren dass es nicht immer aufgerufen wird
    - wifi anzeigen 
    - web interfache wie switchpods um sounds abzuspielen
    - timer für fensterheber ausschalten
    - fenster senken heben bei tür öffnen (2x DI Türkontakt erweitern)
    - pool class für multiprocessing einrichten
    - kmh und 7segmentanzeigen mit hintergrundbild und text anstatt labels machen
    - Simulate DIGITAL INPUT
    - 202 WIRD "MASTER" UND SWITCHT THEME AUF SWITCHPODS UND ANDEREN KOMPONENTEN UM

INSTALLATION:

Testing for Windows without any Hardware:
just install Python 3.10: www.python.org/

Installation on RaspberryPI:
Used Hardware: Raspberry Pi4 8GB RAM,  64gb SD 2x7" Touch

Download and install Raspbean 64-bit:
raspberrypi.org

Install it to SD - if you don´t know how, there are many instructions and videos in the web.
After your PI is running enable SSH, VNC, and I2C

Install Touchscreen configuration tool:
"sudo apt-get install xinput-calibrator"

Install PSUtils:
pip3 install --ignore-installed psutil

Install the hardware addons:
I2C Relaisboard
sudo pip3 install adafruit-circuitpython-mcp230xx

I2C analog digital converter:
sudo pip3 install adafruit-ads1x15
sudo pip3 install adafruit-circuitpython-ads1x15

Install VLC PYTHON:
sudo pip3 install python-vlc

Install PYGAME (AUDIO):
sudo apt-get install python3-pygame

Websocket (Communicate with the Switchpods)))
pip3 install websocket-client

And finaly install my software:
Create a folder in home/pi/ named "000_SYS" and copy everything from the downloaded .zip file into it.

Next install the fonts:
sudo cp -r ~/000_SYS/FONTS /usr/share/fonts/truetype/

now you should be ready to run the programm, test it while opening PY.py with Thonny and run it. If it runs perfect.

Now you can prepare the next files from "autorun.zip" to "home/pi/.configuration/autostart" (create folder if it not exists) make all files in this folder run and writable "755"
also the file "PY.py" in the main programm folder.

Now it should autorun when you start the PI.

CHANGELOG:

V1.1.5
LCARS AND DMC THEME
SWPD BUTTONS NEU DEFINIERT
RPM BUTTON ZU TEXT MIT HINTERGRUNDBILD
BTTF ANPASSUNGEN 7-SEGMENT UND NEUES TASTENFELD MIT SOUND

V1.1.4
S05 KITT THEME, S05 KARR THEME (BTTF)
Neue sortierung im init nor noch eine if abfrage für verschiedene themes
S05 THEME BECOMES "NIGHT" THEME. NEW S05 THEME BASED ON S04 THEME

V1.1.3
bei windows wird mit normalen fenster geöffnet
bttf tcd
volume control
neue setup und control seite
setup seite eingänge werden jetzt ohne bildwechsel aktualisiert

V1.1.2
GPIO LEDS NEU SORTIERT UND FÜR TEXTE VORBEREITET
PINSTATUS IN SETUP ANZEIGEN
automatisch pi oder windows system erkennen und somit hw simu ein und ausschalten
Blinkersound optimiert

V1.1.1
S01 S02 und S05 Theme angepasst

V1.1.0
S01 S02 KITT AND KARR THEME FINISHED

V1.0.9
GPIO SORTED
season 1 and 2 images and theme

V1.0.8
Control Page neue Relais Schalter
R208-R215 FÜR DOPPELSCHALTUNG FENSTERHEBER LI + RE
RELAIS SIMULATION MIT SIM VARIABLE
cpu temp anzeigen
window relaisswitches auf control page

V1.0.7
setup page neu defs in "mydefs" kopiert
webif test
new folder sort
new icons neue sortierung im programm

V1.0.6
TIMER TESTS
Zykluszeiten im dash anzeigen
CPU RAM UND HDD NEU POSITIONIERT
FONTS UND FARBEN GLOBALISIERT
S05 THEME AKTUALISIERT FÜR NACHT
4 GROßE BUTTONS IM POWER BOARD SIND TASTER FÜR RELSIA
TASTER "NORMAL" SCHALTET AUSSCHALTTIMER WENN ZÜNDUNG AUS WAIT PAGE
Geschwindigkeits Optimierungen

V1.0.5
Versionsnummer als Variable
Versionsnummer unter SETUP anzeigen
einige functions (def) in neue class verschoben (übersichtlicher)
mehrere Themes vorbereitet für die Buttons und label...

V1.0.4
TEXTLABELS IN TEXT.DAT HINZUGEFÜGT

V1.0.3
TANKINHALT ANPASSUNG ÜBER INI DATEI
VARIABLEN IN DATA.ini
GELBE POWER LEDS ZU TASTERN GEMACHT

V1.0.2
TANKINHALT ANPASSUNG
ANFANG ROTER BEREICH: 56% 18260 BISHER BEI 3 BALKEN ZEILE 7500
zeile 7181 noch anpassen für liter und %
in aldl datei schreiben zeile 7186

V1.0.1
tankanzeige wieder eingefügt und andere sachen
Neue Variable "SWSIMOHW" Softwaresimulation ohne Hardware
bei Windows Test auf 1 Setzen

V1.0.0
VOM 2021-08-07
ALLES NEU GEORDNET
VARIABLEN FÜR SWITCHPODBUTTONS ERSTELLEN UND SOUNDS FÜR SWPD_LE EINGESTELLT
© 1997 - 2024, Marcel Anke. All Rights Reserved
Image
π