An open API service indexing awesome lists of open source software.

https://github.com/mtoensing/dwh-proxy

python script to feed data to my miniature data warehouse
https://github.com/mtoensing/dwh-proxy

data-warehouse docker minecraft-server mysql python3

Last synced: about 1 month ago
JSON representation

python script to feed data to my miniature data warehouse

Awesome Lists containing this project

README

          

# dwh-proxy
DataWareHouse Proxy for Grafana and MySQL

## MySQL structure

See `history.sql`.

## mysql-config.json

```json
{
"mysql":{
"server":"ADR",
"user":"USER",
"password":"SECRET!!",
"db":"DB"
}
}
```

## weather-apikey.json

Get apikey from http://api.openweathermap.org

```json
{
"weather":{
"apikey":"key"
}
}
```

## youtube-apikey.json

```json
{
"youtube":{
"apikey":"key",
"channelid":"UCar1gwRwYqAGSNAuZoKDh2w"
}
}
```

## On Synology

Install the official Python3 package first. To install PyMySQL on Synology DSM do the following:
```
sudo su
curl -k https://bootstrap.pypa.io/get-pip.py | python3
/volume1/@appstore/py3k/usr/local/bin/pip3 install PyMySQL
```

## Purge old entries from the database
DELETE FROM history WHERE TIMESTAMP < (NOW() - INTERVAL 6 MONTH)