GithubHelp home page GithubHelp logo

mythmon / crimsontwins Goto Github PK

View Code? Open in Web Editor NEW
25.0 8.0 5.0 8.04 MB

We have these two big TVs on the wall. This is something to do with them.

License: Mozilla Public License 2.0

JavaScript 69.33% CSS 30.67%

crimsontwins's Issues

Don't follow temporary redirects during initialization

Some sites use 301 temporary redirects to do random things. These redirects should not be followed during initialization, so that the resets show random content when desired. This might mean that we need to just ditch the idea of doing this processing and verification upfront.

Implement API

Implement an HTTP API that has equivalent functionality to the bot.

Enable third parties to connect and see content on screen

If we deployed this on a server, people could run their own screen if they so desire.

At the moment, this will just add additional screens to the pool, which is not what we want.

Either we remove the pool and every client is just a copy of the main screen or we come up with a way to distinguish (login?).. hmmm.

Have some default content.

There should be a list of URLs that are shown when nothing else is going on, and after a few minutes of showing whatever silly gif someone posted, it should return to a default url.

optional param to modify the black bar content

There should be an optional param to modify the content of the black bar. In it's absence the bar will display the URL, as it currently does.

This would allow us to add comic alt text to the bars, or include data from the IRC bot about what the dashbot query params were that lead to the image.

Use nunjucks for templating

Actually, doesn't have to be nunjucks, but at any rate, currently the application code and templates are intermingled and they shouldn't be.

We might have to precompile the templates at start time, but this is node, we can do that!

/cc @jlongster and @tofumatt so they can tell me this is a horrible idea ;)

Seperate the server and irc bot.

Make the bot independent of Crimsontwins. Leave the bot as a reference implementation or consider rewriting it as a Hubot plugin. May be blocked on issue #21

More complete monitor multiplexing

Consider adding the ability to stretch a single virtual screen across multiple physical screens. Will require CrimsonTwins has some knowledge of how its screens are laid out.

Move on TV to my wall

Since this is a problem I propose that we could cut this problem in half by moving a tv to my wall.

Client should gracefully handle a server reboot

When the server is temporarily down the client happily displays what it last loaded, but requires a refresh to reconnect. The client should be able to reconnect on its own and display some UI warning that it's disconnected or that it's screen does not exist.

What am I missing

I discovered CT through DevOps weekly and it's a perfect solution to my multiple screen problems - better than the hacky PHP page I put together. But I can't get the IRC part to do anything - I can add screens through the admin interface and the bot joins our IRC server but it doesn't respond to anything :-(

I've tried mentioning it and messaging it with URLs and they scroll past in stdout but they don't get added to the displays.

My very limited NodeJS experience means I can just about work out what the app is doing but I can't figure out what I'm missing.

Any suggestions?

Switch to Stylus, do it on the server side.

Right now we are using LESS. Lets jump on the bandwagon and use Stylus.

Right now LESS is being compiled on the client side, every time. Lets stop that, and compile the CSS on the server.

create api endpoints for adding and removing screens

Video Lego Blocks RFC is a first stab at a fuzzy notion of auto-registering air mozilla components. It's a little long, so I've boiled it down into something more concrete --

Consider a live air mozilla setup -- mozcamp, mozfest, perhaps summit. Cameras turning on and off as different talks, keynotes, and social events start and stop. We have camera blocks that can 'check in' with a predefined url and then start streaming. With the proposed API these camera blocks could register a new CT screen at start up and stream to it, then deregister it when it disconnects. This may require a thin shim, but I think the idea is sound and this would be a necessary first step.

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.