Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tidy initial config file generation / templating #975

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

srd424
Copy link

@srd424 srd424 commented Jul 9, 2023

This moves the currently used template for new config files out of install_config.sh script and into a text file, and does some simple templating using sed to allow sensible defaults to be set for hostname, lat/long, etc.

I note there was already a "birdnet-defaults.conf" in the root, but it seems to have slightly different default settings in it compared to the 'here document' in install_config.sh; in particular the default model is different. My suspicion is the default should be BirdNET_GLOBAL_6K_V2.4_Model_FP16, but I will let someone who is more familiar with the codebase reconcile the differences, for the moment I have gone with not changing the current behaviour. For the moment this patch renames the old file to reduce confusion.

(This is very much just a tidy-up, it's not a dependency for anything else I'm working on, low priority for review/merge but also hopefully helpful and fairly straightforward.)

install_config.sh script and into a text file; do some simple
templating using sed to allow sensible defaults to be set for
hostname, lat/long, etc.
@farski
Copy link

farski commented Jul 23, 2023

I only discovered BirdNET-Pi today, but I was confused when I started browsing through the settings to see that the default model was the one that seemed to exist only for legacy compatibility. I switched to the new one, but I did sort of wonder if I was making a mistake, since I would have expected it to be the default if it were the correct one to use in most cases, especially new installs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants