Giter Club home page Giter Club logo

batbox's Introduction

batbox

Visualisation utility for Wildlife Acoustics and GUANO-tagged data exports

CI

This documentation can be viewed at https://parsingphase.dev/batbox/

See (and hear) it in action: https://batbox.phase.org

Source code: https://github.com/parsingphase/batbox

| | | |

Wildlife Acoustics are a manufacturer of wildlife audio tracking tools, from hobbyist to professional.

GUANO is a standardised tag format for recordings of bat echolocation calls.

This utility is designed to help sort and visualise data exported from these tools by providing a map and time-based interface to audio recordings. It works best with GUANO-tagged files, but can also WAV files from Wildlife Acoustics exports with or without these tags, so long as the related KML files are also present.

So far it's been tested with the output of an Echo Meter Touch 2 Bat Detector.

Running the code

While this is a web-based application, it's also set up to easily run on your laptop or desktop, if you're familiar with the command line - it should work as-is on MacOS or Linux.

For instructions on how to do so, read RUNNING-LOCALLY.md.

If you'd like to run the code on your own server, for public view, see RUNNING-SERVER.md

To run a development environment, see RUNNING-DEVELOPMENT.md

What you can do

  • Search by time, location and species
  • View a calendar of recording sessions
  • View sets of recordings (by search, date, species) on a map, and play the audio files in your browser
  • View and manage data in an inbuilt admin interface

Code status

The code is at an alpha state and needs a fair bit of aesthetic cleanup and refactoring, but it's usable.

Feedback

Please file any issues or bug reports at https://github.com/parsingphase/batbox/issues

If you have any questions about usage, contact [email protected].

Please note:

  • This is a hobby project, so time is limited and patience will be appreciated
  • This is one of the first projects of any size that I've built in Python, so the code may not be very neat or idiomatic

Thanks

Particular credit is due to David Riggs for both building the Guano library used in this project, and being incredibly helpful and responsive in helping to debug an issue with Guano data from the Echo Meter Touch.

Credit is also due to the creators of Django, particularly the Django Admin project which supplies the whole admin interface to the site.

Species full & common names can be loaded from the Mammal Diversity Database from the American Society of Mammalogists.

Please note that mappings from short codes to full species names are heuristic and not entirely foolproof. Any reportings of Malaysian Fruit Bats in Kent should be assumed to be a software error.

Licence

The project is currently licenced under the MIT licence, which should allow you to do what you need to with it. I reserve the right to change the licence at a later date, but any such change won't be retroactive - if you receive a MIT version, you can keep using it as such.

batbox's People

Contributors

dependabot[bot] avatar parsingphase avatar

Watchers

 avatar

batbox's Issues

documentation

Can someone make documentation, how to run this without docker just in pure machine with apache etc?

404 and KeyError

Files imported successfully, in calendar are visible links, "search" will display map with correct recordings locations.
But all links to view something will give error 404 at browser and similar messages at console:
[25/Aug/2020 13:22:03] "GET / HTTP/1.0" 200 10354
Internal Server Error: /byday/2020-08-24
Traceback (most recent call last):
File "/home/karel/batbox/venv/lib/python3.6/site-packages/django/core/handlers/exception.py", line 34, in inner
response = get_response(request)
File "/home/karel/batbox/venv/lib/python3.6/site-packages/django/core/handlers/base.py", line 115, in _get_response
response = self.process_exception_by_middleware(e, request)
File "/home/karel/batbox/venv/lib/python3.6/site-packages/django/core/handlers/base.py", line 113, in _get_response
response = wrapped_callback(request, *callback_args, **callback_kwargs)
File "/home/karel/batbox/tracemap/views.py", line 124, in day
return display_recordings_list(files, request, context)
File "/home/karel/batbox/tracemap/views.py", line 352, in display_recordings_list
files_with_spectrogram = [x for x in traces if x['spectrogram_url']]
File "/home/karel/batbox/tracemap/views.py", line 352, in
files_with_spectrogram = [x for x in traces if x['spectrogram_url']]
KeyError: 'spectrogram_url'
[25/Aug/2020 13:22:15] "GET /byday/2020-08-24 HTTP/1.0" 500 100050

documentation

Can someone give a quick procedure list how to make it working in pure ubuntu linux machine without all this virtual environment?

Audio Playback fails in Firefox

The audio wav files can not be played in latest Firefox (Stable 115.0.2 (64-bit)) version on gnu/Linux. The "Error Code: NS_ERROR_DOM_MEDIA_MEDIASINK_ERR". However this feature works in current unstable Firefox 116.0b8 (64-bit)

This features works in Chromium and Google Chrome.

Test case page: https://batbox.phase.org/byday/2020-07-25

This page uses the non standard property “zoom”. Consider using calc() in the relevant property values, or using “transform” along with “transform-origin: 0 0”. [2020-07-25](https://batbox.phase.org/byday/2020-07-25)
MouseEvent.mozPressure is deprecated. Use PointerEvent.pressure instead. [leaflet.js:5:285](https://batbox.phase.org/static/vendor/js/leaflet.js)
Media resource https://batbox.phase.org/media/sessions/Session%2020200725_215846/EPTFUS_20200725_220334.wav could not be decoded. [2020-07-25](https://batbox.phase.org/byday/2020-07-25)
Error: 3 playing /media/sessions/Session 20200725_215846/EPTFUS_20200725_220334.wav [MapHandler.js:138:29](https://batbox.phase.org/static/tracemap/js/MapHandler.js)
Device may not be able to play high sample rate files [MapHandler.js:140:33](https://batbox.phase.org/static/tracemap/js/MapHandler.js)
Media resource https://batbox.phase.org/media/sessions/Session%2020200725_215846/EPTFUS_20200725_220334.wav could not be decoded, error: Error Code: NS_ERROR_DOM_MEDIA_MEDIASINK_ERR (0x806e000b)
Details: OnMediaSinkAudioError [2020-07-25](https://batbox.phase.org/byday/2020-07-25)
Media resource https://batbox.phase.org/media/sessions/Session%2020200725_215846/EPTFUS_20200725_220334.wav could not be decoded. [2020-07-25](https://batbox.phase.org/byday/2020-07-25)
Error: 3 playing /media/sessions/Session 20200725_215846/EPTFUS_20200725_220334.wav [MapHandler.js:138:29](https://batbox.phase.org/static/tracemap/js/MapHandler.js)
Device may not be able to play high sample rate files [MapHandler.js:140:33](https://batbox.phase.org/static/tracemap/js/MapHandler.js)
Media resource https://batbox.phase.org/media/sessions/Session%2020200725_215846/EPTFUS_20200725_220334.wav could not be decoded, error: Error Code: NS_ERROR_DOM_MEDIA_MEDIASINK_ERR (0x806e000b)
Details: OnMediaSinkAudioError

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.