Skip to content

This repository contains the code, content, and demo material for the Algorand developer portal.

License

Notifications You must be signed in to change notification settings

mojowlekaz/desense

Repository files navigation

deSense

Sensor Networks on Algorand

Provided for Algorand developer portal by @emg110 and @sheghzo.

IMPORTANT NOTE:

This library and the main solution deSense are made as proof of concept development projects with production and enterprise in mind, so all teal programs included are consisted of simple int 1 code to pass everything which suites the development enviromnet where the possibility of implementation is the target not showing off TEAL capabilities which are huge but off the subject for this library.

Usefull links

Sensor Emulator

deSense on Algorand Developers Portal

Technical notes

Run ./desense.sh help to see available flows and commands

Run ./desense.sh install first , then ./desense.sh startsandbox, then ./desense.sh startemitter and finally, then ./desense.sh start emulator as order of running things but read forward through technical notes first!

It'srecommended to run emitter and emulator in different bash terminals than main one, for they have continius logging of published and received sensor data which may interfere with user experience!

When running ./desense.sh startemitter for the first time you will be given just generated a license and a secret code for a new registered sensor netwrok on your localhost. The license and secret key to generated Sensor Network Take note of these two and set EMITTER_LICENSE environment variable:

export EMITTER_LICENSE="PfA8IHtI_zkp1tEGEG3T86--Gy6bexPlMVxzi3o4_aEMGBCfEK7GTYaxmK6Zche0DLQfMDamuYnxC9XB9p8BAQ:3"

Open your browser and go to Sensor Network registeration panel http://127.0.0.1:8080/keygen and register your channel name /desense to get a channel key.

Web based SNS channel generator & key registeration

Use the channel key you just received from keygen and set it in key configuration of your sensor emulator sensor-template-config.json. Along with channel key set the port of your sensor network e.g 8080 and also paste the sensor network license mentioned above into the license configuration. Make sure you do these configurations before starting emulator with ./desense startemulator command.

The sensor emulator configuration

If the setup is OK then by starting sensor emulator via ./desense startemulator this should be the output:

The sensor emulator running...

Design Info

deSense Concept

deSense Sequences

deSense UseCase Diagram

Presentation Video

deSense Presentation Video

Sensor Emulator Screen Cast

Senor Emulator Screencast Telesensing to Algorand blockchain and gives Transaction ID out

Based on amazing libraries and examples of

EmitterIO

Sampler

mqtt-emulator-----> Forked and extensively modified & overhauled version created just for this Hackathon sensor-emulator.

About

This repository contains the code, content, and demo material for the Algorand developer portal.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages