MCPcopy Create free account

hub / github.com/tiny-pilot/tinypilot / functions

Functions758 in github.com/tiny-pilot/tinypilot

FunctionenableKeystrokeHistory
()
app/static/js/settings.js:29
FunctionenableWifi
(countryCode, ssid, psk)
app/static/js/controllers.js:384
Functionenable_wifi
Enables a wireless network connection. Note: The function is executed in a "fire and forget" manner, to prevent the HTTP request from failing
app/network.py:176
Functionenforce_auth
Enforce client authentication checks by default.
app/api.py:81
Functionerror
A JSON response for a failed request. Args: original_error: The original error object Returns: A `flask.Response` object wit
app/json_response.py:18
FunctionexecutePoll
(resolve, reject)
app/static/js/poll.js:15
MethodfromTouchEndOrCancel
* @param {TouchEvent} evt - See: * - https://developer.mozilla.org/en-US/docs/Web/API/TouchEvent * - https://developer.mozilla.org/en-US
app/static/js/touch.js:72
MethodfromTouchStart
* @param {TouchEvent} evt - See: * - https://developer.mozilla.org/en-US/docs/Web/API/TouchEvent * - https://developer.mozilla.org/en-US
app/static/js/touch.js:36
Functiongenerate_hash
(password)
app/password.py:11
Functionget
Returns a connection to the SQlite database. Within a Flask app context, this function applies a caching mechanism to avoid redundant initial
app/db_connection.py:9
Functionget
Retrieves the current state of the update process. Checks the state of any actively running update jobs or jobs that have finished in the las
app/update/status.py:17
FunctiongetDebugLogs
()
app/static/js/controllers.js:434
FunctiongetLatestRelease
()
app/static/js/controllers.js:62
FunctiongetLicensingMetadata
()
app/static/js/controllers.js:539
FunctiongetNetworkStatus
()
app/static/js/controllers.js:350
FunctiongetScreenCursor
()
app/static/js/settings.js:43
FunctiongetUpdateStatus
()
app/static/js/controllers.js:141
FunctiongetUsers
()
app/static/js/controllers.js:176
FunctiongetVersion
()
app/static/js/controllers.js:80
FunctiongetVideoSettings
()
app/static/js/controllers.js:469
FunctiongetWifiSettings
()
app/static/js/controllers.js:366
Functionget_account
Looks up a user account by their username. Returns: The user, if found (as `User` object) Raises: db.users.UserDoesNotExistE
app/auth.py:189
Functionget_or_create
Get or (re-)create a secret key. If a secret key doesn't exist, a new one will be created and returned. If it finds the key file to be corru
app/secret_key.py:89
Functionhandle_csrf_error
(error)
app/main.py:99
Functionhandle_error
(e)
app/main.py:115
Functionhandler_with_auth_check
(*args, **kwargs)
app/socket_api.py:53
Functionhostname_get
Determines the hostname of the machine. Returns: On success, a JSON data structure with the following properties: hostname: strin
app/api.py:460
Functionhostname_set
Changes the machine’s hostname. Expects a JSON data structure in the request body that contains the new hostname as string. Example: {
app/api.py:482
Functionindex_get
()
app/views.py:37
MethodisApplicable
* Checks whether the preconditions are met for this event to be dispatched. * @returns {boolean}
app/static/js/events.js:103
FunctionisKeyboardVisible
()
app/static/js/settings.js:52
FunctionisKeystrokeHistoryEnabled
()
app/static/js/settings.js:39
FunctionisMjpegStreamAvailable
()
app/static/js/controllers.js:548
FunctionisPasteAreaMasked
()
app/static/js/settings.js:61
Functionis_auth_valid
Checks whether a session’s auth state is valid. This method effectively performs a combined authentication and authorization check (short: “a
app/session.py:48
Functionis_authentication_required
Checks whether authentication is required to access the system. Returns: True if users are required to authenticate.
app/auth.py:239
Functionj
(t)
app/static/third-party/socket.io/4.7.1/socket.io.min.js:6
Methodjanus_stun_port
(self)
app/update/settings.py:112
Methodjanus_stun_server
(self)
app/update/settings.py:104
FunctionkeepAlive
()
app/static/third-party/janus-gateway/1.3.2/janus.js:950
Functionlatest_release_get
Retrieves the latest version of TinyPilot. Returns: On success, a JSON data structure with the following properties: version: str
app/api.py:428
Functionlatest_version
Requests the latest release info from the TinyPilot Gatekeeper REST API. Returns: An UpdateInfo object, containing the information about
app/version.py:75
Functionload
Retrieves the current TinyPilot update settings. Parses the contents of settings file and generates a settings object that represents the val
app/update/settings.py:120
Functionlocal_version
Read the current local version string from the version file. If run locally, in development, where a version file is not present, then a dumm
app/version.py:47
Functionlogin
Starts a cookie-based session for a logged-in user. This method assumes that the user has been correctly authenticated and that a correspondi
app/session.py:24
Functionlogin
(username, password)
app/static/js/controllers.js:276
Functionlogin_get
()
app/views.py:61
Functionlogout
Ends the session of the currently logged-in user. Note: we use crypto-based sessions rather than a server-side session store, so this will on
app/session.py:121
Functionlogout_post
Logs out the current user and clears the session. Returns: Empty response on success, error object otherwise.
app/api.py:262
Functionmonitor_auth
Decorator that monitors the session’s auth state of the socket. When socket events come in, it checks whether the session still satisfies the
app/socket_api.py:31
Functionnetwork_status
Returns the current status of the available network interfaces. Returns: On success, a JSON data structure with the following: in
app/api.py:506
Functionnetwork_wifi_disable
Disables the WiFi network connection. Returns: Empty response on success, error object otherwise.
app/api.py:620
Functionnetwork_wifi_enable
Enables a wireless network connection. Expects a JSON data structure in the request body that contains a country code, an SSID, and optionall
app/api.py:593
Functionnetwork_wifi_get
Returns the current WiFi settings, if present. Returns: On success, a JSON data structure with the following properties: countryC
app/api.py:568
Functionno_auth_required
Decorator to exempt an endpoint from any auth check altogether. The endpoint will be publicly accessible by anyone, regardless of the system’
app/api.py:71
Functionnow
Returns a timezone-aware datetime for the current time in UTC.
app/utc.py:4
FunctiononDataChannelError
(error)
app/static/third-party/janus-gateway/1.3.2/janus.js:1706
FunctiononDataChannelMessage
(event)
app/static/third-party/janus-gateway/1.3.2/janus.js:1680
FunctiononDataChannelStateChange
(event)
app/static/third-party/janus-gateway/1.3.2/janus.js:1685
FunctiononKeyDown
* @param {KeyboardEvent} evt - https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent
app/static/js/app.js:110
MethodonMouseDown
(jsMouseEvt)
app/static/js/mouse.js:117
MethodonMouseMove
(jsMouseEvt)
app/static/js/mouse.js:125
MethodonMouseUp
(jsMouseEvt)
app/static/js/mouse.js:121
MethodonNewLogs
* @function handleNewLogs * @param {string} logs - The newly received logs. * * Run a function when new logs are received. * @param {handl
app/static/js/updatelogs.js:24
FunctiononSocketConnect
()
app/static/js/app.js:87
FunctiononSocketDisconnect
()
app/static/js/app.js:98
FunctiononUnbindMessage
(event)
app/static/third-party/janus-gateway/1.3.2/janus.js:1229
MethodonWheel
(jsMouseEvt)
app/static/js/mouse.js:129
Functionon_connect
()
app/socket_api.py:126
Methodon_connect
(self)
app/update_logs.py:92
Functionon_disconnect
()
app/socket_api.py:134
Methodon_disconnect
(self)
app/update_logs.py:95
Functionon_key_release
()
app/socket_api.py:117
Functionon_keystroke
(message)
app/socket_api.py:71
Functionon_mouse_event
(message)
app/socket_api.py:96
Methodon_start
(self)
app/update_logs.py:75
Methodon_stop
(self)
app/update_logs.py:89
Functionparse
Parses an ISO-8601-formatted string into a datetime object. Args: iso_8601_string: The ISO-8601-formatted string to parse (e.g.,
app/iso8601.py:18
Functionparse
Parses the username, password and role from the Flask request body. Args: request: Flask request with the following fields in the body:
app/request_parsers/create_user.py:7
Functionparse
(request)
app/request_parsers/requires_https.py:5
Functionparse_credentials
Parses the credentials (username/password) from the Flask request body. Args: request: Flask request with the following fields in the bod
app/request_parsers/credentials.py:6
Functionparse_delete
Parses the username from the Flask request body. Args: request: Flask request with the username field as string in the body. Returns
app/request_parsers/delete_user.py:5
Functionparse_h264_bitrate
(request)
app/request_parsers/video_settings.py:40
Functionparse_h264_stun_address
Parses the STUN address (server + port) from a request. The server can be a valid domain name, or an IP address (IPv4 / IPv6). The server and
app/request_parsers/video_settings.py:66
Functionparse_hostname
Parses the hostname property from the request. Parses the hostname from a JSON request and checks whether the hostname is valid according to
app/request_parsers/hostname.py:9
Functionparse_json_body
Parse a request with a JSON payload. Args: request: A flask.Request object that caller expects to carry a JSON dictionary payload.
app/request_parsers/json.py:4
Functionparse_keystroke
(message)
app/request_parsers/keystroke.py:40
Functionparse_keystrokes
Parses HID keystrokes from the request. Args: request: Flask request with the following fields in the JSON body: (str) text
app/request_parsers/paste.py:6
Functionparse_mjpeg_frame_rate
(request)
app/request_parsers/video_settings.py:11
Functionparse_mjpeg_quality
(request)
app/request_parsers/video_settings.py:25
Functionparse_mouse_event
Parses a mouse event from a JSON dictionary. Args: message: A JSON dictionary with the following fields: (int) buttons
app/request_parsers/mouse_event.py:52
Functionparse_password
Parses the password from the Flask request body. Args: request: Flask request with the following field in the body: (str) pas
app/request_parsers/password.py:5
Functionparse_password
(password)
app/request_parsers/field_parsers/password.py:7
Functionparse_streaming_mode
(request)
app/request_parsers/video_settings.py:55
Functionparse_user_role
(value)
app/request_parsers/field_parsers/user_role.py:5
Functionparse_username
(username)
app/request_parsers/field_parsers/username.py:8
Functionparse_wifi_settings
Parses WiFi settings from the request. Returns: WifiSettings Raises: InvalidWifiSettings
app/request_parsers/network.py:6
FunctionpasteText
(text, language)
app/static/js/controllers.js:559
Functionpaste_post
Pastes text onto the target machine. Expects a JSON data structure in the request body that contains the following parameters: - text: st
app/api.py:837
Functionpoll
({ fn, validate, interval, timeout })
app/static/js/poll.js:11
← previousnext →301–400 of 758, ranked by callers