Skip to content

drahmel/Py-neTime

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Py-neTime

Python script to set your PineTime (with Infinitime) to the current time, accurate to the nearest 1/256th of a second

Other features demonstrated:

  • Get current watch time
  • Read step count
  • Send notification

big thanks to https://github.com/getsenic/gatt-python

Dependancy List

Install Python requirements:

sudo pip3 install -r requirements.txt

Install system requirements:

sudo apt-get install python3-dbus

To Run

Pair your PineTime device to your machine with the bluetoothctl tool.

Run at the console:

bluetoothctl

If your device is already paired, you should see the device with your mac address like this:

[NEW] Device EF:C0:ED:C1:68:52 InfiniTime

You can list all of the available bluetoothctl commands by running help and you will see the list, scan, and pair commands.

Once you have paired your device and recorded the mac address, run this command to set the time on the PineTime:

python3 sync-pinetime.py PINETIME-MAC-ADDRESS (E.g., EF:C0:ED:C1:68:52)

Useful Links

alt text

About

Python script to set your pinetime (with infinitime) to the current time

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%