Reviews (name, stars, text, date, where) under Signage -> Message & settings, shown one at a time by the reviews widget (a minimum of stars, seconds each); not pulled from Google (owner's choice). The widgets section: one "Add a widget" menu at its top instead of a button per kind; the cards are layers, the top one drawn over the others, so a new widget goes on top; the arrows bring forward / send backward. Plan 6R.19, F-113. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
44 lines
2.8 KiB
Python
44 lines
2.8 KiB
Python
"""Module manifest — see core/modules/model.py and APPS_PLATFORM §4."""
|
|
from core.modules.model import ConfigField, DeviceApp, Limit, Module, Mount, Perm, SettingDef
|
|
|
|
MODULE = Module(
|
|
key='signage',
|
|
kind='app',
|
|
name='Digital signage',
|
|
description='Menus and promotions on TVs: playlists of menu boards, pictures, videos and texts (phase 5, steps 5.4a-5.6c).',
|
|
permissions=(
|
|
Perm('signage.manage', 'Edit signage content', roles=('owner', 'store_manager', 'staff_manager')),
|
|
),
|
|
limits=(
|
|
Limit('devices', 'Number of signage screens', free=0, licensed_default=1),
|
|
),
|
|
routers=(
|
|
Mount('routers.signage', '/api/signage'),
|
|
),
|
|
settings=(
|
|
SettingDef('signage.message', '', 'The message of the day on every signage screen with a message widget (Signage > Message of the day).'),
|
|
SettingDef('signage.reviews', '[]', 'The reviews the venue typed in for the reviews widget (6R.19; JSON list; Signage > Message & settings).', type='json'),
|
|
SettingDef('signage.weather.place', '', 'The place whose weather the screens show (picked from a town search in Signage).'),
|
|
SettingDef('signage.weather.latitude', '', 'Latitude of the weather place.'),
|
|
SettingDef('signage.weather.longitude', '', 'Longitude of the weather place.'),
|
|
SettingDef('signage.weather.units', 'celsius', "Temperatures in 'celsius' | 'fahrenheit'", type='enum', choices=('celsius', 'fahrenheit')),
|
|
),
|
|
# the weather for the screens' widget, every 30 min while there is internet (5.4c)
|
|
workers=('services.weather:weather_worker', 'services.signage_schedule:schedule_worker'),
|
|
device_app=DeviceApp(login_modes=('none',), scope=(), config=(
|
|
# What it plays and how the TV hangs (5.4a); the editor builds for the screen's shape
|
|
ConfigField('playlist', 'ref', default=None, choices_from='signage_playlists'),
|
|
# ... or a library slide shown alone (owner 2026-11-21; a playlist wins when both are set)
|
|
ConfigField('slide', 'ref', default=None, choices_from='signage_slides'),
|
|
ConfigField('orientation', 'enum', default='landscape', choices=('landscape', 'portrait')),
|
|
ConfigField('rotation', 'int', default=0, choices=(0, 90, 180, 270)),
|
|
# its picture (6R.13): a slide of another shape keeps its shape (bands) or fills the picture;
|
|
# px cut off each edge of the TV's window (set by Signage > Screens > Calibrate)
|
|
ConfigField('fit', 'enum', default='keep', choices=('keep', 'stretch'), group='picture'),
|
|
ConfigField('area_left', 'int', default=0, min=0, max=4000, group='picture'),
|
|
ConfigField('area_top', 'int', default=0, min=0, max=4000, group='picture'),
|
|
ConfigField('area_right', 'int', default=0, min=0, max=4000, group='picture'),
|
|
ConfigField('area_bottom', 'int', default=0, min=0, max=4000, group='picture'),
|
|
)),
|
|
)
|