Code Monkey home page Code Monkey logo

2920-blockchain's Introduction

2920 Blockchain demo

An Array of Solar Powered Soil Monitoring Stations

Anton Franzluebbers

To Use My Self-Hosted Web Portal

http://2920proj.ddns.net/
http://2920proj.ddns.net/display_all/ shows the data with hash and nonce. This page would be removed in production.
If it doesn't work, it is because my Raspberry Pi isn't plugged in. Contact me if you want me to turn it on.
Go to http://2920proj.ddns.net/ or http://2920proj.ddns.net/display_all just like above.
To add data, modify the url in tester.py from http://localhost:8000/ to http://2920proj.ddns.net/ and run it locally.
tester.py first gets a correct nonce and hash from the server, then sends back the data with the nonce and hash to be added to the database.

To Use Locally

To start the server

make start

To stop the server

make stop
Uses pkill - take a look first

To add data

python3 tester.py adds random data using POST requests. This kind of script would be on each sensor station.
python3 node.py actually logs data from the sensor station prototype I built.

To view data

Go to localhost:8000/ for the data.
Go to localhost:8000/display for the data.
Go to localhost:8000/display_all for data including the nonce and hash.

Video

https://youtu.be/Kgwnvgy4lSY - old video
https://youtu.be/V62epPNxirA - overview of project

References

https://github.com/adamchinkc/blockchain_database/
https://medium.com/programmers-blockchain/create-simple-blockchain-java-tutorial-from-scratch-6eeed3cb03fa

2920-blockchain's People

Contributors

antonfranzluebbers avatar

Watchers

James Cloos avatar  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.