Skip to content

Conversation

acropup
Copy link
Contributor

@acropup acropup commented Oct 2, 2015

This is to update isvhsopen.com to work with SpaceTime (https://github.com/vhs/SpaceTime).

The new isvhsopen.com will have two datapoints:

door - values are 'open' or 'closed'
isvhsopen_until - 'until 12:35' or ''
This update includes changes to input santization (now allows period, colon, and space) and a new fullpage template 'data-dual-full.tt' that displays two datapoints on the same page.

(Note that the previous, similar pull request was for the perl codebase. Since we've changed to javascript, this is those same changes applied to the new codebase.)

Relaxed sanitization for data values to permit period, space, and colon characters.
Added URI matching for dual-dataname query for fullpage, which uses template 'data-dual-full'.
path: '/s/{spacename}/data/{dataname1}/{dataname2}/fullpage'
This template is for displaying two datapoints at once. Visually, datapoint1 is the primary datapoint, and datapoint2 is the secondary.
The primary use for this is for the new isvhsopen.com. datapoint1.value will be either 'closed' or 'open' and datapoint2.value might be 'until 12:45'. CSS formatting is specifically designed for this to look good, but other datapoint values will still work fine.

Note that the "as of" tooltip only shows the last updated time of datapoint1.
@interlock
Copy link
Contributor

LGTM, merging.

interlock added a commit that referenced this pull request Oct 3, 2015
Updates to support SpaceTime (new isvhsopen.com system)
@interlock interlock merged commit ed221b9 into vhs:master Oct 3, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants