Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add bambu; #132

Merged
merged 5 commits into from
Oct 17, 2024
Merged

add bambu; #132

merged 5 commits into from
Oct 17, 2024

Conversation

jessfraz
Copy link
Contributor

No description provided.

Signed-off-by: Jess Frazelle <[email protected]>
Signed-off-by: Jess Frazelle <[email protected]>
Copy link

codecov bot commented Oct 17, 2024

Codecov Report

Attention: Patch coverage is 0% with 43 lines in your changes missing coverage. Please review.

Project coverage is 23.23%. Comparing base (75ae3d8) to head (1d98837).

Files with missing lines Patch % Lines
src/bambu/temperature.rs 0.00% 41 Missing ⚠️
src/bin/machine-api/cmd_serve.rs 0.00% 2 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #132      +/-   ##
==========================================
- Coverage   23.60%   23.23%   -0.38%     
==========================================
  Files          49       50       +1     
  Lines        2699     2742      +43     
==========================================
  Hits          637      637              
- Misses       2062     2105      +43     
Flag Coverage Δ
unittests 23.23% <0.00%> (-0.38%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Signed-off-by: Jess Frazelle <[email protected]>
@@ -125,6 +125,9 @@ pub async fn main(_cli: &Cli, cfg: &Config, bind: &str) -> Result<()> {
AnyMachine::Moonraker(moonraker) => {
spawn_metrics(&mut registry, key, moonraker.get_temperature_sensors()).await?;
}
AnyMachine::BambuX1Carbon(bambu) => {
spawn_metrics(&mut registry, key, bambu.get_temperature_sensors()).await?;
Copy link
Collaborator

Choose a reason for hiding this comment

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

we discovered this is currently broken because this will race the discovery loop and not spawn metrics for printers discovered after the time of this function call. we need to wire this in deeper

@jessfraz jessfraz merged commit 9482019 into main Oct 17, 2024
2 of 4 checks passed
@jessfraz jessfraz deleted the add-bambu branch October 17, 2024 22:31
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.

2 participants