mirror of
https://github.com/jokob-sk/NetAlertX.git
synced 2025-12-07 09:36:05 -08:00
15 lines
704 B
Markdown
Executable File
15 lines
704 B
Markdown
Executable File
# Pi.Alert all split into modules
|
|
|
|
I am trying to split this big original file into modules and gives me some nice challanges to solve.
|
|
Since the original code is all in one file, the original author has taken quite some shortcuts by defining lots of variables as global !!
|
|
These need to be changed now.
|
|
|
|
Here is the main structure
|
|
|
|
| Module | Description |
|
|
|--------|-----------|
|
|
|pialert.py | The MAIN program of Pi.Alert|
|
|
|const.py | A place to define the constants for Pi.Alert like log path or config path.|
|
|
|const.py| const.py holds the configuration variables and makes them availabe for all modules. It is also the <b>workaround</b> for the global variables until I can work them out|
|
|
|api.py| |
|