Plugin · mới ở 0.2
Plugin không cần viết code. Một tệp nookdeck.json, bộ hiển thị có sẵn, và hộp xin quyền trước khi có gì chạy.
{
"id": "dev.alice.crypto",
"nookdeck": ">=0.2.0",
"permissions": { "network": ["api.coingecko.com"] },
"widgets": [{
"render": "stat",
"sizes": ["2x1", "2x2"],
"source": {
"http": { "url": "https://api.coingecko.com/…",
"every": 60 },
"map": {
"value": "$.bitcoin.usd",
"unit": "USD",
"label": "bitcoin"
}
}
}]
}