• Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular

    Custom widget

    Dashboard
    custom widget guage dashboard
    5
    43
    23832
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • jkandasa
      jkandasa @esawyja last edited by

      @esawyja looks like there is wrong mapping on template.
      Can you change this temperatureSen.sensorVariable.value to temperatureSen.value?

      T 1 Reply Last reply Reply Quote 0
      • E
        esawyja last edited by

        @jkandasa said:

        temperatureSen.value

        THANK YOU!!!! It works now

        1 Reply Last reply Reply Quote 1
        • E
          esawyja last edited by

          Could we not just add this as a widget type, when you add new widget, have a entry for gauge?
          That would be awesome instead of adding all this code?

          jkandasa 1 Reply Last reply Reply Quote 1
          • jkandasa
            jkandasa @esawyja last edited by jkandasa

            @esawyja Sure, I will add some of new widgets, when I get time. Thanks for the feedback.

            1 Reply Last reply Reply Quote 0
            • E
              esawyja last edited by

              Thanks so much!!

              1 Reply Last reply Reply Quote 0
              • T
                Tag MOD @jkandasa last edited by

                @jkandasa said:

                var temperatureSen = mcApi.uidTag().getByUid("my-sensor-1").getResource();

                Also faced this issue when i imported my database on a different node.
                had to change the scripts to use the new variable....

                Gauges work now after changing the variables..

                For the rest no issues found, all work like a charm!!!!

                Thank you for the great support!!!

                1 Reply Last reply Reply Quote 0
                • F
                  fsgrazzutti last edited by

                  @jkandasa

                  is there any reason for this, once I add the library ?
                  89b478a4-2204-48af-9b47-0fc9204821ee-image.png

                  jkandasa 1 Reply Last reply Reply Quote 0
                  • jkandasa
                    jkandasa @fsgrazzutti last edited by

                    @fsgrazzutti Can you forcefully refresh your browser?
                    or you may have some syntax error.

                    F 1 Reply Last reply Reply Quote 0
                    • F
                      fsgrazzutti @jkandasa last edited by

                      @jkandasa,

                      I found a typo in your example : https://<mycontrollerip>:8334/mylib/gauge.min.js
                      Using https://<mycontrollerip>:8443/mylib/gauge.min.js it works !

                      Congratulations for MyController !

                      jkandasa 1 Reply Last reply Reply Quote 1
                      • jkandasa
                        jkandasa @fsgrazzutti last edited by

                        @fsgrazzutti Great catch! Thanks.

                        1 Reply Last reply Reply Quote 0
                        • First post
                          Last post

                        0
                        Online

                        647
                        Users

                        506
                        Topics

                        3.3k
                        Posts

                        Copyright © 2015-2022 MyController.org | Contributors | Localization