Git Product home page Git Product logo

nexo-ewons's Introduction

Nexo Efipress EWons

  1. What's the point?
  2. Credentials
  3. Install requirements.txt
  4. Running the ingestion of ewons tags
  5. What's next

What's the point?

Simple project to ingest a Ewons tags with Json API REST.

Credentials config.ini

We must to rename the config.ini.template file to config.ini in the project's root directory, and fill it with the credentials

[ACC_CREDENTIALS]
t2maccount = account
t2musername = user
t2mpassword = pass
t2mdeveloperid = devid

[INS_CREDENTIALS]
t2mdeviceusername = user
t2mdevicepassword = pass

[ELASTIC]
esnodes = esnode1:port,esnode2:port
user = user
pass = pass

[LOGGING]
level = DEBUG

[PIPELINE]
sleep_seconds = 2

user and pass only if required for the connection to Elasticsearch

Install requirements.txt

pip install -r requirements.txt

Running the ingestion process

nohup nexo-ewons/bin/run.sh &

We must to install requirements.txt

Stop the ingestion proccess

kill $(ps aux | grep -v grep | grep "python3.6 pipeline.py" | awk '{print $2}')

What's next

  • Use corrutines with asyncio. A corrutine per api call (accountinfo and getewons just once)
  • Index tags to elasticsearch
  • Include shell scripts for running
  • Logging with a timed rotating log file
  • Create a DockerFile

nexo-ewons's People

Contributors

ilittleangel avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Forkers

efipress

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.