added more api documentation

new build process
This commit is contained in:
Joel 2021-01-16 23:33:09 +01:00
parent 73284ceab8
commit 134cd3a30e
No known key found for this signature in database
GPG key ID: BDDDBECD0808290E
7 changed files with 53 additions and 70 deletions

14
postinstall.sh Normal file
View file

@ -0,0 +1,14 @@
install_package() {
echo "Installing package '$1' via pip3"
pip3 install "$1"
if [ $? -eq 0 ]; then
echo "Successfully installed pip3 package '$1'"
else
echo "Could not install pip3 package '$1'"
exit 1
fi
}
install_package "smbus"
install_package "requests"
install_package "python-logstash-async"