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

Are there Instructions for running Visualizer locally? #89

Closed
carlos-sarmiento opened this issue May 12, 2023 · 6 comments
Closed

Are there Instructions for running Visualizer locally? #89

carlos-sarmiento opened this issue May 12, 2023 · 6 comments

Comments

@carlos-sarmiento
Copy link

Is your feature request related to a problem? Please describe.
I'm interested in running a local instance of visualizer. I can see there is a dockerfile, but there are no instructions on how to configure the container.

Describe the solution you'd like
An example docker run command that includes the right parameters to run visualizer. In particular, is there a way to disable the redis and AWS requirements when running locally?

Describe alternatives you've considered

Additional context

@miharekar
Copy link
Owner

The Dockerfile is for production only and is quite specific for the Fly platform.

There is a devcontainer that was build in #67, though it's not used nor maintained by me so I'm not sure how well it works.

Dependencies and Setup section in the README have pretty much all that you need to get it running.

AWS is not needed, since the development environment uses local storage for files. But in production environment you need a place to store avatars and user photos so they need to persist somewhere. You're free to fork this and modify in any way you want. You could remove the image inputs for example.

Redis, however, is very much required, since that's what I use for background jobs. Though for personal use you could edit the code to remove that and make everything in-line, but then you know it'll be much slower and less resilient 😅

@Buster14
Copy link

Buster14 commented Nov 8, 2023

Hi sorry to reopen old thread, did you get it working @carlos-sarmiento ?
I have similar situation since my network is unstable so visualizer sometimes is not uploading

@miharekar
Copy link
Owner

@Buster14 most likely it's not your network but the tablet. Switching to Lineage (there's a nice thread on Basecamp) or to a different tablet will fix it. Hosting locally won't since the tablet wifi will still fail.

@Buster14
Copy link

Buster14 commented Nov 8, 2023

@miharekar Thanks for the advice, actually switching the wifi off and on fixes the issue,
But i'm gonna be leaving this to my employees so a local based solution is preferred,
relying on internet would just add additional point of failure i think...
Would you be interested in a separate project to make this work locally? Shouldn't be too much work i think?

@miharekar
Copy link
Owner

I completely understand, but I want you to know already, that even if you do host it locally it'll still fail. The issue is somewhere in the wifi stock OS tablet stack. Switching to Lineage will have many benefits like added speed and stability. It's a pain to do, but only once. Can not recommend it enough 😅

The project is open source with the MIT license, so you're free to fork it and do with it whatever you want.

@Buster14
Copy link

Buster14 commented Nov 8, 2023

Sorry forgot to mention, in the long term I plan to use either windows tablet (with the upcoming DE windows app) or android tablet and it must have ethernet connection to ensure network stability, so wifi should no longer be an issue.
I think windows server should be more stable for server based purpose since its more matured.
I'm familiar with home assistant and cctv installation so I'm no stranger to wifi issues :)
Yeah i understand it's open source but I have no experience with ruby rail, but appreciate your answers, I will look for a way to make this work

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

No branches or pull requests

3 participants