suntime dependency

This commit is contained in:
ehpersonal38
2023-04-17 22:07:44 -04:00
parent df1a591f2d
commit 2b77523ef8
2 changed files with 6 additions and 0 deletions
+1
View File
@@ -14,3 +14,4 @@ apprise==1.2.1
paho-mqtt
pytest==7.1.2
pytest-mock==3.7.0
suntime
+5
View File
@@ -195,6 +195,11 @@ if ! grep RTSP_STREAM_TO_LIVESTREAM /etc/birdnet/birdnet.conf &>/dev/null;then
sudo -u$USER echo "RTSP_STREAM_TO_LIVESTREAM=\"0\"" >> /etc/birdnet/birdnet.conf
fi
suntime_installation_status=$(~/BirdNET-Pi/birdnet/bin/python3 -c 'import pkgutil; print("installed" if pkgutil.find_loader("suntime") else "not installed")')
if [[ "$suntime_installation_status" = "not installed" ]];then
$HOME/BirdNET-Pi/birdnet/bin/pip3 install -U pip
$HOME/BirdNET-Pi/birdnet/bin/pip3 install suntime
fi
sudo systemctl daemon-reload
restart_services.sh