GithubHelp home page GithubHelp logo

shopify / dashing Goto Github PK

View Code? Open in Web Editor NEW
11.0K 658.0 1.2K 2.48 MB

The exceptionally handsome dashboard framework in Ruby and Coffeescript.

Home Page: http://shopify.github.com/dashing/

License: MIT License

Ruby 4.63% JavaScript 89.85% CoffeeScript 1.87% CSS 2.17% HTML 1.49%

dashing's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

dashing's Issues

error with heroku install

im having a problem with running this on heroku.
receiving this error
2012-12-06T21:53:23+00:00 heroku[router]: at=error code=H14 desc="No web processes running" method=GET path=/ host=swively123.herokuapp.com fwd=72.37.249.180 dyno= queue= wait= connect= service= status=503 bytes=

Cycling through dashboards

Say you have one tv but multiple dashboards. Instead of choosing one dashboard to display, it would be awesome if you could cycle through all the different dashboards every 30 seconds or something.

I can code this up but I want to make sure that it is within the philosophy of what dashing is and can do.

problem requiering 'mysql' or 'sequel' in job

EDIT: Nevermind, I figured it out. Like I said, I'm a totally new to Ruby and was unaware that even though 'mysq' was in my local gems, I had to specifically add it to the Gemfile of my dashing project. Sorry for opening this issue too quickly.

Hi,

I'm totally new to Ruby, so I might be missing something super obvious, but I haven't been able to figure it out by searching for my problem.
Basically, i'm trying to fetch some data from a mysql database in a job created with dashing. I have hence installed the mysql gem on my system (running Ruby 1.9.3) and in irb I can require the 'mysql' gem and query the database without a problem. However, when I try to do the same in the job created with dashing, i get the following error:

'require': cannot load such file --mysql (LoadError) in backports-2.6.5/lib/backports/tools.rb:314

The same happens when I try to require 'sequel'. I can start the dashing example perfectly fine by itself.
I would gladly appreciate any hints or solutions to this, since I don't want to post the data via curl if possible. Thanks in advance

Tutorial - How do I implement the iframe widget?

I found the iframe widget under 'widgets' and I added it to my layout as follows ...

<div class="gridster">
  <ul>
    <li data-row="1" data-col="1" data-sizex="1" data-sizey="1">
      <div data-view="iframe"></div>
    </li>
    ETC.
  </ul>
</div>

... but I was not successful at specifying a URL for it to go to via curl.

What steps can I take to get the iframe widget to work?

Small clock widget issue

I've noticed that the dimensions of the clock widget don't match with the standard dimensions for other widgets that span only 1 column and 1 row.
I have tried to decrease the size of the font in the clock widget but without any luck..

Could you perhaps give me some pointers on how I could fix this ?

Thank you.

Running Dashing on System Startup?

I'm trying to set up Dashing on a server so it will start on boot.

What is the "recommended" way of starting Dashing on system startup? Init? Monit? God? Supervisord?

Any help would be appreciated.

Thanks.

Dashing bar chart (instead of area for convergence widget)

Hi, I would like to create a bar chart (instead of area chart) for convergence widget.
Kindly help with pointers.
Is it that in the graph.coffee we should make renderer as bar and it would work?

@graph = new Rickshaw.Graph(
  element: @node
  width: width
  height: height
  series: [
    {
    color: "#fff",
    data: [{x:0, y:0}]
    renderer: 'bar'
    }
  ]
)

error when implementing new highcharts widget

I'm working on implementing highcharts.js and i'm running into problems because the div that the highcharts renders to doesn't seem to exist yet.

So in my highchart.coffee i've got:

  ready: ->
  @chart = new Highcharts.Chart(
    chart:
      renderTo: "HCcontainer"
      type: "line"

    series: [
      name: "Tokyo"
      data: [7.0, 6.9, 9.5, 14.5, 18.2, 21.5, 25.2, 26.5, 23.3, 18.3, 13.9, 9.6]
    ,
      name: "New York"
      data: [-0.2, 0.8, 5.7, 11.3, 17.0, 22.0, 24.8, 24.1, 20.1, 14.1, 8.6, 2.5]
    ]
  )

highchart.html has this div:

<div id="HCcontainer" style="min-width: 400px; height: 400px; margin: 0 auto"></div>

