diff --git a/package-lock.json b/package-lock.json index 91d720a..0eeadb6 100644 --- a/package-lock.json +++ b/package-lock.json @@ -2232,6 +2232,10 @@ "version": "1.0.3", "license": "MIT" }, + "node_modules/counter-thing": { + "resolved": "things/counter-thing/http/ts", + "link": true + }, "node_modules/crc": { "version": "4.3.2", "license": "MIT", @@ -7424,6 +7428,55 @@ } } }, + "things/counter-thing/http/ts": { + "name": "counter-thing", + "version": "1.0.0", + "dependencies": { + "@node-wot/binding-http": "0.8.16", + "@node-wot/core": "0.8.16", + "dotenv": "^16.0.3", + "winston": "^3.8.2", + "winston-loki": "^6.1.2" + }, + "devDependencies": { + "@types/debug": "^4.1.12", + "@types/node": "^18.15.11", + "@types/node-fetch": "^2.6.11", + "ts-node": "^10.9.1", + "typescript": "^5.0.4" + } + }, + "things/counter-thing/http/ts/node_modules/@types/node": { + "version": "18.19.121", + "resolved": "https://registry.npmjs.org/@types/node/-/node-18.19.121.tgz", + "integrity": "sha512-bHOrbyztmyYIi4f1R0s17QsPs1uyyYnGcXeZoGEd227oZjry0q6XQBQxd82X1I57zEfwO8h9Xo+Kl5gX1d9MwQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "undici-types": "~5.26.4" + } + }, + "things/counter-thing/http/ts/node_modules/typescript": { + "version": "5.9.2", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.9.2.tgz", + "integrity": "sha512-CWBzXQrc/qOkhidw1OzBTQuYRbfyxDXJMVJ1XNwUHGROVmuaeiEm3OslpZ1RV96d7SKKjZKrSJu3+t/xlw3R9A==", + "dev": true, + "license": "Apache-2.0", + "bin": { + "tsc": "bin/tsc", + "tsserver": "bin/tsserver" + }, + "engines": { + "node": ">=14.17" + } + }, + "things/counter-thing/http/ts/node_modules/undici-types": { + "version": "5.26.5", + "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-5.26.5.tgz", + "integrity": "sha512-JlCMO+ehdEIKqlFxk6IfVoAUVmgz7cU7zD/h9XZ0qzeosSHmUJVOzSQvvYSYWXkFXC+IfLKSIffhv0sVZup6pA==", + "dev": true, + "license": "MIT" + }, "things/data-schema-thing/http/ts": { "name": "http-data-schema-thing", "version": "1.0.0", diff --git a/things/advanced-coffee-machine/README.md b/things/advanced-coffee-machine/README.md index ba664f4..03aa08d 100644 --- a/things/advanced-coffee-machine/README.md +++ b/things/advanced-coffee-machine/README.md @@ -26,4 +26,4 @@ This advanced coffee machine simulates a device with resource management, drink ## Usage -The coffee machine exposes properties, actions, and events for managing drinks and resources. See the [Thing Description](http://plugfest.thingweb.io/http-advanced-coffee-machine) for details on endpoints and data formats. \ No newline at end of file +The coffee machine exposes properties, actions, and events for managing drinks and resources. See the [Thing Description](http://plugfest.thingweb.io/http-advanced-coffee-machine) for details on endpoints and data formats. diff --git a/things/calculator/README.md b/things/calculator/README.md index beb7816..f74082d 100644 --- a/things/calculator/README.md +++ b/things/calculator/README.md @@ -30,9 +30,9 @@ The features are the same across all protocols - all implementations support the The calculator exposes basic arithmetic operations through multiple protocols. See the Thing Descriptions for details on endpoints and data formats: -- [HTTP Express Simple Calculator](https://github.com/eclipse-thingweb/test-things/blob/main/things/calculator/http/express/http-simple-calculator-thing.td.jsonld) -- [HTTP Express Content Negotiation Calculator](https://github.com/eclipse-thingweb/test-things/blob/main/things/calculator/http/express/http-content-negotiation-calculator-thing.td.jsonld) -- [HTTP Flask Calculator](http://plugfest.thingweb.io/http-flask-calculator) -- [CoAP Simple Calculator](https://github.com/eclipse-thingweb/test-things/blob/main/things/calculator/coap/js/coap-simple-calculator-thing.td.jsonld) -- [CoAP Content Negotiation Calculator](https://github.com/eclipse-thingweb/test-things/blob/main/things/calculator/coap/js/coap-content-negotiation-calculator-thing.td.jsonld) -- [MQTT Calculator](https://github.com/eclipse-thingweb/test-things/blob/main/things/calculator/mqtt/js/mqtt-calculator.td.json) +- [HTTP Express Simple Calculator](https://github.com/eclipse-thingweb/test-things/blob/main/things/calculator/http/express/http-simple-calculator-thing.td.jsonld) +- [HTTP Express Content Negotiation Calculator](https://github.com/eclipse-thingweb/test-things/blob/main/things/calculator/http/express/http-content-negotiation-calculator-thing.td.jsonld) +- [HTTP Flask Calculator](http://plugfest.thingweb.io/http-flask-calculator) +- [CoAP Simple Calculator](https://github.com/eclipse-thingweb/test-things/blob/main/things/calculator/coap/js/coap-simple-calculator-thing.td.jsonld) +- [CoAP Content Negotiation Calculator](https://github.com/eclipse-thingweb/test-things/blob/main/things/calculator/coap/js/coap-content-negotiation-calculator-thing.td.jsonld) +- [MQTT Calculator](https://github.com/eclipse-thingweb/test-things/blob/main/things/calculator/mqtt/js/mqtt-calculator.td.json) diff --git a/things/counter-thing/README.md b/things/counter-thing/README.md index 99ebb27..9f24cf6 100644 --- a/things/counter-thing/README.md +++ b/things/counter-thing/README.md @@ -25,4 +25,4 @@ This counter thing provides increment, decrement, and reset operations, exposing ## Usage -The counter exposes properties and actions for interacting with the count value. See the [Thing Description](https://github.com/eclipse-thingweb/test-things/blob/main/things/counter-thing/counter-thing.td.json) for details on endpoints and data formats. \ No newline at end of file +The counter exposes properties and actions for interacting with the count value. See the [Thing Description](https://github.com/eclipse-thingweb/test-things/blob/main/things/counter-thing/counter-thing.td.json) for details on endpoints and data formats. diff --git a/things/counter-thing/.dockerignore b/things/counter-thing/http/ts/.dockerignore similarity index 100% rename from things/counter-thing/.dockerignore rename to things/counter-thing/http/ts/.dockerignore diff --git a/things/counter-thing/Dockerfile b/things/counter-thing/http/ts/Dockerfile similarity index 100% rename from things/counter-thing/Dockerfile rename to things/counter-thing/http/ts/Dockerfile diff --git a/things/counter-thing/counter-thing.td.json b/things/counter-thing/http/ts/counter-thing.td.json similarity index 100% rename from things/counter-thing/counter-thing.td.json rename to things/counter-thing/http/ts/counter-thing.td.json diff --git a/things/counter-thing/package-lock.json b/things/counter-thing/http/ts/package-lock.json similarity index 100% rename from things/counter-thing/package-lock.json rename to things/counter-thing/http/ts/package-lock.json diff --git a/things/counter-thing/package.json b/things/counter-thing/http/ts/package.json similarity index 100% rename from things/counter-thing/package.json rename to things/counter-thing/http/ts/package.json diff --git a/things/counter-thing/src/main.ts b/things/counter-thing/http/ts/src/main.ts similarity index 100% rename from things/counter-thing/src/main.ts rename to things/counter-thing/http/ts/src/main.ts diff --git a/things/counter-thing/tsconfig.json b/things/counter-thing/http/ts/tsconfig.json similarity index 100% rename from things/counter-thing/tsconfig.json rename to things/counter-thing/http/ts/tsconfig.json diff --git a/things/data-schema-thing/README.md b/things/data-schema-thing/README.md index d4d08e8..e69e0a1 100644 --- a/things/data-schema-thing/README.md +++ b/things/data-schema-thing/README.md @@ -24,4 +24,4 @@ This thing provides a variety of properties and actions to test different data t ## Usage -The data schema thing exposes properties, actions, and events for testing schema compliance. See the [Thing Description](https://github.com/eclipse-thingweb/test-things/blob/main/things/data-schema-thing/http/ts/http-data-schema-thing.td.json) for details on endpoints and data formats. \ No newline at end of file +The data schema thing exposes properties, actions, and events for testing schema compliance. See the [Thing Description](https://github.com/eclipse-thingweb/test-things/blob/main/things/data-schema-thing/http/ts/http-data-schema-thing.td.json) for details on endpoints and data formats. diff --git a/things/elevator/README.md b/things/elevator/README.md index 38032d8..f5b0342 100644 --- a/things/elevator/README.md +++ b/things/elevator/README.md @@ -24,4 +24,4 @@ This elevator thing simulates an elevator with properties for light switch, floo ## Usage -The elevator exposes properties for floor number, movement, and light switch. See the [Thing Description](https://github.com/eclipse-thingweb/test-things/blob/main/things/elevator/modbus/js/modbus-elevator.td.json) for details on endpoints and data formats. \ No newline at end of file +The elevator exposes properties for floor number, movement, and light switch. See the [Thing Description](https://github.com/eclipse-thingweb/test-things/blob/main/things/elevator/modbus/js/modbus-elevator.td.json) for details on endpoints and data formats.