-
-
Notifications
You must be signed in to change notification settings - Fork 317
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add beacon based sitemap selection #213 #252
Add beacon based sitemap selection #213 #252
Conversation
Implements Bluetooth low energy (BLE) support for beacons in AbstractLocateBeacons. Based on the Android version the MainActivity will create a LocateBeaconsTask with the belonging BLE API. To show the beacons, a new fragment (NearRooms) is created. The location of a beacon is set in OpenHABWriteBeaconActivity, like a NFC-Tag. The BluetoothStateBroadcastReceiver checks whether the user turns off Bluetooth while scanning for beacons and hold the Bluetoothadapter enabled until the BLE scanner is shut down. The BeaconHandler will handle the known and founded beacons for the whole system.
Implements Bluetooth low energy (BLE) support for beacons in AbstractLocateBeacons. Based on the Android version the MainActivity will create a LocateBeaconsTask with the belonging BLE API. To show the beacons, a new fragment (NearRooms) is created. The location of a beacon is set in OpenHABWriteBeaconActivity, like a NFC-Tag. The BluetoothStateBroadcastReceiver checks whether the user turns off Bluetooth while scanning for beacons and hold the Bluetoothadapter enabled until the BLE scanner is shut down. The BeaconHandler will handle the known and founded beacons for the whole system.
…213-beacon-based-sitemaps # Conflicts: # mobile/src/main/java/org/openhab/habdroid/ui/OpenHABMainActivity.java # mobile/src/main/java/org/openhab/habdroid/util/Constants.java # mobile/src/main/res/values-de/strings.xml
Hi thanks for the PR, I'm a little busy over the next few days, but I hope to get to it over the weekend. |
Hi, couple of comments before I go through the code.
|
Hi,
At the moment I am very busy, writing my Bachelor thesis, but after it I am looking forward to work on it |
* Modified encoding of passwords. Loading of images failed if the password contains a line terminator. * Improved error handling in case of http response code greater or equal 400 Signed-off-by: Volker Daube <vd-github@online.de> (github: Snickermicker)
Signed-off-by: Wouter Born <eclipse@maindrain.net>
Implements Bluetooth low energy (BLE) support for beacons in AbstractLocateBeacons. Based on the Android version the MainActivity will create a LocateBeaconsTask with the belonging BLE API. To show the beacons, a new fragment (NearRooms) is created. The shown beacons are clickable to manage the beacon or change to the belonging sitemap fragment. The location of a beacon is set in OpenHABWriteBeaconActivity, like a NFC-Tag. The BluetoothStateBroadcastReceiver checks whether the user turns off Bluetooth while scanning for beacons and hold the Bluetoothadapter enabled until the BLE scanner is shut down. The BeaconHandler will handle the known and founded beacons for the whole system.
Hi, 1.) I have added longclick functions to NearRoomFragment, to remove or edit a beacon. 2.) Before setting a beacon, a list of all near beacons is shown, to choose the beacon which will be set. 4.) After this changes the App should not crash, after clicking set Beacon Position. |
It seems to me that this had been closed by accident (which is a pity as it is imho a wonderful feature). @fspiekermann Are you still around (even a year after finishing your thesis) and not too upset that you have never got further feedback here? If so I'd love to revive it as the Android app has gained some new momentum (thanks to @mueller-ma and @maniac103!). Wdyt? |
This sounds like a very interessting feature. I'll reopen it |
I couldn't find a |
Note that @fspiekermann is currently writing his master thesis on a different topic. So time is very limited and he might need support to work together on this. Let‘s see what he can tell. |
Haha, I would think that time constraints will be much worse once he isn't a student anymore, but takes on a job :-) |
Hello, My name is Chengzhi Hu. I'm a graduate student interested in this PR and I'm also enrolled in Eclipse "Integrate openHAB with Google's Physical Web" project from GSoC. |
Hey, sounds great. Please note that some modifications have to be made, e.g. not adding strings to values-* directories and using autovalue for OpenhabBeacons.java |
@mueller-ma Thanks for the notifications. |
This is superseded by #880. |
I added beacon based sitemap selection, like described in Feature Proposal [#213].
Implements Bluetooth low energy (BLE) support for beacons in 'AbstractLocateBeacons'. Based on the Android version the 'MainActivity' will create a 'LocateBeaconsTask' with the belonging BLE API. To show the beacons, a new fragment ('NearRooms') is created. The location of a beacon is set in 'OpenHABWriteBeaconActivity', like a NFC-Tag. The 'BluetoothStateBroadcastReceiver' checks whether the user turns off Bluetooth while scanning for beacons and hold the 'Bluetoothadapter' enabled until the BLE scanner is shut down. The 'BeaconHandler' will handle the known and founded beacons for the whole system.
I have added two new menu items, one to start the localization and one to set the actual sitemap to the Beacon.
. To set the beacon position an activity was created, which looks like the one from NFC-Tag. In the 'NearRoom' fragment it is possible to get an overview of all near beacons. Unknown beacons get the name 'UNKOWN'.
![setBeacon](https://cloud.githubusercontent.com/assets/19517116/20618167/f48c5384-b2ed-11e6-8cec-af3fd637f2e4.png)