N3uron's Scripting module allows the execution of custom logic within the current N3uron node in response to various triggers, such as timers, tag changes, tag conditions, and more. This logic is implemented using a native JavaScript interpreter (Node.js) capable of executing user-provided code and granting access to both Node.js native libraries (e.g., fs, net, or HTTP) and the extensive Node.js ecosystem of libraries (e.g., through NPM). Furthermore, Scripting has complete access to the N3uron API, enabling direct interaction with tags (including real-time and historical data), alarms, retrieval of the current N3uron node's status, module status, and many other features.
The main features provided by this module include:
An unlimited number of scripts, each running in isolation on a separate operating system thread.
Multiple trigger types for script execution, including Startup, Periodic, and Tag Change.
Unlimited access to the N3uron API.
Access to native Node.js libraries as well as the full Node.js package ecosystem.
Simple script configuration through user-defined parameters.
The N3uron Scripting Assistant is a specialized AI tool available in the ChatGPT Store, designed to accelerate your work with N3uron's Scripting module. It provides expert assistance for building edge computing solutions through custom JavaScript logic—helping you configure triggers (startup, periodic, tag changes), access the N3uron API for real-time and historical data, leverage Node.js libraries and NPM packages, and implement powerful automations and integrations at the Edge.
Get code examples for N3uron API calls, Node.js native libraries (fs, net, HTTP), NPM ecosystem packages, custom libraries, event-driven scripts, and custom automation logic.
Receive configuration guidance.
Access best practices and troubleshooting support tailored to your specific industrial data challenges.
