Setup Help
-
@gtj0 I've tried running it right off of the dueui.org sight and can't seem to get it to work. Regardless, I'd like the be able to run it locally, as it's not unusual for my internet to not work or be kinda slow, so being able to just connect over my local network would be optimal.
192.168.1.37 is the IP of the Pi. The STM board doesn't have an IP address. The Pi is what's running the Duet Software I believe ( @jay_s_uk ).
After figuring out I need to run the DSF version and not the standalone version, I ran the wget command (BTW, the wget command on the github page isn't correct, it gives you a "404 not found" error when you use it. It should be "wget https://github.com/gtjoseph/DueUI/releases/download/v3.2.0/DueUI-DSF-v3.2.0.zip", well, atleast for the v3.2.0 version.) After that, I cd'd into the /opt/dsf/sd/www/ folder, but don't know how to unzip the file/folder as when i attempt the "unzip DueUI-DSF-v3.2.0.zip" command it gives me a "cannot find or open DueUI-DSF-v3.2.0.zip, DueUI-DSF-v3.2.0.zip.zip or DueUI-DSF-v3.2.0.zip.ZIP." error
-
@Nathan116 What directory were you in when you did the wget? Wherever it was, the unzip command should be
unzip <directory>/DueUI-DSF-v3.2.0.zip
I'll fix the wiki page.
-
@Nathan116 navigate to the www folder then run wget. That will download it to the folder you're in. Then you can unzip it.
-
2 solutions to the same problem
-
When I cd into the /opt/dsf/sd/www/ and do the "wget https://github.com/gtjoseph/DueUI/releases/download/v3.2.0/DueUI-Standalone-v3.2.0.zip", it gives me a "Cannot write to ‘DueUI-Standalone-v3.2.0.zip’ (Permission denied)" error
-
@Nathan116 What user are you logged in as? Everything under /opt/dsf is owned by the "dsf"user so you need to use "sudo" to save anything there.
-
OK, adding "Sudo" to the beginning fixed it.
So, I have it downloaded and extracted, but when I go to 192.168.1.37/dueui it just shows the standard DWC webpage, except now it just says "404 Page Not Found"
-
Oy. I think the duet web server changed something again. Add
index.html
to the URL...
http://192.168.1.37/dueui/index.html -
@Nathan116 Also, some feedback on how I can make the installation instructions or process better would be much appreciated!
-
@gtj0 Adding /index.html got it working.
Give me a few minutes and I'll post a write-up of the step-by-step instructions on how I set it up for you to post on the Github
-
For the settings page, I selected DSF, put my Pi IP address on the top line, left "reprap" under password as I don't know what else I would put there. What should I put under the "DueUI config file URL"?
-
This post is deleted! -
@Nathan116 said in Setup Help:
For the settings page, I selected DSF, put my Pi IP address on the top line, left "reprap" under password as I don't know what else I would put there. What should I put under the "DueUI config file URL"?
http://192.168.1.37/dueui/dueui_config_default_dsf.json is the default config file. You should copy that to your host desktop and modify it. Then place it in /opt/dsf/sd/sys/dueui_config.json.
In the URL field you then put http://192.168.1.37/machine/file/sys/dueui_config.json
-
@gtj0 Perfect! Got it to work! Now all I have to do is figure out how to modify it for each of my screens. I assuming that, to have a different layout for my laptop compared to my phone, I'd need to create 2 different config files for it and have the one on my phone direct to one and the one on my laptop connect to the other, correct?
-
@Nathan116 Cool! Yeah, that's the way to do it. Separate file for each layout.
-
@gtj0 Alright, so here is a quick writeup of the steps I had to take to get things to work. I think it contains everything, but, knowing me, I missed a step somewhere, but it should be better than what you currently have written up.
-
I can also add picture/graphics if needed/wanted, that's just going to have to wait a little bit.
Also, do you have any good sources for me to look at for customizing the UI? As you can probably tell, I'm not the worlds greatest coder (The only coding I've ever done is a little bit of Arduino and MatLab), so I'm not going to be able to customize the UI on my own
-
@gtj0 Ok, so, after a little debugging, it looks like you can only have 1 configuration of DueUI open at a time (I can't have my laptop version and phone version open together as, whichever you try to open second will give you an error). Would I have to install another instance of DueUI to fix this? (so 1 instance for each desired screen)
-
@Nathan116 said in Setup Help:
Also, do you have any good sources for me to look at for customizing the UI? As you can probably tell, I'm not the worlds greatest coder (The only coding I've ever done is a little bit of Arduino and MatLab), so I'm not going to be able to customize the UI on my own
The wiki?
@Nathan116 said in Setup Help:
@gtj0 Ok, so, after a little debugging, it looks like you can only have 1 configuration of DueUI open at a time (I can't have my laptop version and phone version open together as, whichever you try to open second will give you an error). Would I have to install another instance of DueUI to fix this? (so 1 instance for each desired screen)
That should not be the case. I always have 2 instances open, one on the Pi itself on a monitor attached directly to the Pi, and one on my desktop.
What's the error you get?
-
@gtj0 Are they the same config? I was talking about trying to use 2 different config files at the same time.
The error I was getting was that, on the second device, it couldn't find the configuration file, but as soon as I closed the first duiUI window, the second one was able to connect