GithubHelp home page GithubHelp logo

Comments (10)

broth-itk avatar broth-itk commented on August 30, 2024 3

I wish I had the same problem ;-)

Maybe it might make sense to convert down to kWh above 9999 Wh -> 10.0 kWh
Total length of the string would fit.

from opendtu.

tm-107 avatar tm-107 commented on August 30, 2024 2

Same problem here... today I'm currently at >26.000 Wh and the value disappears when it's on the left side.

The problem only exists if the display is set to German.
Changing the display language to English or French solves the problem.
In German, either the font would have to be a little smaller or - as already suggested - there should be an automatic switch from Wh to kWh.

from opendtu.

tm-107 avatar tm-107 commented on August 30, 2024 2

let's hope for a good solar yield today too. and especially my wishes for @broth-itk to surpass a daily yield to something like 22222 Wh ... with the fun part, that exactly this number might break the pixel length fix again 😉 (just kidding, in theory the fix should work for any pixel width)

Unfortunately, the display will not show “22222 Wh” because it now automatically switches to kWh.

IMG_20240317_145947

from opendtu.

tbnobody avatar tbnobody commented on August 30, 2024 1

I could imagine that either this line:

dispX = (_display->getDisplayWidth() - _display->getStrWidth(text)) / 2;

or this line
dispX = (CHART_POSX - _display->getStrWidth(text)) / 2;

calculates a negative result which results in a underflow and therefor in a very high number (e.g. 240) and places the text outside the display.

from opendtu.

tm-107 avatar tm-107 commented on August 30, 2024 1

Here is a video-shot of the problem. Maybe it's interesting to see at which positions the text disappears.
Youtube-Link

from opendtu.

broth-itk avatar broth-itk commented on August 30, 2024 1

@MetaChuh Thanks for your wishes! ;-)
Have a great day!

from opendtu.

4c2 avatar 4c2 commented on August 30, 2024 1

@tbnobody many thanks also from my side. It works with v24.3.15.

from opendtu.

MetaChuh avatar MetaChuh commented on August 30, 2024

@tm-107 👍🙏

The problem only exists if the display is set to German.

thanks for fiddling around with other languages, until you found a possible cause 👍

from a perspective of string lengths, it's very intreaguing why today: works, while Heute: does not, as the string lenghts should be the same.

maybe the difference lies at the capital Hwhich consumes more pixel width ?
i've not worked very much with the display libraries yet, but i, probably same as the project owner and chief of dev @tbnobody assumed, that the additional pixels would just not be displayed, if the image is shifted ... but not that the whole line would be ommited, as it seems the case

very fascinating.
can anyone else with a larger than 10kwh daily solar yield confirm this as well ?

from opendtu.

MetaChuh avatar MetaChuh commented on August 30, 2024

verified and working: v24.3.15 with Heute: 14121 Wh (yesterday)

let's hope for a good solar yield today too.
and especially my wishes for @broth-itk to surpass a daily yield to something like 22222 Wh ... with the fun part, that exactly this number might break the pixel length fix again 😉
(just kidding, in theory the fix should work for any pixel width)

thx & greetings to all participants of this issue
metachuh

from opendtu.

github-actions avatar github-actions commented on August 30, 2024

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new discussion or issue for related concerns.

from opendtu.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.