https://github.com/paladini/scadabr_to_kairosdb
Export your ScadaBR data to KairosDB, a modern Cassandra-based time series database.
https://github.com/paladini/scadabr_to_kairosdb
Last synced: 4 months ago
JSON representation
Export your ScadaBR data to KairosDB, a modern Cassandra-based time series database.
- Host: GitHub
- URL: https://github.com/paladini/scadabr_to_kairosdb
- Owner: paladini
- License: mit
- Created: 2015-10-05T04:55:00.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2015-11-25T16:12:58.000Z (almost 10 years ago)
- Last Synced: 2025-03-28T03:17:10.900Z (7 months ago)
- Language: Python
- Homepage: http://paladini.github.io/ScadaBR_to_KairosDB
- Size: 17.6 KB
- Stars: 2
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Export ScadaBR database to KairosDB
=======================If you're running ScadaBR and you would like to export your MySQL/MariaDB database to KairosDB, a modern NoSQL time series database that runs on top of Cassandra, then you're in the right place.
This small Python script will easily convert your ScadaBR database into a KairosDB database.
Installation / How to use?
---------------It's very simple to use this script and it should work in any Linux distribution. However, we've the following prerequisites:
* Any version of Python 3 installed.
* [pip3](http://pip.readthedocs.org/en/stable/), the Python package manager for Python 3.
* [PyMySQL](https://github.com/PyMySQL/PyMySQL) (don't forget, use pip3 to install this module for Python3).In order to run the script correctly, please provide both requisites in your machine.
**1) Before start make sure that you are okay with all of the following items:**
1. MySQL/MariaDB server up and running.
2. KairosDB server up and running.
3. ScadaBR database inside your server.**2) Run the script in your Terminal (Ctrl+Alt+T):**
```sh
chmod +x export.sh
./export.sh
```**3) Provide the credentials:**
In order to export the database, our Python script must know your database name, your username and your password for MySQL/MariaDB database.
- Dabase name: the ScadaBR database name. The default is `scadabr`.
- Username: give the username you use to connect into to MySQL/MariaDB. The default is `root`.
- Password: give the password you use WITH THE USERNAME PROVIDED PREVIOUSLY to connect to MySQL/MariaDB. The default is `` (empty).Now the script should do the work! Be patient and if you got any trouble, question, bug or want to suggest us a feature, feel free to contact me at fernandopalad@gmail.com (or via GitHub Issues).
About
--------------This small script was developed by Fernando Paladini on 2015. Hope it help you :)