Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
node-red-m2x
Advanced tools
A Node-RED node to store in M2X.
Run the following command in the root directory of your Node-RED install
npm install node-red-m2x
<ul>
<li><b>devices</b>
<ul>
<li>catalog
<ul>
<li><a href="https://m2x.att.com/developer/documentation/v2/device#List-Search-Public-Devices-Catalog"> Search Catalog </a>
<li> msg.payload - catalog parameters
</ul>
<li>create
<ul>
<li><a href="https://m2x.att.com/developer/documentation/v2/device#Create-Device"> Create new device </a>
<li> msg.payload - device parameters
</ul>
<!--TODO: Missing Documentation what the payload should look like--->
<li>createKey
<ul>
<li> Creates a new API key associated to the device
<li> msg.topic_id - The device id
<li> msg.payload - parameters
</ul>
<li>createTrigger
<ul>
<li><a href="https://m2x.att.com/developer/documentation/v2/device#Create-Trigger"> Create a new trigger associated with the specified device.</a>
<li> msg.topic_id - The device id
<li> msg.payload
</ul>
<li>deleteDevice
<ul>
<li><a href="https://m2x.att.com/developer/documentation/v2/device#Delete-Device"> Delete an existing device</a>
<li> msg.topic_id - The device id
</ul>
<li>deleteStream
<ul>
<li><a href="hhttps://m2x.att.com/developer/documentation/v2/device#Delete-Data-Stream"> Delete a stream</a>
<li> msg.topic_id - The device id
<li> msg.sub_topic_id - The stream name
</ul>
<li>deleteStreamValues
<ul>
<li><a href="https://m2x.att.com/developer/documentation/v2/device#Delete-Data-Stream-Values"> Delete values from a stream by a date range</a>
<li> msg.topic_id - The device id
<li> msg.sub_topic_id - The stream name
<li> msg.payload - parameters - time range
</ul>
<li>deleteTrigger
<ul>
<li><a href="https://m2x.att.com/developer/documentation/v2/device#Delete-Trigger"> Delete an existing trigger associated with a specific device.</a>
<li> msg.topic_id - The device id
<li> msg.sub_topic_id - The trigger id
</ul>
<li>groups
<ul>
<li><a href="https://m2x.att.com/developer/documentation/v2/device#List-Device-Groups"> List Groups of devices</a>
</ul>
<li>keys
<ul>
<li> Returns a list of API keys associated with the device
<li> msg.topic_id - The device id
</ul>
<li>list
<ul>
<li><a href="https://m2x.att.com/developer/documentation/v2/device#List-Search-Devices"> List Devices </a>
<li> msg.payload - The device id
</ul>
<li>location
<ul>
<li><a href="https://m2x.att.com/developer/documentation/v2/device#Read-Device-Location"> View device current location</a>
<li> msg.topic_id - The device id
</ul>
<li>log
<ul>
<li><a href="https://m2x.att.com/developer/documentation/v2/device#View-Request-Log"> Return a list of access log to the supplied device</a>
<li> msg.topic_id - The device id
</ul>
<li>postMultiple
<ul>
<li><a href="https://m2x.att.com/developer/documentation/v2/device#Post-Device-Updates--Multiple-Values-to-Multiple-Streams-"> Post multiple values to multiple streams</a>
<li> msg.topic_id - The device id
<li> msg.payload - parameters
</ul>
<li>postValues
<ul>
<li><a href="https://m2x.att.com/developer/documentation/v2/device#Post-Data-Stream-Values"> Post timestamped values to an existing stream</a>
<li> msg.topic_id - The device id
<li> msg.sub_topic_id - The stream name
<li> msg.payload - parameters - the values -
<pre>[{ "timestamp": "timeStamp" "value": "value" },
{ "timestamp": "timeStamp","value": "value>"}]
</ul>
<li>deleteDistribution
<ul>
<li><a href="https://m2x.att.com/developer/documentation/v2/distribution#Delete-Distribution">Delete an existing device distribution</a>
<li> msg.topic_id - The distribution id
</ul>
<li>deleteTrigger
<ul>
<li><a href="https://m2x.att.com/developer/documentation/v2/distribution#Delete-Trigger">Delete a trigger associated to the distribution</a>
<li> msg.topic_id - The distribution id
<li> msg.sub_topic_id - The trigger id
</ul>
<li>devices
<ul>
<li><a href="https://m2x.att.com/developer/documentation/v2/distribution#List-Devices-from-an-existing-Distribution"> Retrieve a list of devices added to the a device distribution </a>
<li> msg.topic_id - The distribution id
</ul>
<li>list
<ul>
<li><a href="https://m2x.att.com/developer/documentation/v2/distribution#List-Distributions">Retrieve a list of device distributions </a>
<li> msg.payload - List parameters
</ul>
<li>testTrigger
<ul>
<li><a href="https://m2x.att.com/developer/documentation/v2/distribution#Test-Trigger">Test a trigger by firing a fake value</a>
<li> msg.topic_id - The distribution id
<li> msg.sub_topic_id - The trigger id
</ul>
<li>trigger
<ul>
<li><a href="https://m2x.att.com/developer/documentation/v2/distribution#View-Trigger">Retrieve information about a trigger associated to a distribution</a>
<li> msg.topic_id - The distribution id
<li> msg.sub_topic_id - The trigger id
</ul>
<li>triggers
<ul>
<li><a href="https://m2x.att.com/developer/documentation/v2/distribution#List-Triggers"> Retrieve list of triggers associated with the distribution </a>
<li> msg.topic_id - The distribution id
</ul>
<li>update
<ul>
<li><a href="https://m2x.att.com/developer/documentation/v2/distribution#Update-Distribution-Details">Update an existing device distribution</a>
<li> msg.topic_id - The distribution id
<li> msg.payload - distribution parameters
</ul>
<li>updateDataStream
<ul>
<li><a href="https://m2x.att.com/developer/documentation/v2/distribution#Create-Update-Data-Stream">Create/Update a data stream associated with the distribution. </a>
<li> msg.topic_id - The distribution id
<li> msg.sub_topic_id - The stream name
<li> msg.payload - stream parameters
</ul>
<li>updateTrigger
<ul>
<li><a href="https://m2x.att.com/developer/documentation/v2/distribution#Update-Trigger">Update an existing trigger associated with the distribution</a>
<li> msg.topic_id - The distribution id
<li> msg.sub_topic_id - The trigger id
<li> msg.payload - trigger parameters
</ul>
<li>view
<ul>
<li><a href="https://m2x.att.com/developer/documentation/v2/distribution#View-Distribution-Details"> Retrieve information about an existing device distribution </a>
<li> msg.topic_id - The disribution id
</ul>
</ul>
</ul>
<ul>
<li><b>charts</b>
<ul>
<li>create
<ul>Get details of a chart
<li><a href="https://m2x.att.com/developer/documentation/v2/charts#Create-Chart">Create a new chart</a>
<li> msg.payload - chart parameters
</ul>
<li>deleteChart
<ul>
<li><a href="https://m2x.att.com/developer/documentation/v2/charts#Delete-Chart">Delete an existing chart</a>
<li> msg.topic_id - The chart id
</ul>
<li>list
<ul>
<li><a href="https://m2x.att.com/developer/documentation/v2/charts#List-Charts">Retrieve a list of charts that belongs to the user </a>
</ul>
<li>render
<ul>
<li><a href="https://m2x.att.com/developer/documentation/v2/charts#Render-Chart">Retrieve a rendering of a given chart as image format</a>
<li>msg.topic_id - The chart id
<li>msg.sub_topic_id - the image format : "svg" or "png"
</ul>
<li>update
<ul>
<li><a href="https://m2x.att.com/developer/documentation/v2/charts#Update-Chart">Update an existing chart</a>
<li> msg.topic_id - The chart id
<li> msg.payload - chart parameters -<pre>{ series : [{device: "device-id", stream:"stream_name" }]}</pre>
</ul>
<li>view
<ul>
<li><a href="https://m2x.att.com/developer/documentation/v2/charts#View-Chart-Details">Get details of a chart</a>
<li> msg.topic_id - The chart id
</ul>
</ul>
</ul>
<ul
<li><b>keys</b>
<ul>
<li>create
<ul>
<li><a href="https://m2x.att.com/developer/documentation/v2/keys#Create-Key">Create a new API Key</a>
<li> msg.payload - key parameters
</ul>
<li>del
<ul>
<li><a href="https://m2x.att.com/developer/documentation/v2/charts#Delete-Chart">Delete an existing chart</a>
<li> msg.topic_id - The key id
</ul>
<li>list
<ul>
<li><a href="https://m2x.att.com/developer/documentation/v2/keys#List-Keys">List all the Master API Keys that belongs to the authenticated user</a>
</ul>
<li>regenerate
<ul>
<li><a href="https://m2x.att.com/developer/documentation/v2/keys#Regenerate-Key">Regenerate an API Key token</a>
<li> msg.topic_id - The key id
</ul>
<li>update
<ul>
<li><a href="https://m2x.att.com/developer/documentation/v2/keys#Update-Key">Update API Key properties</a>
<li> msg.topic_id - The key id
<li> msg.payload - key parameters
</ul>
<li>view
<ul>
<li><a href="https://m2x.att.com/developer/documentation/v2/keys#View-Key-Details">Return the details of the API Key supplied</a>
<li> msg.topic_id - The key id
</ul>
</ul>
</ul>
msg.topic = "devices";
msg.action = "createTrigger";
msg.topic_id = "1b2f98cc3b31b527c27ba14fe46c615c";
msg.payload = { "stream": "heat",
"name": "Hightemperature3",
"condition": ">",
"value": 100,
"callback_url": "http://example.com",
"status": "enabled",
"send_location": true };
</pre> <H4> Show device Details<H4> <H5> Function Code </H5> <pre> msg.topic = "devices";<br> msg.action = "view";<br> msg.topic_id = "1b2f98cc3b31b527c27ba14fe46c615c";<br> return msg;<br> </pre> </div>
FAQs
A Node-RED node to AT&T M2X
The npm package node-red-m2x receives a total of 0 weekly downloads. As such, node-red-m2x popularity was classified as not popular.
We found that node-red-m2x demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.