which works correctly if I comment out my highchart.coffee, but when I run my code, I get a highchart error which points me here - http://www.highcharts.com/errors/13 seemingly because the div doesn't exist yet.

Is there a way I can ensure that the div exists before executing ready?

Swap out Thin for Unicorn

I am kinda halfway through this on a sick day and I thought it might benefit the project as a whole.

It started off as a hey why not type of thing but then, as I thought about it, might make sense if we were expanding the use case to more devices (I am currently plan on using dashing as screensaver)

I estimate being able to split it up into three or four workers which might make it a bit faster on load.

I would of course do the swapping and submit a pull request but really I was just wondering if anyone either does not want unicorn or can think a reason why it would be bad.

Feature Idea: API for sending maintenance commands to dashboards

It would be awesome if you could do stuff like:

Display a message on the screen

curl -d '{ "message": "The dashboard will be down for maintenance for the next hour." }' http://localhost:3030/my_dashboard/message

Trigger the dashboard to refresh

curl http://localhost:3030/my_dashboard/restart

Can dashing layout be made responsive?

I tried to resize my brower while trying the demos but the widgets did not resize to adapt to the new resolution. How hard would it be to make the layout responsive? Would just using a responsive framework like Twitter Bootstrap Responsive be enough?

Thank you

Synergy question: Can't get it to work

I've been trying to get the synergy pane working in the sample dashboard, but can't seem to get it to work right. I tought I might be doing something wrong until I noticed that the associated job runs every 2 seconds and generates a value between 0 and 100. The synergy pane never shows ANY value other than 1. Commenting out the random generator and updating the synergy widget via curl doesn't seem to work either. Is this a known problem, or did I stumble across a bug?

Beginner's Guide (curl, twitter, and clock)?

I am VERY new to ruby & dashing, but I have installed the demo -- My super sweet dashboard -- locally and was able to use this curl command to update the 'welcome' widget:

curl -d '{ "auth_token": "YOUR_AUTH_TOKEN", "text": "This is SO very cool!" }' \http://localhost:3030/widgets/welcome

