Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revisionBoth sides next revision | ||
workbee_cnc_router [09.08.2020 23:19] – [G-Code Sender] Pascal Suter | workbee_cnc_router [10.08.2020 07:29] – [CNC.js] Pascal Suter | ||
---|---|---|---|
Line 109: | Line 109: | ||
i'm lazy, so i don't want to type that port 8000 all the time, let's add a redirect using '' | i'm lazy, so i don't want to type that port 8000 all the time, let's add a redirect using '' | ||
+ | < | ||
+ | sudo apt install lighttpd | ||
+ | cd / | ||
+ | sudo nano conf-available/ | ||
+ | </ | ||
+ | put this in there: | ||
+ | < | ||
+ | $HTTP[" | ||
+ | # capture vhost name with regex conditiona -> %0 in redirect pattern | ||
+ | # must be the most inner block to the redirect rule | ||
+ | $HTTP[" | ||
+ | url.redirect = (" | ||
+ | } | ||
+ | } | ||
+ | </ | ||
+ | activate the config and restart the service | ||
+ | cd conf-enabled | ||
+ | sudo ln -s ../ | ||
+ | sudo systemctl restart lighttpd.service | ||
+ | now you should be able to simply access the cncjs gui by entering the hostname of your raspberry in your browser | ||
+ | it prettymuch runs out of the box now. simply connect to it, choose the usb serial interface and hit connect and you are good to go! | ||
+ | |||
+ | in the future i will add an [[http:// | ||
+ | |||
+ | so far i can't get the stream to display, allthough i can access it with vlc or my webbrowser directy. i have two urls for the sub stream: | ||
+ | * http:// | ||
+ | * rtsp:// | ||
+ | |||
+ | neither show up on screen, got to debug that.. i hope it's not trying to re-encode it on the raspberry using ffmpeg which might be missing.. but we will see.. |