Switch branches/tags
Nothing to show
Find file History
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
..
Failed to load latest commit information.
README.md
counter.php

README.md

littleBits coffee counter

Curl the following:

url:
https://api-http.littlebitscloud.cc/subscriptions

headers:
Authorization: Bearer YOUR_TOKEN

payload:
{
publisher_events: [
"amplitude:delta:ignite"
],
publisher_id: "YOUR_DEVICE_ID",
subscriber_id: "URL_WHERE_TO_POST"
}

Then you will need to write the php script (URL_WHERE_TO_POST). See counter.php for an example of how to receive JSON input, parse it and then send a message back to the littleBit to enable the LED to light up.