1
0
Fork 0
mirror of https://github.com/maziggy/bambuddy.git synced 2026-05-09 16:35:47 +02:00

[GH-ISSUE #229] [Bug]: Monthly Comparison is off on calculation #143

Closed
opened 2026-05-07 00:06:44 +02:00 by BreizhHardware · 15 comments

Originally created by @leisegang on GitHub (Feb 2, 2026).
Original GitHub issue: https://github.com/maziggy/bambuddy/issues/229

Originally assigned to: @maziggy on GitHub.

Bug Description

Image

I have value of 269 in january and 533 in february.

But i have printed 1.64kg the last 2 months.
The math isnt mathing for me.

Expected Behavior

The expected behaviour would be to summarize all prints and add them to the total that month,

Steps to Reproduce

i dont know. new prints are added as they should.

Printer Model

P1S

Bambuddy Version

0.1.6

Printer Firmware Version

newest

Installation Method

Docker

Operating System

Docker

Relevant Logs / Support Package


Screenshots

Image

Additional Context

No response

Checklist

  • I have searched existing issues to ensure this bug hasn't already been reported
  • I am using the latest version of Bambuddy
  • My printer is set to LAN Only mode
Originally created by @leisegang on GitHub (Feb 2, 2026). Original GitHub issue: https://github.com/maziggy/bambuddy/issues/229 Originally assigned to: @maziggy on GitHub. ### Bug Description <img width="1693" height="571" alt="Image" src="https://github.com/user-attachments/assets/f8e628a5-91d1-4d1e-9af0-a970e55d4884" /> I have value of 269 in january and 533 in february. But i have printed 1.64kg the last 2 months. The math isnt mathing for me. ### Expected Behavior The expected behaviour would be to summarize all prints and add them to the total that month, ### Steps to Reproduce i dont know. new prints are added as they should. ### Printer Model P1S ### Bambuddy Version 0.1.6 ### Printer Firmware Version newest ### Installation Method Docker ### Operating System Docker ### Relevant Logs / Support Package ```shell ``` ### Screenshots <img width="861" height="906" alt="Image" src="https://github.com/user-attachments/assets/c30f6b75-e0f9-463c-88cb-96b097f354c9" /> ### Additional Context _No response_ ### Checklist - [x] I have searched existing issues to ensure this bug hasn't already been reported - [x] I am using the latest version of Bambuddy - [ ] My printer is set to LAN Only mode
BreizhHardware 2026-05-07 00:06:44 +02:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@leisegang commented on GitHub (Feb 2, 2026):

When i add the dates up it adds 29th and 30th together but skips the 31st all together

<!-- gh-comment-id:3837359566 --> @leisegang commented on GitHub (Feb 2, 2026): When i add the dates up it adds 29th and 30th together but skips the 31st all together
Author
Owner

@maziggy commented on GitHub (Feb 3, 2026):

Fixed in branch 0.1.7b. Please let me know if it works for you.

<!-- gh-comment-id:3839335944 --> @maziggy commented on GitHub (Feb 3, 2026): Fixed in branch 0.1.7b. Please let me know if it works for you.
Author
Owner

@leisegang commented on GitHub (Feb 3, 2026):

This isnt quite fixed i believe.

Image

Image

when i printed that it says it has 26 objects. That is correct. The total amount of filament used is around 126g. When bambuddy now says it has 21 items printed when i open the project, The calculation is 126*21. That is false. it is still 126g. Another print i have printed for around 400grams is correct, but not counted.

<!-- gh-comment-id:3842335516 --> @leisegang commented on GitHub (Feb 3, 2026): This isnt quite fixed i believe. <img width="432" height="825" alt="Image" src="https://github.com/user-attachments/assets/a30105f7-4a0f-4082-b242-8b02cb04424f" /> ![Image](https://github.com/user-attachments/assets/43d2e981-c07a-4658-8695-d12c6dc11062) when i printed that it says it has 26 objects. That is correct. The total amount of filament used is around 126g. When bambuddy now says it has 21 items printed when i open the project, The calculation is 126*21. That is false. it is still 126g. Another print i have printed for around 400grams is correct, but not counted.
Author
Owner

@maziggy commented on GitHub (Feb 3, 2026):

Damn. Sorry for that. Unfortunately I don't have the time to test every single fix. It's already a full time job ;) Will check tomorrow morning.

<!-- gh-comment-id:3842513968 --> @maziggy commented on GitHub (Feb 3, 2026): Damn. Sorry for that. Unfortunately I don't have the time to test every single fix. It's already a full time job ;) Will check tomorrow morning.
Author
Owner

@maziggy commented on GitHub (Feb 4, 2026):

Please use branch 0.1.8b and let me know if it works now.

<!-- gh-comment-id:3845591064 --> @maziggy commented on GitHub (Feb 4, 2026): Please use branch 0.1.8b and let me know if it works now.
Author
Owner

@leisegang commented on GitHub (Feb 4, 2026):

Please use branch 0.1.8b and let me know if it works now.

How do i install a branch?

