|
|
@ -268,3 +268,31 @@ easier to test the bespoke shutdown procedure is working as |
|
|
|
intended. You can, also, adjust the time in the crontab or run the |
|
|
|
intended. You can, also, adjust the time in the crontab or run the |
|
|
|
script by running the script like you normally would but I find them |
|
|
|
script by running the script like you normally would but I find them |
|
|
|
to be frustrating to do in this instance. |
|
|
|
to be frustrating to do in this instance. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
## Running the Program |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
You should not need to run the program manually (after you have set |
|
|
|
|
|
|
|
everything up). With that said, you can make sure the software works |
|
|
|
|
|
|
|
by running the following commands, |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
```python |
|
|
|
|
|
|
|
# This assumes you have followed the set-up steps above and you are |
|
|
|
|
|
|
|
# not running the code in a virtual environment. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Adjust the path to match the location of the .py file. |
|
|
|
|
|
|
|
python3 /home/rtrp/repos/light-meter/cli_meter.py |
|
|
|
|
|
|
|
``` |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
There is a GUI program which you can run which runs locally. I used |
|
|
|
|
|
|
|
this for testing and probably have not used it since the very early |
|
|
|
|
|
|
|
stages of developing this project. It basically displays the light |
|
|
|
|
|
|
|
levels on a screen. This requires Raspbain (RaspberryPi OS) to have it |
|
|
|
|
|
|
|
desktop environment installed. To run it, |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
```python |
|
|
|
|
|
|
|
# This assumes you have followed the set-up steps above and you are |
|
|
|
|
|
|
|
# not running the code in a virtual environment. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Adjust the path to match the location of the .py file. |
|
|
|
|
|
|
|
python3 /home/rtrp/repos/light-meter/light_meter.py |
|
|
|
|
|
|
|
``` |
|
|
|