Skip to content

Limit number of recording for a given species ? #102

Answered by alexbelgium
Fish31520 asked this question in Q&A
Discussion options

You must be logged in to vote

Quite interesting! I was starting a script in bash. We should test what is the most efficient as this will have to deal with many many files. This script (WIP) took 30s for around 149k files stored on an external drive. Once we have a working script we'll add it to the cron.

#!/bin/bash

# SPECIES CLEANER 2024-06-24
########################
# 0. Set variable, get files_per_species and use 100 if not defined. This will be the additional number of audio files remaining per species, not considering the last 7 days and the protected files
# 1. Get all individual Com_Names from the sqlite
# 2. For a single specie at a time list all files in the BirdSongs folder
## Containing the right format (…

Replies: 2 comments 33 replies

Comment options

You must be logged in to vote
24 replies
@Hiemstra87
Comment options

@alexbelgium
Comment options

@Fish31520
Comment options

@alexbelgium
Comment options

Answer selected by Fish31520
@alexbelgium
Comment options

@alexbelgium
Comment options

@lloydbayley
Comment options

@alexbelgium
Comment options

Comment options

You must be logged in to vote
9 replies
@Fish31520
Comment options

@alexbelgium
Comment options

@Fish31520
Comment options

@alexbelgium
Comment options

@Fish31520
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
6 participants