This Alfred workflow provides a search for oneM2M attribute long and short names, resource types, response status codes, and more.
- Clone the repository or download the file aw-oneM2M-short-names.alfredworkflow
- Install the workflow in Alfred by double-clicking on it.
-
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.
This keyword trigger just lists the available workflow keywords in the sub-title.
This workflow will return the allowed operations for the integer bitfield that is an access control operation.
- Alfred keyword trigger:
acop
- Argument: either an integer number between 1 and 63 that represents the bitfield of allowed operations, or any combination of the characters c(reate), r(etrieve), u(pdate), d(elete), d(i)scovery to calculate the acop number
- Pressing
return
copies the list of allowed operations for the given acop integer value, or the calculated number
- Alfred keyword trigger:
rsc
- Argument: integer value that is a oneM2M Response Status Code
- Pressing
return
copies the oneM2M Response Status Code and the description to the clipboard - Modifier keys for the search result:
Cmd
: show detailed CoAP response codeAlt
: show detailed http status code
- Alfred keyword trigger:
sn
- Argument: oneM2M attribute name or short name
- Pressing
return
copies both the long and the short name to the clipboard - Modifier keys for the search result:
Cmd
: show documents where an attribute is definedAlt
: show attribute categoriesCtrl
: copy attribute name to clipboardShift
: copy short name to clipboard
- Alfred keyword trigger:
ty
- Argument: oneM2M resource name or short name
- Pressing
return
copies the oneM2M Resource Name, its short name, and the resource type to the clipboard - Modifier keys for the search result:
Cmd
: copy resource type name to clipboardAlt
: copy resource type to clipboardShift
: copy short name to clipboard
This workflow supports Alfred's Universal Actions. Just mark a short name, attribute, or result status code in your text and hit the Alfred's selection hotkey.
The attribute mappings are defined 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 mappings are defined in the file responseStatusCodes.json, and the resource type mappings are defined in resourceTypes.json in the same directory.
See the CHANGELOG.md file for a detailed list of additions and changes.
This project is licensed under the terms of the BSD 3-Clause License.
oneM2M Partners Type 1 (ARIB, ATIS, CCSA, ETSI, TIA, TSDSI, TTA, TTC) jointly own all copyright on the Technical Specifications and Technical Reports developed and approved within oneM2M. See oneM2M IPRs for further details.