[Pixela v1.22.0 is released] I’ve released a “Retina” mode that lets you see the hourly count for the day!
I’ve released it! To get some sense of what it’s like, just look at the animated GIF below.
Its release note is here.
Release v1.22.0 · a-know/Pixela (github.com)
And, here’s the documentation for the API endpoint that returns SVG for Retina!
GET — /v1/users/<username>/graphs/<graphID>/<yyyyMMdd>/retina — Pixela API Document
As mentioned above, the Retina recording itself is done automatically behind the scenes by anyone, but in order to see it for yourself or show it off to others, you need to register to support Pixela through Patreon.
I know this is a feature you’ll love, so please take this opportunity to support Pixela!
In order to make effective use of this feature, it is essential to post various daily values using the appropriate API. This is because Pixela is still a “day-by-day” focused service and does not support registering information backwards in time as well as dates in the past. (For example, you can register information for “March 31, 2020”, but not for “March 31, 2020, 12:00”.)
Specifically, you need to build a mechanism that uses the following API to update Pixela.
POST /v1/users/<username>/graphs/<graphID>/stopwatch — Measuring and recording time
PUT /v1/users/<username>/graphs/<graphID>/increment — Increment a pixel
PUT /v1/users/<username>/graphs/<graphID>/decrement — Decrement a pixel
POST /v1/users/<username>/webhooks/<webhookHash> — Invoke a webhook
POST /v1/users/<username>/graphs/<graphID>/stopwatch — Measuring and recording time
I think this will be a moderately interesting challenge that requires a moderate amount of engineering.
For example, I am using the PUT /v1/users/<username>/graphs/<graphID>/increment — Increment a pixel
API to build a system to increment the number of PVs on my blog. Thanks to this, I am able to register the information as hourly as well.
I hope you all give it a try! So long!