Skip to content

Flooplan is slow on Android Home Assistant app #373

Answered by done7k
done7k asked this question in Q&A
Discussion options

You must be logged in to vote

Oooops. you are right! I completely forgot , I use a custom function to draw a house shadow basing on sun position. it looks it became too heavy since this September. Hmmm. I have just commented the call of this function and it is fast again... here is the code... seems I will need to redo the func.. it looks nice...


return {
      getShadow: (entity, entities, hass) => {
        function getline (xx, yy, blur, c) {
          var x = Math.abs(xx);
          var y = Math.abs(yy);
          const xs = (xx < 0) ? -1 : 1;
          const ys = yy < 0 ? -1 : 1;
          var line = "";
          var coef = (x >= y) ? y/x : x/y;
          var fmax = (x >= y) ? x : y;
          for (let i = 0; i…

Replies: 1 comment 10 replies

Comment options

You must be logged in to vote
10 replies
@OzGav
Comment options

@done7k
Comment options

@OzGav
Comment options

@done7k
Comment options

Answer selected by done7k
@OzGav
Comment options

@done7k
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants