aw oneM2M short names

Created By: Andreas Kraft, 0 Stars, Last Updated: 21/07/21 15:36:45

Love this? Please consider supporting its creator by starring or sponsoring this project on GitHub!

From the project's README:

Alfred Workflow - Find oneM2M Short Names

This Alfred workflow provides a search for oneM2M attribute long and short names, and response status codes.

Installation

Installation

External Tools

  • jq - Command line JSON processor
    The workflow requires the jq command line JSON processor. You need to install it separately, for example via brew (see jq Homebrew formulae).

      brew install jq

The workflow by default expects jq in the directory /usr/local/bin, but this can be configured in the workflow.

Usage

sn : Attributes and short names

  • Alfred keyword trigger in Alfred: sn
  • Pressing return copies both the long and the short name to the clipboard.
  • Modifier keys for the search result:
    • Alt: show attribute categories
    • Cmd: show documents where an attribute is defined

rsc : Response Status Codes

  • Alfred keyword trigger in Alfred: rsc
  • Pressing return copies the oneM2M Response Status Code and the description to the clipboard.
  • Modifier keys for the search result:
    • Alt: show detailed http status code
    • Cmd: show detailed CoAP response code

Updating Attribute Mappings and Response Status Codes

The attribute mappings and information are located in the file attributes.json in the workflow directory. An updated version of this file can always be generated by using the script from the ankraft/onem2m-extract-attributes project. It then needs to be copied to the workflow's installation directory.

The response status codes and the mappings are located in the file responseStatusCodes.json in the workflow directory.

Changes

See the CHANGELOG.md file.

License

This project is licensed under the terms of the BSD 3-Clause License.