Code Monkey home page Code Monkey logo

bitcoinmonitor's Introduction

bitcoinmonitor

Monitors the bids in USD for bitcoin.

Phase 1

  • git clone [email protected]:cppwfs/bitcoinmonitor.git
  • Go to the bitcoinmonitor directory
  • Set JAVA_HOME environment variable to your java instance
  • ./gradlew run -or- gradlew.bat run
  • You should see Hello World

Phase 2

  • Let’s activate spring boot
  • In your favorite editor open src/main/java/org/bitcoinmonitor/Main.java
  • Remove the comment markers (//) from the lines of code beneath the “Phase 2” comment
  • Save your changes
  • ./gradlew run -or- gradlew.bat run
  • Now you will have a file called bitcoin.txt available with both bitstamp and coinbase json data.

Phase 3

  1. Let’s activate Transformer
  2. In your favorite editor open
  3. src/main/java/org/bitcoinmonitor/Main.java
  4. src/main/java/org/bitcoinmonitor/Transform.java
  5. Remove the comment markers (//) from the lines of code beneath the “Phase 3” comment
  6. Save your changes
  7. In your favorite editor open
  8. src/main/resources/integration.xml
  9. Remove the comment markers () from the lines of code beneath the “Phase 3” comment
  10. Now Let’s update the gateways so they will send their data to the transformer instead of the file outbound gateway.
  11. For both the coinbasegateway and the bitstampgateway
  12. Set the reply-channel to the transformChannel
  13. Save your changes
  14. ./gradlew run -or- gradlew.bat run
  15. Now bitcoin has the data in a common format.

Setup Rabbit

Windows Install

Mac Install

Phase 4

Start MQTT Monitor

  • Open another command window
  • git clone [email protected]:cppwfs/mqttmonitor.git
  • Go to the mqttmonitor directory
  • ./gradlew run -or- gradlew.bat run

Setup bitcoinmonitor to send data via MQTT

  • Go back to the bitcoinmonitor directory
  • In your favorite editor open
  • src/main/resources/integration.xml
  • Remove the comment markers (<!-- - ->) from the lines of code beneath the “Phase 4” comment
  • Set the transform output-channel from “files” to “mqttOut”

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.