brightroll / screens Goto Github PK
View Code? Open in Web Editor NEWDisplay image, html, and video slideshows and Graphite charts onto Apple TVs with this web app and daemon
License: Other
Display image, html, and video slideshows and Graphite charts onto Apple TVs with this web app and daemon
License: Other
Add an HTTP upload route for thumbnails from the remote servers. This means bin/airserver.rb
will no longer assume that it is co-located with the web UI filespace.
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"
}
]
}
}
A simplified version of this script in Ruby would be great:
https://code.google.com/p/lg-tv-command/source/browse/trunk/lg-tv-command.c
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?
Let's see if this gem can expand the range of target devices by upnp: https://github.com/turboladen/playful
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.