Git Product home page Git Product logo

sprightly's Introduction

Sprightly is an ambient display dashboard/system, mainly for Mozilla. Here's how it works:

* lib/sprightly.php is the PHP class that does all the data fetching from remote sources and writes them to json files in /data.

* lib/cron-*.php should be run at the indicated intervals to call the appropriate sprightly functions to refresh data. These scripts can either be set up as crontabs or loaded in a browser and will automatically refresh at the appropriate intervals (useful for local development, though a .htaccess file should probably be added to prevent direct access in production)

Sample cron setup:
* * * * * /usr/local/php5/bin/php -f /home/fligtar/sprightly.fligtar.com/lib/cron-minutely.php
*/5 * * * * /usr/local/php5/bin/php -f /home/fligtar/sprightly.fligtar.com/lib/cron-5minutely.php
0 * * * * /usr/local/php5/bin/php -f /home/fligtar/sprightly.fligtar.com/lib/cron-hourly.php

* index.php is what should be loaded on the ambient displays. The page is loaded once and the data is refreshed in the background by reading from the json files written in /data. (This way, no matter how many displays are set up, remote data sources are only hit once by the sprightly script and all displays are kinda in sync)

sprightly's People

Contributors

fligtar avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar

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.