imnotbob / EnvoyHE

Envoy Solar Integration with Hubitat
3 stars 0 forks source link

"flowtype is not a function" #2

Open bobpaul opened 1 year ago

bobpaul commented 1 year ago

The graph app hasn't been working for me. I finally looked in the javascript console and I see "Uncaught TypeError: $(...).flowtype is not a function" around this block of code in deviceTiles.

<script>
    $("body").flowtype({
        minFont: 7,
        maxFont: 10,
        fontRatio: 30
    });
</script>

There's also an error that loading failed for https://fastcdn.org/FlowType.JS/1.1/flowtype.js. That file fails to load in Chrome, Firefox, and even using Curl. It seems fastcdn.org is broken. While looking for an alternative source of the file, I found a notice that flowtypes is no longer necessary as CSS is now capable of whatever functionality flowtypes provided.

imnotbob commented 1 year ago

So have you created a fix?

bobpaul commented 1 year ago

no, I tried using https://raw.githubusercontent.com/simplefocus/FlowType.JS/master/flowtype.js from that other repo, but github returns text/plain as the mime type and browsers reject that for javascript.

imnotbob commented 1 year ago

Found this is part of envoy...

bobpaul commented 1 year ago

I thought it was SolarGraphs.groovy:842. Is it also somewhere else?

imnotbob commented 1 year ago

I pushed an update for this