Skip to content

InfluxDB Integration - #4055

Merged
breuerfelix merged 4 commits into
InstaPy:gui-featuresfrom
StanGirard:InfluxClass
Feb 24, 2019
Merged

InfluxDB Integration#4055
breuerfelix merged 4 commits into
InstaPy:gui-featuresfrom
StanGirard:InfluxClass

Conversation

@StanGirard

Copy link
Copy Markdown
Contributor

InfluxDB

Introduction

We all have been seeking better analytics for Instapy.
I decided to Integrate InfluxDB which is a No-SQL time series database.
Inputs are based on the time.

Implementation

I created a Singleton Class in settings which creates a connection to the db.
It is initialised in instapy.py
I also created functions that you can use to add values in the db or change db.
Functions can be added very easily

How to use

To use the SingletonClass just import from .settings import InfluxDBLog
Then in your file just call 脤nfluxDBLog().addEntry(args)` to add a new entry in the DB.

Prerequesites

in order to have this working please install InfluxDB on your computer and create a user.
For it to be activated you must in the instapy constructor input your InfluxDB username, password, host, port and database name.

Visualize Data

In order to visualise the data just install Grafana and create dashboards.
It could end up looking like this

capture d ecran 2019-02-23 a 00 12 03

@StanGirard

Copy link
Copy Markdown
Contributor Author

@breuerfelix Merge issues fixed

Comment thread instapy/instapy.py
@breuerfelix
breuerfelix merged commit 0bc3881 into InstaPy:gui-features Feb 24, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants