Skip to content

Commit dd279ea

Browse files
committed
Adapted to Pebble Time
Detect bluetooth address option is changed for new Pebble Time. Now pebble-remote is working for both Pebble and Pebble Time. Signed-off-by: Gulsah Kose <[email protected]>
1 parent 99bc145 commit dd279ea

File tree

2 files changed

+11
-3
lines changed

2 files changed

+11
-3
lines changed

pebble_remote/data/scripts/pebble-remote

+10-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,14 @@
11
#!/bin/bash
22

3-
export PEBBLE_ID=`bt-device -l | grep Pebble | cut -d ' ' -f3 | cut -c2-18`
3+
export PEBBLE_ID=`bt-device -l | grep "Pebble Time" | cut -d ' ' -f4 | cut -c2-18`
4+
5+
if [ -z "$PEBBLE_ID" ];
6+
then
7+
8+
export PEBBLE_ID=`bt-device -l | grep "Pebble" | cut -d ' ' -f3 | cut -c2-18`
9+
10+
fi
11+
412
export PARAMETERS=--lightblue
513
export SUBCOMMAND=remote
614
export APP_NAME=soffice
@@ -14,7 +22,7 @@ then
1422
elif [ "$1" == "-v" ] || [ "$1" == "--version" ];
1523
then
1624

17-
echo "2.1"
25+
echo "2.2"
1826
exit 0
1927

2028
else

setup.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
from setuptools import setup
22

33
setup(name='pebble-remote',
4-
version='2.0',
4+
version='2.2',
55
description='Remote control for LibreOffice Impress with Pebble',
66
url='https://github.com/LibreOffice/impress_remote/tree/master/pebble',
77
author='Gulsah KOSE',

0 commit comments

Comments
 (0)