{"id":18483868,"url":"https://github.com/node-opcua/node-wot-opcua-tools","last_synced_at":"2025-04-08T18:32:51.782Z","repository":{"id":66256786,"uuid":"455990630","full_name":"node-opcua/node-wot-opcua-tools","owner":"node-opcua","description":"Tools for bridging (node-)WoT and (node-)OPCUA","archived":false,"fork":false,"pushed_at":"2022-04-22T20:13:35.000Z","size":147,"stargazers_count":5,"open_issues_count":1,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-04-14T00:58:29.310Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/node-opcua.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2022-02-05T21:32:56.000Z","updated_at":"2023-09-29T18:54:26.000Z","dependencies_parsed_at":"2023-02-20T20:01:05.488Z","dependency_job_id":null,"html_url":"https://github.com/node-opcua/node-wot-opcua-tools","commit_stats":{"total_commits":14,"total_committers":1,"mean_commits":14.0,"dds":0.0,"last_synced_commit":"586c35048e3ca92feed950d37f4bd024287622f6"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/node-opcua%2Fnode-wot-opcua-tools","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/node-opcua%2Fnode-wot-opcua-tools/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/node-opcua%2Fnode-wot-opcua-tools/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/node-opcua%2Fnode-wot-opcua-tools/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/node-opcua","download_url":"https://codeload.github.com/node-opcua/node-wot-opcua-tools/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247280190,"owners_count":20912966,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-06T12:37:38.083Z","updated_at":"2025-04-08T18:32:51.757Z","avatar_url":"https://github.com/node-opcua.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n### node-wot opcua -tool\n\n\nA set of tool to bridge the Web of Things protocol and OPCUA.\n\n#### converting an OPCUA object to a WoT \n\nThe `opcua_classic_to_wot` command creates a Wot type definition  file by browsing and crawling a particular\nOPCUA object. It then starts an HTTP servient, so you can interact with the remote OPCUA server to read, write, subscribe to variables, or call methods.\n\n\nfor instance\n\n```\n$ ts-node src/opcua_classic_to_wot.ts opc.tcp://localhost:48010  /3:BuildingAutomation/3:AirConditioner_1\n``` \n\n#### demo\n\n``` \n$ ts-node src/opcua_classic_to_wot.ts opc.tcp://opcuademo.sterfive.com:26543  /[nsDI]:DeviceSet/[nsOwn]:CoffeeMachine\n\n```\nyou can then visit the \n\nhttp://localhost:8080/coffee-machine/\n\nor \nhttp://localhost:8080/coffee-machine/properties\n\n\n### command getThing\n\nUsage: \n    \n    node-wot-opcua getThing [options]\n\nconnect to an OPCUA to browse a node and convert it to a ThingDescription\n\nOptions\n\n| options | comment |\n|---------|---------|\n|  -e, --endpoint \u003cOPCUAendpoint uri\u003e | the opcua endpoint in the form opc.tcp://machine:port (default: \"opc.tcp://opcuademo.sterfive.com:26543\") |\n|-n, --node  \u003cbrowsePath\u003e |    the browse path to  OPCUA object node to convert (default: \"/[nsDI]:DeviceSet/[nsOwn]:CoffeeMachine\") |`\n| -o, --output [filename]  |          the output JSON file name |\n|  -h, --help            |              display help for command |\n\n\nexamples:\n\n    node-wot-opcua getThing -e opc.tcp://localhost:4840 -n /3:BuildingAutomation/3:AirConditioner_1 -o thing1.json\n\n    node-wot-opcua getThing -e opc.tcp://localhost:4840 -n /Server/ServerStatus -o thing1.json\n\n\n### command runServer\n\n\nUsage: \n\n    node-wot-opcua runServer [options]\n\nrun an OPCUA thing description and turn it to a WOT server with a http servient\n\nOptions:\n\n*   -t, --thing \u003cthing.json\u003e  the thing description file\n*  -p, --port \u003cport\u003e         the http port (default: \"3000\")\n*  -h, --help                display help for command\n\n\nexample:\n\n    $ node-wot-opcua runServer -t \"thing1.json\"\n\n#### converting an OPCUA PubSub datastream to a WoT \n\nThe `opcua_pubsub_to_wot` command creates a Wot type definition  file from \nan OPCUA PubSub MQTT datastream (JSON encoding).\n\nIt then starts an HTTP servient, so you can interact with the remote OPCUA server to read or subscribe to variables.\n\n\nhttp://localhost:3000/server-status/properties/CurrentTime?type=Value\n\n\"2022-02-06T09:05:49.690Z\"\n\nhttp://localhost:3000/server-status/properties/CurrentTime?type=Variant\n\n\"2022-02-06T09:05:49.690Z\"\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnode-opcua%2Fnode-wot-opcua-tools","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnode-opcua%2Fnode-wot-opcua-tools","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnode-opcua%2Fnode-wot-opcua-tools/lists"}