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

    Custom Widget to send payload to sensor variable

    scheduled pinned locked moved General Discussion
    7 posts 3 posters 2.9k views 1 watching
    loading-more-posts
    • oldest-to-newest
    • newest-to-oldest
    • most-votes
    reply
    • reply-as-topic
    guest-login-reply
    deleted-message
    • P offline
      paul
      global:last-edited-by,

      Is there an example for sending a payload to a sensor variable? I want to create my own html button to send a payload to a sensor variable.

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

        @paul Hope this one will help you

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

          @jkandasa I think i am talking about custom html buttons. I do use custom buttons for IR sensors. Because i am making a confirmation button, i need to use my own html.

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

            @paul try this one and use REST API to send data to controller from GUI. Refer REST API >> https://github.com/mycontroller-org/mycontroller/blob/development/dist/src/main/package/www/services/rest_services.js

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

              Can you pleeeease share an example of how to control/change sensors variables from my own html (custom widget)?

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

                @mdoxan your needs not addressed by http://forum.mycontroller.org/topic/20/widget-sensor-custom-buttons ?

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

                  With Sensor custom buttons I can add only buttons ... I need to add also other HTML info ... Can I embed those buttons in my custom HTML?
                  Thanks a lot for your answers

                  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