dotbot.server module#

Module for the web server application.

class dotbot.server.ReverseProxyMiddleware(app, dispatch=None)[source]#

Bases: BaseHTTPMiddleware

Parameters:
  • app (ASGIApp)

  • dispatch (DispatchFunction | None)

async dispatch(request, call_next)[source]#
async dotbot.server.background_map()[source]#

Background map HTTP GET handler.

async dotbot.server.dotbot(address, max_positions=1000)[source]#

Dotbot HTTP GET handler.

Parameters:
  • address (str)

  • max_positions (int)

async dotbot.server.dotbot_positions_history_clear(address)[source]#

Clear the history of positions of a dotbot.

Parameters:

address (str)

async dotbot.server.dotbots(query)[source]#

Dotbots HTTP GET handler.

Parameters:

query (Annotated[DotBotQueryModel, Query(PydanticUndefined)])

async dotbot.server.dotbots_move_raw(address, application, command)[source]#

Set the current active DotBot.

Parameters:
async dotbot.server.dotbots_rgb_led(address, application, command)[source]#

Set the current active DotBot.

Parameters:
async dotbot.server.dotbots_waypoints(address, application, waypoints)[source]#

Set the waypoints of a DotBot.

Parameters:
async dotbot.server.map_size()[source]#

Map size HTTP GET handler.

async dotbot.server.websocket_endpoint(websocket)[source]#

Websocket server endpoint.

Parameters:

websocket (WebSocket)

async dotbot.server.ws_dotbots(websocket)[source]#
Parameters:

websocket (WebSocket)