- Set the variable
SERVER_URL
to the server URL. - [Optional] Set the variable
QR_CODE_ENDPOINT
to the endpoint for the QR code response. - [Optional] Set the variable
USERS_ENDPOINT
to the endpoint for obtaining the user. - Call either
LovenseDownloadQRCode()
action orlovense.download_qr_code()
function to download the QR code.- Player then scans the QR code with the Lovense app.
- Player details are then sent to the callback server url
- Player details can be retrieved by calling
lovense.set_user()
function. - Call
LovenseRefresh()
action orlovense.refresh()
function to refresh the user details and connected toys. - Use statements (or functions) in game to control the toys.
- Set the variable
lovense.local_ip
to the local IP address - Set the variable
lovense.http_port
to the port number - Call
LovenseRefresh()
action orlovense.refresh()
function to refresh the user details and connected toys. - Use statements (or functions) in game to control the toys.
-
lovense <action: str> <strength: int | float>
lovense vibrate 20
lovense rotate 20
lovense pump 3
lovense thrust 20
lovense finger 20
lovense suction 20
lovense depth 3
lovense all 1.0
-
lovense stop
-
LovenseRefresh()
-
LovenseDownloadQRCode()
-
SERVER_URL: str
-
QR_CODE_ENDPOINT: str
-
USERS_ENDPOINT: str
-
lovense.local_ip: str
-
lovense.http_port: str
-
lovense.last_refresh: datetime.datetime
-
lovense.server_online: bool
-
lovense.status_message: str
-
lovense.toys: dict[str, str]
-
lovense.last_updated: int
-
lovense.current_strengths: dict[LovenseAction, int]
-
lovense.send_function(actions: LovenseAction, strengths: Iterable[int] | float, time_sec: float = 0, stop_previous: bool = True) -> None:
-
lovense.get_toys() -> None:
-
lovense.vibrate(strength: Union[Sequence[int], int, float], time: float = 0, stop_previous: bool = True) -> None:
-
lovense.rotate(strength: Union[Sequence[int], int, float], time: int = 0, stop_previous: bool = True) -> None:
-
lovense.pump(strength: Union[Sequence[int], int, float], time: int = 0, stop_previous: bool = True) -> None:
-
lovense.thrust(strength: Union[Sequence[int], int, float], time: int = 0, stop_previous: bool = True) -> None:
-
lovense.finger(strength: Union[Sequence[int], int, float], time: int = 0, stop_previous: bool = True) -> None:
-
lovense.suction(strength: Union[Sequence[int], int, float], time: int = 0, stop_previous: bool = True) -> None:
-
lovense.depth(strength: Union[Sequence[int], int, float], time: int = 0, stop_previous: bool = True) -> None:
-
lovense.all(strength: Union[Sequence[int], int, float], time: int = 0, stop_previous: bool = True) -> None:
-
lovense.stop() -> None:
-
lovense.get_server_status() -> bool:
-
lovense.download_qr_code() -> None:
-
lovense.set_user() -> None:
-
lovense.refresh() -> None: