FLIPSTER
STEAMpunks WIKI
Join The Parade, New South Wales - Ph:+61-2-1234-5678

Websocket

SocketIO is a cross-browser Javascript library that abstracts the client application from the actual transport protocol. For modern browsers the WebSocket protocol is used, but for older browsers that don't have WebSocket SocketIO emulates the connection using one of the older solutions, the best one available for each given client.

The important fact is that in all cases the application uses the same interface, the different transport mechanisms are abstracted behind a common API, so using SocketIO you can be pretty much sure that any browser out there will be able to connect to your application, and that for every browser the most efficient method available will be used.

Installation of Flask-SocketIO is very simple:

websocketd

websocketd is a small command-line tool that will wrap an existing command-line interface program, and allow it to be accessed via a WebSocket.

Example code for 3D Microscope:

#!/usr/bin/python3 
import websocketd
p = websocketd.RPC('host.with.franklin:8000', tls = False)
for y in range(10):
    for x in range(10):
        p.line_cb((x, y))
        # Insert code for taking a picture here.

Mozilla Iot Gateway + Webofthings

Monitor and control all your smart home devices via a unified web interface.

Marker Tracking (Position Sensing)

Track robots with an object recognition algorithm - save the time of training an appropriate system and rather stick markers to our robots. , OpenCV, comes with an easy-to-use marker detection framework called Aruco. Also, OpenCV includes a Python binding source...

 
 
brainbox/young-engineers/raspberry-pi/websocket/home.txt ยท Last modified: 01/08/2019/ 12:55 (external edit)