-
Notifications
You must be signed in to change notification settings - Fork 2
Installation
George Joseph edited this page Apr 11, 2021
·
3 revisions
You have several options for installing DueUI:
- Download the latest DueUI zip file from https://github.com/gtjoseph/DueUI/releases.
- Upload the zip file to your Duet using Duet Web Control (DWC) / File Management/ System / Upload Files.
- Make sure your config.g file allows Cross Origin Resource Sharing (CORS). To enable it, add
C"*"to the end of yourM586 P1 S1so it looks likeM586 P1 S1 C"*". - Point your browser at
http://<your_duet>/dueui.html
- Download the latest DueUI zip file from https://github.com/gtjoseph/DueUI/releases.
- Upload the zip file to your Duet using Duet Web Control (DWC) / File Management/ System / Upload Files.
- Make sure the Duet Web Server allows Cross Origin Resource Sharing (CORS). To enable it, add
"UseCors": true,right after"UseStaticFiles": true,. - Point your browser at
http://<your_sbc>/dueui.html
DueUI doesn't have any active server-side components. All it needs is a place where its files can be served to the browser. Just unzip the DueUI zip file in the location of your choice and update your web server config to point to it. As above, make sure your web server allows CORS.
- For nginx the parameter is
add_header Access-Control-Allow-Origin *;. - For Apache, you probably want something like this:
<IfModule mod_headers.c>
Header set Access-Control-Allow-Origin "*"
</IfModule>