-
Notifications
You must be signed in to change notification settings - Fork 13
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
kWh modifier introduced in 1.6.1 not working correctly #45
Comments
The data from the energiemonitor is in kWh, as it describes the cumulative power within a period of 15 minutes. I know that the power-distribution-card targets power, but as it also has the (broken) support for energy, I would be glade use it for my purpose ;) |
Hey there 👋 @dannerph ,
This piece was the result from here: #30 . initially i only supported kWh and Wh and so that was the quickest solution i came up with and, as you pointed out, definitely not the best 😉 .
I don't really see any usecase where someone would create such power without a reactor in his backyard but ofc by using it with different units this might actually be relevant. The only reason its restricted at all, is the automatic calculations of the autarky/ratio(Eigenverbrauchsanteil). But considering that the card got more customizable, i need to rethink this whole concept. Thanks for your Issue 👍 For the second Comment, i am a bit curious how this works : is it just the cumulative power of the last 15minutes * 4 or kW(15min) ? |
Thanks for having a look on this issue! A use case for bigger power/energy values might be if someone wants to visualize the energy import/export of a country, e.g. using data from ENTSO-E or the electricity map. I do not know if this is already done, however it would be possible ;) The EON Energiemonitor provides energy in kWh for a 15 min period. Thus, I am fine with visualising energy as kWh, however it should be scaled correctly ;) |
I think i fixed it now. I will work on one more thing for today and then release the patch. Thanks for the report 👍 |
Thanks for providing this very nice looking power distribution card. I am currently integrating data from the EON Energiemonitor in order to visualize the regional energy generation/demand using your card. However I found a small bug:
power-distribution-card/src/power-distribution-card.ts
Line 109 in 98781a7
('kW' || 'kWh')
is always'kW'
.I would suggest to check for
unit_of_measurement.startsWith('k')
in order to be generic for all kinds of units. This might be extended with 'M' and 'G' later on.The text was updated successfully, but these errors were encountered: