Skip to content

Commit c119da9

Browse files
author
João Neves
committed
First working demo
1 parent c577e38 commit c119da9

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

51 files changed

+27368
-1
lines changed

.gitignore

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
.DS_Store
2+
.idea/
3+
.ipynb_checkpoints/
4+
__pycache__/

README.md

+19-1
Original file line numberDiff line numberDiff line change
@@ -1 +1,19 @@
1-
# demo_iot_transactions
1+
# demo IoT Transactions
2+
3+
[data](https://www.kaggle.com/ntnu-testimon/paysim1/data)
4+
5+
To generate the data needed for the demo, use the jupyter notebook in the repository.
6+
7+
## Transactions columns
8+
9+
* step
10+
* type
11+
* amount
12+
* nameOrig
13+
* oldbalanceOrg
14+
* newbalanceOrig
15+
* nameDest
16+
* oldbalanceDest
17+
* newbalanceDest
18+
* isFraud
19+
* isFlaggedFraud

config.py

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
import plotly.tools as tls
2+
3+
# username = 'TremandraceaeMolena'
4+
username = 'mari-siemens-demo'
5+
# api_key = 'S0ftNgduow7L9v414nHH'
6+
api_key = 'kUvsbjsdmlZ3crI6J1Vs'
7+
# stream_ids = ["tdt6fc19om", "ad620pd6po", "17jyf65941"]
8+
stream_ids = ["atrk2fsoau", "11xr234is5", "npn2jhd5rz"]
9+
mapbox_access_tokens = [
10+
# "pk.eyJ1IjoidHJlbWFuZHJhY2VhZW1vbGVuYSIsImEiOiJjajhvaTB0NnowMm5tMzJwM3Bhd2ZqaHdsIn0.OCnZTjAkZf_YVBoYd4f4Mw",
11+
"pk.eyJ1IjoibWFyaS1zaWVtZW5zLWRlbW8iLCJhIjoiY2o4b3ljYTFqMDduaTJ3bjRxY2M5ZXM5ZSJ9.KMtKH04rjTMONyIHqikEXg",
12+
"pk.eyJ1IjoibWFyaS1zaWVtZW5zLWRlbW8iLCJhIjoiY2o4b3libnEwMDdkNzJxcDNkbzBvM2FuOSJ9.tGZdsqNkmWyMzhiGi0Ds0A"
13+
# "pk.eyJ1IjoidHJlbWFuZHJhY2VhZW1vbGVuYSIsImEiOiJjajhvaTI0amYwM2FrMnFwZTJuc2RndmIyIn0.Rxcyq7QBNUy3eiUxSSfHHw"
14+
]
15+
tls.set_credentials_file(username=username, api_key=api_key, stream_ids=stream_ids)
16+
stream_tokens = tls.get_credentials_file()['stream_ids']

0 commit comments

Comments
 (0)