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 dotbot.server.dotbot(address, query=Depends(dependency=None, use_cache=True, scope=None))[source]#
Dotbot HTTP GET handler.
- Parameters:
address (str)
query (DotBotQueryModel)
- 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=Depends(dependency=None, use_cache=True, scope=None))[source]#
Dotbots HTTP GET handler.
- Parameters:
query (DotBotQueryModel)
- async dotbot.server.dotbots_move_raw(address, application, command)[source]#
Set the current active DotBot.
- Parameters:
address (str)
application (int)
command (DotBotMoveRawCommandModel)
- async dotbot.server.dotbots_rgb_led(address, application, command)[source]#
Set the current active DotBot.
- Parameters:
address (str)
application (int)
command (DotBotRgbLedCommandModel)
- async dotbot.server.dotbots_waypoints(address, application, waypoints)[source]#
Set the waypoints of a DotBot.
- Parameters:
address (str)
application (int)
waypoints (DotBotWaypoints)