info-beamer / tools

Useful tools when working with info-beamer on the Pi
https://info-beamer.com/
33 stars 10 forks source link

Permissions and help wanted: Streaming pi screen with Nodejs to a browser #7

Closed lashower closed 6 years ago

lashower commented 6 years ago

When I looked at the info-beamer website, it states "You can download your free version for private use right now. Consult the following pricing table if you intend to use the software outside of your home." I am hoping I can use these tools for my RetroPieWebConsole project.

The RetroPie Web Console is currently in Beta and really is only used by a handful of people, but I have heard the parent project, RetroPie, is used by some arcade businesses, which I hope will eventually use my web console. Based on that, do I have your permission to use your tools for free in my project?

Also, I could use a little help with my implementation. Basically, I want to stream my pi screen to a web browser. Here are the tools I am using: NodeJS V8.9.3 Express 4.16.2 AngularJS 1.6.8 Currently, I am using this design with your screenshot tool:

  1. The user enters the Streaming page.
  2. Web page uses <img ng-src="/streaming?r=<date in milliseconds>">
  3. At a 500 ms interval, I update the img URL.
  4. In my NodeJS app, I have /streaming run screenshot through NodeJS's spawn and I write the output to the http response.

While it works, there is a delay ranging from 2-10 seconds. I am pretty sure this is because I am repeatedly going to the server, pulling the image, and closing the connection instead of connecting to the server and have it constantly send the data to the browser until the user leaves the page. Do you know how I can accomplish this?

dividuum commented 6 years ago

The tools are independent from the info-beamer software itself. See the header of the screenshot.c source for its license. I can't help you with you node.js stuff, sorry.