This repository contains Bash and Python code which reads decibel levels and record audio from a connected USB sound level meter, in order to analyze and saves data and plot related to it. All tests were done with a Rasbperry Pi 2 Model B.
- Create a new virtual environment inside the directory:
virtualenv env
- then activate the virtual environment
source env/bin/activate
- install inspectNoise
- install library dependencies
pip install -r requirements.txt
- create the following directory
mkdir gathered_data
- add your personal ROOT in
analyze.py
- launch init.sh:
sh init.sh
- enjoy! :)
in util folder you can find:
ssh_reverse_tunnel.sh
in order to create SSH Reverse Tunnel. Change port (over 1024), user, server_URL.check_tunneling_alive.sh
in order to check if SSH Reverse Tunnel is alive. Change server_ip with your server IP.
insert scripts in /etc/rc.local if you want execute at boot-time.