Henry_Du
32b2c8ce9d
fix: 终点站到达时下一站广播播放异常 + getNextStation 不回绕起点
...
1. Utils.getNextStation: 移除终点站回绕到起点的逻辑(非环线)
- 此前当前站是 END 时会从 schedule.entries 开头再找,把起点当下一站
- 修复后在终点站返回 nil,明确表示无后续站
2. 服务端 handleTrainArrival: 智能区分普通站/终点站广播序列
- 新增 hasNextStation / finalNextCode 判断:只有当下一站有效时
才在 seq 中插入 ch-nextsta + ch- 片段
- 终点站(finalNextCode 为 null):直接删除 nextsta 和下一站代码,
仅保留 站台-站台-线路-方向-终点站-警示 片段
- 避免 ch-UNK 等无效资源或回绕起点站名被播放
3. 日志增强:arrival 处理时额外打印 nextStation 和 nextCode,
便于快速确认服务端是否收到正确的下一站信息
版本号 v1.0.69 -> v1.0.70
2026-08-16 12:41:19 +08:00
Henry_Du
34d9ed00d6
fix: 解决自动更新无限重启循环 + 终点站列车不显示在预测列表
...
1. CloudServer: publishStationUpdate 发布时同步 Gitea 最新脚本到本地副本
- 新增 fetchGiteaScript() 一次下载全文
- 发布更新时将 Gitea 脚本内容写入 stationScriptPath
- 保证 targetVersion 与 /downloads/station_broadcast.lua 内容版本一致
2. 客户端 AutoUpdate.apply: 下载后校验版本一致性
- 从下载内容正则提取 APP_VERSION_TEXT
- 若 downloadedVersion ~= targetVersion 则中止更新,防止 reboot loop
- 写入错误日志便于排查
3. 预测显示: 在站列车(尤其终点站)强制插入 upcomingTrains 列表头部
- CRN 可能从 TrainStops 提前移除终点站列车
- 使用 normalizeUpcomingKey 去重避免重复条目
- 固定 ETA=0,确保 CURREN T TRAIN 对应列车能在 UPCOMING 中可见
版本号 v1.0.68 -> v1.0.69
2026-08-16 12:32:11 +08:00
Henry_Du
af00d57e68
feat: 发布更新时优先使用远程 Gitea 仓库的版本号
2026-08-16 11:54:29 +08:00
Henry_Du
b74eb252e3
feat: 在后端增加解析远程 Gitea 最新版本号的接口并展示在前端
2026-08-16 11:40:47 +08:00
Henry_Du
d8eee041c8
feat: 明确音频优先级,优化发车音频触发时机
...
- 到达与发车最高优先级(3),其次是进站预告(2),然后是延误警告(1),最低为背景音乐(0)
- 将发车音乐的触发时机从固定时间改为动态计算(音频时长+1.5秒补偿),确保音频结束时列车刚好发车
- 拆分 handleTrainApproaching 与 handleTrainAlert 逻辑,解耦进站与延误的优先级
- 版本号提升至 v1.0.59
2026-08-04 13:00:04 +08:00
Henry_Du
aa10f0ebe1
chore(server): 屏蔽 HLS RTMP 推流失败的错误日志
...
由于当前环境未配置 RTMP 服务器,当 ffmpeg 尝试推送音频流到 127.0.0.1:1935 时会一直报错 `Connection refused` 从而导致控制台刷屏。
现将该错误日志注释屏蔽,使控制台保持清爽。
2026-08-03 12:35:16 +08:00
Henry_Du
a36b21cfaf
fix(server): 完善列车接近音频的处理与日志记录
...
新增列车接近音频入队和构建失败的日志输出
调整音频任务优先级为1,中断模式改为ifLower
修复音频构建为空时的静默失败问题
2026-08-03 10:22:04 +08:00
Henry_Du
101d392840
fix(CloudServer/server): 修复列车接近处理的ch序列遗漏的站台编号参数
2026-08-03 09:59:58 +08:00
Henry_Du
aef63ca444
fix: install updater alongside startup script
...
Download the update helper during install and expose it from the cloud server so new hosts can run manual updates immediately.
2026-08-02 21:20:28 +08:00
Henry_Du
10d15dfddc
feat: add station auto update publishing
...
Publish the latest station script from the console so online hosts download and reboot immediately while offline hosts update on their next load.
2026-08-02 20:04:55 +08:00
Henry_Du
906594008a
fix: remove ch-min from delay announcement
2026-08-02 19:06:20 +08:00
Henry_Du
39dc446958
功能(站点广播): 实现延误与停运列车的双语广播功能
...
添加所有中日文广播所需的音频资源文件
将应用版本更新至v1.0.37
修复列车状态原因映射逻辑,补充广播所需的缺失字段
实现根据延误、停运状态生成对应双语广播序列的逻辑
更新测试脚本以适配区块阅读器并正确解析CRN的NBT数据
添加示例NBT转储文件作为参考
2026-08-02 18:50:49 +08:00
Henry_Du
f922ace154
fix: trigger approaching broadcast under 30 seconds
2026-08-02 17:42:49 +08:00
Henry_Du
712d8bb84d
fix: Ensure platform is stripped of non-digit chars for audio file matching
2026-08-02 11:52:27 +08:00
Henry_Du
ef75671527
feat: Add train pre-arrival broadcast via CRN create_target
2026-08-02 11:37:41 +08:00
Henry_Du
ac8405e300
fix: use pcall to uncapped AUDIO_VOLUME for HQ speakers while keeping 3.0 fallback for vanilla speakers
2026-08-02 08:53:49 +08:00
Henry_Du
832658ad58
feat: apply 5x volume boost to all FFmpeg audio processing (broadcast sequences, HLS, DFPWM) to maximize loudness
2026-08-02 08:50:28 +08:00
Henry_Du
90c108b1d7
Update: remove ja-xl and ch-line from train arrival broadcast sequence
2026-08-01 23:05:39 +08:00
Henry_Du
4b3bd91023
Fix: implement case-insensitive file matching for broadcast audio sequences to fix missing uppercase line and station names
2026-08-01 22:54:10 +08:00
Henry_Du
2fae7305f6
Fix: use filter_complex for sequence concatenation to fix sample rate mismatch causing speed up and noise
2026-08-01 22:46:23 +08:00
Henry_Du
e009f05a61
Fix: use wav-stream-live for train arrivals and departures to fix CC client audio playback
2026-08-01 22:34:29 +08:00
Henry_Du
81f58b58bb
Fix: Lua client config screen overwritten by logs, and fix temp broadcast preview URL
2026-08-01 22:15:59 +08:00
Henry_Du
5c78b20163
Fix: include audioLineDir and audioVoiceDir when building broadcast sequence
2026-08-01 22:09:40 +08:00
Henry_Du
1043d46fb8
Fix: correctly setup line audio directory, routing, and upload handling
2026-08-01 18:41:29 +08:00
Henry_Du
495b3cedb9
Fix: save line audio to voice directory instead of beep
2026-08-01 18:30:59 +08:00
Henry_Du
2741b2d321
Revert TTS generation to backend with fixed local proxy 127.0.0.1:7890
2026-08-01 18:25:50 +08:00
Henry_Du
c76538e4bd
feat: switch to client-side fetch for Fish Audio API to bypass server network restrictions
2026-08-01 17:58:20 +08:00
Henry_Du
a516976e35
Revert "feat: use pure direct connection to official api.fish.audio without any forced proxies"
...
This reverts commit 3ecae7b0bc .
2026-08-01 17:57:00 +08:00
Henry_Du
3ecae7b0bc
feat: use pure direct connection to official api.fish.audio without any forced proxies
2026-08-01 17:55:30 +08:00
Henry_Du
b8aee4d766
fix: revert to server proxy logic and add resilient fallback for win32 to prevent 500 errors
2026-08-01 17:51:08 +08:00
Henry_Du
038662c15e
Revert "feat: switch to client-side fetch for Fish Audio API to bypass server network restrictions"
...
This reverts commit dedb37e22b .
2026-08-01 17:49:57 +08:00
Henry_Du
dedb37e22b
feat: switch to client-side fetch for Fish Audio API to bypass server network restrictions
2026-08-01 17:45:48 +08:00
Henry_Du
1b6a2b7e33
feat: switch Fish Audio API endpoint to user's custom proxy domain (fishaudio.fse-media.group)
2026-08-01 17:42:24 +08:00
Henry_Du
7bfff51919
revert: switch back to direct Fish Audio API due to Vercel IP block
2026-08-01 17:37:52 +08:00
Henry_Du
f4c22cb713
feat: switch Fish Audio API endpoint to Vercel proxy to resolve ETIMEDOUT issues on server
2026-08-01 17:34:55 +08:00
Henry_Du
52ecdc8a16
Revert "fix: remove hardcoded windows proxy fallback that causes 500 error when proxy is unavailable"
...
This reverts commit 62ecf5642b .
2026-08-01 16:00:00 +08:00
Henry_Du
62ecf5642b
fix: remove hardcoded windows proxy fallback that causes 500 error when proxy is unavailable
2026-08-01 15:57:30 +08:00
Henry_Du
6150050f69
revert: move TTS generation back to server-side due to CORS issues
2026-08-01 12:01:38 +08:00
Henry_Du
6f122c7a2c
feat: add FISH_AUDIO_BASE env support for reverse proxy
2026-08-01 11:59:15 +08:00
Henry_Du
e3a88acf9b
Revert "feat: migrate TTS generation to frontend to utilize local browser proxy"
...
This reverts commit 5e600bb75d .
2026-08-01 11:58:20 +08:00
Henry_Du
5e600bb75d
feat: migrate TTS generation to frontend to utilize local browser proxy
2026-08-01 11:55:31 +08:00
Henry_Du
1d0c0e0703
fix: fallback to 127.0.0.1:7890 proxy on windows for local TTS generation
2026-08-01 11:50:18 +08:00
Henry_Du
c0f100a833
fix(console): map Beep files to Audio/beep
...
Store and present Beep assets under Audio/beep while keeping legacy Audio/general reads working so existing files remain accessible during the directory transition.
2026-08-01 11:42:38 +08:00
Henry_Du
86b6ba180e
feat: implement train arrival/departure sequence logic and add departure beep config in client
2026-08-01 11:28:52 +08:00
Henry_Du
e66f39284f
feat: Add Line Audio Generation and Line List Manager
2026-08-01 11:20:58 +08:00
Henry_Du
eb0adfc2e0
feat: handle line.txt and train arrival/departure events
2026-08-01 11:10:17 +08:00
Henry_Du
f7de7717dc
fix(tts): rename japanese station audio suffix to ja
...
Switch generated station audio entries from en-* to ja-* and update the generator flow so Chinese plus Japanese audio imports use the new suffix consistently.
2026-08-01 09:02:18 +08:00
Henry_Du
a2408da417
feat(tts): switch broadcast generation to s2.1-pro-free
...
Update the generator and temp broadcast flows to send the new Fish Audio model and reference IDs so Chinese and secondary-language audio use the latest requested voice configuration.
2026-08-01 08:50:13 +08:00
Henry_Du
304d413482
feat(station): group slave nodes by station target
...
Merge stations with the same station code and platform into one logical target, and expand music and temp broadcast playback to all online slave nodes while the console and picker UIs show grouped station entries with node counts.
2026-08-01 07:44:38 +08:00
Henry_Du
fd53eaef97
feat(console): add voice folder to file manager
...
Add an Audio/voice directory with upload and preview support, and expose it in the console file manager so the structure now shows Configuration, Music, Voice, Beep, and Station.
2026-08-01 07:21:47 +08:00