Coder Social home page Coder Social logo

brightroll / screens Goto Github PK

View Code? Open in Web Editor NEW
12.0 13.0 2.0 2.01 MB

Display image, html, and video slideshows and Graphite charts onto Apple TVs with this web app and daemon

License: Other

Ruby 62.83% JavaScript 3.46% CSS 1.06% HTML 32.43% Shell 0.23%

screens's Issues

Can't `bundle install` on my Yosemite machine

Can't find the dns_sd.h header file. But I can.

~$ gem install dnssd -v 2.0
Building native extensions.  This could take a while...
ERROR:  Error installing dnssd:
    ERROR: Failed to build gem native extension.

    /usr/local/var/rbenv/versions/2.1.2-github1/bin/ruby extconf.rb
checking for dns_sd.h... no
unable to find dnssd header
*** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of necessary
libraries and/or headers.  Check the mkmf.log file for more details.  You may
need configuration options.

Provided configuration options:
    --with-opt-dir
    --without-opt-dir
    --with-opt-include
    --without-opt-include=${opt-dir}/include
    --with-opt-lib
    --without-opt-lib=${opt-dir}/lib
    --with-make-prog
    --without-make-prog
    --srcdir=.
    --curdir
    --ruby=/usr/local/var/rbenv/versions/2.1.2-github1/bin/ruby
    --with-warnings
    --without-warnings
    --with-dnssd-dir
    --without-dnssd-dir
    --with-dnssd-include
    --without-dnssd-include=${dnssd-dir}/include
    --with-dnssd-lib
    --without-dnssd-lib=${dnssd-dir}/lib

extconf failed, exit code 1

Gem files will remain installed in /usr/local/var/rbenv/versions/2.1.2-github1/lib/ruby/gems/2.1.0/gems/dnssd-2.0 for inspection.
Results logged to /usr/local/var/rbenv/versions/2.1.2-github1/lib/ruby/gems/2.1.0/extensions/x86_64-darwin-13/2.1.0-static/dnssd-2.0/gem_make.out
~$ ls /usr/include/dns_sd.h
/usr/include/dns_sd.h
~$ ruby -v
ruby 2.1.2p95-github (development) [x86_64-darwin13.0]

Any ideas?

Have bin/airserver.rb query JSON views instead of direct database access

Remote servers should query back to the web UI via HTTP/JSON to get slideshow information instead of directly connection to the database. bin/airserver.rb wouldn't need to load up Rails anymore to see the models!

For example, this works:

curl -H "Accept: application/json" http://screens/devices/5
{
    "created_at": "2012-08-30T20:20:12Z",
    "deviceid": "70:56:81:E1:94:6B",
    "id": 5,
    "name": "screen-01",
    "slideshow_id": 13,
    "updated_at": "2013-11-21T01:00:28Z"
}

curl -H "Accept: application/json" http://screens/slideshows/13
{
    "slideshow": {
        "id": 13,
        "name": "Screen 1",
        "slides": [
            {
                "display_time": 5,
                "id": 58,
                "media_type": "html",
                "name": "Dashboard",
                "scrub_time": null,
                "stop_time": null,
                "thumbnail": "/thumbs/11b0b944b5ce2071571a0a4e0ec1f5d6.png",
                "transition": "dissolve",
                "url": "http://dashboard/radiator"
            }
        ]
    }
}

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.