Skip to content

Commit 91a1530

Browse files
author
Mark Gibbs
committed
Adding curl example
1 parent 6506169 commit 91a1530

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

demo/demo/templates/demo_four.html

+13
Original file line numberDiff line numberDiff line change
@@ -41,4 +41,17 @@ <h1>Live Updating</h1>
4141
{%plotly_app slug="liveoutput-2" ratio=0.5 %}
4242
</div>
4343
</div>
44+
<p>
45+
</p>
46+
<p>
47+
Any http command
48+
can be used to send a message to the apps. This is equiavent to a press of
49+
the red button. Other colours can be specified, including yellow, cyan and black in
50+
addition to the three named in the LiveInput app.
51+
</p>
52+
<div class="card bg-light border-dark">
53+
<div class="card-body">
54+
curl http://localhost:8000/dpd/views/poke/ -d'{"channel_name":"live_button_counter","label":"named_counts","value":{"click_colour":"red"}}'
55+
</div>
56+
</div>
4457
{%endblock%}

0 commit comments

Comments
 (0)