All Projects → r-c-k → SensorNode

r-c-k / SensorNode

Licence: MIT license
SensorNode-client application for IOTA.

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to SensorNode

meta-iota
OpenEmbedded layer for the IOTA Distributed Ledger
Stars: ✭ 41 (+17.14%)
Mutual labels:  iota, tangle, iota-node
Tanglestash
IOTA meets BitTorrent: An algorithm to persist any file onto the tangle of IOTA
Stars: ✭ 46 (+31.43%)
Mutual labels:  iota, tangle
poc-ipfs
Demonstration of combining IOTA with IPFS for data storage.
Stars: ✭ 32 (-8.57%)
Mutual labels:  iota, tangle
dcurl
Hardware-accelerated Multi-threaded IOTA PoW, drop-in replacement for ccurl
Stars: ✭ 39 (+11.43%)
Mutual labels:  iota, tangle
IOTAtangle
IOTA Tangle Visualiser 🦔 http://tangle.glumb.de/?DARK_MODE=true
Stars: ✭ 55 (+57.14%)
Mutual labels:  iota, tangle
iota.lib.rb
Ruby Library for IOTA with core and wrapper api implementation.
Stars: ✭ 17 (-51.43%)
Mutual labels:  iota, tangle
IOTA-MAM.lib.js-PoC
Working Proof of Concept of IOTA's MAM technology using Live Nodes to push and receive messages inside tangle
Stars: ✭ 19 (-45.71%)
Mutual labels:  iota, tangle
tangle-utils-website
A web site full of utilities for all things tangle, transaction and IOTA.
Stars: ✭ 19 (-45.71%)
Mutual labels:  iota, tangle
leaderboard-example
IOTA Proof of Concept Application example. With tutorial.
Stars: ✭ 64 (+82.86%)
Mutual labels:  iota, tangle
iota-python
A Pure-Python implementation of IOTA node
Stars: ✭ 30 (-14.29%)
Mutual labels:  iota, tangle
Chatangle
A free, decentralized, global chatroom, powered by the IOTA tangle
Stars: ✭ 16 (-54.29%)
Mutual labels:  iota
Commander
Arduino Command Line Utility
Stars: ✭ 20 (-42.86%)
Mutual labels:  stream
xbvr
Tool to organize and stream your VR porn library
Stars: ✭ 186 (+431.43%)
Mutual labels:  stream
ngx-stream-request-module
基于ngx-stream-module 实现长连接的处理,把长连接数据按照使用的协议转切分为请求(request),与后端服务器使用短连接通讯,完全兼容后端http协议。后端服务器使用推送协议可以很方便的把数据推送到客户端。
Stars: ✭ 15 (-57.14%)
Mutual labels:  stream
mock-hls-server
Fake a live/event HLS stream from a VOD one. Useful for testing. Supports looping.
Stars: ✭ 61 (+74.29%)
Mutual labels:  stream
AnimeDLR
AnimeDLR
Stars: ✭ 47 (+34.29%)
Mutual labels:  stream
streamplify
Java 8 combinatorics-related streams and other utilities
Stars: ✭ 40 (+14.29%)
Mutual labels:  stream
create-music-stream
Creates a PCM 16 bit Little Endian Stream from a mp3 file or youtube video
Stars: ✭ 21 (-40%)
Mutual labels:  stream
iota.php
Interact with IOTA through PHP
Stars: ✭ 45 (+28.57%)
Mutual labels:  iota
aws-kinesis-consumer
Consume an AWS Kinesis Data Stream to look over the records from a terminal.
Stars: ✭ 23 (-34.29%)
Mutual labels:  stream

SensorNode

SensorNode-client application for IOTA.

Either data is being pushed to Tangle or send as Masked Authenticated Message, or both.

(Image by Wyn Tiedmers)

Installation:

Clone this repository:

git clone https://github.com/rckey/SensorNode

Install node_modules:

cd SensorNode/
npm install

Install mam.node.js:

cd node_modules/
git clone https://github.com/rckey/mam.node.js

Creating streams:

You can create streamobjects with the following parameters:

Parameters:
Parameter Function Default
host (Remote-) node we're connecting to. 0.0.0.0
port Iota-api port on the node. 14265
id Identifies the streamobject. "SensorNode"
location Nodes location, eg. 'lat': 52.26 'lng': 13.42. {'lat': 40.65, 'lng': -73.91}
seed Seed for creating transactions/MAM-messages. [generated]
rec Receiving address (tanglestream only). "GPB9PBNCJTPGF..."
tag Tag for Transactions (tanglestream only). "SENSORNODEROCKS"
depth Depth for tip-selection (tanglestream only). 3
wait Discards packets till the current packet has been send. true
fetch Enable continuous fetching from MAM-root when multiple nodes stream from the same seed (mamstream only). false

First Stream (TANGLE):

streams.push(new STREAM ({
  'host': 'http://[remote node / localhost]',
  'port':  [port]

  [OPTIONAL PARAMETERS]

}))

Second Stream (MAM):

streams.push(new MAM_STREAM ({
  'host': 'http://[remote node / localhost]',
  'port':  [port]

  [OPTIONAL PARAMETERS]

}))

Add data sources

Data sources are (async) functions which return the data you want to stream, eg:

async function functionFoo () {
	return await sensorA.read();
}
async function functionBar () {
	return await sensorB.read();
}
streams[0].addSource(functionFoo);
streams[1].addSource(functionBar);

Cool! Whats next?

Run with npm start [delay] where delay specifies a timeout between each push (default 60 seconds).

Thats it. Have fun providing data over the iota protocol. ;)

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].