{"id":8789,"date":"2021-05-13T17:46:55","date_gmt":"2021-05-13T09:46:55","guid":{"rendered":"https:\/\/www.kiloview.com\/en\/support\/docs\/ndi-device-http-apiversion-1-0\/tally-status-and-control\/"},"modified":"2021-05-13T17:46:55","modified_gmt":"2021-05-13T09:46:55","slug":"tally-status-and-control","status":"publish","type":"docs","link":"https:\/\/www.kiloview.com\/en\/docs\/ndi-device-http-apiversion-1-0\/tally-status-and-control\/","title":{"rendered":"Tally status and control"},"content":{"rendered":"<p><strong>Module name:<\/strong> tally<\/p>\n<p><strong>Basic URL:<\/strong> \/api\/v1\/tally\/<\/p>\n<p>Tally status and control act both on Encoder and Decoder mode. Under Encoder mode\uff0cyou can get current Tally status through API, even control Tally light&#8217;s on\/off (although it looks like it is not necessary); under Decoder mode\uff0cyou can set up Tally status (Program On\/Off, Preview On\/Off) will send to the decoding NDI source.<\/p>\n<h2>Get current Tally status<\/h2>\n<hr \/>\n<h4>API URL<\/h4>\n<p>\u200b   <strong>\/api\/v1\/tally\/status<\/strong><\/p>\n<h4>Request<\/h4>\n<p>\u200b   Method: <strong>GET\/POST<\/strong><\/p>\n<p>\u200b   Parameters: NONE<\/p>\n<h4>Response<\/h4>\n<p>Example:<\/p>\n<pre><code class=\"language-json\">{\n    &quot;result&quot;: &quot;ok&quot;,\n    &quot;data&quot;: {\n        &quot;pgm&quot;: 1,\n        &quot;pvw&quot;: 0\n    }\n}<\/code><\/pre>\n<p><strong>Data field description: <\/strong><\/p>\n<table>\n<thead>\n<tr>\n<th>Field<\/th>\n<th>Value<\/th>\n<th>Description<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>pgm<\/td>\n<td><strong>[INT]<\/strong><\/td>\n<td>1: PGM(Program) On<br \/>0: PGM(Program) Off<\/td>\n<\/tr>\n<tr>\n<td>pvw<\/td>\n<td><strong>[INT]<\/strong><\/td>\n<td>1: PVW(Preview) On<br \/>0: PVW(Preview) Off<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h2>Set current Tally status<\/h2>\n<hr \/>\n<h4>API URL<\/h4>\n<p>\u200b   <strong>\/api\/v1\/tally\/set<\/strong><\/p>\n<h4>Request<\/h4>\n<p>\u200b   Method: <strong>GET\/POST<\/strong><\/p>\n<table>\n<thead>\n<tr>\n<th>Parameter<\/th>\n<th>Value<\/th>\n<th>Description<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>pgm<\/td>\n<td><strong>[INT]<\/strong>, <strong>Optional<\/strong><\/td>\n<td>1: Set Program On<br \/>0: Set Program Off<br \/>not specified: keep previous status<\/td>\n<\/tr>\n<tr>\n<td>pvw<\/td>\n<td><strong>[INT]<\/strong>, <strong>Optional<\/strong><\/td>\n<td>1: \u8bbe\u7f6ePreview On<br \/>0: Set Preview Off<br \/>not specified: keep previous status<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h4>Response<\/h4>\n<p>Example:<\/p>\n<pre><code class=\"language-json\">{\n    &quot;result&quot;: &quot;ok&quot;\n}<\/code><\/pre>\n<p>If set successfully, it will return the message of result = &quot;ok&quot;, or please refer to 1.3 for error message descriptions. <\/p>\n<p><strong>Note: <\/strong><\/p>\n<ul>\n<li>If current NDI Device is in Encoder mode and it is connected by one of NDI Receiver, as NDI Receiver can probably update Tally status, so setup of Tally may be covered by updated Tally status. Please pay attention to this detail.<\/li>\n<li>If NDI is in Decoder mode, the Tally status which set will send to the NDI source which is decoding; if you switch to another NDI source, it will clear the previous Tally status of NDI source, and send new status to new NDI Source.<\/li>\n<\/ul>\n","protected":false},"featured_media":0,"parent":48319,"menu_order":8,"comment_status":"open","ping_status":"closed","template":"","doc_tag":[],"class_list":["post-8789","docs","type-docs","status-publish","hentry"],"acf":[],"aioseo_notices":[],"comment_count":0,"_links":{"self":[{"href":"https:\/\/www.kiloview.com\/en\/wp-json\/wp\/v2\/docs\/8789","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.kiloview.com\/en\/wp-json\/wp\/v2\/docs"}],"about":[{"href":"https:\/\/www.kiloview.com\/en\/wp-json\/wp\/v2\/types\/docs"}],"replies":[{"embeddable":true,"href":"https:\/\/www.kiloview.com\/en\/wp-json\/wp\/v2\/comments?post=8789"}],"version-history":[{"count":0,"href":"https:\/\/www.kiloview.com\/en\/wp-json\/wp\/v2\/docs\/8789\/revisions"}],"up":[{"embeddable":true,"href":"https:\/\/www.kiloview.com\/en\/wp-json\/wp\/v2\/docs\/48319"}],"next":[{"title":"System management and control","link":"https:\/\/www.kiloview.com\/en\/docs\/ndi-device-http-apiversion-1-0\/system-management-and-control\/","href":"https:\/\/www.kiloview.com\/en\/wp-json\/wp\/v2\/docs\/48749"}],"prev":[{"title":"Advanced options of encoding output and switching","link":"https:\/\/www.kiloview.com\/en\/docs\/ndi-device-http-apiversion-1-0\/advanced-options-of-encoding-output-and-switching\/","href":"https:\/\/www.kiloview.com\/en\/wp-json\/wp\/v2\/docs\/8787"}],"wp:attachment":[{"href":"https:\/\/www.kiloview.com\/en\/wp-json\/wp\/v2\/media?parent=8789"}],"wp:term":[{"taxonomy":"doc_tag","embeddable":true,"href":"https:\/\/www.kiloview.com\/en\/wp-json\/wp\/v2\/doc_tag?post=8789"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}