Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/tiny-pilot/tinypilot
/ functions
Functions
758 in github.com/tiny-pilot/tinypilot
⨍
Functions
758
◇
Types & classes
153
↳
Endpoints
113
Function
enableKeystrokeHistory
()
app/static/js/settings.js:29
Function
enableWifi
(countryCode, ssid, psk)
app/static/js/controllers.js:384
Function
enable_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
Function
enforce_auth
Enforce client authentication checks by default.
app/api.py:81
Function
error
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
Function
executePoll
(resolve, reject)
app/static/js/poll.js:15
Method
fromTouchEndOrCancel
* @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
Method
fromTouchStart
* @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
Function
generate_hash
(password)
app/password.py:11
Function
get
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
Function
get
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
Function
getDebugLogs
()
app/static/js/controllers.js:434
Function
getLatestRelease
()
app/static/js/controllers.js:62
Function
getLicensingMetadata
()
app/static/js/controllers.js:539
Function
getNetworkStatus
()
app/static/js/controllers.js:350
Function
getScreenCursor
()
app/static/js/settings.js:43
Function
getUpdateStatus
()
app/static/js/controllers.js:141
Function
getUsers
()
app/static/js/controllers.js:176
Function
getVersion
()
app/static/js/controllers.js:80
Function
getVideoSettings
()
app/static/js/controllers.js:469
Function
getWifiSettings
()
app/static/js/controllers.js:366
Function
get_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
Function
get_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
Function
handle_csrf_error
(error)
app/main.py:99
Function
handle_error
(e)
app/main.py:115
Function
handler_with_auth_check
(*args, **kwargs)
app/socket_api.py:53
Function
hostname_get
Determines the hostname of the machine. Returns: On success, a JSON data structure with the following properties: hostname: strin
app/api.py:460
Function
hostname_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
Function
index_get
()
app/views.py:37
Method
isApplicable
* Checks whether the preconditions are met for this event to be dispatched. * @returns {boolean}
app/static/js/events.js:103
Function
isKeyboardVisible
()
app/static/js/settings.js:52
Function
isKeystrokeHistoryEnabled
()
app/static/js/settings.js:39
Function
isMjpegStreamAvailable
()
app/static/js/controllers.js:548
Function
isPasteAreaMasked
()
app/static/js/settings.js:61
Function
is_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
Function
is_authentication_required
Checks whether authentication is required to access the system. Returns: True if users are required to authenticate.
app/auth.py:239
Function
j
(t)
app/static/third-party/socket.io/4.7.1/socket.io.min.js:6
Method
janus_stun_port
(self)
app/update/settings.py:112
Method
janus_stun_server
(self)
app/update/settings.py:104
Function
keepAlive
()
app/static/third-party/janus-gateway/1.3.2/janus.js:950
Function
latest_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
Function
latest_version
Requests the latest release info from the TinyPilot Gatekeeper REST API. Returns: An UpdateInfo object, containing the information about
app/version.py:75
Function
load
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
Function
local_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
Function
login
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
Function
login
(username, password)
app/static/js/controllers.js:276
Function
login_get
()
app/views.py:61
Function
logout
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
Function
logout_post
Logs out the current user and clears the session. Returns: Empty response on success, error object otherwise.
app/api.py:262
Function
monitor_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
Function
network_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
Function
network_wifi_disable
Disables the WiFi network connection. Returns: Empty response on success, error object otherwise.
app/api.py:620
Function
network_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
Function
network_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
Function
no_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
Function
now
Returns a timezone-aware datetime for the current time in UTC.
app/utc.py:4
Function
onDataChannelError
(error)
app/static/third-party/janus-gateway/1.3.2/janus.js:1706
Function
onDataChannelMessage
(event)
app/static/third-party/janus-gateway/1.3.2/janus.js:1680
Function
onDataChannelStateChange
(event)
app/static/third-party/janus-gateway/1.3.2/janus.js:1685
Function
onKeyDown
* @param {KeyboardEvent} evt - https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent
app/static/js/app.js:110
Method
onMouseDown
(jsMouseEvt)
app/static/js/mouse.js:117
Method
onMouseMove
(jsMouseEvt)
app/static/js/mouse.js:125
Method
onMouseUp
(jsMouseEvt)
app/static/js/mouse.js:121
Method
onNewLogs
* @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
Function
onSocketConnect
()
app/static/js/app.js:87
Function
onSocketDisconnect
()
app/static/js/app.js:98
Function
onUnbindMessage
(event)
app/static/third-party/janus-gateway/1.3.2/janus.js:1229
Method
onWheel
(jsMouseEvt)
app/static/js/mouse.js:129
Function
on_connect
()
app/socket_api.py:126
Method
on_connect
(self)
app/update_logs.py:92
Function
on_disconnect
()
app/socket_api.py:134
Method
on_disconnect
(self)
app/update_logs.py:95
Function
on_key_release
()
app/socket_api.py:117
Function
on_keystroke
(message)
app/socket_api.py:71
Function
on_mouse_event
(message)
app/socket_api.py:96
Method
on_start
(self)
app/update_logs.py:75
Method
on_stop
(self)
app/update_logs.py:89
Function
parse
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
Function
parse
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
Function
parse
(request)
app/request_parsers/requires_https.py:5
Function
parse_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
Function
parse_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
Function
parse_h264_bitrate
(request)
app/request_parsers/video_settings.py:40
Function
parse_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
Function
parse_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
Function
parse_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
Function
parse_keystroke
(message)
app/request_parsers/keystroke.py:40
Function
parse_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
Function
parse_mjpeg_frame_rate
(request)
app/request_parsers/video_settings.py:11
Function
parse_mjpeg_quality
(request)
app/request_parsers/video_settings.py:25
Function
parse_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
Function
parse_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
Function
parse_password
(password)
app/request_parsers/field_parsers/password.py:7
Function
parse_streaming_mode
(request)
app/request_parsers/video_settings.py:55
Function
parse_user_role
(value)
app/request_parsers/field_parsers/user_role.py:5
Function
parse_username
(username)
app/request_parsers/field_parsers/username.py:8
Function
parse_wifi_settings
Parses WiFi settings from the request. Returns: WifiSettings Raises: InvalidWifiSettings
app/request_parsers/network.py:6
Function
pasteText
(text, language)
app/static/js/controllers.js:559
Function
paste_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
Function
poll
({ fn, validate, interval, timeout })
app/static/js/poll.js:11
← previous
next →
301–400 of 758, ranked by callers