Files
shopdb/tv-dashboard
cproudlock 1f1bd8ee02 Remove legacy pc tables, fix ASP issues, update dashboard APIs
Database changes (run sql/migration_drop_pc_tables.sql on prod):
- Drop pc, pc_backup_phase2, pc_to_machine_id_mapping tables
- Rename pcid columns to machineid in machineoverrides, dualpathassignments, networkinterfaces
- Recreate 9 views to use machines.machineid instead of pcid
- Clean orphaned records and add FK constraints to machines table

ASP fixes:
- editprinter.asp: Fix CLng type mismatch when no printerid provided
- includes/sql.asp: Remove AutoDeactivateExpiredNotifications (endtime handles expiry)
- includes/leftsidebar.asp: Update fiscal week banner styling, remove dead Information link
- charts/warrantychart.asp: Use vw_warranty_status instead of pc table

Dashboard API renames (naming convention):
- shopfloor-dashboard: Update to use apishopfloor.asp, apibusinessunits.asp
- tv-dashboard: Rename api_slides.asp to apislides.asp

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-11 09:05:06 -05:00
..

TV Dashboard - Slide Display
============================

SETUP
-----
1. Open the dashboard in a browser on the TV/display PC
2. Click the gear icon (top right) to open settings
3. Set the base path (default: S:\ProcessData\CommDisplay\ShopSS)
4. Optionally set a subfolder (e.g., Christmas2025)
5. Click "Apply & Start"


ADDING SLIDES
-------------
Due to browser security, the dashboard cannot list directory contents directly.
Use ONE of these methods:

METHOD 1: slides.txt file (RECOMMENDED)
- Create a file named "slides.txt" in your slides folder
- List each image filename on its own line
- Example:
    001.jpg
    002.jpg
    003.jpg
    company_logo.png
    safety_message.jpg

METHOD 2: Numbered files
- Name your images with 3-digit numbers: 001.jpg, 002.jpg, 003.jpg, etc.
- The dashboard will automatically find them in order

METHOD 3: Slide1, Slide2, etc.
- Name files Slide1.jpg, Slide2.jpg, Slide3.jpg, etc.
- Common when exporting from PowerPoint


CREATING SUBFOLDERS
-------------------
To organize different presentations:

S:\ProcessData\CommDisplay\ShopSS\
    ├── slides.txt          <- default slides
    ├── 001.jpg
    ├── 002.jpg
    ├── Christmas2025\
    │   ├── slides.txt
    │   ├── holiday_01.jpg
    │   └── holiday_02.jpg
    └── Safety\
        ├── slides.txt
        └── safety_001.jpg

Then in settings, enter the subfolder name (e.g., "Christmas2025")


KEYBOARD SHORTCUTS
------------------
Space        - Pause/Resume slideshow
Left Arrow   - Previous slide
Right Arrow  - Next slide
S            - Toggle settings panel
F            - Toggle fullscreen
R            - Reload slides


SUPPORTED IMAGE FORMATS
-----------------------
jpg, jpeg, png, gif, bmp, webp


TIPS
----
- Press F11 in the browser for fullscreen
- Settings are saved in the browser and persist after refresh
- The settings gear only appears when you move the mouse
- Hover to see the status bar with current slide number