{"id":13802557,"url":"https://github.com/matthias-bs/MicroPython-MiFlora","last_synced_at":"2025-05-13T13:31:50.616Z","repository":{"id":114713052,"uuid":"364299692","full_name":"matthias-bs/MicroPython-MiFlora","owner":"matthias-bs","description":"MicroPython library for Xiaomi Mi Flora (aka. flower care) BLE plant sensors","archived":false,"fork":false,"pushed_at":"2021-05-06T20:47:28.000Z","size":58,"stargazers_count":4,"open_issues_count":1,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-04-22T13:30:44.774Z","etag":null,"topics":["ble","bluetooth-low-energy","esp32","micropython","sensors"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/matthias-bs.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2021-05-04T15:20:44.000Z","updated_at":"2024-08-23T19:43:13.782Z","dependencies_parsed_at":null,"dependency_job_id":"f9f673ac-18d0-4402-af90-81c92b4cd465","html_url":"https://github.com/matthias-bs/MicroPython-MiFlora","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/matthias-bs%2FMicroPython-MiFlora","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/matthias-bs%2FMicroPython-MiFlora/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/matthias-bs%2FMicroPython-MiFlora/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/matthias-bs%2FMicroPython-MiFlora/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/matthias-bs","download_url":"https://codeload.github.com/matthias-bs/MicroPython-MiFlora/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225218117,"owners_count":17439713,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ble","bluetooth-low-energy","esp32","micropython","sensors"],"created_at":"2024-08-04T00:01:47.051Z","updated_at":"2024-11-18T17:31:34.518Z","avatar_url":"https://github.com/matthias-bs.png","language":"Python","readme":"![MiFlora](https://user-images.githubusercontent.com/83612361/117035774-037e9080-ad05-11eb-8cda-cefb2a2a2669.jpg)\n![MiFlora_screenshot](https://user-images.githubusercontent.com/83612361/117039563-3591f180-ad09-11eb-9b4b-d4b518d33d1e.png)\n# MicroPython-MiFlora\n\nMicroPython library for Xiaomi Mi Flora (aka. flower care) BLE¹ plant sensors\n\n¹ BLE: Bluetooth Low Energy\n\nThe library reads the following data from the device:\n- firmware version\n- battery level\n- temperature\n- light intensity\n- moisture\n- conductivity\n\nThe sensors' BLE MAC addresses must be supplied by the user\nin the variable *miflora_sensors*.\n\nExample:\n```\n# MAC addresses of two Mi Flora sensors\nmiflora_sensors = [ \n    bytes(b'\\xC4\\x7C\\x8D\\x66\\xA5\\x3D'),\n    bytes(b'\\xC4\\x7C\\x8D\\x66\\xA4\\xD5')\n]\n```\n\nThe MAC addresses can be found as follows:\n- Linux: `$ sudo hcitool lescan`\n- Android: [nRF Connect for Mobile](https://play.google.com/store/apps/details?id=no.nordicsemi.android.mcp)\n- Windows 10: [Bluetooth LE Explorer](https://www.microsoft.com/en-us/p/bluetooth-le-explorer/9n0ztkf1qd98)\n\nThe code was tested with MicroPython V1.15\non ESP32 (build esp32-20210418-v1.15.bin)\nwith Mi Flora Firmware V3.2.2\n\nMicroPython-MiFlora is based on the following code and documentation:\n- https://github.com/ChrisScheffler/miflora/wiki/The-Basics\n- https://github.com/basnijholt/miflora/blob/master/miflora/miflora_poller.py\n- https://docs.micropython.org/en/latest/library/ubluetooth.html\n- https://github.com/micropython/micropython/tree/master/examples/bluetooth\n","funding_links":[],"categories":["Libraries"],"sub_categories":["Sensors"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmatthias-bs%2FMicroPython-MiFlora","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmatthias-bs%2FMicroPython-MiFlora","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmatthias-bs%2FMicroPython-MiFlora/lists"}