Giter Site home page Giter Site logo

mi365locker-raspi's Introduction

Xiaomi Scooter Program

This program send commands to Xiaomi m365 scooters over Bluetooth Low Energy for Linux systems.

Install

Uses python3.

Requires bluepy to run correctly.

Install bluepy with sudo pip3 install bluepy

Run

The program takes two arguments:

  1. the type of scan
  2. command to send to the scooter

The first argument can either be scan which scans all available devices or saved which scans all known devices saved in a file. If during a scan the program succesfully locates a scooter it will save its address in the known devices file.

The second argument can be one the following commands:

  • lock - this locks the scooter
  • unlock - this unlocks the scooter

Hopefully more commmands will be added in the near future.

Root is required to run the progarm in order to gain access to the system's lower bluetooth functions.

Example to run the program:

sudo python3 scooter-scan.py scan unlock

mi365locker-raspi's People

Contributors

louiscb avatar rani-i 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.