npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

node-red-contrib-onesait-platform

v1.0.6

Published

Client library nodes to interact with onesait Platform

Downloads

3

Readme

onesait-platform Node-RED Client

onesait-platform

Copyright notice

© 2013-18 Minsait

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

API documentation

Before using the SSAP API for the first time, we strongly recommend that you learn the main concepts of the Sofia2 platform. They have been included in the Sofia2 developer documentation, which can be downloaded from http://sofia2.com/desarrollador_en.html.

The Api source code comes with a test suite where you can see an usage example of every possible query and format

Repository contents

This repository contains the following nodes to interact with onesait-platform from Node-RED:

  • onesait-platform-connection-config: Configuration nodes are scoped globally by default, this means the state will be shared between flows. This node represent a shared connection to a remote system. In that instance, the config node is responsible for creating the connection (MQTT) and making it available to the nodes that use the config node. REST interface is also a possibility to connect to the platform. The following parameters are required to define the connection:

    • Protocol: MQTT or REST. For this connection is necessary to indicate the IP and Port number of the Endpoint. Our public available CloudLab instance would have this configuration:
    REST: https://cloudlab.onesaitplatform.online
    MQTT: ping cloudlab.onesaitplatform.online and obtain IP. Port is 1883 as defined at IANA as MQTT over TCP
    • IoTClient and Instance: A valid IoTClient registered within the platform. To create one please go to: https://cloudlab.onesaitplatform.online/controlpanel/devices/list
    • Token: Identification number for the IoTClient in use.
    • Renovate session: Connection renewal time (used only in MQTT connection).
  • onesait-platform-delete: This node deletes data from an ontology according to a query, or by RTDB ID. The following parameters are required:

    • Ontology: Name of the ontology. To create an ontology please go to: https://cloudlab.onesaitplatform.online/controlpanel/ontologies/list
    • Delete Type: Type may be by query-based or by Id.
    • Query/Id: Query or Id to delete, depending on the chosen type.
    • Query Type: SQL or NATIVE(MongoDB for CloudLab deployment)
  • onesait-platform-insert: This node inserts data in an ontology. The following parameters are required:

    • Ontology: Name of the ontology. To create an ontology please go to: https://cloudlab.onesaitplatform.online/controlpanel/ontologies/list
    • Instance: A valid JSON instance for the selected ontology.
  • onesait-platform-leave: This node close the actual session with the platform.

  • onesait-platform-query: This node execute a query on an ontology. The following parameters are required:

    • Ontology: Name of the ontology. To create an ontology please go to: https://cloudlab.onesaitplatform.online/controlpanel/ontologies/list
    • Query: Query to execute.
    • Query Type: SQL or NATIVE(MongoDB for CloudLab deployment)
  • onesait-platform-update: This node updates data in an ontology. The following parameters are required:

    • Ontology: Name of the ontology. To create an ontology please go to: https://cloudlab.onesaitplatform.online/controlpanel/ontologies/list
    • Update Type: Type may be by query-based or by Id.
    • Id: Instance Id to be updated.
    • Query: Query to update.
    • Query Type: SQL or NATIVE(MongoDB for CloudLab deployment)
  • onesait-platform-subscribe: This node subscribes to any interaction with the selected ontology. The following parameters are required:

    • Ontology: Name of the ontology. To create an ontology please go to: https://cloudlab.onesaitplatform.online/controlpanel/ontologies/list
    • Query Type: SQL or NATIVE(MongoDB for CloudLab deployment)

Example Flow

  • Demo flow: An example flow is available and ready to test at https://flows.nodered.org/flow/989c8da7c08465f132882f24740c835f

Contact information

If you need support from us, please feel free to contact us at [email protected].

And if you want to contribute, send us a pull request.