Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not sure what I'm doing wrong here #63

Closed
atv2016 opened this issue Feb 18, 2024 · 1 comment
Closed

Not sure what I'm doing wrong here #63

atv2016 opened this issue Feb 18, 2024 · 1 comment

Comments

@atv2016
Copy link

atv2016 commented Feb 18, 2024

Keep getting this:

mi-scale         | KeyError: 'options'
mi-scale         | TERM environment variable not set.
mi-scale         | Traceback (most recent call last):
mi-scale         |   File "/opt/miscale/Xiaomi_Scale.py", line 122, in <module>
mi-scale         |     data = json.load(json_file)["options"]
mi-scale         | KeyError: 'options'

My docker file is:


  mi-scale:
    image: lolouk44/xiaomi-mi-scale:latest
    container_name: mi-scale
    restart: always
    network_mode: host
    privileged: true
    volumes:
      - ./mi-scale:/data
      - /var/run/dbus/:/var/run/dbus/:ro #needed for bleak
    

Been over and over on this but can't find out what's wrong. And the options.json file is there obviously.

@atv2016
Copy link
Author

atv2016 commented Feb 20, 2024

Fixed options file needs another entry after migrating from add-on.

@atv2016 atv2016 closed this as completed Feb 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant