Cassidy James :gnome: :eos: on Nostr: The eventual automation would look like: 1. Grab the latest two releases of a thing ...
The eventual automation would look like:
1. Grab the latest two releases of a thing from a JSON API (which gives us the timestamps)
2. For each day in that range, add up a specific number (e.g. "downloads") in the YYYY/MM/DD.json files
3. Publish this somewhere on the web
Steps one and three I'm pretty comfortable with. It's step two that just seems way overcomplicated.
Published at
2024-08-05 20:47:05Event JSON
{
"id": "301d175c98e54bc14a2d23bc674d77d4b892d8e1880aa6247e14e3f7ea822017",
"pubkey": "155c7af498274a045ba66b5bc073ed110382fed7401a11e2334ce3b749dc8629",
"created_at": 1722890825,
"kind": 1,
"tags": [
[
"e",
"c6b6a90686f887c93a4bcf947d360491dbea6e9ce23e60bf1e679891944fb44e",
"wss://relay.mostr.pub",
"reply"
],
[
"proxy",
"https://mastodon.blaede.family/users/cassidy/statuses/112911373156243724",
"activitypub"
]
],
"content": "The eventual automation would look like:\n\n1. Grab the latest two releases of a thing from a JSON API (which gives us the timestamps)\n\n2. For each day in that range, add up a specific number (e.g. \"downloads\") in the YYYY/MM/DD.json files\n\n3. Publish this somewhere on the web\n\nSteps one and three I'm pretty comfortable with. It's step two that just seems way overcomplicated.",
"sig": "62a51e63952c147089116b76221d19caf78d1a376d80068a5f13e99a278f5668cad3e736f717d3d2ceecb4a3470aa64a9732b8d7775bd3b155566c6ca212f338"
}