Welcome! Log In Create A New Profile

Advanced

New Ormerod Web Interface - WIP

Posted by iamburny 
Re: New Ormerod Web Interface - WIP
February 12, 2014 05:12AM
Ormerod Control Version 0.65 - see github link in my signature

Upgraded to latest Bootstrap and jQuery librarys
replaced cookie handling with HTML5 localstorage
First draft of Estimated Print End Time
G file Print and Upload Buttons can now be clicked to choose a file rather than requiring a filedrop
Moved the G Print button back onto tool bar
Object height found automatically if using direct print from web (G Print drop/click)

Thanks to dc42's great work the Duet firmware is much much quickly at serving files, so I have dropped the "minified versions", feel free to minify it yourself if needs be, i use this minifier - [kangax.github.io]


Limited Edition Red RS Ormerod 1 #144 of 200 - RRP 1.09fw
iamburnys Ormerod Upgrades Github
Follow me on ThingiVerse My Designs
Re: New Ormerod Web Interface - WIP
February 12, 2014 05:50AM
Hi dc42, i will try to answer all your qouestion as good as i'm able to....

Quote
dc42
Sven, I'd like to work out what is going wrong, not least because RRP has recently adopted my firmware changes and Matt's web interface (so far only into the Duet branch). I'm running with Win 7 Pro x64. First some information I would like:

1. When you try to connect using Matt's interface and 057m-dc42 firmware, what exactly happens?
When i try to connect (like i did ever before), the chrome browser is working some seconds, then i get a message from chrome like "connection failed. The remote host or network you tried to contact may be down (113) No route to host.
2. Are you using the latest version of Matt's web interface?
Yes, i'm using the last version, i tried both, the reprap.remote.htm and reprap.remote.min.htm. (Both worked find on last firmware 57j-dc42)
3. What is your network configuration: how are your Ormerod and your PC connected to each other/your router?
This part is not my favourite, so our it-specialist made the connection between my pc and the printer. He just left the room, so i couldn ask him now, but he teste a lot of things, he pinged the printer and checked the network. In hin opinion it is no network fault, he suspects a mistake in the firmware or in the configuration of the htm-files. If this would be the reason, i wonder no other has this issue..
4. Are you using a local web server or the remote version of reprap.htm?
I use the remote version, like the last days
5. If this problem is happening with Matt's latest web interface, please can you do one or both of the following:

(a) Connect via Pronterface, send M111 S1, then try to use the web interface (causing the problem to occur), then disconnect Pronterface, then copy the text from the Pronterface message log window into an editor and post it.
I will post the text a.s.a.p. at the moment i'm printing via pronterface, it will take some time...

