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

Diagnostics Update #101

Merged
merged 22 commits into from Dec 1, 2023
Merged

Diagnostics Update #101

merged 22 commits into from Dec 1, 2023

Conversation

dboulware
Copy link
Contributor

This modifies the diagnostics metadata and upgrades the preselector library version. Most of the changes are in the SPU object. Now the SPU contains sigan_powered, preselector_powered, humidity_sensors, temperature_sensors, power_sensors, door_closed, temperature_control_powered, heating, cooling, battery_backup, low_battery, battery_healthy, ups_healthy. This also moves the action_runtime into the computer diagnostics and changes the scos_uptime and scos_start to software_uptime and software_start. The acquire_sea_data_product actions has also been modified to look for specific states and sensors in the switches. If it finds them, it will add them to the appropriate metadata. The sea action has been modified to collect status on all switches and look for specific sensors and states. If they are not found they will not be added to the diagnostics.

Copy link
Member

@aromanielloNTIA aromanielloNTIA left a comment

Choose a reason for hiding this comment

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

See minor comments below, and add some logger warnings in the case where switch configs do not supply the expected diagnostics fields

lna_temp: Optional[float] = None
antenna_path_enabled: Optional[bool] = None
noise_diode_path_enabled: Optional = None
Copy link
Member

Choose a reason for hiding this comment

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

type annotation should be Optional[bool]

if "power_monitor28v" in all_switch_status:
switch_diag["power_sensors"].append(
{
"name": "28v Monitor",
Copy link
Member

Choose a reason for hiding this comment

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

Suggest capitalizing "V" for Volts in all the power monitor diagnostics object names, e.g. "28V Monitor"

@dboulware dboulware merged commit 879ea65 into master Dec 1, 2023
4 checks passed
@dboulware dboulware deleted the switch_diagnostics branch January 2, 2024 18:17
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.

None yet

2 participants