Example.1 Pixelation graph of pushed commit
Pixela is easy to start with 3 steps.
"Pixela" is the Pixelation API service. With this service, you can get a graph that expresses the degree of your daily various activities on a basis with a vivid gradation. Registration / deletion of user and graph definition, degree of activity etc. can all be done via API, so it can be used programmably.
This is an API for performing operations on users on Pixela. Authentication is performed by specifying a token in X-USER-TOKEN in the HTTP request header.
This is an API for creating, acquiring, updating and deleting pixelation graph definitions. Authentication is performed by specifying a token in X-USER-TOKEN in the HTTP request header.
Based on the registered information, express the graph in SVG format diagram.
Update predefined pixelation graph definitions.
The items that can be updated are limited as compared with the pixelation graph definition creation.
"Pixel" is data representing the quantity of each day. This is an API for creating, acquiring, updating and deleting Pixel in specified pixelation graph. Authentication is performed by specifying a token in X-USER-TOKEN in the HTTP request header.
It records the quantity of the specified date as a "Pixel".
Update the quantity already registered as a "Pixel".
Increment quantity "Pixel" of the day (UTC).
If the graph type is
int then 1 added, and for
float then 0.01 added.
Decrement quantity "Pixel" of the day (UTC).
If the graph type is
int then -1 added, and for
float then -0.01 added.
You can create an Incoming Webhook that can increment / decrement the quantity of the day without requiring authentication with the request header.
Here are some useful ways to use Pixela. Please try incorporating Pixela in your daily life in various ways.
GET /v1/users/<username>/graphs/<graphID> returns SVG rawdata.
By specifying this API in HTML
img tag like
<img src="https://pixe.la/v1/users/<a-know>/graphs/<example-graph>">, you can easily display the graph.
pi, which is the official CLI tool, you can more easily use pixela.
iOS 12 "Shortcut" is a convenient function that can also send any HTTP requests.
Create shortcuts like below for registering quantity to Pixela in advance. How about using the shortcut at the end of the day to record the quantity of your day?
(Click to view full image)
iOS 12 "Shortcut" can also access "Healthcare" metrics such as step count and mileage.
Let's make various shortcuts!
/incrementAPI calls into your CI / CD flow
/increment API, you can add quantity more and more.
By incorporating this
/increment API call into your CI / CD flow, you can easily get pixelation graph and appeal the state of the number of deployments per day.
The pixelation graph below shows an example when you record the number of deployments.
If you set the graph to
self-sufficient mode, the value of that day will be incremented each time that graph is displayed.
In other words, it is possible to easily measure and display the PV number of the page in which the graph is embedded!
Please come up with your own way of using interesting and useful Pixela! And please tell me @a_know that!