suntime dependency
This commit is contained in:
@@ -14,3 +14,4 @@ apprise==1.2.1
|
|||||||
paho-mqtt
|
paho-mqtt
|
||||||
pytest==7.1.2
|
pytest==7.1.2
|
||||||
pytest-mock==3.7.0
|
pytest-mock==3.7.0
|
||||||
|
suntime
|
||||||
@@ -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
|
sudo -u$USER echo "RTSP_STREAM_TO_LIVESTREAM=\"0\"" >> /etc/birdnet/birdnet.conf
|
||||||
fi
|
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
|
sudo systemctl daemon-reload
|
||||||
restart_services.sh
|
restart_services.sh
|
||||||
|
|||||||
Reference in New Issue
Block a user