View Single Post
  #6   Spotlight this post!  
Unread 31-01-2017, 19:11
sgk525 sgk525 is offline
Registered User
FRC #5465
 
Join Date: Jan 2016
Location: Chandler, AZ
Posts: 4
sgk525 is an unknown quantity at this point
Re: Clarity on Smart Dashboard Camera Mechanism

I think I understand now. So I will replace line 34 of my server code with:

self.wfile.write('<img src="http://10.x.y.z:9090/stream.mjpg" height="240px" width="320px"/>')

and thread the server_serve_forever() statement, so that the pi can simultaneously process and set the images in a global variable, perhaps a queue.

So just for clarification, there isn't much I will have to do on my end other than set up a mjpeg stream with an appropriate send port and ip address. The smart dashboard will do the rest by finding the url and grabbing the images.
Reply With Quote