<!-- gh-comment-id:3848760570 --> @leisegang commented on GitHub (Feb 4, 2026): > Please use branch 0.1.8b and let me know if it works now. How do i install a branch?
Author
Owner

@maziggy commented on GitHub (Feb 5, 2026):

cd to your bambuddy folder and do a

git pull && git checkout 0.1.8b && git pull && docker compose down && docker compose build --no-cache && docker compose up -d

<!-- gh-comment-id:3851385134 --> @maziggy commented on GitHub (Feb 5, 2026): cd to your bambuddy folder and do a git pull && git checkout 0.1.8b && git pull && docker compose down && docker compose build --no-cache && docker compose up -d
Author
Owner

@leisegang commented on GitHub (Feb 5, 2026):

I am using, docker within unraid.

<!-- gh-comment-id:3851397107 --> @leisegang commented on GitHub (Feb 5, 2026): I am using, docker within unraid.
Author
Owner

@maziggy commented on GitHub (Feb 5, 2026):

Don't know Unraid, sorry.

<!-- gh-comment-id:3851436573 --> @maziggy commented on GitHub (Feb 5, 2026): Don't know Unraid, sorry.
Author
Owner

@leisegang commented on GitHub (Feb 6, 2026):

i added a print today with 3 object. total is 140grams. The report says i printed 3 of them, and then ads 3x140 grams to the total.
i am now using 0.1.8

<!-- gh-comment-id:3860629460 --> @leisegang commented on GitHub (Feb 6, 2026): i added a print today with 3 object. total is 140grams. The report says i printed 3 of them, and then ads 3x140 grams to the total. i am now using 0.1.8
Author
Owner

@maziggy commented on GitHub (Feb 7, 2026):

commit cfd5dd66e5 (HEAD -> 0.1.9b, origin/0.1.9b)
Author: maziggy mz@v8w.de
Date: Sat Feb 7 11:02:05 2026 +0100

Fix filament usage charts inflated by quantity multiplier (fixes #229)

filament_used_grams already represents the total for the entire print
job. The daily, weekly, and filament-type charts were multiplying it
by quantity, e.g. a 26-object print using 126g was counted as 3,276g.

Removed the erroneous `* qty` from three aggregations in
FilamentTrends.tsx. Monthly comparison and summary cards were already
correct.

Fixes #229

If you find Bambuddy useful, please consider giving it a on GitHub — it helps others discover the project!

<!-- gh-comment-id:3864076889 --> @maziggy commented on GitHub (Feb 7, 2026): commit cfd5dd66e582bef0274e548d18ecb62506a90a2e (HEAD -> 0.1.9b, origin/0.1.9b) Author: maziggy <mz@v8w.de> Date: Sat Feb 7 11:02:05 2026 +0100 Fix filament usage charts inflated by quantity multiplier (fixes #229) filament_used_grams already represents the total for the entire print job. The daily, weekly, and filament-type charts were multiplying it by quantity, e.g. a 26-object print using 126g was counted as 3,276g. Removed the erroneous `* qty` from three aggregations in FilamentTrends.tsx. Monthly comparison and summary cards were already correct. Fixes #229 If you find Bambuddy useful, please consider giving it a ⭐ on [GitHub](https://github.com/bambuman/bambuddy) — it helps others discover the project!
Author
Owner

@leisegang commented on GitHub (Feb 9, 2026):

The bug is still there

Image Image

I added a 12 bin gridfinity. It says 400g total. It takes 12x400g to the statistics page.

<!-- gh-comment-id:3870876247 --> @leisegang commented on GitHub (Feb 9, 2026): The bug is still there <img width="1344" height="774" alt="Image" src="https://github.com/user-attachments/assets/ae70f6ce-1a0d-45c7-9caf-dff1873a01b8" /> <img width="1344" height="791" alt="Image" src="https://github.com/user-attachments/assets/17903372-ae30-4adc-904a-914687d95887" /> I added a 12 bin gridfinity. It says 400g total. It takes 12x400g to the statistics page.
Author
Owner

@maziggy commented on GitHub (Feb 9, 2026):

OMG....OK, need to invest the time to check the whole data flow.

<!-- gh-comment-id:3870973796 --> @maziggy commented on GitHub (Feb 9, 2026): OMG....OK, need to invest the time to check the whole data flow.
Author
Owner

@maziggy commented on GitHub (Feb 9, 2026):

You are not using branch 0.1.9b which includes the fixes!!!

<!-- gh-comment-id:3871011241 --> @maziggy commented on GitHub (Feb 9, 2026): You are not using branch 0.1.9b which includes the fixes!!!
Author
Owner

@maziggy commented on GitHub (Feb 9, 2026):

Created a beta docker image for you.

docker pull ghcr.io/maziggy/bambuddy:0.1.9b

<!-- gh-comment-id:3871021606 --> @maziggy commented on GitHub (Feb 9, 2026): Created a beta docker image for you. docker pull ghcr.io/maziggy/bambuddy:0.1.9b
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/bambuddy-maziggy-1#143
No description provided.