• Stars
    star
    129
  • Rank 279,262 (Top 6 %)
  • Language
    JavaScript
  • License
    MIT License
  • Created over 11 years ago
  • Updated over 7 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

A JavaScript solari board

Solari Board

Fog Creek has used its Big Board for close to three years...and now you can have your own!

The Solari Board jQuery application will accept JSON from any source. The support team at Fog Creek feeds in tech call information from FogBugz, but the possibilities are limitless!

The application expects a JSON array wrapped in a function call (JSONP) and filled with objects that have the following properties:

  • sDate: the day of the appointment. The Solari board can handle values like yesterday or today.
  • sTime: the time of the appointment. Format like 22:45 and remember the leading zero on the hours. If this appointment does not have a time, make it an empty string.
  • sDeparture: an arbitrary string; on our board, it's the email address of the support technition who has the support call.
  • nStatus: allows you to set the status to one of four statuses: "All Aboard" (nStatus = 1), "On Time" (nStatus = 2), "Delayed" (nStatus = 3) or "Departed"(nStatus = 4).
  • nTrack: an arbitrary integer between 0 and 99; we use it to indicate which extension the call should be on, but you can use it for whatever purpose you want.
  • fLight: should be set to true if you want the lightbulb by that row illuminated, and false otherwise.

Here's an example:

jsonpCallback(
 [
    {'sDate': 'today',
     'sTime': '13:30', 
     'sDeparture': '[email protected]',
     'nStatus': 1,
     'nTrack': 17,
     'fLight': true
    },
    {'sDate': 'yesterday', 
     'sTime': '16:00',
     'sDeparture': '[email protected]',
     'nStatus': 2,
     'nTrack': 19,
     'fLight':false
    },
    {'sDate': 'July 8th, 2013',
     'sTime': '16:30',
     'sDeparture': '[email protected]',
     'nStatus': 2,
     'nTrack': 23,
     'fLight':false
    }
 ]
)

How do I use it?

It's simple!

  1. Include the following lines in your HTML:

    <script type="text/javascript" src="js/jquery.min.js"></script> <script type="text/javascript" src="js/jquery.transit.min.js"></script> <script type="text/javascript" src="js/date.js"></script> <script type="text/javascript" src="js/solari.js"></script> Your browser does not support the audio element.
  2. Add the following script to your webpage's head:

    <script> $(document).ready(function() { //remove the div parameter to append directly to body addSolariBoard("#myDIv"); }); </script>
  3. Point the board to the script that will feed it jsonp

    $.post('../example/postJson.py') // replace this with your own script

Currently, Google Chrome and Internet Explorer are the only supported browsers. This is due to an issue in animating the CSS property backgroundPositionY on other browsers. We'd welcome patches that help resolve this issue.

Additional Configuration and Examples

  • Toggle status_override in solari.js to have the board automatically change the status column using time and date due.
  • The sDate field takes any date.js parsable string (e.g. today, next monday)
  • There are two included examples, postJsonp.py is a basic script that statically sends the sample payload given above to the solari board. postFogbugz.py connects to a FogBugz installation through the xml api. To use either example, Just place all files and folders onto a Python-enabled CGI server, then edit fbsettings.py with your FogBugz URL and FogBugz token if needed.

FogBugz Solari Board

Copyright

Copyright Β© 2013 Fog Creek Software, Inc. All rights reserved.

Licensing

The Solari Board is licensed under the MIT license.

More Repositories

1

WebPutty

WebPutty is a simple CSS editing and hosting service that you can run on Google App Engine.
Python
597
star
2

friendly-words

The Glitch word list, packaged into an NPM module for easy use.
JavaScript
301
star
3

logging

A Go package for logging that supports a tagged style of logging
Go
119
star
4

mini

A golang package for parsing ini-style configuration files
Go
74
star
5

RoslynGenerator

A C# code generator using Roslyn, extracted from Wasabi v3.1.0. MIT licensed.
C#
46
star
6

profiler

Web-based memory profiler for Go services
Go
41
star
7

engineering-ladder

Glitch's Engineering Ladder
19
star
8

AlchemySharp

SQL query builder for .NET inspired by SQLAlchemy
C#
18
star
9

shared-components

Shared React components for community & editor
JavaScript
16
star
10

dotenv

a totally tubular πŸ„πŸΌ library to parse and manipulate dotenv syntax
JavaScript
10
star
11

hyperdev-base

HyperDev base image
Shell
10
star
12

elasticsearch-analysis-opengrok

Java
8
star
13

hello-express

A simple Node app built on Express, instantly up and running.
JavaScript
7
star
14

Proto.js

Prototypical Inheritance Embraced
JavaScript
5
star
15

coffeetime

The CoffeeTime app schedules weekly meetings with your co-workers
JavaScript
5
star
16

devto

Our handbook for the Glitch org on Dev.to
Go
4
star
17

glitch-community-widget

the widget embed for community apps, standardizing their headers and footers
Shell
4
star
18

email

Glitch app that creates transactional email messages to send to users
CSS
3
star
19

HtmlAgilityPack.1.3.0

Fork of HtmlAgilityPack focused on performance and stability. Based on 1.3.0
C#
3
star
20

hyperweb-init

DEPRECATED: Inits a Node Project with Express and file support
CoffeeScript
3
star
21

glitch-button

click the 🎏 fish to learn about an app and view source or remix
JavaScript
2
star
22

glitch-community-backup

Party like it's 1999
CoffeeScript
2
star
23

hello-webpage

Your very own basic web page, ready for you to customize.
HTML
2
star
24

Sketch-Component-Library

Component Library for Glitch Community
1
star
25

ScoutAppender4net

Save errors to BugzScout automatically with Log4Net
C#
1
star
26

learn-compute

A starter kit for learning about edge computing in Glitch
JavaScript
1
star
27

manuscript-checklist

Glitch-backed customization for adding checklists to Manuscript
JavaScript
1
star
28

Pupdates-CMS

JavaScript
1
star
29

HyperDev-init

Inits a Basic Node Project with Express
CoffeeScript
1
star