Skip to content
This repository has been archived by the owner on Sep 23, 2020. It is now read-only.
/ dashing-reload Public archive

Periodically reloads a dashing dashboard in the browser.

Notifications You must be signed in to change notification settings

aelse/dashing-reload

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 

Repository files navigation

dashing-reload

dashing-reload is a widget for Shopify's dashing framework to cause the browser to reload the page periodically. This is done to work around problems in the browser due to memory utilisation that become apparent after having a dashboard loaded for an extended period of time. (See http://toxaq.com/index.php/2012/12/running-shopifys-dashing-on-a-raspberry-pi/#comment-91)

This repo contains the reload widget that when included in a dashboard will automatically cause the browser to reload.

Configuration

Copy the reload directory to the widgets directory in your dashing installation. Include the reload widget in your dashboard, outside of the gridster div.

<div data-id="reload" data-view="Reload" data-title="Reload" style="display: none"></div>

If you really want to see the countdown you can add it as you would any other widget.

<li data-row="999" data-col="1" data-sizex="1" data-sizey="1">
    <div data-id="reload" data-view="Reload" data-title="Reload"></div>
</li>

The pre-configured reload interval is 30 minutes. You may set this value in reload.coffee

See also

Another author has created the Remote Reload widget which allows you to trigger a page reload from an external process. You could use that widget along with a dashing job that periodically triggers the reload to achieve the same thing provided by this Reload widget.

About

Periodically reloads a dashing dashboard in the browser.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published