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 openWB-pv-visualization example #11

Merged
merged 1 commit into from
Dec 24, 2020

Conversation

yankee42
Copy link
Contributor

@yankee42 yankee42 commented Dec 9, 2020

Here another example :-). It is the first time ever I did anything with Rainmeter, so... it is likely that this could be improved. Everyone should feel free to use and improve it.

@yankee42
Copy link
Contributor Author

yankee42 commented Dec 9, 2020

Maybe the example is not the best in current state and you should not use it after all. It looks like the Histogram actually displays relative values and so if maxConsumption <> maxProduction the proportions get all wrong.

I am attempting to fix this by using

[powerConsumptionRelativeToProduction]
Measure=Calc
Formula=powerConsumption
MinValue=0
MaxValue=#maxProduction#

Und use that for the histogram, but... I'll see tomorrow whether it works. Also it is not really pretty for an example, because that will then only work if maxProduction > maxConsumption...

@fvanroie
Copy link
Owner

fvanroie commented Dec 9, 2020

Thanks, I'll have a closer look over the weekend. It's always good to have examples to build upon. The histogram images looks very neat! Keep us posted on your findings if the measurements do work correct 👍

@yankee42
Copy link
Contributor Author

Just as a short update in the meantime... I have the impression that this displays correctly most of the time. However something is wrong. Maybe I totally misunderstand the "histogram". I am trying to get some help in the Rainmeter forum.

@fvanroie
Copy link
Owner

Not sure because I haven't used histogram either, but maybe you need to direct Rainmeter to use the percentual value instead:

[graph]
Meter=Histogram
AutoScale=1
MeasureName=[powerProduction:%]
MeasureName2=[powerConsumption:%]

@fvanroie fvanroie merged commit bf68d82 into fvanroie:master Dec 24, 2020
@fvanroie
Copy link
Owner

I will this example as-is. We can update it if a better way to calculate the histogram values comes up.

@yankee42 yankee42 deleted the openwb-pv-example branch December 24, 2020 21:39
@yankee42
Copy link
Contributor Author

OK... Actually it works correctly most of the time after all. To bad I did a solution for the "morning-anomality"... Maybe someone will eventually figure something out.

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