Files
Start-PTW-Auto-Disconnect/dist/win-unpacked/resources/app/README.md
T

39 lines
1.3 KiB
Markdown

# PTW Auto-Disconnect (Standalone GUI)
Runs your PTW monitor in a small desktop window **without opening Chrome**. It stays connected to `http://localhost:1947/_int_/sessions.html`, scans for the same keywords, and clicks Disconnect on matching rows. Logs and Monitor ON/OFF state are kept in the GUI.
## Requirements
- Node.js (LTS recommended)
- The sessions page must be available at `http://localhost:1947/_int_/sessions.html` (start your server first)
## Run
```bash
npm install
npm start
```
## Build an executable (optional)
```bash
npm run dist
```
- **`dist\PTW Auto-Disconnect Setup 2.1.0.exe`** — Installer (Start Menu, etc.).
- **`dist\win-unpacked\`** — No-install: run **PTW Auto-Disconnect.exe** from this folder (all DLLs stay next to the exe; avoids ffmpeg.dll errors).
To build and also create a single zip for the no-install version:
```bash
npm run dist:portable
```
Then use **`dist\PTW Auto-Disconnect-no-install.zip`**: unzip anywhere and run **PTW Auto-Disconnect.exe** from the extracted folder.
## Behavior
- **Monitor ON/OFF** — Same as your script; when ON, the page is monitored and reloaded every 60 seconds.
- **Clear** — Clears the log display (state is still persisted until you clear).
- The page is loaded in a hidden webview inside the app; only the compact log + buttons window is visible.