Revisions
-
Star Develop revised this gist
Oct 30, 2017 . 1 changed file with 0 additions and 2 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,9 +1,7 @@ <html> <head> <script type="text/javascript" src="http://pubnub.com/developers/eon/lib/eon-chart.js"></script> <link type="text/css" rel="stylesheet" href="http://pubnub.com/developers/eon/lib/eon.css" /> </head> <body> <div id="chart"></div> -
Star Develop revised this gist
Oct 19, 2017 . 7 changed files with 48 additions and 45 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,2 +1,2 @@ <script type="text/javascript" src="//pubnub.github.io/eon/v/eon/1.0.0/eon.js"></script> <link type="text/css" rel="stylesheet" href="//pubnub.github.io/eon/v/eon/1.0.0/eon.css"/> This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -9,41 +9,45 @@ <div id="chart"></div> <script> var channel = "c3-gauge" + Math.random(); eon.chart({ pubnub: pubnub, channels: [channel], generate: { bindto: '#chart', data: { labels: true, type: 'gauge' }, bar: { width: { ratio: 0.5 } }, tooltip: { show: false } } }); </script> <script> var pubnub = new PubNub({ publishKey: 'demo', subscribeKey: 'demo' }); setInterval(function(){ pubnub.publish({ channel: channel, message: { eon: { 'Austin': Math.floor(Math.random() * 99), 'New York': Math.floor(Math.random() * 99), 'San Francisco': Math.floor(Math.random() * 99), 'Portland': Math.floor(Math.random() * 99) } } }); }, 1000); </script> </body> This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -17,8 +17,8 @@ } </style> <script type="text/javascript" src="//pubnub.github.io/eon/v/eon/1.0.0/eon.js"></script> <link type="text/css" rel="stylesheet" href="//pubnub.github.io/eon/v/eon/1.0.0/eon.css"/> </head> <body> @@ -31,25 +31,23 @@ } </script> <script> eon.map({ pubnub: pubnub, channels: [channel], id: 'html-id', mbToken: '...', mbId: 'ianjennings.l896mh2e' }); function connect() { var pubnub = new PubNub({ publishKey: 'demo', subscribeKey: 'demo' }); setInterval(function(){ pubnub.publish({ channel: 'eon-map-multiple', message: [ {"latlng":[31,-99]}, @@ -58,7 +56,6 @@ {"latlng":[35,-102]} ] }); }, 1000); }; This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,3 +1,3 @@ <script type="text/javascript" src="http://pubnub.com/developers/eon/lib/eon-map.js"></script> <script type="text/javascript" src="http://pubnub.com/developers/eon/lib/eon-chart.js"></script> <link type="text/css" rel="stylesheet" href="//pubnub.github.io/eon/v/eon/1.0.0/eon.css"/> This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,3 +1,4 @@ <script type="text/javascript" src="http://pubnub.com/developers/eon/lib/eon-chart.js"></script> <link type="text/css" rel="stylesheet" href="//pubnub.github.io/eon/v/eon/1.0.0/eon.css"/> <div id="chart"></div> This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,3 +1,3 @@ <script type="text/javascript" src="http://pubnub.com/developers/eon/lib/eon-map.js"></script> <link type="text/css" rel="stylesheet" href="//pubnub.github.io/eon/v/eon/1.0.0/eon.css"/> <script> This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,7 +1,8 @@ eon.map({ pubnub: pubnub, channels: ['map-channel'], id: 'map', mbToken: '...', mbId: 'ianjennings.l896mh2e' }); </script> -
ToeJamson created this gist
Aug 27, 2015 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,2 @@ <script type="text/javascript" src="http://pubnub.com/developers/eon/lib/eon.js"></script> <link type="text/css" rel="stylesheet" href="http://pubnub.com/developers/eon/lib/eon.css" /> This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,50 @@ <html> <head> <script type="text/javascript" src="http://pubnub.com/developers/eon/lib/eon-chart.js"></script> <link type="text/css" rel="stylesheet" href="http://pubnub.com/developers/eon/lib/eon.css" /> </head> <body> <div id="chart"></div> <script> var channel = "c3-gauge" + Math.random(); eon.chart({ channel: channel, generate: { bindto: '#chart', data: { type: 'gauge', }, gauge: { min: 0, max: 100 }, color: { pattern: ['#FF0000', '#F6C600', '#60B044'], threshold: { values: [30, 60, 90] } } } }); </script> <script> var pubnub = PUBNUB.init({ publish_key: 'demo', subscribe_key: 'demo' }); setInterval(function(){ pubnub.publish({ channel: channel, message: { columns: [['data', Math.random() * 99]] } }) }, 1000); </script> </body> </html> This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,8 @@ [ { latlng: [37.370375, -97.756138] }, {}, {} //... ] This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,68 @@ <!DOCTYPE html> <html> <head> <meta charset=utf-8 /> <title>Taco Transport</title> <meta name='viewport' content='initial-scale=1,maximum-scale=1,user-scalable=no' /> <style> body { margin: 0; padding: 0; } #map { position:absolute; top:0; bottom:0; width:100%; } </style> <script type="text/javascript" src="../../lib/eon.js"></script> <link type="text/css" rel="stylesheet" href="../../lib/eon.css" /> </head> <body> <div id='map'></div> <script> function getNonZeroRandomNumber(){ var random = Math.floor(Math.random()*199) - 99; if(random==0) return getNonZeroRandomNumber(); return random; } </script> <script> eon.map({ id: 'map', mb_token: 'pk.eyJ1IjoiaWFuamVubmluZ3MiLCJhIjoiZExwb0p5WSJ9.XLi48h-NOyJOCJuu1-h-Jg', mb_id: 'ianjennings.l896mh2e', channel: channel, connect: connect }); function connect() { var pubnub = PUBNUB.init({ publish_key: 'demo', subscribe_key: 'demo' }); setInterval(function(){ PUBNUB.publish({ channel: 'eon-map', message: [ {"latlng":[31,-99]}, {"latlng":[32,-100]}, {"latlng":[33,-101]}, {"latlng":[35,-102]} ] }); }, 1000); }; </script> </body> </html> This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,2 @@ bower install eon-chart bower install eon-map This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,3 @@ <script type="text/javascript" src="http://pubnub.com/developers/eon/lib/eon-map.js"></script> <script type="text/javascript" src="http://pubnub.com/developers/eon/lib/eon-chart.js"></script> <link type="text/css" rel="stylesheet" href="http://pubnub.com/developers/eon/lib/eon.css" /> This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,3 @@ <script type="text/javascript" src="http://pubnub.com/developers/eon/lib/eon-chart.js"></script> <link type="text/css" rel="stylesheet" href="http://pubnub.com/developers/eon/lib/eon.css" /> <div id="chart"></div> This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,10 @@ <script> eon.chart({ channel: 'chart-channel', // the pubnub channel for real time data flow: true, // animate new points in generate: { // c3 chart object bindto: '#chart' }, limit: 10 // the number of graph points }); </script> This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,3 @@ <script type="text/javascript" src="http://pubnub.com/developers/eon/lib/eon-map.js"></script> <link type="text/css" rel="stylesheet" href="http://pubnub.com/developers/eon/lib/eon.css" /> <script> This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,7 @@ eon.map({ channel: 'map-channel' // pubnub channel for data id: 'map', // element id to bind to (#map) mb_token: 'pk.eyJ1IjoiaWFuamVubmluZ3MiLCJhIjoiZExwb0p5WSJ9.XLi48h-NOyJOCJuu1-h-Jg', // mapbox token mb_id: 'ianjennings.l896mh2e', // mapbox map id }); </script> This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1 @@ [key, value] This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,8 @@ { columns: [ ['data', Math.random() * 99], [], [] //... ] }