-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdata.html
32 lines (32 loc) · 1.2 KB
/
data.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
<!doctype html>
<html lang="en">
<head>
<script async src="https://www.googletagmanager.com/gtag/js?id=G-WDN0Q9FRX8"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'G-WDN0Q9FRX8');
</script>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="canonical" href="https://niustats.com/data.html">
<title>Niu Stats - electric scooter battery statistics - download data</title>
<meta name="description" content="Get your battery capacity stats. Enter your login and password from Niu mobile app to get all your riding data. You can then see charts or download and process it by yourself.">
<link href="favicon.ico" rel="icon" type="image/x-icon">
<meta name="robots" content="noindex">
</head>
<body>
<pre>
sn,date,distance,battery
<script>
const trips = JSON.parse(localStorage.getItem('trips'));
Object.keys(trips).forEach(function (sn) {
trips[sn].forEach(function (t) {
document.write(sn + ',' + t.d + ',' + t.m + ',' + t.b + '\n');
})
});
</script>
</pre>
</body>
</html>