{"id":13499823,"url":"https://github.com/rzr/webthing-iotjs","last_synced_at":"2025-04-14T16:09:24.851Z","repository":{"id":33101384,"uuid":"145684348","full_name":"rzr/webthing-iotjs","owner":"rzr","description":" IoT.js implementation of WebThing API (based on webthing-node)","archived":false,"fork":false,"pushed_at":"2023-07-18T21:18:08.000Z","size":1219,"stargazers_count":58,"open_issues_count":4,"forks_count":14,"subscribers_count":9,"default_branch":"master","last_synced_at":"2025-03-27T18:59:17.795Z","etag":null,"topics":["iotjs","webthing"],"latest_commit_sha":null,"homepage":"https://mastodon.social/@rzr/103580872382220227#:WebThingIotJs","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rzr.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null},"funding":{"github":["rzr"],"custom":["https://www.paypal.me/rzrfreefr","www.rzr.online.fr"]}},"created_at":"2018-08-22T09:08:40.000Z","updated_at":"2024-08-23T20:36:28.000Z","dependencies_parsed_at":"2024-01-24T04:53:47.736Z","dependency_job_id":"1df849a5-bd37-44ae-a223-78c60a43ae74","html_url":"https://github.com/rzr/webthing-iotjs","commit_stats":null,"previous_names":[],"tags_count":44,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rzr%2Fwebthing-iotjs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rzr%2Fwebthing-iotjs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rzr%2Fwebthing-iotjs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rzr%2Fwebthing-iotjs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rzr","download_url":"https://codeload.github.com/rzr/webthing-iotjs/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245972665,"owners_count":20702721,"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":["iotjs","webthing"],"created_at":"2024-07-31T22:00:43.547Z","updated_at":"2025-03-30T03:31:22.641Z","avatar_url":"https://github.com/rzr.png","language":"JavaScript","funding_links":["https://github.com/sponsors/rzr","https://www.paypal.me/rzrfreefr","www.rzr.online.fr"],"categories":["Section"],"sub_categories":["Libraries"],"readme":"# WEBTHING-IOTJS #\n\n[![GitHub forks](\nhttps://img.shields.io/github/forks/rzr/webthing-iotjs.svg?style=social\u0026label=Fork\u0026maxAge=2592000\n)](\nhttps://GitHub.com/rzr/webthing-iotjs/network/\n)\n[![license](\nhttps://img.shields.io/badge/license-MPL--2.0-blue.svg\n)](LICENSE)\n[![Build Status](\nhttps://travis-ci.org/rzr/webthing-iotjs.svg?branch=master\n)](\nhttps://travis-ci.org/rzr/webthing-iotjs\n)\n[![NPM](\nhttps://img.shields.io/npm/v/webthing-iotjs.svg\n)](\nhttps://www.npmjs.com/package/webthing-iotjs\n)\n[![pulls](\nhttps://img.shields.io/docker/pulls/rzrfreefr/webthing-iotjs.svg\n)](\nhttps://cloud.docker.com/repository/docker/rzrfreefr/webthing-iotjs\n)\n[![Automated Builds](\nhttps://img.shields.io/docker/cloud/automated/rzrfreefr/webthing-iotjs.svg\n)](\nhttps://cloud.docker.com/repository/docker/rzrfreefr/webthing-iotjs/timeline\n)\n[![Build Status](\nhttps://img.shields.io/docker/cloud/build/rzrfreefr/webthing-iotjs.svg\n)](\nhttps://cloud.docker.com/repository/docker/rzrfreefr/webthing-iotjs/builds\n)\n[![Codacy Badge](\nhttps://api.codacy.com/project/badge/Grade/dd6c1c71603e49cdb1be332681491900\n)](\nhttps://app.codacy.com/app/rzr/webthing-iotjs?utm_source=github.com\u0026utm_medium=referral\u0026utm_content=rzr/webthing-iotjs\u0026utm_campaign=Badge_Grade_Dashboard\n)\n[![FOSSA Status](\nhttps://app.fossa.io/api/projects/git%2Bgithub.com%2Frzr%2Fwebthing-iotjs.svg?type=shield\n)](\nhttps://app.fossa.io/projects/git%2Bgithub.com%2Frzr%2Fwebthing-iotjs?ref=badge_shield\n)\n[![Fediverse](\nhttps://img.shields.io/mastodon/follow/279303?domain=https%3A%2F%2Fmastodon.social\u0026style=social\n)](\nhttps://mastodon.social/@rzr/103580872382220227#:WebThingIotJs\n)\n[![IRC Channel](\nhttps://img.shields.io/badge/chat-on%20freenode-brightgreen.svg\n)](\nhttps://kiwiirc.com/client/irc.freenode.net/#tizen\n)\n\n[![NPM](\nhttps://nodei.co/npm/webthing-iotjs.png\n)](\nhttps://npmjs.org/package/webthing-iotjs\n)\n\n[![Presentation](\nhttps://image.slidesharecdn.com/webthing-iotjs-20181022rzr-181027220201/95/webthingiotjs20181022rzr-1-638.jpg\n)](\nhttps://www.slideshare.net/slideshow/embed_code/key/BGdKOn9HHRF4Oa#webthing-iotjs#\n\"WebThingIotJs\")\n\n## DISCLAIMER ##\n\nWebthing-iotjs is derived of webthing-node project (supporting Node.js)\nbut adapted for IoT.js runtime (based on JerryScript engine for constrained devices).\n\nThis downstream project plans to keep aligned to upstream\nand only focus on IoT.js port.\n\nNew contributions should be submitted to webthing-node first\nand then should land here (once rebased on webthing-node's master branch).\n\n## BASIC USAGE ##\n\nAfter installing IoT.js program on your system,\nyou can get started by running example program\n\n```\niotjs -h\n\niotjs example/multiple-things.js\n# setting new humidity level: 18.207531485648474\n\ncurl T -H 'Content-Type: application/json'  http://localhost:8888/\n# [{\"name\":\"My Lamp\",\"href\":\"/0\", (...)  \"href\":\"/1/properties/level\"} .. (...) }]\n\ncurl T -H 'Content-Type: application/json'  http://$HOSTNAME:8888/1/properties/level\n# {\"level\":42.666}\n```\n\nThen thing can be monitored once connected to WebThings IoT gateway\nusing the WebThings URL adapter.\n\nAlso you can control a \"Simplest Thing\"\nwhich is just simulating an actuator (LED, switch, relay...).\n\n```\niotjs example/simplest-thing.js\n# Usage:\n#\n# iotjs example/simplest-thing.js [port]\n\ncurl -X PUT -H 'Content-Type: application/json' --data '{\"on\": true }' http://localhost:8888/properties/on\n# {\"on\":true}\n```\n\nThen this thing can be connected to gateway, and rules configured to use the actuator.\n\n## GUIDE ##\n\nFor more insights and details please follow guide about setting up gateway,\nIoT.js and demos howtos:\n\n* \u003chttps://github.com/rzr/webthing-iotjs/wiki\u003e\n\n[![Demo](\nhttps://media.giphy.com/media/1xo9BDFa4B40JPEzZN/giphy.gif\n)](\nhttps://www.slideshare.net/rzrfreefr/webthingiotjs20181022rzr-120959360/19\n\"webthing-iotjs-20181027rzr\")\n\n## REFERENCES ##\n\n* \u003chttps://github.com/mozilla-iot/webthing-node\u003e\n* \u003chttps://github.com/rzr/webthing-iotjs/wiki\u003e\n* \u003chttps://github.com/rzr/webthing-iotjs/wiki/GnuLinux\u003e\n* \u003chttps://cloud.docker.com/repository/docker/rzrfreefr/webthing-iotjs\u003e\n* \u003chttps://libraries.io/npm/webthing-iotjs/\u003e\n* \u003chttps://github.com/jerryscript-project/iotjs-modules/pull/3\u003e\n\n## LICENSE ##\n\n[![FOSSA Status](https://app.fossa.io/api/projects/git%2Bgithub.com%2Frzr%2Fwebthing-iotjs.svg?type=large)](https://app.fossa.io/projects/git%2Bgithub.com%2Frzr%2Fwebthing-iotjs?ref=badge_large)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frzr%2Fwebthing-iotjs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frzr%2Fwebthing-iotjs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frzr%2Fwebthing-iotjs/lists"}