• header.categories
    • header.recent
    • header.tags
    • header.popular
    • register
    • login

    Custom widget

    scheduled pinned locked moved Dashboard
    custom widgetguagedashboard
    43 posts 5 posters 36.5k views 3 watching
    loading-more-posts
    • oldest-to-newest
    • newest-to-oldest
    • most-votes
    reply
    • reply-as-topic
    guest-login-reply
    deleted-message
    • E offline
      esawyja
      global:last-edited-by,

      Thank you!!!

      one-reply-to-this-post last-reply-time reply quote 0
      • E offline
        esawyja
        global:last-edited-by, jkandasa

        Hi all
        Did something change with the build
        0_1486725393898_image.png

        As when I run the scripts after I've upgraded I get this

        {
          "uuid": "11d7d0c8-45da-4bc0-988b-40f83bcd7d0e",
          "temperatureSen": {
            "id": 7,
            "uid": "upstairs-temp",
            "resourceType": "SENSOR_VARIABLE",
            "resourceId": 255,
            "resourceName": "[G]:MySensors >> [N]:50:Kiklo Temperature and Hum >> [S]:1:Temperature >> [SV]:Temperature"
          }
        }
        

        The UID tag entry seem ok to me
        0_1486725529297_image.png

        Regards

        jkandasaJ one-reply-to-this-post last-reply-time reply quote 0
        • jkandasaJ offline
          jkandasa @esawyja
          global:last-edited-by,

          @esawyja What is the issue are you seeing?

          one-reply-to-this-post last-reply-time reply quote 0
          • E offline
            esawyja
            global:last-edited-by,

            Hi
            I don't see the gauges anymore and it does not return a reading for the sensor when I run the script, what I posted above is it, I remember with the previous version, I got the temp reading in the output. Or did that change?
            Thanks

            jkandasaJ one-reply-to-this-post last-reply-time reply quote 0
            • jkandasaJ offline
              jkandasa @esawyja
              global:last-edited-by,

              @esawyja

              Yes, there is a change. You have to get resource by calling,

              var temperatureSen = mcApi.uidTag().getByUid("my-sensor-1").getResource(); 
              
              one-reply-to-this-post last-reply-time reply quote 0
              • E offline
                esawyja
                global:last-edited-by, esawyja

                mmmh now I'm getting a new error....
                0_1486892286040_image.png

                one-reply-to-this-post last-reply-time reply quote 0
                • E offline
                  esawyja
                  global:last-edited-by,

                  I do get the readings now, when I run the script, the gauge.min.js is accessible, just the gauge does not want to work, with the error above... Please anyone? I'm out of ideas

                  one-reply-to-this-post last-reply-time reply quote 0
                  • E offline
                    esawyja
                    global:last-edited-by,

                    Hi all,
                    This problem is driving me insane, does anyone please have some advice on where to look for this problem?
                    Regards

                    jkandasaJ one-reply-to-this-post last-reply-time reply quote 0
                    • jkandasaJ offline
                      jkandasa @esawyja
                      global:last-edited-by,

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

                      T one-reply-to-this-post last-reply-time reply quote 0
                      • E offline
                        esawyja
                        global:last-edited-by,

                        @jkandasa said:

                        temperatureSen.value

                        THANK YOU!!!! It works now

                        one-reply-to-this-post last-reply-time reply quote 1
                        • E offline
                          esawyja
                          global: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?

                          jkandasaJ one-reply-to-this-post last-reply-time reply quote 1
                          • jkandasaJ offline
                            jkandasa @esawyja
                            global:last-edited-by, jkandasa

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

                            one-reply-to-this-post last-reply-time reply quote 0
                            • E offline
                              esawyja
                              global:last-edited-by,

                              Thanks so much!!

                              one-reply-to-this-post last-reply-time reply quote 0
                              • T offline
                                Tag MOD @jkandasa
                                global: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!!!

                                one-reply-to-this-post last-reply-time reply quote 0
                                • F offline
                                  fsgrazzutti
                                  global:last-edited-by,

                                  @jkandasa

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

                                  jkandasaJ one-reply-to-this-post last-reply-time reply quote 0
                                  • jkandasaJ offline
                                    jkandasa @fsgrazzutti
                                    global:last-edited-by,

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

                                    F one-reply-to-this-post last-reply-time reply quote 0
                                    • F offline
                                      fsgrazzutti @jkandasa
                                      global: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 !

                                      jkandasaJ one-reply-to-this-post last-reply-time reply quote 1
                                      • jkandasaJ offline
                                        jkandasa @fsgrazzutti
                                        global:last-edited-by,

                                        @fsgrazzutti Great catch! Thanks.

                                        one-reply-to-this-post last-reply-time reply quote 0
                                        • first-post
                                          last-post

                                        0

                                        online

                                        644

                                        users

                                        532

                                        topics

                                        3.4k

                                        posts
                                        Copyright © 2015-2025 MyController.org | Contributors | Localization