This free service provides a simple and efficient way for sending and retrieving float values over HTTP and HTTPS, making it ideal for various applications such as real-time monitoring, IOT devices etc.
a.4floats.com
HTTP/1.1
(and over TLS), HTTP/2
Use this endpoint to send data (float values) to a specific channel. Simply make a GET or POST request with your data as query string or in the request body. The data will be immediately stored and made available for retrieval. Each new request will overwrite previous data in the channel.
Example usage (POST):
$ curl -d "x=1.73&y=1.618&text=Euler&key=1b345678" -X POST \ "https://a.4floats.com/poke/demo" {"error":"None"}
Example usage (GET):
$ curl "https://a.4floats.com/poke/demo?key=1b345678&x=1.73&text=value_X" {"error":"None"}
Valid keys: key
(password), text
(short string without spaces) and float keys (/[A-Za-z]\d?/
, e.g. t1
, a5
). Number of keys is limited to 4.
Use this endpoint to retrieve data (float values) from a specific channel. Make a GET request to fetch the latest data pushed to the channel with timestamp in GMT (miliseconds from Unix epoch) when pushed.
Example usage (strings):
$ curl https://a.4floats.com/peek/demo {"x":"1.73","timestamp":"1704067200000","y":"1.618","text":"Euler"}
Example usage (parseFloat):
$ curl https://a.4floats.com/peek/demo?parse {"x":1.73,"timestamp":1704067200000,"y":1.618,"text":"Euler"}
Each channel
is protected by its key
. To get your channel imagine a channel (name) satisfying regex /^[a-zA-Z0-9]{4,8}$/
(digits, lowercase or uppercase letters, length at least 4 and at most 8), its key /^[a-zA-Z0-9]{8,12}$/
(same requirements as for channel but between 8 and 12 characters) and try poke. There will be error on taken channel.
Once a channel is taken the key cannot be changed. Key will expire in 7 days if not used (to poke). On expiry the channel frees and new key could be selected by you or someone else, so poke regularly, e.g. at least twice per week.
This free service comes without any warranty. Use it if you like it. 2024