Sign inSign up

janvda/miband-api

By janvda

Updated about 4 years ago

Image
0

468

janvda/miband-api repository overview

miband-api

Provides an API to a specific miband4 or miband5 device.

GitHub location

janvda/my-miband:miband-api

This docker image uses the API defined in github repository: janvda/miband4

docker-compose example

version: "3.9"
volumes:
  github-miband4:
services:
  api:
    image: janvda/miband-api:1.2.5
    privileged: true
    restart: always
    network_mode: host 
    environment:
      - MIBAND_MAC=${MIBAND_MAC?env variable MIBAND_MAC must be set !!}
      - MIBAND_AUTH_KEY=${MIBAND_AUTH_KEY?env variable MIBAND_AUTH_KEY must be set !!}
      - LOGLEVEL=${LOGLEVEL:-INFO}
      # the below default values assure that this service will use mqtt service (see below) and 
      # controller service (see below) will find this service
      - API_HOST=0.0.0.0
      - TZ=${TZ:-Europe/Paris} # sets the timezone (you can also use "UTC") - important for timestamps
      - SLEEP_FOREVER=${DEV_SLEEP_FOREVER:-False}
      - API_PORT=8200  
      - MQTT_SERVER=localhost
      - MQTT_PORT=8201
      - MQTT_TOPIC=${MQTT_TOPIC:-/miband-api}
    command: ["python", "-u", "miband_api.py"]
    #command: ["/bin/sh", "-ec", "sleep 36000"]
    #command: python3 miband4_console.py -m $MIBAND_MAC -k $MIBAND_AUTH_KEY
    volumes:
    - github-miband4:/miband4

Change History

  • version 1.2.5 : should be same as version 1.2.4 - it is just a more recent build of same docker image.

Tag summary

Content type

Image

Digest

sha256:caa3914ca

Size

159.9 MB

Last updated

about 4 years ago

docker pull janvda/miband-api:1.2.5