A Golang application for reading data from Xiaomi Mi Flora plant sensors.
📡 Scanning for Monstera
✅ Connected to Monstera
👋 Disconnected from Monstera
🪴 Name: Monstera
🔋 Battery Level: 33%
⚙️ Firmware: 3.2.2
🌡️ Temperature: 24.1°C
⚡ Light: 15533 Lux
💧 Moisture: 21%
🌱 Conductivity: 190 µS/cm
- Configurable by YAML file
- Retrieves data from the sensor, such as battery, humidity, conductivity, soil moisture and temperature.
- Install Golang on your computer if you don't have it already installed
- Clone the repository:
git clone https://github.com/darox/miflora-go
- Build the application:
cd cmd/miflora-go && go build
- Add capabilities to run as none-root user:
sudo setcap 'cap_net_raw,cap_net_admin+eip' miflora-go
Under Linux, the application uses the mac address to connect to devices; under MacOs the UUID.
- Copy
config/config.yaml
to the same folder where miflora-go will run or use the param--config-path
to specify the path of the config file - The application will now scan the device and printout the result
- Fork the repository
- Create your feature branch: git checkout -b my-new-feature
- Commit your changes: git commit -am 'Add some feature'
- Push to the branch: git push origin my-new-feature
- Submit a pull request
BSD-3-Clause license
- Xiaomi for creating the sensor
- Creators of go-ble
- Creators of miflora wiki