PanelPi icon indicating copy to clipboard operation
PanelPi copied to clipboard

Add temperature graph

Open badvision opened this issue 6 years ago • 3 comments

There's a bit of empty space next to the temps, it would be nice to have a temperature graph similar to the web UI.

I have this working in my fork if you want to merge it in, but I also have other changes, such as color theme, that you might not want.

badvision avatar Mar 04 '19 17:03 badvision

Here's what my fork looks like currently with the temperature graph: image

One thing that works differently in my setup is that the temperatures array has the hot bed as the first value, not the hot end. That results in the code showing the same value for both bed and tool. I changed the views to use getOrNull(1) instead of firstOrNull() to resolve it in my fork.

badvision avatar Mar 06 '19 06:03 badvision

I did some more reading and the behavior of my setup is consistent with how RepRap is expected to work: The first temperature is always the hotbed, followed by the first extruder, etc. I think then it might be a bug that this code is using firstOrNull() in the view class when setting up bindings.

badvision avatar Mar 07 '19 14:03 badvision

Thanks, That's probably depends on how the hardwares are setup, I am using AC bed so I swapped the hotend output with the heated bed to give it more amps. I remember there is a value in the duet data structure indicating which tool is bed, can use that instead of hardcoding it to the first value. (there are no documentation on the format of the data returned from duet via the serial port, so most of it are guess work, need to spend more time to see how PanelDue decode the data)

regarding UI, I want to redesign the whole UI to make it more touchscreen friendly, also using CSS properly.... when have time, but the current UI serves me well and also there are not much interest since I OS the project, so its not my top priority at the moment.

Thanks for the interest, please do keep posting any thoughts, ideas or questions. I am currently trying to make Pursa MMU2.0 work using duet and duex, will spend more time on PanelPi when it's done.

patrickkuo avatar Mar 07 '19 15:03 patrickkuo