Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/rzr/twins
Digital twins PoC
https://github.com/rzr/twins
Last synced: about 1 month ago
JSON representation
Digital twins PoC
- Host: GitHub
- URL: https://github.com/rzr/twins
- Owner: rzr
- License: mpl-2.0
- Created: 2019-05-20T13:57:05.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2024-03-28T17:24:49.000Z (9 months ago)
- Last Synced: 2024-11-02T10:52:07.252Z (about 2 months ago)
- Language: JavaScript
- Homepage: https://purl.org/rzr/weboftwins
- Size: 467 KB
- Stars: 7
- Watchers: 3
- Forks: 2
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
# TWINS #
[![GitHub forks](https://img.shields.io/github/forks/rzr/twins.svg?style=social&label=Fork&maxAge=2592000)](https://GitHub.com/rzr/twins/network/)
[![license](https://img.shields.io/badge/license-MPL--2.0-blue.svg)](LICENSE)
[![NPM](https://img.shields.io/npm/v/twins.svg)](https://www.npmjs.com/package/twins)
[![IRC Channel](https://img.shields.io/badge/chat-on%20freenode-brightgreen.svg)](https://kiwiirc.com/client/irc.freenode.net/#tizen)[![NPM](https://nodei.co/npm/twins.png)](https://npmjs.org/package/twins)
## INTRODUCTION: ##
Web Of Twins proof of concept
[![Concept](https://image.slidesharecdn.com/web-of-twins-20190604rzr-190604205255/95/weboftwins20190604rzr-1-638.jpg)](http://www.slideshare.net/slideshow/embed_code/key/16GRRsNuiRCfa6#weboftwins20190604rzr# "weboftwins20190604rzr")
## USAGE: ##
### USING IOT.JS: ###
```sh
make start
#| iotjs index.js
#| Listening:
#| http://localhost:8888/url=http://localhost:8888
curl $url/properties
#| {"torso":0,"shoulder":0,"arm":0,"hand":0}curl -X PUT -H "Content-type: application/json" -d '{ "hand": 10 }' $url/properties/hand
#| {"hand":10}make demo
```Then twin can be visualized using:
* [A-frame (./aframe/index.html) ](./aframe/index.html) rendering page
*### USING NODE.JS: ###
Usage is straightforward:
```sh
npm install
npm start 8042
#| > node index
#| Listening:
#| http://localhost:8842/
```### USING GLITCH: ###
*
*### USING MOZILLA WEBTHING GATEWAY: ###
* Issue token
```sh
cd aframe
npm install && PORT=42088 npm starturl='http://localhost:42088/?'
httpUrl='https://rzr.mozilla-iot.org/things/http---192.100.0.13-888'
useWs="false"
bearer='eyJhbGciOiJFUzI1NiIsInR5cCI6IkpXVCIsImtpZCI6IjI0YWZiMGI4LTdlMDktNDgzYy1iMTc4LTkyNDBjMjQxMWMxNiJ9.eyJjbGllbnRfaWQiOiJsb2NhbC10b2tlbiIsInJvbGUiOiJhY2Nlc3NfdG9rZW4iLCJzY29wZSI6Ii90aGluZ3M6cmVhZHdyaXRlIiwiaWF0IjoxNTgwNDA1NDkyLCJpc3MiOiJodHRwczovL3J6ci5tb3ppbGxhLWlvdC5vcmcifQ.9OoC503xdppFBEKMKQoXBnK5RbamLuWo0hZg2evdImRUXwVEovfbhAqHFCwCFGyADYKpT8mTWOzlMKZ_ahddoA'
url="$url&url=$httpUrl"
url="$url&useWs=$useWs"
url="$url&bearer=$bearer"
www-browser "$url"
```## GUIDE: ##
Demo Howto and more insights at:
*
## DEMO: ##
[![PoC](https://i.giphy.com/media/XCsnIn6WlWNOeT2etZ/giphy.gif)](https://purl.org/rzr/digitaltwins-webthings-iotjs-20190512rzr#digitaltwins-webthings-iotjs-20190512rzr# "digitaltwins-webthings-iotjs-20190512rzr")
## RESOURCES: ##
*
*
*
*
*
*
*
*
*