From 6b3240f7eae420a7990674a01103aaf18cb82571 Mon Sep 17 00:00:00 2001 From: lxsang Date: Wed, 3 Feb 2021 12:39:39 +0100 Subject: [PATCH] Initial comit, add code --- .gitignore | 106 ++++++++++++++++++++++++++++++++--------------------- README.md | 22 ++++++++++- 2 files changed, 85 insertions(+), 43 deletions(-) diff --git a/.gitignore b/.gitignore index 3523288..139e1cd 100644 --- a/.gitignore +++ b/.gitignore @@ -1,49 +1,73 @@ -# http://www.gnu.org/software/automake +# Prerequisites +plugins +build +*._* +*.d +*.deb +.vscode +# Object files +*.o +*.ko +*.obj +*.elf -Makefile.in -/ar-lib -/mdate-sh -/py-compile -/test-driver -/ylwrap +# Linker output +*.ilk +*.map +*.exp -# http://www.gnu.org/software/autoconf +# Precompiled Headers +*.gch +*.pch -autom4te.cache -/autoscan.log -/autoscan-*.log -/aclocal.m4 -/compile -/config.guess -/config.h.in -/config.log -/config.status -/config.sub -/configure -/configure.scan -/depcomp -/install-sh -/missing -/stamp-h1 +# Libraries +*.lib +*.a +*.la +*.lo -# https://www.gnu.org/software/libtool/ +# Shared objects (inc. Windows DLLs) +*.dll +*.so +*.so.* +*.dylib -/ltmain.sh +# Executables +*.exe +*.out +*.app +*.i*86 +*.x86_64 +*.hex -# http://www.gnu.org/software/texinfo +# Debug files +*.dSYM/ +*.su +*.idb +*.pdb -/texinfo.tex - -# http://www.gnu.org/software/m4/ - -m4/libtool.m4 -m4/ltoptions.m4 -m4/ltsugar.m4 -m4/ltversion.m4 -m4/lt~obsolete.m4 - -# Generated Makefile -# (meta build system like autotools, -# can automatically generate from config.status script -# (which is called by configure script)) +# Kernel Module Compile Results +*.mod* +*.cmd +modules.order +Module.symvers +Makefile.old +dkms.con +.DS_Store +.* +*.cache Makefile +antd +compile +config.guess +depcomp +install-sh +missing +libtool +config.log +config.status +config.sub +configure +aclocal.m4 +ltmain.sh +Makefile.in \ No newline at end of file diff --git a/README.md b/README.md index b1fe325..7b98b3b 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,20 @@ -# sysmond -System monitoring service +Jetson Nano system monitor. + +Simple service that monitors system resource and shutdowns the system +when the battery is low + +This service require the ADS1115 is connected to the +Nano and is handled by the ads1015 linux driver + +The battery voltage value is available on user space as the content of + +```sh +cat /sys/class/hwmon/hwmon2/device/in3_input +``` + +Statistic information that the daemon outputs: +- Battery +- CPU usage +- Memory usage +- CPU/GPU temperature +- Network trafic