GroveStreams

folder creation during auto-component registration563

Coburn private msg quote post Address this user
Im having trouble creating a folder during dynamic component creation. My new component always seems to be created in the root Components folder.

I can manually create a folder using the observation studio, drag the newly created component to the folder, then acquire the data no problem. But i would like to have the folder created with the new component on first contact by my device.

In addition, I havent been able to find where a folder can be defined in component templates. Perhaps what i am asking for doesnt exist?

Any suggestions would be welcome!

The following is the json put feed i am using.

{
"feed": {
"time": [
1763259073000
],
"component": [
{
"componentId": "frame_1",
"compTmplId": "simple_template",
"createDefault": false,
"folder": "/Components/Simple",
"defaults": {
"name": "Frame One",
"description": "Simple Frame",
"folder": "/Components/Simple"
},
"stream": [
{
"defaults": {
"streamType": "rdm_stream",
"description": "Current IP Address",
"name": "frame_1.IPA",
"valueType": "STRING",
"unitId": "noSymbol"
},
"streamId": "ipa",
"data": [
"192.168.0.103"
]
}
]
}
]
}
}
Post 1 IP   flag post
MikeMills private msg quote post Address this user
Our documentation is incorrect. It's folderPath:

{
  "feed": {
    "time": [
      1763259073000
    ],
    "component": [
      {
        "componentId": "frame_1",
        "compTmplId": "simple_template",
        "createDefault": false,
        "folderPath": "/Components/Simple",
        "defaults": {
          "name": "Frame One",
          "description": "Simple Frame"
        },
        "stream": [
          {
            "defaults": {
              "streamType": "rdm_stream",
              "description": "Current IP Address",
              "name": "frame_1.IPA",
              "valueType": "STRING",
              "unitId": "noSymbol"
            },
            "streamId": "ipa",
            "data": [
              "192.168.0.103"
            ]
          }
        ]
      }
    ]
  }
}


The non-advanced HTTP API uses folder so we're going to adjust the server to look for both.
Post 2 IP   flag post
3072 2 2
Log in or sign up to compose a reply.