Skip to content

Add timestamp#947

Open
ldbach wants to merge 22 commits intomasterfrom
add-timestamp
Open

Add timestamp#947
ldbach wants to merge 22 commits intomasterfrom
add-timestamp

Conversation

@ldbach
Copy link

@ldbach ldbach commented Dec 11, 2025

Able to add markers for timestamps and export in a new excel file. Can still improve with the code. The real scale from the Y axis of the graph is not done, right now only hard code.

@ldbach ldbach requested a review from kraemr December 11, 2025 11:39
@Snacj Snacj self-assigned this Dec 17, 2025
Copy link
Collaborator

@Snacj Snacj left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please address the comments and see if timestamps work on actual machines.

// Assuming the graph's fixed Y-scale is from -1 to 1 based on the sine wave example
const graphMin = -1;
const graphMax = 1;
// TODO: For real-world graphs (like Winder), you might need to read the actual min/max scale
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We can't assume that the min/max of the y axis will always be -1 and 1.
See roundness value of the laser (min: 0, max: 100)


const graphEl = graphWrapperRef.current;
// The BigGraph component is the first child (the one with the actual chart)
// TODO: Find a better way to do this
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If there is a better way to do it, please implement. Otherwise delete the comment.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please test the Graph on that machine. It may not work due to the y-axis limitation.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please test the Graph on that machine. It may not work due to the y-axis limitation.

@kraemr kraemr removed their request for review December 18, 2025 10:13
@MilanVDB
Copy link
Collaborator

@Snacj Please finish up this Issue asap, bach's internship is over

@MilanVDB MilanVDB assigned EinsPommes and unassigned Snacj Jan 16, 2026
@EinsPommes
Copy link
Collaborator

@Snacj Could you do a review? I've fixed the issues.

Copy link
Member

@TheBest6337 TheBest6337 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

When I add an marker and move to another page or machine it isnt saved.

Copy link
Member

@TheBest6337 TheBest6337 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Image

Why is the size and position of the marker changing? It should rather be always at the same height in the graph window. The Text also seems to be above the value window which doesnt look right, because of the shadow it would look better if it is under it. The red line is also weird, is it an bug or a feature? It appears after adding one marker and I dont understand what it does...

@TheBest6337
Copy link
Member

TheBest6337 commented Jan 20, 2026

Im also not sure if i am a fan of the many "Add Marker" buttons, we could maybe just do one button that creates an marker for the whole machine, this could just be next to the Export button for example. Then when clicked an popup opens where you can specify the time (if wanted) and add an name or color. And also if i click on the marker button i expect that the marker appears at the current live time, at the moment it comes after a few seconds. So when using the popup just always use the current time.

@TheBest6337
Copy link
Member

pls submit a screenshot of a correctly placed marker, after adding about 15 I dont see a single one in my mock graphs.

@EinsPommes
Copy link
Collaborator

At the time of your message, the implementation was not yet finalized. The issue you’re referring to was already known, and I was in the process of fixing it.
The absence of visible markers in the mock graphs at that stage does not reflect the final behavior of the feature. I’ll provide an updated screenshot once the fix is completed and the markers are rendered correctly.
I’ll follow up shortly with the corrected state.

@EinsPommes
Copy link
Collaborator

Bild 01 02 26 um 15 00

If you scroll over the names, you can see them, and that would be the latest version. @TheBest6337

@TheBest6337
Copy link
Member

@EinsPommes I would rather put them to the top and show the names all the time not only when hovering

@EinsPommes
Copy link
Collaborator

@TheBest6337 Okay, I'll do that. Currently, it only works for the mock machine. I'm working on the others.

@EinsPommes
Copy link
Collaborator

EinsPommes commented Feb 1, 2026

Bild 01 02 26 um 15 25

@TheBest6337 I have revised it.

@TheBest6337
Copy link
Member

I would put it higher so it is positioned above all data and can't hide it.

@EinsPommes
Copy link
Collaborator

@TheBest6337 I am currently investigating why the marker is only rendered on test machines.
If you notice anything unusual in the code, please let me know.

@EinsPommes
Copy link
Collaborator

@TheBest6337 Should it be possible to set the maker individually for each graph, or, for example, when you go to the extruder tab, should the maker also be set automatically for the graph temperatures and power outputs, etc.?

@TheBest6337
Copy link
Member

TheBest6337 commented Feb 1, 2026

I think the marker should only be per machine.

@EinsPommes
Copy link
Collaborator

@TheBest6337 Currently it is like this: That if you go to the extruder tab, for example, and then show you the graphs and then for example in the first graph Um, that a marker is set that in the whole extruder tab in each graph the marker is set Should this remain so?

@TheBest6337
Copy link
Member

I think it's the best UX design to do it that way, but I would need to test and maybe also show some other people this feature and how they expect it to work...

@EinsPommes
Copy link
Collaborator

Okay, good. Then I'll press it now. And then you can test it. The problem is that there are still a few bugs. I would fix them. I also added a function. If you press the marker for 5 seconds, the marker will be deleted.

@TheBest6337
Copy link
Member

If you didnt know: There is a bug that only the first marker is saved, when I create another one and then go to another page I can only see the first marker when going back. Also fix the marker jumping from time to time (but you probably know this one)

@TheBest6337 TheBest6337 linked an issue Feb 2, 2026 that may be closed by this pull request
@EinsPommes
Copy link
Collaborator

@TheBest6337 Yes, I was aware of that, but thank you anyway. Did he notice anything else?

@TheBest6337
Copy link
Member

Only the things I told you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Time-Stamp for all Graphs !

5 participants