Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

BirdNET-Pi2Go is a data migration tool designed to facilitate the conversion of BirdNET-Pi database contents and audio files to the BirdNET-Go data model.

NotificationsYou must be signed in to change notification settings

tphakala/birdnet-pi2go

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

40 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🌟 Overview

BirdNET-Pi2Go is a data migration tool designed to facilitate the conversion of BirdNET-Pi database contents and audio files to the BirdNET-Go data model. This utility ensures seamless transition between the two systems while maintaining your valuable bird detection data.

✨ Features

  • 🔄Database Conversion: Migrates BirdNET-Pi SQLite database to BirdNET-Go format
  • 📁Audio File Transfer: Supports copying or moving audio recordings to BirdNET-Go directory structure
  • 🔀Flexible Operations: Choose between copying files (preserving originals) or moving files (saving space)
  • 💾Disk Space Verification: Automatically checks for sufficient storage before starting transfers
  • Skip Audio Option: Option to migrate database only, without transferring audio files
  • 🔄Merge Support: Ability to merge existing BirdNET-Go database with migrated data

📋 Requirements

  • 🖥️ Go 1.21 or newer for building from source
  • 📂 Access to BirdNET-Pi and BirdNET-Go file systems

🚀 Getting Started

🔨 Building

To build BirdNET-Pi2Go from source:

git clone https://github.com/tphakala/birdnet-pi2go.gitcd birdnet-pi2gogo build

📝 Usage Guide

After building, run BirdNET-Pi2Go with various flags to customize your migration:

./birdnet-pi2go -source-db<path_to_birdnet_pi_db> -target-db<path_to_birdnet_go_db> -source-dir<path_to_birdnet_pi_audio_files> -target-dir<path_to_birdnet_go_audio_files> -operation<copy|move> -skip-audio-transfer<true|false>

🎛️ Command Options

FlagDescriptionDefault
-source-dbPath to BirdNET-Pi SQLite databasebirds.db
-target-dbPath to BirdNET-Go SQLite database (will be created)birdnet.db
-source-dirPath to BirdNET-Pi BirdSongs directory(required for file transfer)
-target-dirPath to BirdNET-Go clips directoryclips
-operationFile transfer mode:copy ormovecopy
-skip-audio-transferSkip audio file transfer (true orfalse)false

⚠️Note: Target database should not exist - it will be created during migration.

🧪 Examples

Basic migration with file copying:

./birdnet-pi2go -source-db birds.db -target-db birdnet.db -source-dir~/birdnetpi/BirdSongs -target-dir clips -operation copy

Migrate database only (no audio files):

./birdnet-pi2go -source-db birds.db -target-db birdnet.db -skip-audio-transfertrue

Move files instead of copying (saves disk space):

./birdnet-pi2go -source-db birds.db -target-db birdnet.db -source-dir~/birdnetpi/BirdSongs -target-dir clips -operation move

Merge existing databases:

./birdnet-pi2go -source-db birds.db -target-db birdnet.db -operation merge

📊 Data Handling

BirdNET-Pi2Go carefully preserves your detection data while converting between formats:

  • 🔍 Detection records are mapped to BirdNET-Go's Note structure
  • 🔊 Audio filenames are standardized according to BirdNET-Go conventions
  • 🗂️ File organization follows BirdNET-Go's year/month directory structure

⚠️ Disclaimer

This tool is provided 'AS IS', without warranty of any kind.Please ensure you have backed up your data before using this tool. The developers are not responsible for any loss of data.

📜 License

MIT

About

BirdNET-Pi2Go is a data migration tool designed to facilitate the conversion of BirdNET-Pi database contents and audio files to the BirdNET-Go data model.

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors2

  •  
  •  

[8]ページ先頭

©2009-2025 Movatter.jp