Giter Club home page Giter Club logo

mibanda's Introduction

Index

Description

This is a pure Python library to access the Xiaomi Mi Band. It uses the library called pygattlib underneath. Please see https://bitbucket.org/OscarAcena/pygattlib for instructions of how to install it.

If you want a desktop application that uses it, please see Mibui.

Note: This software is tested using the 1.0.6.2 firmware version. It may not work on other versions. If does not work for you, please issue a bug.

Installation

You could install this library using the provided Debian package, through the Python pip or manually.

The Debian way

Just, add the following list to your file /etc/sources.list

deb http://babel.esi.uclm.es/arco sid main

Then, update and install as always:

$ sudo apt-get update
$ sudo apt-get install python-mibanda

The Python pip way

As usually, using the pip tool:

$ sudo pip install mibanda

NOTE: this package depends on pygattlib, which in turn, depends on some C libraries. If you have any problem installing it, please try to install the pygattlib depends first (listed of a file called DEPENDS in the pygattlib source).

The manual way

Just download this repository and extract (or clone) to a known location. Then make sure that your Python binary could find the miband package. You can set the PYTHONPATH to the proper location (i.e: this repo root dir) doing the following:

miband$ . setenv.sh

Now, just import the module mibanda, and use it according to the API documentation, or as in the examples.

API Reference

See the mibanda API reference.

References

Disclaimer

This software may harm your device. Use it at your own risk.

THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM β€œAS IS” WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION.

mibanda's People

Contributors

oscaracena avatar acevest avatar bawaaaaah avatar

Watchers

Eduardo Montano avatar

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.