Files
xenia-pos-local/local_backend/modules/signage/manifest.py
T
bonaminandClaude Opus 5.5 60e6a16217 feat(signage,scenes): schedule lines with screens and smart days, screens' defaults, horizontal timeline, scenes
- Scenes (Alembic 0043, models/scene.py, /api/scenes, core.scenes.manage): named
  modes on or off (optionally until a time); price rules / deals get the
  condition "a scene is on"; signage lines can play only during a scene;
  turning one on tells every screen and pushes the online menu.
- Signage schedules are lines (signage_schedule_items): playlist, screens
  ([] = every screen), priority, days, smart days (1st / last day, first / last
  week, Greek public holidays or not: core/calendar_days.py, mirrored in
  @xenia/signage), hours, dates, scene. No line → the screen's default
  playlist. 0043 turns the old named schedules into lines for their screens.
- Screens: default playlist, TV shape, turn; what plays now and why.
- Manager: tabs Screens · Playlists · Schedules · Slides (placeholder) ·
  Message and weather; schedule lines with playlist / screens / priority /
  delete on one line; the playlist editor's horizontal timeline of fixed
  cards, the slide's basics beside its preview (one height), then its content;
  Management → Scenes; the scene condition in pricing.
- Tests: backend (lines, smart days, scenes, prices), player logic, e2e.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-20 19:22:47 +02:00

34 lines
1.9 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.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'),
ConfigField('orientation', 'enum', default='landscape', choices=('landscape', 'portrait')),
ConfigField('rotation', 'int', default=0, choices=(0, 90, 180, 270)),
)),
)