Skip to content

Commit

Permalink
Merge branch 'main' of github.com:OpenEarable/dashboard into main
Browse files Browse the repository at this point in the history
  • Loading branch information
TobiasRoeddiger committed Sep 10, 2024
2 parents 7a294b3 + 9feab07 commit 3485ae5
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
# 🦻 OpenEarable - Dashboard v2.0.0
# 🦻 OpenEarable - Dashboard v1.4.0
[Open Dashboard ↗️](https://openearable.github.io/dashboard/)

This repository offers comprehensive web interface for controlling and monitoring OpenEarable. A hosted version of this dashboard is available [here](https://openearable.github.io/dashboard/). The dashboard offers acces to different sensors, audio controls, button events and the RGB LED of OpenEarable. In addition, it shows real-time graphs of accelerometer, gyroscope, magnetomer, pressure, and temperature sensor data. Users can use the dashboard to label incoming data and download the labeled data as csv file ([edge-ml.org](https://edge-ml.org) compatible format for no-code machine learning).

This repository also includes the [OpenEarable.js](https://github.com/OpenEarable/dashboard#openearablejs-library) JavaScript library in the `assets/js/OpenEarable.js` folder. This way, researchers and developers can easily integrate OpenEarable into their own workflows.

<kbd> <br> [Get OpenEarable device now!](https://forms.gle/R3LMcqtyKwVH7PZB9) <br> </kbd>
<kbd> <br> [Get OpenEarable device now!](https://open-earable.teco.edu/) <br> </kbd>

## Usage
The dashboard runs directly in your browser. You can connect to OpenEarable without having to install anything as it works via WebBLE (latest Chrome version is recommended).

<img src="Screenshot.png" style="width: 100%;">
https://github.com/OpenEarable/dashboard/assets/11386075/e9e2a116-a4f6-42e4-9f19-0ce223112ff2


If you want to run the dashboard yourself and have python3 installed, you can use the following command to run the website from the root of this repository. This will start the webserver at `http://localhost:8000`.
Expand Down
6 changes: 5 additions & 1 deletion assets/js/OpenEarable.js
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,11 @@ class BLEManager {
optionalServices: optionalServiceUUIDs
});
this.gattServer = await this.device.gatt.connect();
this.device.addEventListener('gattserverdisconnected', this.handleDisconnected.bind(this));
if (!this.device.disconnectHandlerAdded) {
this.device.addEventListener('gattserverdisconnected', this.handleDisconnected.bind(this));
this.device.disconnectHandlerAdded = true;
}

this.notifyAll(this.onConnectedSubscribers);
});
}
Expand Down

0 comments on commit 3485ae5

Please sign in to comment.