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

Create a setup script #11

Open
BinaryFissionGames opened this issue May 22, 2018 · 9 comments
Open

Create a setup script #11

BinaryFissionGames opened this issue May 22, 2018 · 9 comments
Assignees
Labels
High Priority Very important, should be prioritized.

Comments

@BinaryFissionGames
Copy link
Collaborator

This script would help expedite setting up the project.

I see this as a way to setup a basic working instance of RobotRemote on a single device. More advance configuration would be without this script.

@BinaryFissionGames BinaryFissionGames self-assigned this Jun 12, 2018
@BinaryFissionGames
Copy link
Collaborator Author

List of things for it to do:

  1. Go through all the (relevant) settings for the node stuff
  2. Go through all the (relevant) settings for the python stuff
  3. Configure webcams (can be done without user input, actually)
  4. Generate settings files
  5. Generate scripts for running all the other scripts.

@BinaryFissionGames
Copy link
Collaborator Author

So, there seems to be a problem with the python setup part of the script. This could be fixed by porting the python to nodejs code. Otherwise, I have no idea why it's failing.

@BinaryFissionGames
Copy link
Collaborator Author

This needs better instructions on what to install before running this script, as well as how to install those things.

@BinaryFissionGames
Copy link
Collaborator Author

BinaryFissionGames commented Jun 21, 2018

I would also like a way to detect if we are using windows, and try some different code for that. Because as it stands, the webcam stuff (namely, ffmpeg) won't work the way it's written right now. Also, port forwarding doesn't work on Windows.

@BinaryFissionGames BinaryFissionGames added the High Priority Very important, should be prioritized. label Jun 29, 2018
@BinaryFissionGames
Copy link
Collaborator Author

I'm going to work on getting this stuff to work on Windows too, like the webcam and port forwarding stuff.

@BinaryFissionGames
Copy link
Collaborator Author

BinaryFissionGames commented Jul 23, 2018

Stuck at trying to run windows executables from WSL. Might not be possible. Might need to pivot to only supporiting pure windows or pure linux (as in, either will work, but it needs to be one or the other) for the startup script.

It's POSSIBLE to get this to work with webcams and port-forwarding on WSL, I just don't know if it is through the setup script.

@BinaryFissionGames
Copy link
Collaborator Author

Alright, so I figured it out. The PATH for executing these processes didn't have the windows programs on said path if running as sudo. Works fine now (just don't run as sudo), with system32 on the path. Also, dumb admin elevation made it hard, because you need admin privileges on windows to port forward port 80, which is fine, but you can't just sudo or whatever, you need to do some ridiculous workaround to get close. It seems to work just fine now though.

WSL and windows users will have to download ffmpeg for windows and install it on their path.

@BinaryFissionGames
Copy link
Collaborator Author

I'm working on better camera selection right now.

@BinaryFissionGames
Copy link
Collaborator Author

Alright, so I've got it the way I want for Windows/WSL installations.

Linux remains relatively untested, and is probably broken. For now, I'm going to ignore it. It seems like Windows (with or without WSL) is what we want to support, because that's what AutomationDirect's PLC software supports, so if we want it all on the same machine (meaning, a way to setup the plc, upload programs, etc, in addition to our software), Windows would be the only way to do that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
High Priority Very important, should be prioritized.
Projects
None yet
Development

No branches or pull requests

1 participant