-
Notifications
You must be signed in to change notification settings - Fork 7
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
Integrate visprinter on my own web server #3
Comments
VisPrinter is written in python, and you need to run it on your server as a python application. Therefore you need full access to your server, not just an website account. If you already have web pages on your server too, served by Apache or Nginx for example, you would need to configure Apache or Nginx to make a proxy for VisPrinter at a certain Domain or Sub-Path of your web page. For Apache you would need some HTTP proxy module and mod_rewrite to adapt the pathes I guess. For Nginx, it is quite easy, see http://nginx.com/resources/admin-guide/reverse-proxy/ for some guide. |
Thanks @dronus , I tried to run visprinter on local machine server now. everythings look ok but when I click slice the object it shows error on comand line "127.0.0.1 - - [29/Oct/2014 12:38:35] code 404, message Request to "/slic3r?config=configs/config.ini" failed: [Errno 2] No such file or directory: 'tmp/3355236896.gcode'. " So I think I am missing the slic3r config export to visprinter config. I dont have any idea how can I fix that. Please let me how can I connect /slic3r?config=configs/config.ini. I put slic3r folder inside the visprinter folder and set the path in the settings.py. |
should i put slic3r folder inside visprinter folder? or should I put the slic3r folder next to visprinter folder. should i set path for slicer?config also in visprinter.js or webserver.py. Please let me know. Thanks @dronus . |
If it says 'No such file or directory: 'tmp/3355236896.gcode', it sounds to me as if slic3r doesn't produce the output file. That can mean slicer is in the wrong location, or it cannot run using the config and / or the input stl provided. You should try to run slic3r by command line using the config in configs/config.ini and some example .stl you are trying to slice. If it does not run, VisPrinter won't either. If you use an up-to-date slic3r, the configs/config.ini is most likely outdated, and cannot be used. Just use slic3r on the desktop to ensure all settings are good for it and your printer, and then export the config. Copy the good working config over configs/config.ini to replace it with a working one. As long you do not modify settings,py, the Slic3r directory needs to be beside the VisPrinter directory, not inside. |
Hi @dronus Thanks for your help. Still I got this error "code 404, message Request to "/slic3r?config=configs/config.ini" failed: [Errno 2] No such file or directory: 'tmp/973305386.gcode' ". I think system couldn't find the config.ini file which produce gcode file. that's why i dont have any gcode in tmp folder. Let me explain my folder location. I have a folder "gcode" on my desktop. Inside "gcode" folder I have two more folders, One is Visprinter-master and one is Slic3r. I have a desktop version slic3r and I exported working config.ini file and replaced it inside Visprinter-master/configs/config.ini and run the webserver.py on my terminal. Still have same error. For the Slic3r .. I downloaded Slic3r source code from github https://github.com/alexrj/Slic3r and there is no config folder in the Slic3r folder. Can you please let me know where I missed and how can run slic3r in terminal by config.ini. Thank you for your time @dronus . |
Sorry for answering so late. To debug this issue, you may add something like 'print cmdline' at about line 154 in You can then copy the command, execute it by yourself, and see what's happen. Maybe something does not match current versions of Slic3r, so it won't execute properly. Try around until you find a working command that in fact produces a temporary .gcode. If you like, you may tell me what is wrong, I will fix it then. |
I know I can run visprinter from my own web server.But need a help about the slic3r and not found 404 error. Need a short description about port, location of slic3r folder and how can download gcode file. Something like http://hirnsohle.de/visprinter/index.html but I also want to download the gcode.
The text was updated successfully, but these errors were encountered: