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

Convert site electricity sensor from Joules to watts #464

Merged
merged 1 commit into from
Jun 28, 2024

Conversation

TShapinsky
Copy link
Member

Add a program to divide site electricity sensor by 60 to convert it from Joules to Watts (Joules/Second).

@@ -28,6 +28,7 @@ def get_idd_type(object)
# @return [String]
def create_ems_str(id)
id = id.gsub(/[\s-]/, '_')
id = id.gsub(/[^\w]/, '_')
Copy link
Member Author

@TShapinsky TShapinsky Feb 6, 2024

Choose a reason for hiding this comment

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

Without this the function is not idempotent. It will prepend _ forever

@anyaelena
Copy link
Member

@kbenne we had paused on merging this to consider whether the conversion should be handled in E+ instead. Since the next Alfalfa release will remove MLEP, we aren't worried about lasting consequences.

Copy link
Member

@anyaelena anyaelena left a comment

Choose a reason for hiding this comment

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

see pr comment

@TShapinsky TShapinsky merged commit 57ce41e into develop Jun 28, 2024
6 checks passed
@TShapinsky TShapinsky deleted the adjust_site_sensors branch June 28, 2024 22:05
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