-
-
Notifications
You must be signed in to change notification settings - Fork 14
TODO
IoT.js is supporting MQTT protocol, so it's straight forward to build a bridge:
Then it could be a good exercise to port nanomsg to IoT.js, and then make an adapter for moziot, the other simpler approach is to use nodejs (I can share ported code ask me)
And then next one can try to do a RUST version:
Compare performance to python and uPy
- https://github.com/mozilla-iot/webthing-python
- https://pypi.org/project/webthing/
- https://github.com/mozilla-iot/webthing-upy
Or if using docker-compose:
docker-compose --verbose run start/board/artik530
Recreating webthingnode_web_1
Attaching to webthingnode_web_1
web_1 | log: Loading platform: artik710
web_1 | Usage:
web_1 | /usr/bin/iotjs example/platform/index.js [port]
web_1 | Try:
web_1 | curl -H "Accept: application/json" http://localhost:8888
web_1 |
web_1 | log: SW404 ready:null
web_1 | log: SW403 ready:null
web_1 | log: gpio: RedLed: ready? (null expected): null
web_1 | log: gpio: BlueLed: ready? (null expected): null
web_1 | log: gpio: SW404: update: true
(...)
web_1 | log: gpio: BlueLed: writing: true
(...)
(... user hit Ctrl+C ...)
Gracefully stopping... (press Ctrl+C again to force)
Stopping webthingnode_web_1 ...
Stopping webthingnode_web_1 ... done
- Use docker on windows or try WSL:
- https://github.com/xoseperez/espurna/issues/1506 (Open)
- https://github.com/xoseperez/espurna/wiki/RESTAPI
Demos:
- https://social.samsunginter.net/@rzr/101564201618024415
- https://glitch.com/~gulliver-webxr-iot
- http://gulliver.eu.org/calendrier:2019:02:09
Ideas
- visualize opensensemap's sensors
- generic 3d browser
Check Concept page for overview, Gateway to get started, IotJs page to install runtime to build webthing as explained in Home page.
For further experiments check Social and Sensor, or Extra parts like WebApp (for Tizen or PWA) or MCU info about running on other microcontrollers not supported by TizenRT.
While Home focus mostly on using iotjs to build webthings (on GNU/Linux or TizenRT for ARTIK05X devices).
This document is still in draft state, but reviews are always welcome, if you try to replicate it and stuck on missing instructions I would appreciate that you file issues or even better make pull request (just edit in github) that insert "TODO marks" in following chapters, like:
- TODO: please explain more this chapter and then remove this TODO line
Community contributions are welcome at:
Support is also possible, ask in:
- https://github.com/rzr/webthing-iotjs
- irc://irc.mozilla.org/#iot
WARNING: Developement branches could break over time.
Instead of maintaining "quick and dirty" demo code, I decided to split demo in smaller independents parts (which can reused) and I am upstreaming the most I can.
Then support can be done on mainline branches (or released versions).
Note that, Upstreaming can be a slow process, so snapshots links will remain until 100% of code is upstreamed.
Licence:
Reference documentation is at:
-
Concept:
- Demo Concept and Architecture
-
Gateway:
- Getting started with Mozilla IoT gateway
-
IotJs:
- Install IoT.js needed to run webthings
-
Home:
- Welcome page to build WebThings using IotJs
-
Social:
- Notification service using Mastodon FLOSS
-
TizenRT:
- webthing-iotjs on ARTIK05x
-
Sensor: and Actuator
- Physical interactions
-
Extra hints:
- Docker: About running in container
- MCU: About microcontrollers (not supported by TizenRT)
- WebApp: Alternate browser (Tizen and PWA)
- GnuLinux: Article about Edison and other
- Raspbian: Article about RaspberryPi
- Arduino: Alt For atmel or Esprissif boards
- DigitalTwins : WiP experiments
- TODO: Work in progress