GithubHelp home page GithubHelp logo

Cycling through dashboards about dashing HOT 4 CLOSED

shopify avatar shopify commented on June 2, 2024
Cycling through dashboards

from dashing.

Comments (4)

pushmatrix avatar pushmatrix commented on June 2, 2024

It's a totally valid use case, and would make for a good extension. If you can figure out how to make it as a gem, that'd be ideal.

from dashing.

sikosis avatar sikosis commented on June 2, 2024

I'd like to see that feature too. Would help prevent burn in too.

from dashing.

vrish88 avatar vrish88 commented on June 2, 2024

I've hacked together a Sinatra extension that adds a _cycle route and uses http's refresh mechanism to cycle through the pages. I've gotten it to work with the a sample application but I haven't been able to get the _cycle route to register with a dashing app yet.

I've tried modifying a dashing apps config.ru:

require "sinatra/cyclist"
require 'dashing'

configure do
  set :auth_token, 'YOUR_AUTH_TOKEN'

  helpers do
 ...

But I get the error: No such file or directory - sample/dashboards/_cycle.erb which indicates to me that the _cycle action is getting matched by get '/:dashboard' in dashing.rb.

Any thoughts on how to get sinatra to match it with the correct route?

from dashing.

vrish88 avatar vrish88 commented on June 2, 2024

Actually, I figured it out, so the gem should be good to go! https://github.com/vrish88/sinatra_cyclist

The instructions in the readme specify how to install it for a Dashing project.

from dashing.

Related Issues (20)

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.