bart on Nostr: Little side project: a $30 bitcoin ticker for on my desk. I have been working on it ...
Little side project: a $30 bitcoin ticker for on my desk.
I have been working on it this weekend and it's pretty fun what you can achieve with some time (and ChatGPT):
- Shows the price, 24h change, block height and fee rate. Font color of the price is red when 24h change is negative, green when it is positive.
- Made a second screen showing the fee environment. It shows fast, medium and low fee. It also shows the mempool status (based on fee rate): Good (green), OK (orange) and Bad (red).
- Third screen is about the block fees versus total reward. It shows the average reward per block (for the last 144 blocks). It also shows the average fee per block and calculates the fee/subsidy ratio. Lastly it shows if the fee ratio is good (green) or bad (red).
- I added a Welcome screen during startup while the API's are fetching the data.
- I added an Exit screen when the script is stopped (you can do this by pushing the x button).
- All buttons work and can be used to cycle through the screens or to break the loop (so you can connect the pi to your laptop to update).
- I use the Coingecko and
mempool (npub18d4…6lt3) API to fetch the data. You can easily adjust the polling interval. When the data is fetched, the led turns red.
- Next thing I'm working on is pulling a LNURL from my LNbits server and showing it as a QR code. I got this working, but the QR takes to much space. Need to make this more efficient.
- Also looking for a way to make a aluminium case.
Anyway, hope you guys like it.
Published at
2024-06-09 13:41:43Event JSON
{
"id": "a0c7afe88c4e86bcaf5f97debbc7737b7f98bd726d45449a46fdd9b9912aa903",
"pubkey": "f5fd754857046f37eae58c982d7a0991ba08c996f5b3390fa2bad47ef2718ded",
"created_at": 1717940503,
"kind": 1,
"tags": [
[
"p",
"3b6a3d3bb3358836a64d1c80292b96e7698ec35a2e5ca451defa6bd3af3eeb84",
"",
"mention"
]
],
"content": "Little side project: a $30 bitcoin ticker for on my desk.\n\nI have been working on it this weekend and it's pretty fun what you can achieve with some time (and ChatGPT):\n\nhttps://m.primal.net/IeVK.jpg \n\n- Shows the price, 24h change, block height and fee rate. Font color of the price is red when 24h change is negative, green when it is positive.\n\nhttps://m.primal.net/IeVM.jpg \n\n- Made a second screen showing the fee environment. It shows fast, medium and low fee. It also shows the mempool status (based on fee rate): Good (green), OK (orange) and Bad (red).\n\nhttps://m.primal.net/IeVO.jpg \n\n- Third screen is about the block fees versus total reward. It shows the average reward per block (for the last 144 blocks). It also shows the average fee per block and calculates the fee/subsidy ratio. Lastly it shows if the fee ratio is good (green) or bad (red).\n\nhttps://m.primal.net/IeVQ.jpg \n\n- I added a Welcome screen during startup while the API's are fetching the data.\n\nhttps://m.primal.net/IeVR.jpg \n\n- I added an Exit screen when the script is stopped (you can do this by pushing the x button).\n\n- All buttons work and can be used to cycle through the screens or to break the loop (so you can connect the pi to your laptop to update).\n\n- I use the Coingecko and nostr:npub18d4r6wanxkyrdfjdrjqzj2ukua5cas669ew2g5w7lf4a8te7awzqey6lt3 API to fetch the data. You can easily adjust the polling interval. When the data is fetched, the led turns red.\n\nhttps://m.primal.net/IeVT.jpg \n\n- Next thing I'm working on is pulling a LNURL from my LNbits server and showing it as a QR code. I got this working, but the QR takes to much space. Need to make this more efficient.\n\n- Also looking for a way to make a aluminium case. \n\nAnyway, hope you guys like it.",
"sig": "f299138776ddf2be1dbaed96c43f5d92f6de725f167fde40c56d505a3a66e33d20fc79f317df47dae78a3e6c46996a9d783ca6c301370be72d0ab6489d60a038"
}