- What's the point?
- Credentials
- Install
requirements.txt
- Running the ingestion of ewons tags
- What's next
Simple project to ingest a Ewons tags with Json API REST.
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
andpass
only if required for the connection to Elasticsearch
pip install -r requirements.txt
nohup nexo-ewons/bin/run.sh &
We must to install requirements.txt
kill $(ps aux | grep -v grep | grep "python3.6 pipeline.py" | awk '{print $2}')
- 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