Git Product home page Git Product logo

kixi.hecuba.minorca's Introduction

kixi.hecuba.minorca

map of minorca

######Image source: http://webs.racocatala.cat/eltalp/cart2.htm

##Description: Minorca gets CSV files from an AWS S3 bucket. Those files contains sensors measurements form houses that need to be uploaded into getembed.com.

Minorca uses AWS Java API via a Clojure library called Amazonica. It also uses Hecuba API to add houses, devices and sensor measurements.

Minorca expects a configuration file containing the following information:

{:s3 {:bucket "my-bucket"
      :cred {:profile "default" :endpoint "eu-west-1"}}
 :mapping-file "resources/default-houses-mapping-file.csv"
 :processed-file "resources/default-files-processed.csv"}

It needs:

  • information for the AWS S3 bucket,
  • a file to store the relationship between the identifiers from the input files and the identifiers in getembed.com (see an example here),
  • a file to store which input files have been processed (see an example here).

####Important note:

As it is the programme is expecting to have a "mapping-file" and a "processed-file".

The first time the programme is run those CSV files will be empty but for the column headers.

The headers expected are as follow:

  • for the "mapping-file":

Timestamp,File name,S3 bucket,Metadata,File content

  • for the "processed-file":

house_id,entity_id,device_id

Usage

Create a jar:

$ lein uberjar

Run your jar:

$ java -jar uberjar/path/kixi.hecuba.minorca-0.1.0-SNAPSHOT-standalone.jar
-i project-id -u https://api-url/1/ -n username -p password

License

Copyright © 2015 MastodonC

Distributed under the Eclipse Public License either version 1.0 or (at your option) any later version.

kixi.hecuba.minorca's People

Watchers

 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.