Giter Site home page Giter Site logo

thingsprotocol / evec-mini-demo Goto Github PK

View Code? Open in Web Editor NEW
1.0 4.0 1.0 6.29 MB

a small release of functions to use EVEC python functions to interact with Hedera

Home Page: https://evec.io

License: MIT License

Java 40.63% Python 30.77% HTML 3.41% CSS 1.86% JavaScript 23.33%

evec-mini-demo's Introduction

Open Source Love License: MIT

⚠️⚠️⚠️EVEC as a predecessor project/company of Things Protocol, has been deprecated in Feb, 2020. WHen you visit evec.io, you will be redirected to thingsprotocol.com for the latest information.

📢📢📢We are currently actively testing our newly redesigned solution with our customers, once that is done. You can expect a new stable version to be open sourced, and more! 🔥

For further quesitons, please visit thingsprotocol.com or send a note to 📧[email protected]

EVEC mini-demo project - IoT with Hedera (evec-mini-v0.1)

Project Description - Test project of the EVEC IoT API (mini-release version) on Hedera testnet & mainnet. EVEC is building a distributed IoT toolkit to enpower IoT developers to manage IoT devices (securely) with Distributed Ledger Technology.

This demo project is part of the IoT Platform Evolution Program. By leveraging the new DLT architecture, we will evolutionize the IoT ecosystem in Security, Interoperability, Application development.

More info will be released after the summer of 2019. Stay Tuned!

evec-mini-v0.1 is built with Hedera Java SDK and Python. Code has been tested both on a VM and Raspberry Pi (2&3).

CONTENTS

  1. Environment Set-Up
  2. Other Notes

1. Environment Set-Up

1a.Prerequisites

Before starting, ensure you have the following:

On your computer -

On your Raspberry Pi/IoT device -

Install Raspbian OS Confirm you have Python3 and pip installed on the raspberry pi (python2 will also work)

1b. Installation

  • git clone this repo on your laptop.
  • Also save the (Demo folder)[/Demo] and .env on your Raspi device.

On your Computer Command Prompt:

cd into the parent folder (i.e. wherever you downloaded this repository)

$ mvn install

On the Pi

$ pip install requests
$ pip install -U python-dotenv

1c. Set-Up

  • Update the env file with your account details. (Leave FILE_NUM and IP_ADDRESS as it is for now)
  • cd into this folder and run the code by executing the following command $ mvn spring-boot:run
  • from the command line output, get the file number
  • In the .env file, write this number next to FILE_NUM (instead of 0)
  • Add the IP Address of your laptop to the .env file. (This is so that the rest apis exposed by the laptop can be called by the raspberry pi), make sure this .env file stored on each of your Raspberry Pi/IoT device.

1d. Running the Code

  • After following the above steps, once again run $ mvn spring boot:run.
  • Wait for command line output to show "You may call the Rest APIs now!".
  • Now you can run SenseHatDemo.py (this requires a SenseHAT and Raspi), you will see the Led light turns on and off.
  • If the first demo is successful, you can try our second demo to run client2.py followed by client1.py. More detailed info can be found in the README.md file in Demo folder.
  • A UI-based example and instructions can be found in the webApp folder.

2. Notes and Guidelines

  • Main functionality lies in here
  • To run the hedera file etc. ensure you have sufficient funds.
  • This functionality is up to date for SDK 0.4.6 OF HEDERA-JAVA-SDK

evec-mini-demo's People

Contributors

xyd945 avatar yurivangeffen avatar

Stargazers

 avatar

Watchers

James Cloos avatar  avatar Ianshen avatar  avatar

Forkers

yurivangeffen

evec-mini-demo's Issues

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.