Dashboard 2 ui-template refresh problem Android

some update to my first post

I updated dashboard 2 to 1.9.1
In Activity Tracker "WebSocket Connection Issues" are under Review, does this means that it should be fixed ?
Just want to give the information that my ui-templates still do not refresh after client connect.
They keep freeze until I do a manual page refresh, after this they start updating again.

ui-template

<template>
    <div>
    <v-progress-linear  class="my-progress-class" 
        label="Batterie"
        min="0" 
        max="100" 
        height="25"
        bg-color="grey"
        bg-opacity="0.5"
        :color="getColor(value)"
        v-model=calcvalue>
         <template v-slot:default="{ value }">
          <strong>{{ this.value }} W</strong>
        </template>
    </v-progress-linear>
    </div>
</template>


<script>

    /*
        <strong>{{ Math.abs(Math.floor(value)) }} W</strong>
*/


    export default {
        data() {
            // define variables available component-wide
            // (in <template> and component functions)
            return {
                count: 0
            }
        },
        watch: {
            // watch for any changes of "count"
            count: function () {
                if (this.count % 5 === 0) {
                    this.send({payload: 'Multiple of 5'})
                }
            }
        },
        computed: {
            // automatically compute this variable
            // whenever VueJS deems appropriate
            calcvalue: function () {
                //return this.value*100/10000
                return Math.round(this.msg.payload*100/10000)
            }
        },
/*        
        methods: {
            // expose a method to our <template> and Vue Application
            increase: function () {
                this.count++
            }
        },
*/        
        methods: {
        // add a function to determine the color of the progress bar given the row's item
            getColor: function (value) {
                if (value<30) {
                     return 'red'
                } else if (value<1000) {
                    return 'yellow'
                } else{
                    return 'green'
                }
            },
            getValue: function (value) {
                return value*100/2500
            }
        },
       
        mounted() {
            // code here when the component is first loaded
        },
        unmounted() {
            // code here when the component is removed from the Dashboard
            // i.e. when the user navigates away from the page
        }
    }
     
</script>
<style>
    /* define any styles here - supports raw CSS */
    /* color: red;*/
    /* background-color: blue-grey-lighten-3;*/
    .my-progress-class {

    }
</style>

This is ui-template nodes not receiving messages after network disconnection/recovery. · Issue #747 · FlowFuse/node-red-dashboard · GitHub which was marked as In Progress but seems to have gone back to Under Review.

With ui-template we do still have problems. Thanks @Colin for flagging that, I'd accidentally moved into "In Review" yesterday, I'm still investigating the challenges with ui-template that doesn't persist in any other node type.

thanks for the information,
Until a solution is found, i will reactivate colins workaround (refresh page on connect), but this flashes sometimes the page mulitple times.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.