Export data to JSON for free

Readme

Niagara N4 JSON Point Exporter

A lightweight Niagara N4 Program object that exports live control point values from a selected folder to a JSON file in the station shared directory.

This tool is intended for simple data access, lightweight dashboards, commissioning checks, testing, and small integrations where a full middleware platform is unnecessary.

What it does

  • Reads live control points from a configured Niagara folder

  • Exports the first configured number of points to valid JSON

  • Includes point name, ORD, type, output value, and status

  • Writes the JSON file to the station shared folder

  • Supports a configurable source folder and output folder

Required slots

Create the following slots on the Program object:

Slot Name

Type

Description

sourceOrd

BOrd

The Niagara folder to crawl for points

maxPoints

BInteger

Maximum number of points to export

outputFolder

BString

Folder name under the station shared directory

Example slot values:

sourceOrd: slot:/Drivers/NiagaraNetwork/MySite/points/AHU_01
maxPoints: 10
outputFolder: firstTenToJson

Output location

The JSON file is written under the station shared folder.

Example:

shared/firstTenToJson/AHU_01/AHU_01_first10Points_20260605_224329.json

Example JSON output

{
  "exportTimestamp": "2026-06-05T22:43:29+1000",
  "sourceName": "AHU_01",
  "sourceOrd": "slot:/Drivers/NiagaraNetwork/MySite/points/AHU_01",
  "maxPoints": 10,
  "count": 10,
  "points": [
    {
      "index": 0,
      "name": "Return_Temp",
      "ord": "slot:/Drivers/NiagaraNetwork/MySite/points/AHU_01/Return_Temp",
      "type": "control:NumericPoint",
      "out": "24.5 {ok} @ 16",
      "status": "{ok} @ 16"
    }
  ]
}

Use cases

  • Simple web dashboards

  • Commissioning pages

  • Point visibility checks

  • Lightweight integrations

  • Testing JSON export from Niagara without paid middleware

  • Local tools that need live point values

Notes

This is a simple file-based JSON exporter. It is not intended to replace a secured API, full integration platform, or enterprise data pipeline.

Review station permissions, shared folder access, and network exposure before making exported files available outside a trusted environment.

Limitations

  • Exports live point values only

  • Does not export histories

  • Does not parse numeric value, status, and priority into separate fields yet

  • Does not provide authentication or access control by itself

  • External access depends on Niagara station and web server configuration

Version

Initial test release.

Built to prove that Niagara N4 can export live point data to JSON using a standard Program object and file output.

Copyright - Free for any use

Comment on this Package

Export data to JSON for free

Watchers
1
Stars
0
76 views • 0 downloads
Package Details

Direct Link

Last Updated

6 days ago

License type

MIT License

Compatability

Niagara 4 Only

You may also like...