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

[Proposal] Reboot function call #188

Closed
reconbot opened this issue Jul 30, 2016 · 8 comments
Closed

[Proposal] Reboot function call #188

reconbot opened this issue Jul 30, 2016 · 8 comments
Assignees

Comments

@reconbot
Copy link
Member

I'd like to propose a tessel.reboot() function call on the tessel object. You can shell out to reboot, but that seems messy.

@reconbot reconbot mentioned this issue Jul 30, 2016
@rwaldron
Copy link
Contributor

rwaldron commented Aug 4, 2016

Reboot isn't related to port & io interaction—why not just let user code shell out to reboot?

@reconbot
Copy link
Member Author

reconbot commented Aug 4, 2016

Do we want people using linux or js? We provide a bunch of tessel services
this seems reasonable to provide.

On Wed, Aug 3, 2016, 9:23 PM Rick Waldron notifications@github.com wrote:

Reboot isn't related to port & io interaction—why not just let user code
shell out to reboot?


You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
#188 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/AABlbvBavexfh26ON1UKh6JoXGzkuN0Sks5qcT8DgaJpZM4JYr5B
.

@rwaldron
Copy link
Contributor

rwaldron commented Aug 4, 2016

Is rebooting directly from your JS code something that is frequently needed?

@reconbot
Copy link
Member Author

reconbot commented Aug 4, 2016

It's something I do to my router and my nest and at least once to my drop
cam when something hasn't worked right.

On Wed, Aug 3, 2016, 9:28 PM Rick Waldron notifications@github.com wrote:

Is rebooting directly from your JS code something that is frequently
needed?


You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
#188 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/AABlbgniO1BL_fpQ4vqg1ZNu4kPgnkX7ks5qcUA6gaJpZM4JYr5B
.

@HipsterBrown
Copy link
Contributor

@reconbot How do you see if being used in your programs? Is it something called by a physical button (but not the on-board one) or from some kind of web UI?

reboot seems like a nuclear option since it tears down the entire program and that should be very clearly communicated to the Tessel developers.

@reconbot
Copy link
Member Author

reconbot commented Aug 4, 2016

If I'm a developer prototyping an app I don't see a major use case.

If I'm a user of a tessel based app and the tessel is plugged in somewhere and hidden away and it starts to act funky then I see the value in this functionality. And if I'm a developer thinking of my user, then I see the value in the function call.

I kind of think we should be able to provide programmatically all the functionality of the tessel. We've hidden the openwrt backend from normal use and I think we should keep it hidden and continue to provide a nice clean api.

@dtex
Copy link

dtex commented Aug 4, 2016

Some percentage of users have limited exposure to *nix (i.e. Windows and some Mac users) and as soon as you tell them to "just shell out to reboot" you've disrupted the amazing, simple developer experience that the Tessel 2 offers.

Assuming the use case is valid, it should be in the API.

@rwaldron rwaldron self-assigned this Aug 4, 2016
@rwaldron
Copy link
Contributor

rwaldron commented Aug 4, 2016

I'll spend some time investigating this

@reconbot reconbot changed the title Reboot function call [Proposal] Reboot function call Aug 9, 2016
rwaldron added a commit to rwaldron/t2-firmware that referenced this issue Aug 16, 2016
- Closes ports before executing `reboot`

Signed-off-by: Rick Waldron <waldron.rick@gmail.com>
rwaldron added a commit to rwaldron/t2-firmware that referenced this issue Aug 16, 2016
- Closes ports before executing `reboot`

Signed-off-by: Rick Waldron <waldron.rick@gmail.com>
rwaldron added a commit to rwaldron/t2-firmware that referenced this issue Aug 16, 2016
- Closes ports before executing `reboot`

Signed-off-by: Rick Waldron <waldron.rick@gmail.com>
rwaldron added a commit to rwaldron/t2-firmware that referenced this issue Sep 2, 2016
- Closes ports before executing `reboot`

Signed-off-by: Rick Waldron <waldron.rick@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants