How would I add live video streaming code to the graphite dashboard? - apache2

I am running an apache2 graphite host from an Orange Pi One, having written a service to translate and send data from sensors on the GPIO to the carbon line receiver. My project is to incorporate all the I/O from the device into a dashboard.
There are loads of graphite dashboards, but I can't find one that has a simple video stream applet/plugin.
I have searched graphite-web github and can easily adapt dashboard.html, but I am not sure whether the entire file is a placeholder, and whether any additions would render properly after all the javascript has run and rendered the page. It would seem I might need to reverse engineer the javascript, which seems quite an effort for the simple task I want.
If I can figure out the video stream code for the CSI camera, then I can adapt it to modify the dashboard with all the other data I want to display.
So, I am really looking for some guidance on getting started with dashboard code modification?

You can use the text panel to add HTML content to the dashboard.

Related

How to make a program that will display a Web Page in C?

I am interested in creating a Web Browser using C and the socket library (or any other library) under a Linux System.
The basic use of my Web Browser, would be to render the HTML of a webpage, into something readable to the user.
I just want someone to point me to the right direction. I also have a pretty good understanding of sockets and their system calls in C...
A pointer in the right direction, eh?
Well, a web browser consists of a whole mess of systems working together; even the most basic web browser must, at an absolute minimum understand HTTP/1.1 and HTML.
It must be able to fetch pages from remote servers, parse the HTML into a DOM, render that to a viewport, capture mouse clicks, let them activate hyperlinks, and navigate to new pages.
But if it can only do that, it's a poor excuse for a web browser; even the simplest of web browsers should also be able to parse and apply CSS; display JPEG, PNG and BMP images, parse XML, execute JavaScript, deal with cookies, offline storage, plugins (such as flash), and about a million other things.
The point I'm trying to make, of course, is that a web browser is in a lot of ways a poor project for learning to do software projects, because the overhead related to even basic functionality is crippling.

How to broadcast time-synchronized text streams using IIS Smooth Streaming?

I'm studying the feasibility of using IIS Smooth Streaming to build a rich web application to display time synchronized audio/video and related textual data. The text data is a set of spacecraft telemetry that should be displayed outside of the video window.
I've seen some examples of how to display video captions at the correct time using this technology. I've also read Chapter 11 of Silverlight Recipes 2nd edition which again shows video captions. What I'm trying to do is a little bit more complex - show numerous pieces of data outside of the video window. The data should be in sync with the video playhead at all times.
It looks like I will encode my text data in tracks using the StreamIndex element type, with Type="text" and SubType="data". On the client, how do I display this in a separate panel next to the video?
From the marketese I know IIS Smooth Streaming must handle this scenario. I'm just having no luck finding examples of how to handle the data on the client side. Can someone point me to an example, or tell me why this is not possible?

Streaming video of my WPF application

I have a simple digital signage solution with a presentation application in WPF. I would like to "monitor" it from my remote machine. I would like to send a stream of the content the application is showing now (images, video, userControls, etc.).
How to do this, do i need to manually take a screenshot and send it in a video stream to my monitor - how to encode it into a stream the monitoring application can playback (that one is also WPF).
Ok, if snapshots are ok then I've done this before. The way I did it was to take a "screenshot" of the app (using code you can find here: http://www.grumpydev.com/2009/01/03/taking-wpf-screenshots/ ) then have the signage app spin up a webservice (HttpListener, WCF or SelfHosted Nancy) that returns the current screen whenever a request is made to a particular url. You monitor app then polls that url however often you need to.
This was done to monitor an interactive game for a Surface device, and didn't seem to cause any perf issues, so should be fine for your needs.

Google Directions for Offline Demo

We are getting ready for a trade show early next month where we will not have Internet access on the show floor. We've put together machines with local installations of apache, mysql, etc. and are using host files to mimic the various domains we access.
But, one feature of our software is using Google maps to get directions from one address in the system to another. In order to show this, I need to be able to spoof a map or two.
I don't need to zoom in or do anything with the map image for the show. Just need to show the rendered map page with the directions list, etc.
I'm not having any luck with browser extensions to capture the entire page to an image. They either crash, or don't get the part of the map below the scroll.
Does anybody have any thoughts on how to get this rigged up for the show - either programatically or using tools that you've tried and found to work?
Amy
just do a screen capture of the whole page
edit: saw the part about not having luck with browser extensions. On a PC, you can try SnagIt, which has a scroll-and-capture functionality. Or, just do it manually and stitch together in photoshop. It can't be that long of a page....

Getting Silverlight Video Stream

Suppose there is a Silverlight streaming video player on a random web site. How can I intercept the video stream and for example save it to file - i.e. the real source of the file.
I know some of the sites embed the source in tag - or at least that was the case with Flash. But sometimes, players are smarter than that and call some logic via web service. It is still possible to figure everything out by analyzing the .dll with reflector, but that is hardcore! Every player may have a different logic, so I figured out it would be easier to just get the current stream somehow.
Any thoughts?
Ooook! Got me an answer that could be used as a nice workaround. With the use of fiddler I was able to capture the traffic and figure out what's going on. Now I'm happily watchin the same video as before only using the uber feature of WMP that lets me play videos faster.

Resources