MCPcopy Index your code

hub / github.com/Screenly/Anthias / functions

Functions1,832 in github.com/Screenly/Anthias

↓ 1 callersFunction_to_dict
(obj: Any)
src/anthias_server/app/templatetags/asset_filters.py:115
↓ 1 callersFunction_trigger_asset_recheck
Ask the server to re-probe an asset we couldn't display. Best-effort: a failure here just means the asset stays marked unreachable until the
src/anthias_viewer/__init__.py:1324
↓ 1 callersFunction_update_existing_operator
Mutate the existing operator row in response to the settings form. Each of username / password is independently optional — only changes that w
src/anthias_server/lib/auth.py:570
↓ 1 callersFunction_validate_remote_video_response
Reject non-2xx responses, manifest Content-Types, and anything that isn't ``video/*`` / ``application/octet-stream`` / empty. Extracted from
src/anthias_server/celery_tasks.py:905
↓ 1 callersFunction_wait_for_wayland_socket
Block until cage's Wayland socket exists, until ``deadline`` (a ``monotonic()`` timestamp). No-op on non-cage boards (the env names no socket
src/anthias_viewer/__init__.py:624
↓ 1 callersFunction_wayland_socket_path
Path to cage's Wayland socket, or ``None`` if the env doesn't name one. cage exports both ``XDG_RUNTIME_DIR`` and ``WAYLAND_DISPLAY`` to
src/anthias_viewer/__init__.py:599
↓ 1 callersFunction_wlr_transform_value
(rotation_deg: int)
src/anthias_viewer/__init__.py:243
↓ 1 callersFunction_write_corrupt
A file that decoders will reject — header bytes from one format, body cut short. Pillow raises ``UnidentifiedImageError`` on these; the normal
tests/test_processing.py:152
↓ 1 callersFunctionactions_base
The host for device actions (resinhup) — `https://actions.<base>`, where <base> is the cloud's configured deviceUrlsBase. Resolved at runtime
bin/balena_unpin_devices.py:350
↓ 1 callersFunctionappend_state
( state_path: str, uuid: str, fleet: str, ts: str, status: str, detail: str )
bin/balena_fleet_maintenance.py:187
↓ 1 callersFunctionasset_ids
Render a list of assets as a JSON array of their asset_ids. Inlined into the asset-table partial's ``x-init`` so Alpine knows which rows are
src/anthias_server/app/templatetags/asset_filters.py:191
↓ 1 callersFunctionasset_loop
(scheduler: Any)
src/anthias_viewer/__init__.py:1374
↓ 1 callersFunctionaudio_device_usable
Pre-flight the ALSA device before wiring it into playbin. ``alsasink`` opens the PCM on NULL→READY, so a missing card (HDMI audio dis
src/anthias_viewer/gst_fbdev_player.py:239
↓ 1 callersFunctionbindActiveRowsDrag
(tbody: HTMLElement, orderUrl: string)
src/anthias_server/app/static/src/home.ts:620
↓ 1 callersFunctionblank_display
Handle the ``blank`` command: darken the screen and pause playback. Wayland boards DPMS-off via wlr-randr (true monitor power-off). eglfs/lin
src/anthias_viewer/__init__.py:454
↓ 1 callersFunctionboot
()
website/assets/js/slider.ts:335
↓ 1 callersFunctionbootHomePage
()
src/anthias_server/app/static/src/home.ts:742
↓ 1 callersFunctionbootOnce
()
src/anthias_server/app/static/src/home.ts:759
↓ 1 callersFunctionbuild_image
( service: str, board: str, target_platform: str, disable_cache_mounts: bool, git_hash: st
tools/image_builder/__main__.py:23
↓ 1 callersFunctioncleanup
()
src/anthias_server/app/static/src/home.ts:628
↓ 1 callersMethodclearSelection
()
src/anthias_server/app/static/src/home.ts:78
↓ 1 callersMethodcloseBulkEdit
()
src/anthias_server/app/static/src/home.ts:80
↓ 1 callersFunctioncollect
(root: HTMLElement)
website/assets/js/slider.ts:58
↓ 1 callersFunctioncommand_not_found
(*args: Any, **kwargs: Any)
src/anthias_viewer/utils.py:32
↓ 1 callersFunctionconnectAssetSocket
()
src/anthias_server/app/static/src/vendor.ts:96
↓ 1 callersFunctioncount_pinned
(token: str, fleet: str, exclude_kept: bool)
bin/balena_unpin_devices.py:274
↓ 1 callersFunctioncpu_architecture
CPU-architecture slug (e.g. 'aarch64') for a device-type slug.
bin/balena_unpin_devices.py:480
↓ 1 callersFunctiondetect_screen_resolution
Probe the active display's resolution as 'WIDTHxHEIGHT'. Tries Linux KMS first, then the legacy framebuffer interface. Both work without an X
src/anthias_common/utils.py:291
↓ 1 callersFunctiondiffProcessingAndToast
(prev: Set<string>)
src/anthias_server/app/static/src/home.ts:527
↓ 1 callersMethoddismiss
(id: number)
src/anthias_server/app/static/src/vendor.ts:42
↓ 1 callersFunctiondrain
()
tests/test_backup_helper.py:151
↓ 1 callersFunctiondrainDjangoMessages
()
src/anthias_server/app/static/src/vendor.ts:135
↓ 1 callersFunctionensure_asset_group
Return the ULID of the Screenly asset-group with this title. Idempotent get-or-create: queries postgREST-style ``?title=eq.<title>`` first, a
src/anthias_server/lib/screenly_migration.py:132
↓ 1 callersFunctionexecute_host_command
(cmd_name: str)
src/anthias_host_agent/__main__.py:113
↓ 1 callersFunctionfireToastFromHeader
( header: string | null, )
src/anthias_server/app/static/src/home.ts:483
↓ 1 callersFunctiongenerate_dockerfile
(service: str, context: dict[str, Any])
tools/image_builder/utils.py:73
↓ 1 callersMethodget
( self, request: Request, asset_id: str, format: str | None = None, )
src/anthias_server/api/views/v1.py:87
↓ 1 callersFunctionget_anthias_version_head
The primary version line — ``v{calver}``. Returns ``''`` only when ``get_anthias_release()`` finds neither the installed package metadata nor
src/anthias_server/lib/diagnostics.py:221
↓ 1 callersFunctionget_anthias_version_meta
The de-emphasised git-meta line — ``(short_hash[, branch])`` when the env vars are present, empty otherwise. Branch is suppressed on master/ma
src/anthias_server/lib/diagnostics.py:231
↓ 1 callersFunctionget_build_parameters
(build_target: str)
tools/image_builder/utils.py:8
↓ 1 callersMethodget_configfile
(self)
src/anthias_server/settings.py:165
↓ 1 callersMethodget_device_model
(self)
src/anthias_server/api/views/v2.py:889
↓ 1 callersFunctionget_docker_tag
(git_branch: str, board: str, platform: str)
tools/image_builder/utils.py:66
↓ 1 callersMethodget_instance
(cls)
src/anthias_viewer/media_player.py:623
↓ 1 callersFunctionget_ip_addresses
()
src/anthias_host_agent/__main__.py:62
↓ 1 callersMethodget_ip_addresses
(self)
src/anthias_server/api/views/v2.py:925
↓ 1 callersMethodget_memory
(self)
src/anthias_server/api/views/v2.py:904
↓ 1 callersFunctionget_node_ip
Returns the node's IP address(es) as a whitespace-separated string, or ``'Unable to retrieve IP.'`` / ``'Unknown'`` on failure. The cont
src/anthias_common/utils.py:164
↓ 1 callersFunctionget_sentry_release
CalVer release, postfixed with the build's short git hash. The CalVer alone proved ambiguous in the field: a balena OTA deploy from master sh
src/anthias_server/django_project/settings.py:171
↓ 1 callersFunctionget_specific_asset
(asset_id: str)
src/anthias_viewer/scheduling.py:20
↓ 1 callersFunctionget_test_context
()
tools/image_builder/utils.py:153
↓ 1 callersFunctionget_total_mem_kb
Return the host's MemTotal in kibibytes from Redis, or ``None``. ``anthias_host_agent`` publishes ``host:total_mem_kb`` at startup by reading
src/anthias_common/board.py:71
↓ 1 callersFunctionget_uv_builder_context
( service: str, board: str | None = None )
tools/image_builder/utils.py:85
↓ 1 callersFunctionget_viewer_context
(board: str, target_platform: str)
tools/image_builder/utils.py:165
↓ 1 callersFunctionhandle_github_error
( exc: exceptions.RequestException, action: str, )
src/anthias_server/lib/github.py:44
↓ 1 callersFunctionhandlelink
(filep, subdir)
src/anthias_webview/sysroot-relativelinks.py:22
↓ 1 callersFunctionhash_password
Hash a password using Django's default (PBKDF2-SHA256).
src/anthias_server/lib/auth.py:118
↓ 1 callersFunctionhoverPause
()
website/assets/js/slider.ts:284
↓ 1 callersFunctionhumanizeDuration
(total: number)
src/anthias_server/app/static/src/home.ts:549
↓ 1 callersFunctionhup_eligible
A device can be HUP'd to target_os when it isn't already there, isn't keep-pinned, and its current OS is recent enough for a single-hop balena
bin/balena_unpin_devices.py:422
↓ 1 callersFunctioninstallProcessingToastWatcher
()
src/anthias_server/app/static/src/home.ts:559
↓ 1 callersFunctionis_balena_deploy
True when running under balenaOS. Same check as ``anthias_common.utils.is_balena_app`` (the BALENA env var the balena supervisor injects), in
src/anthias_server/django_project/settings.py:249
↓ 1 callersMethodis_dir
(self)
tests/test_whitenoise_resilient.py:104
↓ 1 callersFunctionis_low_ram_device
``True`` when the host has less than ``LOW_RAM_THRESHOLD_KB``. Returns ``False`` when total RAM is unknown — uploading is the operator action
src/anthias_common/board.py:118
↓ 1 callersFunctionis_routing_up
()
bin/wait.py:9
↓ 1 callersFunctionjson_dump
(obj: Any)
src/anthias_common/utils.py:544
↓ 1 callersFunctionlatest_os_version
Newest non-draft balenaOS version for a device type, e.g. '6.12.3+rev4'. Returns None if the lookup fails.
bin/balena_fleet_maintenance.py:120
↓ 1 callersFunctionlatest_os_version
Newest final balenaOS release for a device type, e.g. '2026.1.0'. Mirrors `balena os versions <type>` via the cloud API: the host application
bin/balena_unpin_devices.py:361
↓ 1 callersFunctionlatest_supervisor_release
(release id, raw_version) of the newest supervisor release for a CPU architecture, mirroring the SDK's getSupervisorReleasesForCpuArchitecture
bin/balena_unpin_devices.py:499
↓ 1 callersFunctionlist_devices
(fleet: str)
bin/balena_fleet_maintenance.py:150
↓ 1 callersFunctionlist_fleet_devices
All ONLINE devices in `fleet` with the fields the OS-update and supervisor phases need (id, uuid, OS + supervisor version, keep-pinned tag). O
bin/balena_unpin_devices.py:390
↓ 1 callersFunctionlist_pinned_devices
All devices in `fleet` whose release pin is set (including ones tagged keep-pinned, so the report can show them).
bin/balena_unpin_devices.py:245
↓ 1 callersFunctionload_done
UUIDs that were fully processed in a prior run (state file is TSV: uuid<TAB>fleet<TAB>timestamp<TAB>status).
bin/balena_fleet_maintenance.py:172
↓ 1 callersFunctionmain
( clean_build: bool, build_target: str, target_platform: str, service: tuple[str, ...], di
tools/image_builder/__main__.py:335
↓ 1 callersFunctionmain
()
src/anthias_viewer/__init__.py:1599
↓ 1 callersFunctionmain
(argv: list[str] | None = None)
src/anthias_viewer/gst_fbdev_player.py:210
↓ 1 callersFunctionmain
Run administrative tasks.
src/anthias_server/manage.py:8
↓ 1 callersFunctionmain
()
bin/balena_fleet_maintenance.py:261
↓ 1 callersFunctionmain
()
bin/balena_unpin_devices.py:724
↓ 1 callersFunctionmigrate_asset
Upload a single Anthias asset to Screenly. Image/video assets backed by a local file are POSTed as multipart; URL-backed assets (webpage, str
src/anthias_server/lib/screenly_migration.py:283
↓ 1 callersFunctionnavigate_to_asset
(scheduler: Any, asset_id: str)
src/anthias_viewer/playback.py:14
↓ 1 callersFunctionnormalize_video_asset
Probe the upload with ffprobe, write codec / dims / fps / duration into ``metadata``, and clear ``is_processing``. The asset file is never rew
src/anthias_server/celery_tasks.py:1611
↓ 1 callersFunctionpaintIpPills
(ips: string[])
src/anthias_server/app/static/src/splash.ts:59
↓ 1 callersFunctionpaintQr
(url: string)
src/anthias_server/app/static/src/splash.ts:71
↓ 1 callersFunctionpin_supervisor
Point a set of devices at a supervisor release with one filtered bulk PATCH of `should_be_managed_by__release`.
bin/balena_unpin_devices.py:551
↓ 1 callersFunctionplay_loop
()
src/anthias_viewer/playback.py:24
↓ 1 callersFunctionplay_playback
Handle the ``play`` command: resume the asset loop. If the display is currently blanked, ``play`` implies ``unblank`` (power the connector bac
src/anthias_viewer/__init__.py:494
↓ 1 callersFunctionpoll
()
src/anthias_server/app/static/src/splash.ts:97
↓ 1 callersFunctionpostOrder
(orderUrl: string, tbody: HTMLElement)
src/anthias_server/app/static/src/home.ts:579
↓ 1 callersFunctionpreferred_download_vcodec
yt-dlp ``vcodec`` sort preference for the current board. Returns the codec string to place first in ``format_sort`` so yt-dlp biases download
src/anthias_server/processing.py:951
↓ 1 callersFunctionprepare_default_asset
(**kwargs: Any)
src/anthias_server/app/helpers.py:48
↓ 1 callersFunctionprocess_device
Apply the enabled actions to one device. Returns (ok, detail).
bin/balena_fleet_maintenance.py:229
↓ 1 callersFunctionprocess_message
(message: dict[str, Any])
src/anthias_host_agent/__main__.py:144
↓ 1 callersFunctionreadAutoplayMs
(root: HTMLElement)
website/assets/js/slider.ts:35
↓ 1 callersFunctionreboot_via_balena_supervisor
()
src/anthias_common/utils.py:150
↓ 1 callersFunctionreport_pinned
Pinned-release histogram; per-device lines only under --verbose. The default output deliberately carries no device identifiers — the hourly w
bin/balena_unpin_devices.py:313
↓ 1 callersFunctionrun_os_update_phase
( token: str, fleet: str, devices: list[dict[str, Any]], target_os: str, base: str, pe
bin/balena_unpin_devices.py:608
↓ 1 callersFunctionrun_supervisor_phase
( token: str, fleet: str, device_type: str, devices: list[dict[str, Any]], target_os: str,
bin/balena_unpin_devices.py:659
↓ 1 callersFunctionrun_unpin_phase
( token: str, fleet: str, apply: bool, verbose: bool, totals: dict[str, int] )
bin/balena_unpin_devices.py:570
↓ 1 callersFunctionschedule_pills
Return the schedule window as a list of pill descriptors. Each pill is a {kind, label} dict the row template iterates over. `kind` is one of:
src/anthias_server/app/templatetags/asset_filters.py:48
← previousnext →401–500 of 1,832, ranked by callers