ckcr4lyf / airhorn Goto Github PK
View Code? Open in Web Editor NEWFun with airtags
License: GNU General Public License v3.0
Fun with airtags
License: GNU General Public License v3.0
$ cargo test
error: failed to run custom build command for `libdbus-sys v0.2.4`
Caused by:
process didn't exit successfully: `/Users/leung/Workspace/personal/airhorn/target/debug/build/libdbus-sys-9061b2c544b7bea3/build-script-build` (exit status: 101)
--- stdout
cargo:rerun-if-changed=build.rs
cargo:rerun-if-changed=build_vendored.rs
cargo:rerun-if-env-changed=DBUS_1_NO_PKG_CONFIG
cargo:rerun-if-env-changed=PKG_CONFIG_aarch64-apple-darwin
cargo:rerun-if-env-changed=PKG_CONFIG_aarch64_apple_darwin
cargo:rerun-if-env-changed=HOST_PKG_CONFIG
cargo:rerun-if-env-changed=PKG_CONFIG
cargo:rerun-if-env-changed=DBUS_1_STATIC
cargo:rerun-if-env-changed=DBUS_1_DYNAMIC
cargo:rerun-if-env-changed=PKG_CONFIG_ALL_STATIC
cargo:rerun-if-env-changed=PKG_CONFIG_ALL_DYNAMIC
cargo:rerun-if-env-changed=PKG_CONFIG_PATH_aarch64-apple-darwin
cargo:rerun-if-env-changed=PKG_CONFIG_PATH_aarch64_apple_darwin
cargo:rerun-if-env-changed=HOST_PKG_CONFIG_PATH
cargo:rerun-if-env-changed=PKG_CONFIG_PATH
cargo:rerun-if-env-changed=PKG_CONFIG_LIBDIR_aarch64-apple-darwin
cargo:rerun-if-env-changed=PKG_CONFIG_LIBDIR_aarch64_apple_darwin
cargo:rerun-if-env-changed=HOST_PKG_CONFIG_LIBDIR
cargo:rerun-if-env-changed=PKG_CONFIG_LIBDIR
cargo:rerun-if-env-changed=PKG_CONFIG_SYSROOT_DIR_aarch64-apple-darwin
cargo:rerun-if-env-changed=PKG_CONFIG_SYSROOT_DIR_aarch64_apple_darwin
cargo:rerun-if-env-changed=HOST_PKG_CONFIG_SYSROOT_DIR
cargo:rerun-if-env-changed=PKG_CONFIG_SYSROOT_DIR
--- stderr
pkg_config failed: `PKG_CONFIG_ALLOW_SYSTEM_CFLAGS="1" PKG_CONFIG_ALLOW_SYSTEM_LIBS="1" "pkg-config" "--libs" "--cflags" "dbus-1" "dbus-1 >= 1.6"` did not exit successfully: exit status: 1
error: could not find system library 'dbus-1' required by the 'libdbus-sys' crate
--- stderr
Package dbus-1 was not found in the pkg-config search path.
Perhaps you should add the directory containing `dbus-1.pc'
to the PKG_CONFIG_PATH environment variable
No package 'dbus-1' found
Package dbus-1 was not found in the pkg-config search path.
Perhaps you should add the directory containing `dbus-1.pc'
to the PKG_CONFIG_PATH environment variable
No package 'dbus-1' found
One possible solution is to check whether packages
'libdbus-1-dev' and 'pkg-config' are installed:
On Ubuntu:
sudo apt install libdbus-1-dev pkg-config
On Fedora:
sudo dnf install dbus-devel pkgconf-pkg-config
thread 'main' panicked at 'explicit panic', /Users/leung/.cargo/registry/src/github.com-1ecc6299db9ec823/libdbus-sys-0.2.4/build.rs:25:9
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
warning: build failed, waiting for other jobs to finish...
Sadge, wanna beep my airtag
$ uname -a
Darwin Chun-Yin-Leung.local 22.4.0 Darwin Kernel Version 22.4.0: Mon Mar 6 20:59:28 PST 2023; root:xnu-8796.101.5~3/RELEASE_ARM64_T6000 arm64
It seems after stopping the scan, we failed to get the associated peripheral.
It was not a major issue, as we were still able to continue the scan after. But we should probably investigate and see what caused it
[2023-05-03T03:35:48Z DEBUG airhorn] ManufacturerDataAdvertisement: {4C: [12, 19, 10, D3, 13, 26, 7B, C7, 25, 23, 41, 39, C4, 0B, 7B, EE, 5E, AE, E6, E7, 7F, 34, 4C, 24, F0, 01, 1C]}
[2023-05-03T03:35:48Z DEBUG airhorn::airtag::airtag] Found apple device!
[2023-05-03T03:35:48Z DEBUG airhorn::airtag::airtag] Advertising data matches airtag prefix!
[2023-05-03T03:35:48Z INFO airhorn] Found airtag! Stopping scan...
[2023-05-03T03:35:48Z ERROR airhorn] Failed to get peripheral! DeviceNotFound
[2023-05-03T03:35:48Z INFO btleplug::corebluetooth::peripheral] Event receiver died, breaking out of corebluetooth device loop.
[2023-05-03T03:35:49Z DEBUG airhorn] ManufacturerDataAdvertisement: {4C: [0C, 0E, 08, 66, 29, 7B, 01, 67, 90, 21, FD, 38, E4, 7A, 77, 7B, 10, 05, 4E, 1C, 53, 05, B6]}
[2023-05-03T03:35:49Z DEBUG airhorn::airtag::airtag] Found apple device!
[2023-05-03T03:35:49Z DEBUG airhorn::airtag::airtag] Advetising Data Length != 27, not airtag...
[2023-05-03T03:35:49Z DEBUG airhorn] ManufacturerDataAdvertisement: {06: [01, 09, 20, 02, DD, D2, F7, 2F, 70, 79, 97, 90, 6F, DE, 2A, DC, 0A, 42, 31, 57, 6F, B6, 27, 17, 96, 94, 49]}
[2023-05-03T03:35:49Z DEBUG airhorn] ManufacturerDataAdvertisement: {75: [42, 04, 01, 80, 66, BC, 7E, 8B, F8, BC, BB, BE, 7E, 8B, F8, BC, BA, 01, 00, 00, 00, 00, 00, 00]}
[2023-05-03T03:35:49Z DEBUG airhorn] ManufacturerDataAdvertisement: {4C: [0C, 0E, 08, 66, 29, 7B, 01, 67, 90, 21, FD, 38, E4, 7A, 77, 7B, 10, 05, 4E, 1C, 53, 05, B6]}
[2023-05-03T03:35:49Z DEBUG airhorn::airtag::airtag] Found apple device!
[2023-05-03T03:35:49Z DEBUG airhorn::airtag::airtag] Advetising Data Length != 27, not airtag...
Thanks to @limbuster for reporting.
If we find an airtag, we can save it as in some kind of list, to try and make them beep more often (instead of relying on bluetooth advertisement).
TBD if it would be viable.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.