Comments (4)
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.
I'd like to see that feature too. Would help prevent burn in too.
from dashing.
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.
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)
- Eclipse IDE
- Scheduler, :handle_exception
- How to inject variables in the html of widgets HOT 1
- You have to install development tools first
- Installation on windows throws auth token error HOT 1
- Dashing Dashobarding
- How to leave blank space between widgets HOT 1
- Avoid refreshing the list widget if the data is the same HOT 3
- Dynamically getting values based on data-id HOT 2
- Remove the 'Le' words from the wiki
- Issue Installing on Raspberry Pi HOT 1
- Add widget dynamically based on Server Result
- Save automatically gridster layout after drag widgets
- run job on page refresh
- Upgrade gemspec to run with Rack 1.6 aka Rails 4.2.10 HOT 1
- Suspected plagiarism HOT 1
- Margins around Dashboard
- Push successful but getting "Something Went Wrong"
- Smashing dashboard is displaying random value of "Last updated at"
- Dynamically change widgets data-id does nothing
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dashing.