Code Monkey home page Code Monkey logo

poller-server's Introduction

Poller Server

The purpose of this application is to poll time-series data from our serialreader-server application which is connected to the sparkfunweathershield-arduino hardware device and save it to the tstorage-server application. The interval of time is every one minute.

Prerequisites

You must have the following installed before proceeding. If you are missing any one of these then you cannot begin.

  • Go 1.16.3

Installation

  1. Please visit the sparkfunweathershield-arduino repository and setup the external device and connect it to your development machine.

  2. Please visit the serialreader-server repository and setup that application on your device.

  3. Please visit the tstorage-server repository and setup that application on your device.

  4. Get our latest code.

    go get -u github.com/bartmika/poller-server
  5. Setup our environment variable before running our server.

    export POLLER_SERVER_SERIAL_READER_SERVER_ADDRESS=127.0.0.1
    export POLLER_SERVER_SERIAL_READER_SERVER_PORT=50052
    export POLLER_SERVER_TSTORAGE_SERVER_ADDRESS=127.0.0.1
    export POLLER_SERVER_TSTORAGE_SERVER_PORT=50051
    

Usage

Run our application.

go run main.go serve

If the server successfully starts you should see a message in your termnal:

2021/07/10 15:40:36 Synching with local time...
2021/07/10 15:41:00 Synchronized with local time.
2021/07/10 15:41:00 Poller is now running.

License

This application is licensed under the BSD 3-Clause License. See LICENSE for more information.

poller-server's People

Contributors

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