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

Added --nopreview option #23

Closed
wants to merge 3 commits into from
Closed

Conversation

rchvalbo
Copy link

This will allow for the ability to prevent the preview window from opening on start.

@@ -23,6 +23,7 @@ program
program
.command('start')
.description('start streaming video from the raspberry pi camera module')
.option('-n, --nopreview', 'Removes the preview screen')
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldn't be a preview screen at all, so an option isn't necessary.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

On the Pi 3, I keep getting the preview screen opening up and taking over the screen, preventing any interaction with the Pi. Only solution is to restart the Pi. This flag allows me to prevent the preview from opening up in the first place.

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

On the Pi 3, I keep getting the preview screen opening up and taking over the screen, preventing any interaction with the Pi.

Right. raspi-live shouldn't be opening a preview screen at all and no one should want it to, so the option isn't needed.

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Moved your comment from the main PR body back to this thread:

raspy-live is the package that IS opening the preview by default, so I had no choice but to add the option and use it.

You don't need to add this option to raspi-live, just to the list of options given to raspivid in server.js like you did below. Adding the option in cli.js doesn't actually do anything. If you were to remove just this line, nothing would change.

@@ -1,5 +1,5 @@
{
"name": "raspi-live",
"name": "raspi-live-v2",
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Version revisions aren't done in the package.json name field. Please revise the version field instead with a patch update.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No problem!

@jaredpetersen jaredpetersen self-assigned this Apr 22, 2019
@jaredpetersen jaredpetersen added bug and removed bug labels Apr 22, 2019
@jaredpetersen
Copy link
Owner

@rchvalbo Thanks for taking the time to improve raspilive. Take a look at the pull request review comments for next steps 👍

@rchvalbo
Copy link
Author

rchvalbo commented Apr 25, 2019 via email

@jaredpetersen
Copy link
Owner

Closing since I had to continue this work in another PR (#30). This needed a proper version revision and didn't need a new option for nopreview in the raspi-live CLI.

Since the change was small and this hasn't been touched in many months, I just made the change myself.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants