Giter Club home page Giter Club logo

arduinomylog-monitor's Introduction

ArduinoMyLog-Monitor

Project ArduinoMyLog-Monitor

This project will monitor blockchain data into distribuited web. It refers to the previous work present under repository ArduinoMyLog (fetch data from the blockchain), allowing you to monitor the results using IPFS (InterPlanetary File System) protocol and also on a Web page that updates automatically every hour.

Quick links and licensing references

Notice

This software is experimental and a work in progress. Data inserted using ipfs will be accessible to anyone. Under no circumstances should these files be used in relation to any critical system(s). Use of these files is at your own risk. THE SOFTWARE IS PROVIDED "AS IS". See license file LICENSE.md for details.

Quick start

  • We assume that the previous project "ArduinoMyLog" was followed correctly, and that your IPFS daemon is running. Check it:

$ ipfs --version

OUTPUT:

ipfs version 0.10.0

  • Fetch the data from blockchain to local Json:

$ cd ~/arduinomylog-monitor

$ chmod 750 update_json.sh

$ ./update_json.sh

  • Add Json to IPFS:

$ ./put_json.sh

  • Get the CID and verify that it works:

$ cat CID_put.log

OUTPUT:

added [YOUR_CID_HERE] temp_humi.json

$ ipfs cat [YOUR_CID_HERE]

  • You can verify it also using curl:

https://gateway.ipfs.io/ipfs/[YOUR_CID_HERE]

Important note: if you stop your ipfs daemon, your json file will probably no longer be accessible. You can use an ipfs dns to keep the json file updated despite your repeated uploads.

  • Finally you can fetch with javascript the Json and include it in a web page like this:

wget https://gateway.ipfs.io/ipfs/bafybeigr37tqjryxwfoikrmj76vnx33awa5yjfuklmfwcwl3hff5w4awgu

arduinomylog-monitor's People

Contributors

blockside 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.