FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Standardise data schemas of events · Issue #67 · WebThingsIO/virtual-things-adapter · GitHub

Repository navigation

Standardise data schemas of events #67

Open

Description

The event description on the actionsEventsThing needs updating from:

    {
      name: 'virtualEvent',
      metadata: {
        description: 'An event from a virtual thing',
        type: 'number',
      },
    }

to:

    {
      name: 'virtualEvent',
      metadata: {
        description: 'An event from a virtual thing',
        data: {
          type: 'number'
        }
      },
    }

The event description on the alarm thing needs updating from:

   {
      name: 'alarmEvent',
      metadata: {
        description: 'An alarm event from a virtual thing',
        type: 'string',
        '@type': 'AlarmEvent',
        readOnly: true,
      },
    }

to

   {
      name: 'alarmEvent',
      metadata: {
        description: 'An alarm event from a virtual thing',
        data:
          {
            type: 'string'
          }
        '@type': 'AlarmEvent',
      },
    }

(Note that readOnly was not valid in the legacy Web Thing API, it is technically valid in the W3C TD spec if inside data but is meaningless since all events are read-only.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions


      Back | FazBrowse Home | New Git URL