|
|
@@ -91,38 +91,6 @@ WebSocketTest.prototype.makercv = function (m) { |
|
|
|
this.onmessage(new MessageEvent('websockettest', { data: m })); |
|
|
|
} |
|
|
|
|
|
|
|
fakeData = [ |
|
|
|
[ 1578544199000, 0.3934 ], |
|
|
|
[ 1578544209000, 0.4934 ], |
|
|
|
[ 1578544219000, 0.5234 ], |
|
|
|
[ 1578544229000, 0.4734 ], |
|
|
|
[ 1578544239000, 0.4334 ], |
|
|
|
[ 1578544249000, 0.2334 ], |
|
|
|
[ 1578544259000, 0.1034 ], |
|
|
|
[ 1578544269000, -0.4334 ], |
|
|
|
[ 1578544279000, -0.6334 ], |
|
|
|
[ 1578544289000, -0.2334 ], |
|
|
|
] |
|
|
|
|
|
|
|
fakeConData = [ |
|
|
|
[ 1578544199000, 0.3934 ], |
|
|
|
[ 1578544209000, 0.4934 ], |
|
|
|
[ 1578544219000, 0.5234 ], |
|
|
|
[ 1578544229000, 0.4734 ], |
|
|
|
[ 1578544239000, 0.4334 ], |
|
|
|
[ 1578544249000, 0.2334 ], |
|
|
|
[ 1578544259000, 0.1034 ], |
|
|
|
[ 1578544269000, 0.4334 ], |
|
|
|
[ 1578544279000, 0.6334 ], |
|
|
|
[ 1578544289000, 0.2334 ], |
|
|
|
] |
|
|
|
|
|
|
|
fakeOverviewData = { |
|
|
|
grid: fakeData, |
|
|
|
consumption: fakeConData, |
|
|
|
production: fakeConData, |
|
|
|
} |
|
|
|
|
|
|
|
function getoverviewdata() { |
|
|
|
return { |
|
|
|
grid: fakedata.index, |
|
|
|