You can push data to Tingbot using webhooks.
import tingbot from tingbot import * screen.fill(color='black') screen.text('Waiting...') @webhook('demo_sms') def on_webhook(data): screen.fill(color='black') screen.text(data, color='green') tingbot.run()
This decorator calls the marked function when a HTTP POST request is made to the URL
http://webhook.tingbot.com/webhook_name. To avoid choosing the same name as somebody else, you can add a random string of characters to the end.
The POST data of the URL is available to the marked function as the
dataparameter. The data is limited to 1kb, and the last value that was POSTed is remembered by the server, so you can feed in relatively slow data sources.
You can use webhooks to push data to Tingbot, or to notify Tingbot of an update that happened elsewhere on the internet.