Skip to content

Commit

Permalink
Update fuel data set with recent data
Browse files Browse the repository at this point in the history
  • Loading branch information
aurrelhebert committed Nov 15, 2017
1 parent ccc617d commit 61b1d98
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 5 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ You will need to set-up a JVM, and then initialise Warp 10 as indicated in getti
## Push Fuel data set

Once Warp 10 is running you can add the Fuel data that are stored in snapshot.mc2 file.
To load them, just update the WRITE_TOKEN in the snapshot file (line 11). Then execute.
To load them, just update the WRITE_TOKEN in the snapshot file (line 23). Then execute.

```
curl -v http://127.0.0.1:8080/api/v0/exec --data-binary @snapshot.mc2
Expand Down
4 changes: 2 additions & 2 deletions demoScript2.mc2
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ $lat1 TOSTRING + ' ' + $long1 TOSTRING +
// Load one point for each fuel station data (Finistere)
//

[ $token 'data.fuel.france' { 'cp' '~29.*' 'type' 'gazole' } NOW -1 ] FETCH
[ $token 'data.fuel' { 'cp' '~29.*' 'type' 'gazole' } NOW 10 d ] FETCH
'set' STORE


Expand Down Expand Up @@ -90,6 +90,6 @@ $seriesSelected
<%
DROP
'currentSeries' STORE
[ $token 'data.fuel.france' $currentSeries LABELS NOW NOW ] FETCH 0 GET
[ $token 'data.fuel' $currentSeries LABELS NOW NOW ] FETCH 0 GET
%>
LMAP
16 changes: 14 additions & 2 deletions snapshot.mc2

Large diffs are not rendered by default.

0 comments on commit 61b1d98

Please sign in to comment.