Giter VIP home page Giter VIP logo

airhorn's People

Contributors

ckcr4lyf avatar

Stargazers

 avatar  avatar

Watchers

 avatar

airhorn's Issues

Can't build on M1 Mac

$ 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

Some kind of error on Intel Macbook

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.

Keep airtags in memory

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.

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.