New Node-RED Example

We’ve posted a new Node-RED example that shows how to read and write to G4 digital I/O.

Read-Write Flow

You can use this example even if you don’t have Opto 22’s Digital I/O Carrier Board for Raspberry Pi® or Digitial I/O for Raspberry Pi Starter Kit (AC/DC) (but who would want to?)

We’ve also redesigned the code sample pages for use with Raspberry Pi—check it out!

Node-RED Examples

Check out our new Node-RED examples:

groov Data Store REST API Released

groov mobile operator interface users can monitor and control all kinds of sensors and equipment in the physical world. Now they can also interact with data from an online service, a database, or another software application.

The data is held in a groov Data Store, and the groov Data Store RESTful API gives you access to it.

For more information, see the new groov REST API section. For more on groov, visit groov.com

OptoBlog: Build a Raspberry Pi with Node-RED and Industrial GPIO

Need help building a Node-RED app that uses a headless Raspberry Pi connected to industrial digital I/O?

Check out Benson H’s latest OptoBlog for step-by-step instructions.

C# Code Sample: Read a Point

We’ve posted a C# code sample that uses the SNAP PAC REST API to read a point on a demo controller.

The sample also shows how to authenticate to the API.

Node-RED for groov v1.0.0 Released

We’re very pleased to announce the availability of Node-RED nodes for communicating with groov.

Node-RED is a “tool for wiring together hardware devices, APIs and online services in new and interesting ways.”

The groov nodes make use of the new groov Data Store device and API available in groov 3.3.

The nodes are open source software, licensed with the Apache 2.0 license. They are published in the central npmjs.com registry, and the source code is available on GitHub.

For more information, visit the Node-RED for groov section of the Opto 22 Developer site.

Code Samples for Raspberry Pi

With the release of the Digital I/O System for Raspberry Pi®, we’ve posted code samples on developer.opto22.com to read and write to I/O modules from your Raspberry Pi.

The website also has diagrams to show how the Carrier Board maps the Pi’s GPIO pins to I/O modules on a mounting rack, and a mapping overlay you can print and place over your Pi’s pins.

Opto 22’s Digital I/O System for Raspberry Pi lets you use a Raspberry Pi to switch real-world electrical loads like industrial motors and pumps, and sense status through industrial-grade sensors.

It’s ideal for prototypes, proofs of concept, and environments in which an industrially hardened controller is not required. You can use your favorite Pi-supported programming language and choose from a wide variety of digital I/O modules to fit what you want to do.

For more information, see the Raspberry Pi section of developer.opto22.com.

Raspberry Pi is a trademark of the Raspberry Pi Foundation.

Use OPENJSON to Insert Tag Values

We’ve posted code samples and instructions for using the SNAP PAC REST API and T-SQL to import tag values from a controller into a SQL Server 2016 database.

The instructions also explain how you can get Microsoft’s free developer version of SQL Server 2016.

To run the code sample, you’ll need to enable SQL Server’s OLE Automation stored procedures. A script for doing this is also available on the website.

The code sample is available at http://developer.opto22.com/rest/pac/examples/use-openjson-to-insert-tag-values/

Node-RED for SNAP PAC v1.0.1 Released

The Node-RED for SNAP PAC nodes have been updated to v1.0.1.

From the changelog:

  • Read node:
    • Added option to specify on which msg property that the response will be placed.
    • Added option to allow the topic to be set within the Read node.
  • Read and Write nodes:
    • SSL certificate files can now be specified by just a filename, not only a full path. If using just a filename, it will load from a directory named ‘certs’ inside the Node-RED user’s directory. For example, /home/user/.node-red/certs/filename.crt.
    • Added a timeout of 30 seconds. This affects the nodes once they’re connected to the PAC.

Node-RED for SNAP PAC v1.0.0 Released

We’re very pleased to announce the availability of Node-RED nodes for communicating with SNAP PAC industrial controllers.

Node-RED is a “tool for wiring together hardware devices, APIs and online services in new and interesting ways.”

The SNAP PAC nodes make use of the new REST API available in PAC firmware 9.5. The nodes are open source software, licensed with the Apache 2.0 license. They are published in the central npmjs.com registry, and the source code is available on GitHub.

For more information, visit the Node-RED for SNAP PAC section of the Opto 22 Developer site.

RSS Subscribe


See more posts from the News Archive.