(b) Install Wireshark on your PC, capture the network traffic to the Ormerod when the problem occurs, save the capture to file, and post it.
See attached file (i don't even know, if its the right file...)
Attachments:
open | download - capture of faile connection.pcapng (1.2 KB)
Re: New Ormerod Web Interface - WIP
February 12, 2014 05:54AM
Update: i will try the new Ormerod Web interface 0.65 directly after my printer finished his task. I'll be back soon...
Re: New Ormerod Web Interface - WIP
February 12, 2014 09:59AM
Trying out 0.65.

Works fine from Chrome Windows but to start with wouldn't allow a connect from Ubuntu Chrome.

From the latter I get an exception as shown which is triggered by the initial reprap.js which seems to be caused by trying to plot invalid layerData.



I did a full developer hard clear and cache clear and it worked fine after that so it may have been caused by some stale data.

File uploads after applying savings work fine and the data upload packets are now significantly smaller (no cookie data) around 1235 bytes, fit comfortably in the MTU and don't get fragmented.

Thanks for the continuing updates.

My feature votes for the future would be config.sys and reprap.htm upload, and local setbed support. We have the shortcuts on send G code to go to calibration points. It would be nice to have a method to set the local '0' offsets at each point and then effectively do a setbed. This would help users like myself who haven't done any bed mods yet to make it more consistent, and need to do fairly frequent setbed checks.
Re: New Ormerod Web Interface - WIP
February 12, 2014 10:04AM
Its time or another update:

Now, after putting matts new Ormerod Web Interface into the "www"-folder on my sd-card, i'm able to get on the web interface, but now i've got a new problem. I can't push any buttom, they are all pale! I only can switch betwenn "Control", "Print Status",...
The "Move Head Position-Buttons" are mising completely... hmmm
In Pronterface all functions are given, no problems to print, to read the sd card - all ok.
In the Web Interface the Duet SD file list is empty.
Message Log give me a response, when i push the "clear log" button -- "Log Cleared"


Thats for the moment...
Attachments:
open | download - Webinterface..JPG (84 KB)
Re: New Ormerod Web Interface - WIP
February 12, 2014 10:38AM
Quote
Mr.Burns
Its time or another update:

Now, after putting matts new Ormerod Web Interface into the "www"-folder on my sd-card, i'm able to get on the web interface, but now i've got a new problem. I can't push any buttom, they are all pale! I only can switch betwenn "Control", "Print Status",...

So the main problem is that you can't push the Connect button. Most of the other buttons won't be pushable until you have connected.



Large delta printer [miscsolutions.wordpress.com], E3D tool changer, Robotdigg SCARA printer, Crane Quad and Ormerod

Disclosure: I design Duet electronics and work on RepRapFirmware, [duet3d.com].
Re: New Ormerod Web Interface - WIP
February 12, 2014 11:15AM
Hi I have just finished rebuilding the duet box after fixing the 5V resistor issue and on turning the system back on I am getting the same results as MR.Burns it seems ok through pronterface but I cant get to the connect stage with the web interface, this is with or without the 5V link in place and with usb connected.

regards

Mike
Re: New Ormerod Web Interface - WIP
February 12, 2014 11:29AM
@Mikeyblueeyes/Mr.Burns - Are you using chrome and the latest version I released today v0.65? remote or local version?

you can see the Google Chrome Javascript console by pressing Ctrl-Shift-J, if there is a Javascript error there will be a small red cross in the top right which you can click on to get more info, this info would help greatly in diagnosing your problems.

Matt


Limited Edition Red RS Ormerod 1 #144 of 200 - RRP 1.09fw
iamburnys Ormerod Upgrades Github
Follow me on ThingiVerse My Designs
Re: New Ormerod Web Interface - WIP
February 12, 2014 11:37AM
HI Mat, I am using windows 7 and chrome, I downloaded version 0.65 but it reports as being 0.62 at the top of the page.
Re: New Ormerod Web Interface - WIP
February 12, 2014 12:03PM
@mickeyblueeyes - you need to rename reprap.remote.htm to reprap.htm, then copy it to the www directory on your Duets SD card.

Matt


Limited Edition Red RS Ormerod 1 #144 of 200 - RRP 1.09fw
iamburnys Ormerod Upgrades Github
Follow me on ThingiVerse My Designs
Re: New Ormerod Web Interface - WIP
February 12, 2014 12:20PM
I was using the "New Ormerod Web Interface" for some time via Chrome on my Nexus 7 tablet and/or Samsung Galaxy Note 3 and it was magic!

Suddenly, it stopped working, the "connect" button became inactive and I was unable to connect to my printer... Unfortunately I've tried so many different things to get it to work I cannot remember what it is I've done sad smiley

I've had to go all the way back to using Pronterface and plugging/un-plugging the SD card to load files... how I miss the days of Web interfacing!

I don't recall anything changing at all to stop it from working but who knows what has updated without me knowing.


RS#379
Re: New Ormerod Web Interface - WIP
February 12, 2014 12:27PM
Hi Matt I have been doing this for weeks the same way, I have tried it again downloaded from your github and it still comes out as version 0.62.

regards

Mike
Re: New Ormerod Web Interface - WIP
February 12, 2014 12:35PM
Because the Javascript/CSS files have to be hosted on either a remote CDN (like github or CDN) or a local webserver, any time I update these script files its likely that the reprap.htm on your Duet SD card is then out of date, and possibly incompatible with the current remote Javascript/CSS files.

As long as you have the latest reprap.htm (currently v0.65) of your duet you shouldn't have a problem. I'll do what i can to fix any problems if you keep up to date =)

Ultimately dc42 is working on fixing the duets web server so it can host the .JS and .CSS files as well as the .HTM this should hopefully help with differences between these files.

Matt


Limited Edition Red RS Ormerod 1 #144 of 200 - RRP 1.09fw
iamburnys Ormerod Upgrades Github
Follow me on ThingiVerse My Designs
Re: New Ormerod Web Interface - WIP
February 12, 2014 03:14PM
Hi Matt, I like the new web interface improvements. Just a couple of issues I have noticed:

- I started printing a part by clicking on the G Print/Drop button and selecting a file. Then I realised the print wasn't working, so I pressed on the Stop button, then reset the Duet to get the motors working again. Subsequently, whenever I clicked on G Print/Drop again, the filename box was pre-populated with the name of the file I had been printing previously (which I wasn't expecting, but is fine), but no matter how many times I selected it, it wouldn't print. I had to reload reprap.htm to get that button working properly again.

- In the print progress dialog, the % complete value seems to be the % complete you will have after the current layer is finished. I think it would be better to show % complete based on the number of layers already completed. For example, if there are 10 layers, I think it should show 0% while printing later 1, 10% while printing layer 2, etc.



Large delta printer [miscsolutions.wordpress.com], E3D tool changer, Robotdigg SCARA printer, Crane Quad and Ormerod

Disclosure: I design Duet electronics and work on RepRapFirmware, [duet3d.com].
Re: New Ormerod Web Interface - WIP
February 12, 2014 03:24PM
@dc42 - thanks for you feedback, I also have recently noticed the file print issue, a simple fix i think caused by using the "onChange" event of course if you select the same file again, the onChange doesn't fire. I agree that you suggestion for the % complete would be better, i'll tweak that =)

Matt


Limited Edition Red RS Ormerod 1 #144 of 200 - RRP 1.09fw
iamburnys Ormerod Upgrades Github
Follow me on ThingiVerse My Designs
Re: New Ormerod Web Interface - WIP
February 12, 2014 03:26PM
Today i have also the same problem again, connect button will not appear with the remote version.

I have not completely understood why the .js files could not be hostet on the Ormerod itself and why i will need a separate web server. Could anyone explain this for me? The reprap.js is already located on the sd card inside the js folder, why could it not be used?

Frank
Re: New Ormerod Web Interface - WIP
February 12, 2014 03:42PM
Quote
Cash
I have not completely understood why the .js files could not be hostet on the Ormerod itself and why i will need a separate web server. Could anyone explain this for me? The reprap.js is already located on the sd card inside the js folder, why could it not be used?

Hi Cash, the reason is that the browser will open additional connections to the web server to load the additional files, however the Ormerod web server can only handle a single connection at a time. I have started work on removing this restriction.



Large delta printer [miscsolutions.wordpress.com], E3D tool changer, Robotdigg SCARA printer, Crane Quad and Ormerod

Disclosure: I design Duet electronics and work on RepRapFirmware, [duet3d.com].
Re: New Ormerod Web Interface - WIP
February 12, 2014 07:11PM
Hi Matt , i just checked github and according to the code the remote version is labelled as version 0.62 might just be a typo though

Regards

Mike
Re: New Ormerod Web Interface - WIP
February 13, 2014 01:28AM
Godd morning!

I'm using the latest version of chrome (32.0.1700.107 m) and the latest version of remote version 0.65 (shown as 0.62). today, i have the problem again, that i couln'd get into the web interface, chrome gives me the same feeedback, i got yesterday:

Website could not be retrieved
Connection Failed
http : // 172.20.120.166
The remote host or network you tried to contact may be down. Please check if the address is correct. If it is, try the request again later.
(113) No route to host


This happens in all combinations - with or with out usb connection, with usb connection before connecting the main power,... pronterface is still working, there is no fault shown in javascript on chrome - confused smiley

Quote
iamburny
@Mikeyblueeyes/Mr.Burns - Are you using chrome and the latest version I released today v0.65? remote or local version?

you can see the Google Chrome Javascript console by pressing Ctrl-Shift-J, if there is a Javascript error there will be a small red cross in the top right which you can click on to get more info, this info would help greatly in diagnosing your problems.

Matt

Edited 2 time(s). Last edit at 02/13/2014 01:30AM by Mr.Burns.
Re: New Ormerod Web Interface - WIP
February 13, 2014 02:39AM
Hi dc42,

thank you for the explanation!

Frank
Re: New Ormerod Web Interface - WIP
February 13, 2014 02:59AM
Update for a never ending story... I'm now on firmware 057l-dc42.bin and now i can get onto Matts interface v0.62! But i cant still connect it to the printer. NOW, the java-console shows me something, pleas have a look on the attached files.

Sorry for getting on your nerves - i`m just a newbie in reprap-things...

Sven
Attachments:
open | download - javascreenshot2.JPG (106.9 KB)
open | download - javascreenshot.JPG (161.1 KB)
Re: New Ormerod Web Interface - WIP
February 13, 2014 03:29AM
@Sven, @mickeyblueeyes, @Cash, @ PNut

My apologies guys in my haste I didn't update reprap.remote.htm correctly, with the new localStorage API library, I've fixed this now and tested it successfully.

My Bad! Sorry for the inconvenience

********Please update to the latest v on my github*********

Matt


Limited Edition Red RS Ormerod 1 #144 of 200 - RRP 1.09fw
iamburnys Ormerod Upgrades Github
Follow me on ThingiVerse My Designs
Re: New Ormerod Web Interface - WIP
February 13, 2014 03:57AM
@Matt:

Thanx so much, now after updating the reprap.remote.htm, everything is fine! thumbs upthumbs upthumbs upsmiling smiley
Re: New Ormerod Web Interface - WIP
February 13, 2014 04:18AM
Thanks for the feedback Sven, glad all is ok now =)

Matt


Limited Edition Red RS Ormerod 1 #144 of 200 - RRP 1.09fw
iamburnys Ormerod Upgrades Github
Follow me on ThingiVerse My Designs
Re: New Ormerod Web Interface - WIP
February 13, 2014 04:58AM
Hi Mat, thanks for that everything is working now, looking forward to dc42 sorting out the duet webserver that would be a great enhancement.

best regards

Mike
Re: New Ormerod Web Interface - WIP
February 19, 2014 02:53PM
@Matt
Not been able to connect using the web server for several days. Finally got round to updating to version 065 yesterday, and tried Firefox.
Worked perfectly
Thanks Matt
Greg


Ormerod #17
Re: New Ormerod Web Interface - WIP
February 19, 2014 03:13PM
Excellent Greg,

Great stuff, thanks for the feedback

Matt


Limited Edition Red RS Ormerod 1 #144 of 200 - RRP 1.09fw
iamburnys Ormerod Upgrades Github
Follow me on ThingiVerse My Designs
Re: New Ormerod Web Interface - WIP
February 20, 2014 09:02AM
Hi, first of all thanks for great work!
I have problems with my hotend temp it is all over the place I am runnig webinterface 0.65 and the latest firmware from dc42 057n.
After the skirt it goes down to 165 and the extruder stutter ofcourse.

/Joar
Re: New Ormerod Web Interface - WIP
February 20, 2014 10:28AM
What gcode file are you printing? It probably includes a command to reduce the temp to 165 after the first layer. If you produced it yourself using slic3r, check the slic3r filament settings.



Large delta printer [miscsolutions.wordpress.com], E3D tool changer, Robotdigg SCARA printer, Crane Quad and Ormerod

Disclosure: I design Duet electronics and work on RepRapFirmware, [duet3d.com].
Re: New Ormerod Web Interface - WIP
February 20, 2014 12:48PM
@dc42 I run the same code in pronterface without any problems, and I have checked the code aswell the web interface tells me that i goes up and down then it goes down to 150 after that I have stopped the print.
Which firmware do you recomend for webinterface 0.65?

Kind regards Joar
Sorry, only registered users may post in this forum.

Click here to login