This is a simple app which displays one or more bird types (e.g. Sulphur Crested Cockatoo) and allows for the user to indicate a "sighting" of that bird type for that day. Sightings are logged (in a sqlite3 database) and can be used to report bird sightings per time period.
The intention is to run this on a Raspberry Pi with a touch screen as a simple and handy device for keeping track of bird type occurances of the year.
Ultimately just the binary (bird_counter) and the image directory is required - once cross-compiling for the Raspberry Pi is working.
The intention is to launch this automatically when the Raspberry Pi boots.
To build the ARM version using the custom container (see misc/README.md) use the following command:
podman run -e "XARGO_HOME=/xargo" -e "CARGO_HOME=/cargo" -e "CARGO_TARGET_DIR=/target" -e "CROSS_RUNNER=" -v "${HOME}/.cargo:/cargo:Z" -v "${HOME}/src/rust/bird_counter:/bird_counter:Z" -v "${HOME}/.rustup/toolchains/stable-x86_64-unknown-linux-gnu:/rust:Z,ro" -v "${HOME}/src/rust/bird_counter/target:/target:Z" -w /bird_counter -it --rm --name bird_counter localhost/my/gtk-armv7-unknown-linux-gnueabihf cargo build --target armv7-unknown-linux-gnueabihf
(If you're using docker you can replace podman
with docker
in that command.)
This command is contained in the podman.sh
script for convenience.
- Fork it (https://github.com/ggtrigg/bird_counter/fork)
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create a new Pull Request
- Glenn Trigg - creator and maintainer