安装与配置方法
- 先在 Mac 上安装并打开 Glanceway,再使用上方的安装链接。
- 点击“安装到 Glanceway”。如果浏览器无法唤起应用,下载 .gwsrc 文件并在信息源管理中导入。
- 填写下列必填字段并保存,设置刷新间隔,等待首次成功获取。
当前版本没有必填配置字段,安装后等待首次获取即可。
没有显示内容时如何排查
- 对照当前版本配置表核对字段、列表项和凭据。下方示例不包含可用的真实凭据。
- 检查网络与上游服务状态。认证失败或速率限制可能导致刷新失败,应根据上游限制调整间隔。
- 空列表也可能表示没有符合条件的条目。内容和更新时间取决于数据提供方及信息源实现。
源代码
id: codytseng/spaceflight-news
version: 1.0.0
name: Spaceflight News
description: Latest space and spaceflight news articles from SNAPI
author: codytseng
author_url: https://github.com/codytseng
category: News
tags:
- space
- science
- spaceflight id: codytseng/spaceflight-news
version: 1.0.0
name: Spaceflight News
description: Latest space and spaceflight news articles from SNAPI
author: codytseng
author_url: https://github.com/codytseng
category: News
tags:
- space
- science
- spaceflight module.exports = async (api) => {
async function fetchData() {
const res = await api.fetch(
"https://api.spaceflightnewsapi.net/v4/articles/?limit=100",
);
if (!res.ok || !res.json) {
throw new Error(
`Failed to fetch spaceflight news (HTTP ${res.status})`,
);
}
const items = res.json.results.map((article) => ({
id: String(article.id),
title: article.title,
subtitle: article.summary,
url: article.url,
timestamp: article.published_at,
}));
api.emit(items);
}
await fetchData();
return {
refresh: fetchData,
};
}; module.exports = async (api) => {
async function fetchData() {
const res = await api.fetch(
"https://api.spaceflightnewsapi.net/v4/articles/?limit=100",
);
if (!res.ok || !res.json) {
throw new Error(
`Failed to fetch spaceflight news (HTTP ${res.status})`,
);
}
const items = res.json.results.map((article) => ({
id: String(article.id),
title: article.title,
subtitle: article.summary,
url: article.url,
timestamp: article.published_at,
}));
api.emit(items);
}
await fetchData();
return {
refresh: fetchData,
};
}; 相关信息源
Earthquake Alerts
新闻Recent significant earthquakes worldwide from USGS
#earthquake #alerts #science
Hacker News
新闻Top stories from Hacker News
#news #tech #programming
Product Hunt
新闻Today's top products from Product Hunt
#producthunt #products #startups
PTT 热门文章
新闻台湾最大 BBS — PTT 的热门看板文章
#ptt #taiwan #chinese #bbs