| title | draft |
|---|---|
Pi-Alarm Software Installation |
false |
Start by installing the NOOBS operating system. Once installed, connect a monitor, keyboard, mouse, and power to Pi. Power on the Pi and it should boot up. Connect to your local network via WiFi or ethernet cable.
Find IP address of your Pi:
hostname -IUse SCP or Filezilla to transfer te following files to your Raspberry Pi:
alarm.pykey_file.txt(Renamekey_file.txt.origtokey_file.txt)logging.conf.yaml(Renamelogging.conf.yaml.origtologging.conf.yaml)siren1.mp3
To copy files, use scp <file> pi@<ip>:~ where <file> is the fine name and <ip> is the IP address of your Pi. Here's an example:
Note: The default password for your Raspberry Pi is
raspberry.
scp alarm.py pi@<ip>:~
scp key_file.txt pi@<ip>:~
scp logging.conf pi@<ip>:~
scp siren1.mp3 pi@1<ip>:~pip install Flask Flask-API Flask-Cors PyYAMLYour software installation is ready to be used! Check out the usage instructions to learn how to use the Pi Alarm.
To run the unit tests:
python -m unittestCode coverage of the unit tests requies the coverage module
pip install coverageTo run unit test code coverage:
coverage run -m unittestTo view the report in text format:
coverage reportTo view the report in HTML format:
coverage htmlHTML report is in htmlcov directory