Skip to content

Commit

Permalink
Adapted to Pebble Time
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
GulsahKose committed Jul 4, 2015
1 parent 99bc145 commit dd279ea
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
12 changes: 10 additions & 2 deletions pebble_remote/data/scripts/pebble-remote
Original file line number Diff line number Diff line change
@@ -1,6 +1,14 @@
#!/bin/bash

export PEBBLE_ID=`bt-device -l | grep Pebble | cut -d ' ' -f3 | cut -c2-18`
export PEBBLE_ID=`bt-device -l | grep "Pebble Time" | cut -d ' ' -f4 | cut -c2-18`

if [ -z "$PEBBLE_ID" ];
then

export PEBBLE_ID=`bt-device -l | grep "Pebble" | cut -d ' ' -f3 | cut -c2-18`

fi

export PARAMETERS=--lightblue
export SUBCOMMAND=remote
export APP_NAME=soffice
Expand All @@ -14,7 +22,7 @@ then
elif [ "$1" == "-v" ] || [ "$1" == "--version" ];
then

echo "2.1"
echo "2.2"
exit 0

else
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from setuptools import setup

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

0 comments on commit dd279ea

Please sign in to comment.