Skip to content

python3 scripts for openauto pro. watch GPIO pins and perform actions when states change (shutdown, adjust fan speed based on CPU temp)

Notifications You must be signed in to change notification settings

dough10/openauto-scripts

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

openauto-scripts

python3 scripts for openauto pro. watch GPIO pins and perform actions when states change (shutdown), adjust fan speed based on CPU temp, reset volume to lower level on shutdown (using F7, F8, F12 keybinds), remote turn on wire (for amp's, processors)

Install

cd ~/ && curl -O https://raw.githubusercontent.com/dough10/openauto-scripts/refs/heads/main/install.sh && bash install.sh && rm install.sh

Environment configuration

environment config is used if you need to change the GPIO configuration, log level or time till shutdown. Only changed values need to be added

nano ~/openauto-scripts/.env to create or edit the environment config file.

GPIO configuration defaults

IGN_PIN=17
REMOTE_PIN=25
FAN_PIN=12
LATCH_PIN=4
FAN_SPEED_PIN=24

GPIO pin configuration use GPIO.BCM numbering standard
GPIO header

Shutdown timer

IGN_LOW_TIME=3 time in seconds to delay before shutdown initiated after ignition is turned off

Logging

logs are saved to users home directory. (openauto-scripts.log) Default logging level can be changed in the environment config file

default value

LOG_LEVEL=WARNING

Options: DEBUG, INFO, WARNING, ERROR, CRITICAL

to view log stream tail -f ~/openauto-scripts.log

reinstall

bash ~/openauto-scripts/uninstall.sh cd ~/ && curl -O https://raw.githubusercontent.com/dough10/openauto-scripts/refs/heads/main/install.sh && bash install.sh && rm install.sh

uninstall

bash ~/openauto-scripts/uninstall.sh

About

python3 scripts for openauto pro. watch GPIO pins and perform actions when states change (shutdown, adjust fan speed based on CPU temp)

Topics

Resources

Stars

Watchers

Forks