ebaauw / homebridge-lib

Utility Library for Homebridge Plugins
Apache License 2.0
94 stars 12 forks source link

Update SystemInfo.js #33

Closed truevektordev closed 2 years ago

truevektordev commented 2 years ago

I'm not sure if anyone else is having trouble with this, but usually on startup I see this warning message:

[RPi] warning: TypeError: Cannot read properties of null (reading '1')
    at Function.parseRpiCpuInfo (/usr/lib/node_modules/homebridge-rpi/node_modules/homebridge-lib/lib/SystemInfo.js:115:57)
    at SystemInfo.getRpiInfo (/usr/lib/node_modules/homebridge-rpi/node_modules/homebridge-lib/lib/SystemInfo.js:212:23)
    at SystemInfo.init (/usr/lib/node_modules/homebridge-rpi/node_modules/homebridge-lib/lib/SystemInfo.js:175:27)
    at RpiPlatform._main (/usr/lib/node_modules/homebridge-rpi/node_modules/homebridge-lib/lib/Platform.js:222:7)

This should hopefully make that message go away, and since hwInfo is automatically set when it catches an error, this shouldn't behave any differently.

ebaauw commented 2 years ago

Could you please attach a logfile containing the error? Does this happen on startup of Homebridge? What system are you running on?

truevektordev commented 2 years ago

Hey @ebaauw sorry for the delay.

It seems like you've already figured out a better solution to the issue, but I'll answer your questions anyway.

Yes, this happens on startup of Homebridge, and it is running on a ODROID-N2+ which is running Ubuntu Minimal 20.04 (a custom image provided by odroid). It is getting this error when communicating with a remote Raspberry PI Zero W that is running Raspbian.

Here is a sanitized logfile containing the error: homebridge.log.txt