Announcement

Collapse
No announcement yet.

iPort and listening for JSON command

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • iPort and listening for JSON command

    I have just bought a iPort Surface Mount to use an iPad with HSTouch. I actually ordered on without buttons n=but was sent one with buttons.

    http://iportproducts.com/surfacemoun...ntbuttonsintro

    The buttons send a JSON message as follows:
    {"deviceid":"SurfaceMount","model":"iPortSM6B","macaddr":"00 80A38A4002",
    "version":"V6","upLme":"21301","evenfme":"21301","events ":[{"label":"key 3","state":"1"}]}

    I have done a bit of script progamming. Can some one get me started as to how to get HS3 to listen, capture and "import" this data into an HS3 script for multiplication.

    Thanks

  • #2
    This is one of those things that may be a bit painful - when you say it sends data what does it do - does it post to a TCP socket, make a HTTP POST/PUT or some other method?
    My Plugins:

    Pushover 3P | DoorBird 3P | Current Cost 3P | Velleman K8055 3P | LAMetric 3P | Garadget 3P | Hive 3P |
    Yeelight 3P | Nanoleaf 3P

    Comment


    • #3
      I'm not sure.

      If you telnet the device every time a button is pressed it transmits the JSON information.

      Does that help narrow it down ?

      Comment


      • #4
        That would point to the first thought really, unless there is the ability in the settings to specify a web server to post to. Will depend on the documentation really, I think the only option if it is on a socket is to either write your own plugin (painful) or try drules IP plugin (I've no experience of that myself).
        My Plugins:

        Pushover 3P | DoorBird 3P | Current Cost 3P | Velleman K8055 3P | LAMetric 3P | Garadget 3P | Hive 3P |
        Yeelight 3P | Nanoleaf 3P

        Comment


        • #5
          Originally posted by SgtBilko View Post
          I'm not sure.

          If you telnet the device every time a button is pressed it transmits the JSON information.

          Does that help narrow it down ?
          It appears that you will need to write a script that will telnet to the device and stay connected performing a loop for each button press. The script will need to convert the received JSON message to a http get/post call in the format expected by HS3'S JSON interface (http://homeseer.com/support/homeseer...nk/default.htm)

          Comment


          • #6
            Anyone this is doable enough to order them and hope to do later?

            Comment


            • #7
              I just requested their API. I by no means am capable enough of building a plugin, but maybe someone here is!

              Below is the link to where we can request the API:

              https://iportproducts.com/smbuttonsconfig

              Comment


              • #8
                Was this ever made into a plug-in or was a solution ever figured out? I would love to use one of these.

                Comment

                Working...
                X