Giter VIP home page Giter VIP logo

py-netime's Introduction

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

py-netime's People

Contributors

drahmel avatar theironrobin avatar

Stargazers

frankfanslc avatar Matej Ľach avatar Jacob Brunson avatar  avatar

Watchers

 avatar

Forkers

drahmel

py-netime's Issues

Bringing features upstream from Siglo

Siglo is getting a lot of exciting new functionalities, recently the notifications for example. It could be interesting to upstream these so that other clients could rely on it, including CLI based clients.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.