~fabrixxm/banglepy

Experiments connecting to Bangle.js via python
1481b081 — fabrixxm 4 years ago
rename README, add LICENSE
30938dea — fabrixxm 4 years ago
Update readme
330e1c84 — fabrixxm 4 years ago
Add simple systemd service unit

refs

master
browse  log 

clone

read-only
https://git.sr.ht/~fabrixxm/banglepy
read/write
git@git.sr.ht:~fabrixxm/banglepy

You can also use your local clone with git send-email.

#BanglePy

a simple python interface to banglejs

#requirements

  • python >= 3.8
  • python-dbus

#run

Your BangleJS must be already paired.

#console

Get a list of paired devices, with bluetooth addresses

python -m banglepy.console list

Connect to the BangleJS

python -m banglepy.console nn:nn:nn:nn:nn:nn

(replace 'nn:..' with your BangleJS address).

Running without device address will connect to the last used address.

#send desktop notifications to the BangleJS

Tested on GNOME, needs "Gadgetbridge" app on the BangleJS

Get a list of paired devices:

python -m banglepy.notif list

Start

python -m banglepy.notif nn:nn:nn:nn:nn:nn

Running without device address will connect to the last used address.

#Systemd

An experimental sample systemd unit is present in the repo.

Change the path to the notif script and link it in your systemd user folder, then start it with systemctl

$ ln -s banglejsnotif.service ~/.config/systemd/user/banglejsnotif.service
$ systemctl --user start banglejsnotif.service