Skip to content

Latest commit

 

History

History

wserver-python

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 

rtinfo-dashboard

This is an embeded python webserver which fetch rtinfo json from a remote endpoint and forward it as websocket

Preview

rtinfo-dashboard-preview

Requirement

  • python 3.5+
  • sanic
  • websockets

Basic setup

Server

Include wserver/rtinfo-wserver.py and instanciate it:

rtdashboard = RtInfoDashboard("http://my.endpoint.server.tld:8089/json")
rtdashboard.run()

Client

Edit js/rtinfo-dashboard.js and change WebSocket("ws://localhost:8092/"); to your endpoint websocket.