fraschetti / Octoslack

OctoPrint plugin for Slack, Mattermost, Pushbullet, Pushover, Rocket.Chat, Discord, Riot/Matrix, & Microsoft Teams
MIT License
74 stars 34 forks source link

FYI: Octopi moves location of vcgencmd #136

Open ChrisHeerschap opened 2 years ago

ChrisHeerschap commented 2 years ago

Running OctoPi 1.0.0 RC1 and OctoSlack wasn't working. Found the cause in the logs:

FileNotFoundError: [Errno 2] No such file or directory: '/opt/vc/bin/vcgencmd'

Investigated and saw that the underlying OS for this release doesn't put vcgencmd in that folder anymore, it's now located in /bin/vcgencmd

I looked through the configs and didn't see where that path was coded so couldn't propose a change, but there is a simple update:

sudo mkdir -p /opt/vc/bin
sudo ln -s /bin/vcgencmd /opt/vc/bin
fraschetti commented 1 year ago

Received. Thanks for reporting and sharing the updated path.

fraschetti commented 1 year ago

I've pushed a change to ideally transparently & efficiently support the new & old paths. Thanks for reporting this issue, the change will of course be available in the next release.