Skip to content

Automaticly change the Confidence by specific Time (explanation) #1155

Answered by MueJosh
MueJosh asked this question in Q&A
Discussion options

You must be logged in to vote

I got everything running as I intended in the beginning.

Is it the perfect way? Probably not but this was all new to me.

Right now the scripts should turn the confidence from 55% to 35% at 17:30 and vice versa at 06:30

If you want the same thing (or edit it to your preferences) here you go:

  1. Create a new File at /usr/local/bin/ and name it the way you like, I named it set_confidencelow.sh. Create a second one for the other command like: set_confidencehigh.sh

    for low paste this in the file:

#!/bin/bash 

# get file to edit
config_file="/home/USER/BirdNET-Pi/birdnet.conf"

# change line 129 to new confidence=35
sed -i '129s/.*/CONFIDENCE=0.35/' "$config_file"

for high:

#!/bin/bash 

# …

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by MueJosh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant