Is there a way to add a % bar to the tab if you're printing something?

Avatar

By sLpFhaWK 13 November 2016 21:08

Member · 38 comments

I have 2 printers with Duet Wifi's and I tend to leave the tabs open in the background when printing and I'm doing other work on the computer. Instead of having to always go to the tabs to see what % the print is at I think it would be awesome to see it right in the tab next to whatever you named your printer.

Not sure if this would be a firmware request, or a web interface addon, but I just thought I'd ask here.

Thanks!


-sLpFhaWK
Ultibots K250v
Rostock Max v2 Soon to be Full MetalMax
Mini Kossel

Avatar

By dc42 13 November 2016 21:21

Administrator · 2,297 comments

I suspect it's not possible, because AFAIK the browser only requests the favicon.ico file when it connects initially. But someone else may know a workaround.


Duet WiFi hardware designer and firmware engineer
http://www.escher3d.com
https://miscsolutions.wordpress.com

Avatar

By T3P3Tony 13 November 2016 21:22

Administrator · 705 comments

It would be something to add to the DWC web interface I will let @chrishamm know about this request.


Duet Wifi Hardware Designer
www.duet3d.com
www.think3dprint3d.com

Avatar

By sLpFhaWK 13 November 2016 21:34

Member · 38 comments
dc42 wrote

I suspect it's not possible, because AFAIK the browser only requests the favicon.ico file when it connects initially. But someone else may know a workaround.

Speaking of the faveicon,  how does one change that? I'd like to have them to be different colors instead of both blue =)

T3P3Tony wrote

It would be something to add to the DWC web interface I will let @chrishamm know about this request.

Thank you!

Last edited by sLpFhaWK (13 November 2016 21:34)


-sLpFhaWK
Ultibots K250v
Rostock Max v2 Soon to be Full MetalMax
Mini Kossel

Avatar

By burtoogle 13 November 2016 22:16

Member · 56 comments

It's easy to change the text shown in the browser tab from javascript. It just needs the UI code to do something like this every now and again:

document.title = "My fab printer: 75%";

Avatar

By iDevelo 13 November 2016 22:21

Member · 184 comments
dc42 wrote

I suspect it's not possible, because AFAIK the browser only requests the favicon.ico file when it connects initially. But someone else may know a workaround.

For chrome and Firefox you can change it dynamically with an Ajax request but I don't think you can in IE or Safari.

Avatar

By yngndrw 16 February 2017 02:37

Member · 37 comments

Here's a demo page showing how you can dynamically change the favicon:
https://mathiasbynens.be/demo/dynamic-favicons
http://stackoverflow.com/a/2995536/4107016

Avatar

By Jackal 16 February 2017 10:54

Member · 99 comments

This one seems interesting as well
https://github.com/lipka/piecon

Avatar

By yngndrw 16 February 2017 12:33

Member · 37 comments
Jackal wrote

This one seems interesting as well
https://github.com/lipka/piecon

That one is very pleasing, I especially like how it generates the images on the fly so you don't have to serve them all.

Looking through the web UI code, it looks like there's already a nice setProgress function which could be used to update this:
https://github.com/dc42/DuetWebControl/ … l.js#L2402

Last edited by yngndrw (16 February 2017 13:27)

Avatar

By iDevelo 17 March 2017 13:54

Member · 184 comments

Something like this?

Avatar

By Demthios 17 March 2017 14:07

Member · 5 comments

I like it! How hard is it to implement?

Last edited by Demthios (17 March 2017 14:07)

Avatar

By iDevelo 17 March 2017 14:09

Member · 184 comments

I've put a pull request in with chris: https://github.com/chrishamm/DuetWebCon … 53d217a782