Sound Monitor

PC

Prerequisite

sudo apt-get install netdiscover rrdtool
# generate ssh keys
ssh-keygen

Discover RADXA

sudo netdiscover
...
192.168.2.44 ac:a2:13:42:1c:14
...

Upload key to RADXA (password is rock)

ssh-copy-id 192.168.x.y

Connect

Connect to RADXA

# user rock, password rock
ssh rock@192.168.x.y

Graphs

Copy database

scp rock@192.168.x.y:~/monitor/db.rrd /tmp

Generate graph

RADXA

Python monitor

Project is in /home/rock/monitor

run

sudo systemctl stop monitor
# start in foreground
monitor_run
# stop with CTRL+C

edit code

nano ~/monitor/monitor/capture.py

Service

/etc/systemd/system/monitor.service

[Unit]
Description=Monitor
[Service]
Type=simple
User=rock
ExecStart=/usr/local/bin/monitor_run
[Install]
WantedBy=multi-user.target

Enable

systemctl enable vgaoff.service