Giter Site home page Giter Site logo

harveyphm / neo-smart-iot Goto Github PK

View Code? Open in Web Editor NEW

This project forked from splyse/neo-smart-iot

0.0 0.0 0.0 93 KB

Control IoT devices from a smart contract on the Neo blockchain

License: MIT License

Python 8.73% Arduino 2.01% JavaScript 71.32% CSS 6.90% HTML 11.03%

neo-smart-iot's Introduction

Neo Smart IoT

Overview

Neo Smart IoT is a project contribution to the Neo Smart Economy Network to enable control of IoT (Internet of Things) devices via Neo smart contracts.

To operate an IoT device, a contract may operate for free, take payment in the form of Neo or Gas, or hold Neo as a deposit that can be returned to the user when control is no longer needed.

At a high level, a smart contract is deployed to the Neo blockchain. This contract contains functionality that allows values to be sent to IoT devices to control them. I.e., a payment could be sent to control a device that opens a lock, plays a song on a jukebox, or dispenses an item from a vending machine. The possibilities are endless.

Components

The Neo Smart IoT system consists of four components:

  • Node.js web frontend

    This part allows a normal user to see devices available for control by the smart contract. The web frontend uses a Chrome extension called NeoLink to authorize transactions.

  • neo-pubsub.py

    Python Neo blockchain transaction monitor and MQTT queue

  • elcaro-contract.py

    This is the Neo smart contract on the blockchain that stores devices and their fees, if any, to operate.

  • IoT device firmware

    This is the code that operates the IoT device.

Video Demonstration

Check out a video demonstration of the complete system over at the Splyse, Inc. YouTube channel.

Run the Demo

  1. Go to https://github.com/CityOfZion/NeoLink and follow the instructions to setup NeoLink.

  2. Ensure that a wallet is open in NeoLink.

  3. Go to https://iot.splyse.tech/

  4. Login with:

email: [email protected]

password: neo
  1. You should now be on the Devices page. Enter a color, in the form of ff00ff or similar, into the setting input field and press pay. If your wallet is open you should see a message in the web page telling you to open NeoLink and authorize a transaction.

  2. Open NeoLink and authorize the transaction. It will only cost .00025 gas on TestNet.

neo-smart-iot's People

Contributors

hal0x2328 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.