nebrius / raspi-io

An IO plugin for Johnny-Five that provides support for the Raspberry Pi
MIT License
546 stars 63 forks source link

Reboot and permission requirements #116

Closed hegelstad closed 5 years ago

hegelstad commented 5 years ago

Requiring a reboot before start and requiring raspi-io to be installed as a user but ran as a root makes it very difficult to use raspi-io with dockerized builds such as through BalenaCloud.

https://github.com/fivdi/pi-io doesn't require a reboot so why is this needed with raspi-io?

nebrius commented 5 years ago

My apologies for the delay, I've been on vacation.

The reboot is required to enable I2C on the device. Note: if you enable I2C on your own and reboot it yourself before installing raspi-io, then you do not need to reboot again. If you do not use I2C, you can ignore this warning. pi-io assumes that you have already configured your device for I2C use manually, which is why it doesn't print a warning. If you try and use pi-io to access I2C without enabling I2C first, you'll get a cryptic error.

This is not my own requirement, it's set by Raspbian itself. Unfortunately this means that I don't have any control over it.

hegelstad commented 5 years ago

Ah thank you. So I guess pi-io's documentation ideally would make a remark about having to manually enable I2C, and perhaps raspi-io's documentation should state that I2C only needs to be enabled, if so by installing and rebooting or manually?

Thanks for responding anyways.

nebrius commented 5 years ago

raspi-io's documentation should state that I2C only needs to be enabled, if so by installing and rebooting or manually?

Like I mention here? 😉

hegelstad commented 5 years ago

Hmm, I see that it is mentioned, but it seems like it is a hard requirement to do the reebot to be able to use any of the features:

Note: You must reboot your Raspberry Pi the first time you install Raspi IO on it!

On 10 May 2019, at 01:17, Bryan Hughes notifications@github.com wrote:

raspi-io's documentation should state that I2C only needs to be enabled, if so by installing and rebooting or manually?

Like I mention here? 😉

— You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHub, or mute the thread.

-- https://www.ardoq.com/contact

https://www.ardoq.com/contact

REALIZE YOUR DIGITAL ROADMAP

Enterprise Intelligence Graph for Compliance, Governance, and Transformation

ardoq.com https://ardoq.com/?utm_source=email_sig&utm_medium=email