Two Newbie Requests:

  1. Can you please provide sample curl commands that would update the other widgets in this demo (http://dashingdemo.herokuapp.com/sample)?: synergy, buzzwords, valuation, and convergence
  2. I see a twitter and clock example in this demo (http://dashingdemo.herokuapp.com/sampletv). -- Can you please provide a sample.erb (and other files if needed) that show me how to implement twitter and the clock?

Thank you in advance for your patience with my newness. I do know php/mySQL as well as ASP/SQL Server but have not yet programmed in Ruby.

Sortable list widget?

Hi,

I copied the List widget to create a widget with a timestamp. I'd like to sort the list by this timestamp when it displays it. I had my backend code do the sorting initially, but it's clear I need to do it at the widget level.

Any tips on how to do this?

jobs not posting messages to '/events'

Code works fine on my development/local machine (osx 10.6.8) and was working on my aws instance (ubuntu 12.04) until I made some slight changes (to things that should not affect something like this, see changes captured here: http://i.imgur.com/SSjES.png - I'd share the repo, but it is private and contains some proprietary information for an employer) and restarted the dashing server (using -d and -p). That I can share with you: http://ec2-184-73-87-196.compute-1.amazonaws.com:8080/cost. You'll notice in the console that I am getting 'open connection' and 'connection error' logged continuously and that '/events' (http://ec2-184-73-87-196.compute-1.amazonaws.com:8080/events) doesn't show any data (however locally on my machine it works fine). I've run the job scripts separately on the server and it returns the expected data (instead of using send_event I modify the file to print the value out). I've tried to comb over your code base to find where the gap might be, but I just don't see anything. I will also note that on my dev machine (osx) I didn't need to install a JS Interpreter, but on the server I had to install therubyracer. And when I went to 'bundle install' yesterday therubyracer updated to 0.11.1 and I can't seem to force a specific version to test if that is the issue or not. Hope you can help :)

getting a error on 'dashing start'

$ dashing start
config.ru:1:in require': /Library/Ruby/Gems/1.8/gems/dashing-1.0/lib/dashing.rb:20: syntax error, unexpected ':', expecting $end (SyntaxError) set server: 'thin', connections: [], history: {} ^ from config.ru:1 from /Library/Ruby/Gems/1.8/gems/rack-1.4.1/lib/rack/builder.rb:51:ininstance_eval'
from /Library/Ruby/Gems/1.8/gems/rack-1.4.1/lib/rack/builder.rb:51:in initialize' from config.ru:1:innew'
from config.ru:1

Adding a websocket implementation

I'd like to have some buttons on the dashboard to start monitoring new services (for example start a database service and monitor its logs).

I was thinking about using websockets and quickly setup one with em-websocket.

I cannot put it neither in lib nor in jobs otherwise the em reactor will stop dashing from starting.

What will be the right place to put it so that it can be started automatically without blocking?

Is there a better way to achieve client to server communication?

Issues with thin 1.5.0?

When I type dashing start it's extremely sloow.

I tried it with OSX Lion and Windows 7 on ruby 1.9.3-p194 and 1.9.3-p286.

It takes about a minute to start up. The same happens with thin start.

---- UPDATE

It is not linked to thin at all.

I have an executable file in lib folder called adder.rb which has the only purpose to add fake data to a text file.

If I have this file in place dashing start takes forever to load. If I remove that file everything is fine.

Why is it so?

Thanks

No widgets being displayed

Followed the Getting Started list to get a build running for my user experience firm. I'm the newbie when it comes to Ruby, Javascript, etc. but after following the "up and running" guide, I loaded up http://localhost:3030/sample and I'm not seeing any widgets. It's a blank page.

When I checked the console there's a lone error of:

Uncaught Error: Encoding::InvalidByteSequenceError: "\xE2" on US-ASCII (in /Users/lookthink/lookthink-dashboard/widgets/comments/comments.coffee)

on line 1 of application.js. Did I miss a step during install or am I missing a particular library? I know this is probably a super simple thing that anyone else could figure out (as it seems though no one else is having any issues getting this at least running) but I would appreciate any help.

Widgets not being updated after a period of time

When a browser has the dashboard page open for some time, some widgets fail to update. Not all widgets fail to update at the same time, but the longer the browser session runs, seemingly the more widgets fail. Typically the first one will fail to update after only a few minutes.

Setting Dashing.debugMode = true I can see the data is making it as far as the browser, but the widgets fail to update. Hitting refresh in the browser causes the page to load with the correct values.

I'm running dashing from 'dashing start'. Most widgets have data inserted via a curl request, although one is using a job. The widget using the job does not appear to exhibit the issue, although this is a graph widget - all others are numbers.

Any suggestions on how I can debug this further?

HTTP Basic Authentication

Me again! What's the best way to add HTTP Basic Authentication to the entire application? Or, is it only possible to use Google Authentication?

Run Job at startup

I have a Scheduler job that pulls some data from an external source and then sends it to the widget. How can I force that job to run whenever the page is refreshed? The contents don't change that frequently so I only want the job to run daily however whenever someone loads the dashboard for the first time I would like for it to load the contents. Here is my code:

Scheduler Job

require 'json'
require './lib/githubcomments'

comments = GithubComments.new

SCHEDULER.every '1d', :first_in => 0 do |job|
points = [name: "Operations", data: [comments.january.count,comments.february.count,comments.march.count,comments.april.count,comments.may.count,comments.june.count,comments.july.count,comments.august.count,comments.september.count,comments.october.count,comments.november.count,comments.december.count]]
x_axis = ["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]
y_axis_text = "Num of Comments"

send_event('code_comments', {series: points, x_axis: x_axis, y_axis: y_axis_text})
end

Widget

class Dashing.Highchart extends Dashing.Widget
createChart: (series,x_axis,y_axis) ->
@Chart = new Highcharts.Chart
chart:
renderTo: "HCcontainer"
type: "line"

  series: series 
  xAxis: {
    categories: x_axis
  }
  yAxis: {
    title: {
      text: y_axis
    }
  }
  plotOptions: {
    line: {
      dataLabels: {
        enabled: true
      }
    }
  }

ready: ->
series = []
x_axis = []
y_axis = ""
@createChart(series,x_axis,y_axis)

onData: (data) ->
@createChart(data.series,data.x_axis,data.y_axis)

Auth example creates syntax error

When using your example of adding auth to config.ru, I end up with a syntax error caused by the first redirect:

config.ru:11: syntax error, unexpected kEND

the response connection is always closed

I am very interested in the repo, and installed it follow the docs. BUT I just trapped in some problems. These is the steps I installed it:

  1. Installed a clean debian distribution in my virtual box
  2. Installed the ruby1.9.1 and rubygems
  3. Installed dashing as the docs
  4. And then, I type in the command "dashing new xxx", and changed nothing
  5. I start the dashing in the folder 'xxx'
  6. I visit the web server in my chrome
  7. I can see the beautiful page, BUT when I use curl to post data to my the server, the data in the page didn't changed
  8. I check the log, I can the post records, and return 204
  9. when I compared my web to the demo on "http://dashingdemo.herokuapp.com/sample", I found when I sent a request to /events, the "connection" value of my response is close while the value of demo is keep-alive

what can I do to run it normally? Thanks!

here is my gem list:
*** LOCAL GEMS ***

backports (2.6.5)
bundle (0.0.1)
bundler (1.2.3)
coffee-script (2.2.0)
coffee-script-source (1.4.0)
daemons (1.1.9)
dashing (1.0)
eventmachine (1.0.0)
execjs (1.4.0)
hike (1.2.1)
libv8 (3.11.8.11 x86_64-linux)
multi_json (1.5.0)
rack (1.4.3)
rack-protection (1.3.2)
rack-test (0.6.2)
ref (1.0.2)
rufus-scheduler (2.0.17)
sass (3.2.5)
sinatra (1.3.3)
sinatra-contrib (1.3.2)
sprockets (2.8.2)
thin (1.5.0)
thor (0.16.0)
tilt (1.3.3)
tzinfo (0.3.35)

and here is my run status:
 2013-01-09 10 33 42

invalid byte sequence in US-ASCII

When trying to install Dashing with gem, I get the error:
ERROR: While executing gem ... (ArgumentError)
invalid byte sequence in US-ASCII

I'm using Ruby 1.9.1 with gem 1.3.7 on an Ubuntu Natty.

Deplyment with centos/apache/passanger?

I have been trying to deploy dashboard on production Centos server, and after spending several hours tweaking apache and passenger, I am still not sure if scheduling works correctly. Maybe someone has tried that before me and can give some pointers?

If it doesn't work with passenger completely, then maybe there is some other way how to deploy it as a standalone server?

btw, Heroku is not an the best answer, as I want dashboard to access databases that are located within our corporate network.

thank you in advance

Same widget, different 'arguments'

I've made a widget that checks the build status of a project. However, I want to have several of these widgets which check different builds. I can do this by passing a different argument to the Ruby job, but how do I go about doing this? Can I specify some kind of argument in the template?

(Please let me know if there's a more appropriate place for questions like this)

Creating widgets with ds3.js

Hello,

is it possible to create custom widget using charts from DS3 ?
For example: http://bl.ocks.org/3883195
But still input data the way dashing does...

I am not familiar yet with javascript, coffeescript and similar technologies.

Thanks.

Regards.

How do you style the widgets ?

What's the best way to style the widgets ?

ie. do we edit application.scss and just add custom stuff at the bottom or do we create a new css/scss file in the assets/stylesheet directory and it will automatically get included ?

Just want to resize the text as it's a little small for a display screen.

Challenge with update of dashing dashboard via CURL(REST)

Hi,
I had dashing dashboard working till recently but I believe because of some hung port problems (or something I'm not sure), the dashboard has stopped receiving updates from outside programs and curl.
Following is the trace of Curl.
Kindly help

user@pc ~
$ curl -d '{ "auth_token": "YOUR_AUTH_TOKEN", "value": 12343 }' http://localhost:3030/widget/synergy

<style type="text/css"> body { text-align:center;font-family:helvetica,arial;font-size:22px; color:#888;margin:20px} #c {margin:0 auto;width:500px;text-align:left} </style>

Sinatra doesn’t know this ditty.

Try this:
post '/widget/synergy' do
  "Hello World"
end

Changing Meter Values via curl

Hi,

I'm trying to change the value of a meter using the curl -d method (push) and it doesn't seem to work. Not sure if I have the syntax correct for a meter, though the syntax works for text items.

Any ideas ?

Nothing Displays on Internet Explorer

Just thought I'd mention that nothing shows up when you try to use IE as the browser for dashing.

Reason this came up, is we were trying to use a screensaver that uses the IE browser to show the page.

Rails App with built in backend

Im was looking to use dashing to have a dashboard of upcoming jobs and job statuses on our screen, but was hoping to build a backend that each use could log into and add, change, delete jobs and it would reflect on the front end.
I was hoping to build this is a rails app and include dashing but have since realised maybe thats not going to be that easy.

Was juts putting it out there if anyone had done anything similar, if Im missing something blatently obvious please pull me up as Im very much a noob at ruby/ rails programming.

dashing start > Could not find a JavaScript runtime.

Hello,

I cannot start dashing when following http://shopify.github.com/dashing/#setup :

$ bundle
Using backports (2.6.5)
Using coffee-script-source (1.4.0)
Using multi_json (1.3.7)
Using execjs (1.4.0)
Using coffee-script (2.2.0)
Using daemons (1.1.9)
Using tzinfo (0.3.35)
Using rufus-scheduler (2.0.17)
Using sass (3.2.2)
Using rack (1.4.1)
Using rack-protection (1.2.0)
Using tilt (1.3.3)
Using sinatra (1.3.3)
Using eventmachine (1.0.0)
Using rack-test (0.6.2)
Using sinatra-contrib (1.3.2)
Using hike (1.2.1)
Using sprockets (2.8.1)
Using thin (1.5.0)
Using thor (0.16.0)
Using dashing (1.0)
Using bundler (1.2.1)
$ ruby -v
ruby 1.9.3p286 (2012-10-12 revision 37165) [x86_64-linux]
$  dashing start
/home/meister/.rvm/gems/ruby-1.9.3-p286/gems/execjs-1.4.0/lib/execjs/runtimes.rb:51:in `autodetect': Could not find a JavaScript runtime. See https://github.com/sstephenson/execjs for a list of available runtimes. (ExecJS::RuntimeUnavailable)
        from /home/meister/.rvm/gems/ruby-1.9.3-p286/gems/execjs-1.4.0/lib/execjs.rb:5:in `<module:ExecJS>'
        from /home/meister/.rvm/gems/ruby-1.9.3-p286/gems/execjs-1.4.0/lib/execjs.rb:4:in `<top (required)>'
        from /home/meister/.rvm/gems/ruby-1.9.3-p286/gems/backports-2.6.5/lib/backports/tools.rb:314:in `require'
        from /home/meister/.rvm/gems/ruby-1.9.3-p286/gems/backports-2.6.5/lib/backports/tools.rb:314:in `require_with_backports'
        from /home/meister/.rvm/gems/ruby-1.9.3-p286/gems/coffee-script-2.2.0/lib/coffee_script.rb:1:in `<top (required)>'
        from /home/meister/.rvm/gems/ruby-1.9.3-p286/gems/backports-2.6.5/lib/backports/tools.rb:314:in `require'
        from /home/meister/.rvm/gems/ruby-1.9.3-p286/gems/backports-2.6.5/lib/backports/tools.rb:314:in `require_with_backports'
        from /home/meister/.rvm/gems/ruby-1.9.3-p286/gems/coffee-script-2.2.0/lib/coffee-script.rb:1:in `<top (required)>'
        from /home/meister/.rvm/gems/ruby-1.9.3-p286/gems/backports-2.6.5/lib/backports/tools.rb:314:in `require'
        from /home/meister/.rvm/gems/ruby-1.9.3-p286/gems/backports-2.6.5/lib/backports/tools.rb:314:in `require_with_backports'
        from /home/meister/.rvm/gems/ruby-1.9.3-p286/gems/dashing-1.0/lib/dashing.rb:5:in `<top (required)>'
        from config.ru:1:in `require'
        from config.ru:1:in `block in <main>'
        from /home/meister/.rvm/gems/ruby-1.9.3-p286/gems/rack-1.4.1/lib/rack/builder.rb:51:in `instance_eval'
        from /home/meister/.rvm/gems/ruby-1.9.3-p286/gems/rack-1.4.1/lib/rack/builder.rb:51:in `initialize'
        from config.ru:1:in `new'
        from config.ru:1:in `<main>'
        from /home/meister/.rvm/gems/ruby-1.9.3-p286/gems/thin-1.5.0/lib/rack/adapter/loader.rb:33:in `eval'
        from /home/meister/.rvm/gems/ruby-1.9.3-p286/gems/thin-1.5.0/lib/rack/adapter/loader.rb:33:in `load'
        from /home/meister/.rvm/gems/ruby-1.9.3-p286/gems/thin-1.5.0/lib/thin/controllers/controller.rb:181:in `load_rackup_config'
        from /home/meister/.rvm/gems/ruby-1.9.3-p286/gems/thin-1.5.0/lib/thin/controllers/controller.rb:71:in `start'
        from /home/meister/.rvm/gems/ruby-1.9.3-p286/gems/thin-1.5.0/lib/thin/runner.rb:187:in `run_command'
        from /home/meister/.rvm/gems/ruby-1.9.3-p286/gems/thin-1.5.0/lib/thin/runner.rb:152:in `run!'
        from /home/meister/.rvm/gems/ruby-1.9.3-p286/gems/thin-1.5.0/bin/thin:6:in `<top (required)>'
        from /home/meister/.rvm/gems/ruby-1.9.3-p286/bin/thin:19:in `load'
        from /home/meister/.rvm/gems/ruby-1.9.3-p286/bin/thin:19:in `<main>'
        from /home/meister/.rvm/gems/ruby-1.9.3-p286/bin/ruby_noexec_wrapper:14:in `eval'
        from /home/meister/.rvm/gems/ruby-1.9.3-p286/bin/ruby_noexec_wrapper:14:in `<main>'

Binding between widgets

What is the proper or planned method for widgets to inter communicate? I have the need for a USA map widget to communicate the state selected to a Graph widget. Would the Map widget produce a send_event itself? Seems odd.

Update status issue with Number widget

When updating the Number widget with the 'status' payload, it doesn't seem to want to go back to a previous known status..

Example:

  1. Start with initial widget and status 'normal'
  2. Update status to 'warning' -> switches to warning
  3. Update status to initial status 'normal' -> doesn't work
  4. Update status to 'danger' -> switches to danger
    5 Update status to initial status 'status' -> doesn't work

Difficulty posting in graph points, and logging...

I'm posting this to a graph widget with curl:
{"points":["446","444","422","419","421","420","428","430","420","422","409","419","408","393","380","412","426","433","436","436","426","430","456","493","483","458","478","450","481","98"],"auth_token":"MYTOKEN"}

I believe that's the correct format, but it's not updating the widget, and although I've added the "debugger" line in the onData (and in the application.coffee as in the wiki), I don't get any log lines in my heroku logs.

Any assistance appreciated, loving this framework!

Firefox mis-handles values and timing for some widgets

All widgets seem to work great in Chrome on OSX. Firefox however seems to have trouble with its Synergy (Meter) widget, as well as the Current Valuation (Number?) Widget. Under the current code conditions, it fluctuates between a value of 0 and 1 rather than the expected 0 and 100. Changing the server side code:

jobs/sample.erb

send_event('synergy',   { value: rand(100) })

to

send_event('synergy',   { value: rand(10000) })

seems to fix it. However then of course, Chrome recognizes this as a value between 0 and 10,000. Some other way of adjusting the client side code must be found to make for this difference between browsers.

The 2 second delay between changes of values also seems to be broken for these widgets in Firefox where as not affected in Chrome.

Interestingly, the graph widget does not seem to be affected by either of these issues suggesting that maybe this could be an issue on a widget-per-widget basis.

Timeseries - can Dashing create a graph

I have seen a graph in the sample dashboard.
I am using direct update of the dashboard data via REST.
How do I frame a curl request to update the dashboard in timeseries.

In the code base for convergence graph for sample dashboard - but it doesnt indicate a timeseries.

Populate the graph with some random points

points = .each do |i|
points << { x: i, y: rand(50) }
end
last_x = points.last[:x]

SCHEDULER.every '2s' do
points.shift
last_x += 1
points << { x: last_x, y: rand(50) }

send_event('convergence', points: points)
end

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.