mklements / OLED_Stats_Docker

OLED Stats display script and settings for Docker implementation
27 stars 5 forks source link

OLED_Stats i2c_2 #5

Closed pr0v0ker closed 1 year ago

pr0v0ker commented 1 year ago

Hi thanks for your app. Unfortunately, I was unable to run it. Banana PI m1, Armbian 22.08.8 Jammy. Oled i2c_2

File \"/opt/venv/lib/python3.10/site-packages/board.py\", line 291, in \u003cmodule\u003e\n","stream":"stderr","time":"2022-12-02T23:22:28.883207191Z"}
{"log":"    raise NotImplementedError(\n","stream":"stderr","time":"2022-12-02T23:22:28.886325724Z"}
{"log":"NotImplementedError: Adafruit-PlatformDetect version 3.31.0 was unable to identify the board and/or microcontroller running the Linux platform. Please be sure you have the latest p>

root@bananapi:~# docker exec -t OLED_Stats i2cdetect -y 2
     0  1  2  3  4  5  6  7  8  9  a  b  c  d  e  f
00:                         -- -- -- -- -- -- -- --
10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
30: -- -- -- -- -- -- -- -- -- -- -- -- 3c -- -- --
40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
70: -- -- -- -- -- -- -- --

What needs to be changed to make oled i2c_2 work? Please help, I'm new to Linux. ( P.s Excuse my English, I'm from another country. )

mklements commented 1 year ago

This script only works on a Raspberry Pi as it uses a few libraries that have been written specifically for the Pi's hardware and I2C interfaces.