View Single Post
Posts: 1,417 | Thanked: 2,619 times | Joined on Jan 2011 @ Touring
#102
Just something interesting and already python that might allow a bit more function with an already built watch app.
https://github.com/susundberg/pebble-linux-remote
I am actually not sure what function would be useful with this watch app and to splice the python server side stuff into maebble but it allows shell commands to be fired off from the server.
Ideas what to do with it are welcome.
here are some examples though
Code:
Example config:

[main]
transport = bluetooth  ; Either 'bluetooth' or 'websocket'
device = /dev/rfcomm0  ; bluetooth transport
;device = ws://192.168.0.1:9000/  ; websocket transport -- enable developer connection on your phone!
uuid = 7f1742c48dc94bb7ac8b309faf58985a

[commands]
UP,SINGLE = xdotool key Page_Up ; Emulate page down key press event -- apt-get install xdotool
DOWN,SINGLE = xdotool key Page_Down  ; Emulate page down key press event
UP,LONG = espeak "DO A BARREL ROLL!"  ; apt-get install espeak to get sound out!
DOWN,LONG = espeak "You pressed DOWN with LONG"

; Enabling the double click will make single click register slower, since pebble must wait
; for the other click.
; UP,MULTI= espeak "DO A BARREL ROLL!"
; DOWN,MULTI = espeak "Noup! Its chuck tesla"
SELECT,MULTI = espeak "TROLOLOLOLOLOLO"

SELECT,SINGLE = espeak "Problem officer"
SELECT,LONG = xdotool key ctrl+alt+l ; Lock the screen by pressing ctrl+alt+l
 

The Following 2 Users Say Thank You to biketool For This Useful Post: