@sebbo2002/node-pyatv 5.0.0-develop.1 → 5.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.nycrc +1 -0
- package/CHANGELOG.md +26 -0
- package/dist/lib/device.d.ts +46 -1
- package/dist/lib/device.js +55 -0
- package/dist/lib/device.js.map +1 -1
- package/dist/lib/index.d.ts +2 -1
- package/dist/lib/index.js +2 -1
- package/dist/lib/index.js.map +1 -1
- package/dist/lib/instance.js +13 -5
- package/dist/lib/instance.js.map +1 -1
- package/dist/lib/types.d.ts +24 -0
- package/docs/coverage/block-navigation.js +8 -0
- package/docs/coverage/cobertura-coverage.xml +2818 -7
- package/docs/coverage/device-event.ts.html +256 -0
- package/docs/coverage/device-events.ts.html +961 -0
- package/docs/coverage/device.ts.html +2401 -0
- package/docs/coverage/fake-spawn.ts.html +448 -0
- package/docs/coverage/favicon.png +0 -0
- package/docs/coverage/index.html +132 -22
- package/docs/coverage/index.ts.html +62 -48
- package/docs/coverage/instance.ts.html +718 -0
- package/docs/coverage/sort-arrow-sprite.png +0 -0
- package/docs/coverage/sorter.js +26 -0
- package/docs/coverage/tools.ts.html +1222 -0
- package/docs/coverage/types.ts.html +757 -0
- package/docs/reference/assets/highlight.css +18 -4
- package/docs/reference/assets/main.js +3 -3
- package/docs/reference/assets/search.js +1 -1
- package/docs/reference/assets/style.css +6 -82
- package/docs/reference/classes/NodePyATVDevice.html +351 -210
- package/docs/reference/classes/NodePyATVDeviceEvent.html +27 -20
- package/docs/reference/classes/{default.html → NodePyATVInstance.html} +66 -55
- package/docs/reference/enums/NodePyATVDeviceState.html +13 -11
- package/docs/reference/enums/NodePyATVExecutableType.html +67 -0
- package/docs/reference/enums/NodePyATVKeys.html +30 -28
- package/docs/reference/enums/NodePyATVListenerState.html +11 -9
- package/docs/reference/enums/NodePyATVMediaType.html +11 -9
- package/docs/reference/enums/NodePyATVPowerState.html +9 -7
- package/docs/reference/enums/NodePyATVProtocol.html +11 -9
- package/docs/reference/enums/NodePyATVRepeatState.html +10 -8
- package/docs/reference/enums/NodePyATVShuffleState.html +10 -8
- package/docs/reference/index.html +59 -6
- package/docs/reference/interfaces/NodePyATVDeviceOptions.html +84 -48
- package/docs/reference/interfaces/NodePyATVFindAndInstanceOptions.html +50 -49
- package/docs/reference/interfaces/NodePyATVFindOptions.html +34 -32
- package/docs/reference/interfaces/NodePyATVGetStateOptions.html +10 -8
- package/docs/reference/interfaces/NodePyATVInstanceOptions.html +23 -22
- package/docs/reference/interfaces/NodePyATVService.html +71 -0
- package/docs/reference/interfaces/NodePyATVState.html +22 -20
- package/docs/reference/interfaces/NodePyATVVersionResponse.html +9 -7
- package/docs/reference/modules.html +23 -8
- package/docs/reference/types/NodePyATVEventValueType.html +9 -6
- package/docs/tests/index.html +1 -1
- package/docs/tests/mochawesome.json +940 -612
- package/package.json +8 -8
- package/src/lib/device.ts +62 -0
- package/src/lib/index.ts +15 -12
- package/src/lib/instance.ts +8 -2
- package/src/lib/types.ts +26 -0
- package/test/device.ts +124 -1
- package/test/instance.ts +84 -5
|
@@ -1,18 +1,20 @@
|
|
|
1
|
-
<!DOCTYPE html><html class="default" lang="en"><head><meta charSet="utf-8"/><meta http-equiv="x-ua-compatible" content="IE=edge"/><title>NodePyATVPowerState | node-pyatv - v5.
|
|
1
|
+
<!DOCTYPE html><html class="default" lang="en"><head><meta charSet="utf-8"/><meta http-equiv="x-ua-compatible" content="IE=edge"/><title>NodePyATVPowerState | node-pyatv - v5.1.0</title><meta name="description" content="Documentation for node-pyatv - v5.1.0"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="stylesheet" href="../assets/style.css"/><link rel="stylesheet" href="../assets/highlight.css"/><script async src="../assets/search.js" id="search-script"></script></head><body><script>document.documentElement.dataset.theme = localStorage.getItem("tsd-theme") || "os"</script><header class="tsd-page-toolbar">
|
|
2
2
|
<div class="tsd-toolbar-contents container">
|
|
3
3
|
<div class="table-cell" id="tsd-search" data-base="..">
|
|
4
4
|
<div class="field"><label for="tsd-search-field" class="tsd-widget search no-caption"><svg width="16" height="16" viewBox="0 0 16 16" fill="none"><path d="M15.7824 13.833L12.6666 10.7177C12.5259 10.5771 12.3353 10.499 12.1353 10.499H11.6259C12.4884 9.39596 13.001 8.00859 13.001 6.49937C13.001 2.90909 10.0914 0 6.50048 0C2.90959 0 0 2.90909 0 6.49937C0 10.0896 2.90959 12.9987 6.50048 12.9987C8.00996 12.9987 9.39756 12.4863 10.5008 11.6239V12.1332C10.5008 12.3332 10.5789 12.5238 10.7195 12.6644L13.8354 15.7797C14.1292 16.0734 14.6042 16.0734 14.8948 15.7797L15.7793 14.8954C16.0731 14.6017 16.0731 14.1267 15.7824 13.833ZM6.50048 10.499C4.29094 10.499 2.50018 8.71165 2.50018 6.49937C2.50018 4.29021 4.28781 2.49976 6.50048 2.49976C8.71001 2.49976 10.5008 4.28708 10.5008 6.49937C10.5008 8.70852 8.71314 10.499 6.50048 10.499Z" fill="var(--color-text)"></path></svg></label><input type="text" id="tsd-search-field" aria-label="Search"/></div>
|
|
5
5
|
<ul class="results">
|
|
6
6
|
<li class="state loading">Preparing search index...</li>
|
|
7
|
-
<li class="state failure">The search index is not available</li></ul><a href="../index.html" class="title">node-pyatv - v5.
|
|
7
|
+
<li class="state failure">The search index is not available</li></ul><a href="../index.html" class="title">node-pyatv - v5.1.0</a></div>
|
|
8
8
|
<div class="table-cell" id="tsd-widgets"><a href="#" class="tsd-widget menu no-caption" data-toggle="menu" aria-label="Menu"><svg width="16" height="16" viewBox="0 0 16 16" fill="none"><rect x="1" y="3" width="14" height="2" fill="var(--color-text)"></rect><rect x="1" y="7" width="14" height="2" fill="var(--color-text)"></rect><rect x="1" y="11" width="14" height="2" fill="var(--color-text)"></rect></svg></a></div></div></header>
|
|
9
9
|
<div class="container container-main">
|
|
10
10
|
<div class="col-8 col-content">
|
|
11
11
|
<div class="tsd-page-title">
|
|
12
12
|
<ul class="tsd-breadcrumb">
|
|
13
|
-
<li><a href="../modules.html">node-pyatv - v5.
|
|
13
|
+
<li><a href="../modules.html">node-pyatv - v5.1.0</a></li>
|
|
14
14
|
<li><a href="NodePyATVPowerState.html">NodePyATVPowerState</a></li></ul>
|
|
15
|
-
<h1>Enumeration NodePyATVPowerState</h1></div>
|
|
15
|
+
<h1>Enumeration NodePyATVPowerState</h1></div><aside class="tsd-sources">
|
|
16
|
+
<ul>
|
|
17
|
+
<li>Defined in <a href="https://github.com/sebbo2002/node-pyatv/blob/37b5e50/src/lib/types.ts#L44">src/lib/types.ts:44</a></li></ul></aside>
|
|
16
18
|
<section class="tsd-panel-group tsd-index-group">
|
|
17
19
|
<section class="tsd-panel tsd-index-panel">
|
|
18
20
|
<details class="tsd-index-content tsd-index-accordion" open><summary class="tsd-accordion-summary tsd-index-summary">
|
|
@@ -29,12 +31,12 @@
|
|
|
29
31
|
<h3 class="tsd-anchor-link"><span>off</span><a href="#off" aria-label="Permalink" class="tsd-anchor-icon"><svg class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none" id="icon-anchor-a"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5" id="icon-anchor-b"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5" id="icon-anchor-c"></path></svg></a></h3>
|
|
30
32
|
<div class="tsd-signature">off<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">"off"</span></div><aside class="tsd-sources">
|
|
31
33
|
<ul>
|
|
32
|
-
<li>Defined in <a href="https://github.com/sebbo2002/node-pyatv/blob/
|
|
34
|
+
<li>Defined in <a href="https://github.com/sebbo2002/node-pyatv/blob/37b5e50/src/lib/types.ts#L46">src/lib/types.ts:46</a></li></ul></aside></section>
|
|
33
35
|
<section class="tsd-panel tsd-member tsd-kind-enum-member tsd-parent-kind-enum"><a id="on" class="tsd-anchor"></a>
|
|
34
36
|
<h3 class="tsd-anchor-link"><span>on</span><a href="#on" aria-label="Permalink" class="tsd-anchor-icon"><svg class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><use href="#icon-anchor-a"></use><use href="#icon-anchor-b"></use><use href="#icon-anchor-c"></use></svg></a></h3>
|
|
35
37
|
<div class="tsd-signature">on<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">"on"</span></div><aside class="tsd-sources">
|
|
36
38
|
<ul>
|
|
37
|
-
<li>Defined in <a href="https://github.com/sebbo2002/node-pyatv/blob/
|
|
39
|
+
<li>Defined in <a href="https://github.com/sebbo2002/node-pyatv/blob/37b5e50/src/lib/types.ts#L45">src/lib/types.ts:45</a></li></ul></aside></section></section></div>
|
|
38
40
|
<div class="col-4 col-menu menu-sticky-wrap menu-highlight">
|
|
39
41
|
<div class="tsd-navigation settings">
|
|
40
42
|
<details class="tsd-index-accordion"><summary class="tsd-accordion-summary">
|
|
@@ -52,7 +54,7 @@
|
|
|
52
54
|
<h3><svg width="20" height="20" viewBox="0 0 24 24" fill="none"><path d="M4.93896 8.531L12 15.591L19.061 8.531L16.939 6.409L12 11.349L7.06098 6.409L4.93896 8.531Z" fill="var(--color-text)"></path></svg> Modules</h3></summary>
|
|
53
55
|
<div class="tsd-accordion-details">
|
|
54
56
|
<ul>
|
|
55
|
-
<li><a href="../modules.html">node-<wbr/>pyatv -<wbr/> v5.
|
|
57
|
+
<li><a href="../modules.html">node-<wbr/>pyatv -<wbr/> v5.1.0</a>
|
|
56
58
|
<ul></ul></li></ul></div></details></nav>
|
|
57
59
|
<nav class="tsd-navigation secondary menu-sticky">
|
|
58
60
|
<ul>
|
|
@@ -1,18 +1,20 @@
|
|
|
1
|
-
<!DOCTYPE html><html class="default" lang="en"><head><meta charSet="utf-8"/><meta http-equiv="x-ua-compatible" content="IE=edge"/><title>NodePyATVProtocol | node-pyatv - v5.
|
|
1
|
+
<!DOCTYPE html><html class="default" lang="en"><head><meta charSet="utf-8"/><meta http-equiv="x-ua-compatible" content="IE=edge"/><title>NodePyATVProtocol | node-pyatv - v5.1.0</title><meta name="description" content="Documentation for node-pyatv - v5.1.0"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="stylesheet" href="../assets/style.css"/><link rel="stylesheet" href="../assets/highlight.css"/><script async src="../assets/search.js" id="search-script"></script></head><body><script>document.documentElement.dataset.theme = localStorage.getItem("tsd-theme") || "os"</script><header class="tsd-page-toolbar">
|
|
2
2
|
<div class="tsd-toolbar-contents container">
|
|
3
3
|
<div class="table-cell" id="tsd-search" data-base="..">
|
|
4
4
|
<div class="field"><label for="tsd-search-field" class="tsd-widget search no-caption"><svg width="16" height="16" viewBox="0 0 16 16" fill="none"><path d="M15.7824 13.833L12.6666 10.7177C12.5259 10.5771 12.3353 10.499 12.1353 10.499H11.6259C12.4884 9.39596 13.001 8.00859 13.001 6.49937C13.001 2.90909 10.0914 0 6.50048 0C2.90959 0 0 2.90909 0 6.49937C0 10.0896 2.90959 12.9987 6.50048 12.9987C8.00996 12.9987 9.39756 12.4863 10.5008 11.6239V12.1332C10.5008 12.3332 10.5789 12.5238 10.7195 12.6644L13.8354 15.7797C14.1292 16.0734 14.6042 16.0734 14.8948 15.7797L15.7793 14.8954C16.0731 14.6017 16.0731 14.1267 15.7824 13.833ZM6.50048 10.499C4.29094 10.499 2.50018 8.71165 2.50018 6.49937C2.50018 4.29021 4.28781 2.49976 6.50048 2.49976C8.71001 2.49976 10.5008 4.28708 10.5008 6.49937C10.5008 8.70852 8.71314 10.499 6.50048 10.499Z" fill="var(--color-text)"></path></svg></label><input type="text" id="tsd-search-field" aria-label="Search"/></div>
|
|
5
5
|
<ul class="results">
|
|
6
6
|
<li class="state loading">Preparing search index...</li>
|
|
7
|
-
<li class="state failure">The search index is not available</li></ul><a href="../index.html" class="title">node-pyatv - v5.
|
|
7
|
+
<li class="state failure">The search index is not available</li></ul><a href="../index.html" class="title">node-pyatv - v5.1.0</a></div>
|
|
8
8
|
<div class="table-cell" id="tsd-widgets"><a href="#" class="tsd-widget menu no-caption" data-toggle="menu" aria-label="Menu"><svg width="16" height="16" viewBox="0 0 16 16" fill="none"><rect x="1" y="3" width="14" height="2" fill="var(--color-text)"></rect><rect x="1" y="7" width="14" height="2" fill="var(--color-text)"></rect><rect x="1" y="11" width="14" height="2" fill="var(--color-text)"></rect></svg></a></div></div></header>
|
|
9
9
|
<div class="container container-main">
|
|
10
10
|
<div class="col-8 col-content">
|
|
11
11
|
<div class="tsd-page-title">
|
|
12
12
|
<ul class="tsd-breadcrumb">
|
|
13
|
-
<li><a href="../modules.html">node-pyatv - v5.
|
|
13
|
+
<li><a href="../modules.html">node-pyatv - v5.1.0</a></li>
|
|
14
14
|
<li><a href="NodePyATVProtocol.html">NodePyATVProtocol</a></li></ul>
|
|
15
|
-
<h1>Enumeration NodePyATVProtocol</h1></div>
|
|
15
|
+
<h1>Enumeration NodePyATVProtocol</h1></div><aside class="tsd-sources">
|
|
16
|
+
<ul>
|
|
17
|
+
<li>Defined in <a href="https://github.com/sebbo2002/node-pyatv/blob/37b5e50/src/lib/types.ts#L9">src/lib/types.ts:9</a></li></ul></aside>
|
|
16
18
|
<section class="tsd-panel-group tsd-index-group">
|
|
17
19
|
<section class="tsd-panel tsd-index-panel">
|
|
18
20
|
<details class="tsd-index-content tsd-index-accordion" open><summary class="tsd-accordion-summary tsd-index-summary">
|
|
@@ -31,22 +33,22 @@
|
|
|
31
33
|
<h3 class="tsd-anchor-link"><span>airplay</span><a href="#airplay" aria-label="Permalink" class="tsd-anchor-icon"><svg class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none" id="icon-anchor-a"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5" id="icon-anchor-b"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5" id="icon-anchor-c"></path></svg></a></h3>
|
|
32
34
|
<div class="tsd-signature">airplay<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">"airplay"</span></div><aside class="tsd-sources">
|
|
33
35
|
<ul>
|
|
34
|
-
<li>Defined in <a href="https://github.com/sebbo2002/node-pyatv/blob/
|
|
36
|
+
<li>Defined in <a href="https://github.com/sebbo2002/node-pyatv/blob/37b5e50/src/lib/types.ts#L12">src/lib/types.ts:12</a></li></ul></aside></section>
|
|
35
37
|
<section class="tsd-panel tsd-member tsd-kind-enum-member tsd-parent-kind-enum"><a id="dmap" class="tsd-anchor"></a>
|
|
36
38
|
<h3 class="tsd-anchor-link"><span>dmap</span><a href="#dmap" aria-label="Permalink" class="tsd-anchor-icon"><svg class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><use href="#icon-anchor-a"></use><use href="#icon-anchor-b"></use><use href="#icon-anchor-c"></use></svg></a></h3>
|
|
37
39
|
<div class="tsd-signature">dmap<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">"dmap"</span></div><aside class="tsd-sources">
|
|
38
40
|
<ul>
|
|
39
|
-
<li>Defined in <a href="https://github.com/sebbo2002/node-pyatv/blob/
|
|
41
|
+
<li>Defined in <a href="https://github.com/sebbo2002/node-pyatv/blob/37b5e50/src/lib/types.ts#L10">src/lib/types.ts:10</a></li></ul></aside></section>
|
|
40
42
|
<section class="tsd-panel tsd-member tsd-kind-enum-member tsd-parent-kind-enum"><a id="mdns" class="tsd-anchor"></a>
|
|
41
43
|
<h3 class="tsd-anchor-link"><span>mdns</span><a href="#mdns" aria-label="Permalink" class="tsd-anchor-icon"><svg class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><use href="#icon-anchor-a"></use><use href="#icon-anchor-b"></use><use href="#icon-anchor-c"></use></svg></a></h3>
|
|
42
44
|
<div class="tsd-signature">mdns<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">"mdns"</span></div><aside class="tsd-sources">
|
|
43
45
|
<ul>
|
|
44
|
-
<li>Defined in <a href="https://github.com/sebbo2002/node-pyatv/blob/
|
|
46
|
+
<li>Defined in <a href="https://github.com/sebbo2002/node-pyatv/blob/37b5e50/src/lib/types.ts#L13">src/lib/types.ts:13</a></li></ul></aside></section>
|
|
45
47
|
<section class="tsd-panel tsd-member tsd-kind-enum-member tsd-parent-kind-enum"><a id="mrp" class="tsd-anchor"></a>
|
|
46
48
|
<h3 class="tsd-anchor-link"><span>mrp</span><a href="#mrp" aria-label="Permalink" class="tsd-anchor-icon"><svg class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><use href="#icon-anchor-a"></use><use href="#icon-anchor-b"></use><use href="#icon-anchor-c"></use></svg></a></h3>
|
|
47
49
|
<div class="tsd-signature">mrp<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">"mrp"</span></div><aside class="tsd-sources">
|
|
48
50
|
<ul>
|
|
49
|
-
<li>Defined in <a href="https://github.com/sebbo2002/node-pyatv/blob/
|
|
51
|
+
<li>Defined in <a href="https://github.com/sebbo2002/node-pyatv/blob/37b5e50/src/lib/types.ts#L11">src/lib/types.ts:11</a></li></ul></aside></section></section></div>
|
|
50
52
|
<div class="col-4 col-menu menu-sticky-wrap menu-highlight">
|
|
51
53
|
<div class="tsd-navigation settings">
|
|
52
54
|
<details class="tsd-index-accordion"><summary class="tsd-accordion-summary">
|
|
@@ -64,7 +66,7 @@
|
|
|
64
66
|
<h3><svg width="20" height="20" viewBox="0 0 24 24" fill="none"><path d="M4.93896 8.531L12 15.591L19.061 8.531L16.939 6.409L12 11.349L7.06098 6.409L4.93896 8.531Z" fill="var(--color-text)"></path></svg> Modules</h3></summary>
|
|
65
67
|
<div class="tsd-accordion-details">
|
|
66
68
|
<ul>
|
|
67
|
-
<li><a href="../modules.html">node-<wbr/>pyatv -<wbr/> v5.
|
|
69
|
+
<li><a href="../modules.html">node-<wbr/>pyatv -<wbr/> v5.1.0</a>
|
|
68
70
|
<ul></ul></li></ul></div></details></nav>
|
|
69
71
|
<nav class="tsd-navigation secondary menu-sticky">
|
|
70
72
|
<ul>
|
|
@@ -1,18 +1,20 @@
|
|
|
1
|
-
<!DOCTYPE html><html class="default" lang="en"><head><meta charSet="utf-8"/><meta http-equiv="x-ua-compatible" content="IE=edge"/><title>NodePyATVRepeatState | node-pyatv - v5.
|
|
1
|
+
<!DOCTYPE html><html class="default" lang="en"><head><meta charSet="utf-8"/><meta http-equiv="x-ua-compatible" content="IE=edge"/><title>NodePyATVRepeatState | node-pyatv - v5.1.0</title><meta name="description" content="Documentation for node-pyatv - v5.1.0"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="stylesheet" href="../assets/style.css"/><link rel="stylesheet" href="../assets/highlight.css"/><script async src="../assets/search.js" id="search-script"></script></head><body><script>document.documentElement.dataset.theme = localStorage.getItem("tsd-theme") || "os"</script><header class="tsd-page-toolbar">
|
|
2
2
|
<div class="tsd-toolbar-contents container">
|
|
3
3
|
<div class="table-cell" id="tsd-search" data-base="..">
|
|
4
4
|
<div class="field"><label for="tsd-search-field" class="tsd-widget search no-caption"><svg width="16" height="16" viewBox="0 0 16 16" fill="none"><path d="M15.7824 13.833L12.6666 10.7177C12.5259 10.5771 12.3353 10.499 12.1353 10.499H11.6259C12.4884 9.39596 13.001 8.00859 13.001 6.49937C13.001 2.90909 10.0914 0 6.50048 0C2.90959 0 0 2.90909 0 6.49937C0 10.0896 2.90959 12.9987 6.50048 12.9987C8.00996 12.9987 9.39756 12.4863 10.5008 11.6239V12.1332C10.5008 12.3332 10.5789 12.5238 10.7195 12.6644L13.8354 15.7797C14.1292 16.0734 14.6042 16.0734 14.8948 15.7797L15.7793 14.8954C16.0731 14.6017 16.0731 14.1267 15.7824 13.833ZM6.50048 10.499C4.29094 10.499 2.50018 8.71165 2.50018 6.49937C2.50018 4.29021 4.28781 2.49976 6.50048 2.49976C8.71001 2.49976 10.5008 4.28708 10.5008 6.49937C10.5008 8.70852 8.71314 10.499 6.50048 10.499Z" fill="var(--color-text)"></path></svg></label><input type="text" id="tsd-search-field" aria-label="Search"/></div>
|
|
5
5
|
<ul class="results">
|
|
6
6
|
<li class="state loading">Preparing search index...</li>
|
|
7
|
-
<li class="state failure">The search index is not available</li></ul><a href="../index.html" class="title">node-pyatv - v5.
|
|
7
|
+
<li class="state failure">The search index is not available</li></ul><a href="../index.html" class="title">node-pyatv - v5.1.0</a></div>
|
|
8
8
|
<div class="table-cell" id="tsd-widgets"><a href="#" class="tsd-widget menu no-caption" data-toggle="menu" aria-label="Menu"><svg width="16" height="16" viewBox="0 0 16 16" fill="none"><rect x="1" y="3" width="14" height="2" fill="var(--color-text)"></rect><rect x="1" y="7" width="14" height="2" fill="var(--color-text)"></rect><rect x="1" y="11" width="14" height="2" fill="var(--color-text)"></rect></svg></a></div></div></header>
|
|
9
9
|
<div class="container container-main">
|
|
10
10
|
<div class="col-8 col-content">
|
|
11
11
|
<div class="tsd-page-title">
|
|
12
12
|
<ul class="tsd-breadcrumb">
|
|
13
|
-
<li><a href="../modules.html">node-pyatv - v5.
|
|
13
|
+
<li><a href="../modules.html">node-pyatv - v5.1.0</a></li>
|
|
14
14
|
<li><a href="NodePyATVRepeatState.html">NodePyATVRepeatState</a></li></ul>
|
|
15
|
-
<h1>Enumeration NodePyATVRepeatState</h1></div>
|
|
15
|
+
<h1>Enumeration NodePyATVRepeatState</h1></div><aside class="tsd-sources">
|
|
16
|
+
<ul>
|
|
17
|
+
<li>Defined in <a href="https://github.com/sebbo2002/node-pyatv/blob/37b5e50/src/lib/types.ts#L32">src/lib/types.ts:32</a></li></ul></aside>
|
|
16
18
|
<section class="tsd-panel-group tsd-index-group">
|
|
17
19
|
<section class="tsd-panel tsd-index-panel">
|
|
18
20
|
<details class="tsd-index-content tsd-index-accordion" open><summary class="tsd-accordion-summary tsd-index-summary">
|
|
@@ -30,17 +32,17 @@
|
|
|
30
32
|
<h3 class="tsd-anchor-link"><span>all</span><a href="#all" aria-label="Permalink" class="tsd-anchor-icon"><svg class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none" id="icon-anchor-a"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5" id="icon-anchor-b"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5" id="icon-anchor-c"></path></svg></a></h3>
|
|
31
33
|
<div class="tsd-signature">all<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">"all"</span></div><aside class="tsd-sources">
|
|
32
34
|
<ul>
|
|
33
|
-
<li>Defined in <a href="https://github.com/sebbo2002/node-pyatv/blob/
|
|
35
|
+
<li>Defined in <a href="https://github.com/sebbo2002/node-pyatv/blob/37b5e50/src/lib/types.ts#L33">src/lib/types.ts:33</a></li></ul></aside></section>
|
|
34
36
|
<section class="tsd-panel tsd-member tsd-kind-enum-member tsd-parent-kind-enum"><a id="off" class="tsd-anchor"></a>
|
|
35
37
|
<h3 class="tsd-anchor-link"><span>off</span><a href="#off" aria-label="Permalink" class="tsd-anchor-icon"><svg class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><use href="#icon-anchor-a"></use><use href="#icon-anchor-b"></use><use href="#icon-anchor-c"></use></svg></a></h3>
|
|
36
38
|
<div class="tsd-signature">off<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">"off"</span></div><aside class="tsd-sources">
|
|
37
39
|
<ul>
|
|
38
|
-
<li>Defined in <a href="https://github.com/sebbo2002/node-pyatv/blob/
|
|
40
|
+
<li>Defined in <a href="https://github.com/sebbo2002/node-pyatv/blob/37b5e50/src/lib/types.ts#L35">src/lib/types.ts:35</a></li></ul></aside></section>
|
|
39
41
|
<section class="tsd-panel tsd-member tsd-kind-enum-member tsd-parent-kind-enum"><a id="track" class="tsd-anchor"></a>
|
|
40
42
|
<h3 class="tsd-anchor-link"><span>track</span><a href="#track" aria-label="Permalink" class="tsd-anchor-icon"><svg class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><use href="#icon-anchor-a"></use><use href="#icon-anchor-b"></use><use href="#icon-anchor-c"></use></svg></a></h3>
|
|
41
43
|
<div class="tsd-signature">track<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">"track"</span></div><aside class="tsd-sources">
|
|
42
44
|
<ul>
|
|
43
|
-
<li>Defined in <a href="https://github.com/sebbo2002/node-pyatv/blob/
|
|
45
|
+
<li>Defined in <a href="https://github.com/sebbo2002/node-pyatv/blob/37b5e50/src/lib/types.ts#L34">src/lib/types.ts:34</a></li></ul></aside></section></section></div>
|
|
44
46
|
<div class="col-4 col-menu menu-sticky-wrap menu-highlight">
|
|
45
47
|
<div class="tsd-navigation settings">
|
|
46
48
|
<details class="tsd-index-accordion"><summary class="tsd-accordion-summary">
|
|
@@ -58,7 +60,7 @@
|
|
|
58
60
|
<h3><svg width="20" height="20" viewBox="0 0 24 24" fill="none"><path d="M4.93896 8.531L12 15.591L19.061 8.531L16.939 6.409L12 11.349L7.06098 6.409L4.93896 8.531Z" fill="var(--color-text)"></path></svg> Modules</h3></summary>
|
|
59
61
|
<div class="tsd-accordion-details">
|
|
60
62
|
<ul>
|
|
61
|
-
<li><a href="../modules.html">node-<wbr/>pyatv -<wbr/> v5.
|
|
63
|
+
<li><a href="../modules.html">node-<wbr/>pyatv -<wbr/> v5.1.0</a>
|
|
62
64
|
<ul></ul></li></ul></div></details></nav>
|
|
63
65
|
<nav class="tsd-navigation secondary menu-sticky">
|
|
64
66
|
<ul>
|
|
@@ -1,18 +1,20 @@
|
|
|
1
|
-
<!DOCTYPE html><html class="default" lang="en"><head><meta charSet="utf-8"/><meta http-equiv="x-ua-compatible" content="IE=edge"/><title>NodePyATVShuffleState | node-pyatv - v5.
|
|
1
|
+
<!DOCTYPE html><html class="default" lang="en"><head><meta charSet="utf-8"/><meta http-equiv="x-ua-compatible" content="IE=edge"/><title>NodePyATVShuffleState | node-pyatv - v5.1.0</title><meta name="description" content="Documentation for node-pyatv - v5.1.0"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="stylesheet" href="../assets/style.css"/><link rel="stylesheet" href="../assets/highlight.css"/><script async src="../assets/search.js" id="search-script"></script></head><body><script>document.documentElement.dataset.theme = localStorage.getItem("tsd-theme") || "os"</script><header class="tsd-page-toolbar">
|
|
2
2
|
<div class="tsd-toolbar-contents container">
|
|
3
3
|
<div class="table-cell" id="tsd-search" data-base="..">
|
|
4
4
|
<div class="field"><label for="tsd-search-field" class="tsd-widget search no-caption"><svg width="16" height="16" viewBox="0 0 16 16" fill="none"><path d="M15.7824 13.833L12.6666 10.7177C12.5259 10.5771 12.3353 10.499 12.1353 10.499H11.6259C12.4884 9.39596 13.001 8.00859 13.001 6.49937C13.001 2.90909 10.0914 0 6.50048 0C2.90959 0 0 2.90909 0 6.49937C0 10.0896 2.90959 12.9987 6.50048 12.9987C8.00996 12.9987 9.39756 12.4863 10.5008 11.6239V12.1332C10.5008 12.3332 10.5789 12.5238 10.7195 12.6644L13.8354 15.7797C14.1292 16.0734 14.6042 16.0734 14.8948 15.7797L15.7793 14.8954C16.0731 14.6017 16.0731 14.1267 15.7824 13.833ZM6.50048 10.499C4.29094 10.499 2.50018 8.71165 2.50018 6.49937C2.50018 4.29021 4.28781 2.49976 6.50048 2.49976C8.71001 2.49976 10.5008 4.28708 10.5008 6.49937C10.5008 8.70852 8.71314 10.499 6.50048 10.499Z" fill="var(--color-text)"></path></svg></label><input type="text" id="tsd-search-field" aria-label="Search"/></div>
|
|
5
5
|
<ul class="results">
|
|
6
6
|
<li class="state loading">Preparing search index...</li>
|
|
7
|
-
<li class="state failure">The search index is not available</li></ul><a href="../index.html" class="title">node-pyatv - v5.
|
|
7
|
+
<li class="state failure">The search index is not available</li></ul><a href="../index.html" class="title">node-pyatv - v5.1.0</a></div>
|
|
8
8
|
<div class="table-cell" id="tsd-widgets"><a href="#" class="tsd-widget menu no-caption" data-toggle="menu" aria-label="Menu"><svg width="16" height="16" viewBox="0 0 16 16" fill="none"><rect x="1" y="3" width="14" height="2" fill="var(--color-text)"></rect><rect x="1" y="7" width="14" height="2" fill="var(--color-text)"></rect><rect x="1" y="11" width="14" height="2" fill="var(--color-text)"></rect></svg></a></div></div></header>
|
|
9
9
|
<div class="container container-main">
|
|
10
10
|
<div class="col-8 col-content">
|
|
11
11
|
<div class="tsd-page-title">
|
|
12
12
|
<ul class="tsd-breadcrumb">
|
|
13
|
-
<li><a href="../modules.html">node-pyatv - v5.
|
|
13
|
+
<li><a href="../modules.html">node-pyatv - v5.1.0</a></li>
|
|
14
14
|
<li><a href="NodePyATVShuffleState.html">NodePyATVShuffleState</a></li></ul>
|
|
15
|
-
<h1>Enumeration NodePyATVShuffleState</h1></div>
|
|
15
|
+
<h1>Enumeration NodePyATVShuffleState</h1></div><aside class="tsd-sources">
|
|
16
|
+
<ul>
|
|
17
|
+
<li>Defined in <a href="https://github.com/sebbo2002/node-pyatv/blob/37b5e50/src/lib/types.ts#L38">src/lib/types.ts:38</a></li></ul></aside>
|
|
16
18
|
<section class="tsd-panel-group tsd-index-group">
|
|
17
19
|
<section class="tsd-panel tsd-index-panel">
|
|
18
20
|
<details class="tsd-index-content tsd-index-accordion" open><summary class="tsd-accordion-summary tsd-index-summary">
|
|
@@ -30,17 +32,17 @@
|
|
|
30
32
|
<h3 class="tsd-anchor-link"><span>albums</span><a href="#albums" aria-label="Permalink" class="tsd-anchor-icon"><svg class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none" id="icon-anchor-a"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5" id="icon-anchor-b"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5" id="icon-anchor-c"></path></svg></a></h3>
|
|
31
33
|
<div class="tsd-signature">albums<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">"albums"</span></div><aside class="tsd-sources">
|
|
32
34
|
<ul>
|
|
33
|
-
<li>Defined in <a href="https://github.com/sebbo2002/node-pyatv/blob/
|
|
35
|
+
<li>Defined in <a href="https://github.com/sebbo2002/node-pyatv/blob/37b5e50/src/lib/types.ts#L39">src/lib/types.ts:39</a></li></ul></aside></section>
|
|
34
36
|
<section class="tsd-panel tsd-member tsd-kind-enum-member tsd-parent-kind-enum"><a id="off" class="tsd-anchor"></a>
|
|
35
37
|
<h3 class="tsd-anchor-link"><span>off</span><a href="#off" aria-label="Permalink" class="tsd-anchor-icon"><svg class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><use href="#icon-anchor-a"></use><use href="#icon-anchor-b"></use><use href="#icon-anchor-c"></use></svg></a></h3>
|
|
36
38
|
<div class="tsd-signature">off<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">"off"</span></div><aside class="tsd-sources">
|
|
37
39
|
<ul>
|
|
38
|
-
<li>Defined in <a href="https://github.com/sebbo2002/node-pyatv/blob/
|
|
40
|
+
<li>Defined in <a href="https://github.com/sebbo2002/node-pyatv/blob/37b5e50/src/lib/types.ts#L41">src/lib/types.ts:41</a></li></ul></aside></section>
|
|
39
41
|
<section class="tsd-panel tsd-member tsd-kind-enum-member tsd-parent-kind-enum"><a id="songs" class="tsd-anchor"></a>
|
|
40
42
|
<h3 class="tsd-anchor-link"><span>songs</span><a href="#songs" aria-label="Permalink" class="tsd-anchor-icon"><svg class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><use href="#icon-anchor-a"></use><use href="#icon-anchor-b"></use><use href="#icon-anchor-c"></use></svg></a></h3>
|
|
41
43
|
<div class="tsd-signature">songs<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">"songs"</span></div><aside class="tsd-sources">
|
|
42
44
|
<ul>
|
|
43
|
-
<li>Defined in <a href="https://github.com/sebbo2002/node-pyatv/blob/
|
|
45
|
+
<li>Defined in <a href="https://github.com/sebbo2002/node-pyatv/blob/37b5e50/src/lib/types.ts#L40">src/lib/types.ts:40</a></li></ul></aside></section></section></div>
|
|
44
46
|
<div class="col-4 col-menu menu-sticky-wrap menu-highlight">
|
|
45
47
|
<div class="tsd-navigation settings">
|
|
46
48
|
<details class="tsd-index-accordion"><summary class="tsd-accordion-summary">
|
|
@@ -58,7 +60,7 @@
|
|
|
58
60
|
<h3><svg width="20" height="20" viewBox="0 0 24 24" fill="none"><path d="M4.93896 8.531L12 15.591L19.061 8.531L16.939 6.409L12 11.349L7.06098 6.409L4.93896 8.531Z" fill="var(--color-text)"></path></svg> Modules</h3></summary>
|
|
59
61
|
<div class="tsd-accordion-details">
|
|
60
62
|
<ul>
|
|
61
|
-
<li><a href="../modules.html">node-<wbr/>pyatv -<wbr/> v5.
|
|
63
|
+
<li><a href="../modules.html">node-<wbr/>pyatv -<wbr/> v5.1.0</a>
|
|
62
64
|
<ul></ul></li></ul></div></details></nav>
|
|
63
65
|
<nav class="tsd-navigation secondary menu-sticky">
|
|
64
66
|
<ul>
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
<!DOCTYPE html><html class="default" lang="en"><head><meta charSet="utf-8"/><meta http-equiv="x-ua-compatible" content="IE=edge"/><title>node-pyatv - v5.
|
|
1
|
+
<!DOCTYPE html><html class="default" lang="en"><head><meta charSet="utf-8"/><meta http-equiv="x-ua-compatible" content="IE=edge"/><title>node-pyatv - v5.1.0</title><meta name="description" content="Documentation for node-pyatv - v5.1.0"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="stylesheet" href="assets/style.css"/><link rel="stylesheet" href="assets/highlight.css"/><script async src="assets/search.js" id="search-script"></script></head><body><script>document.documentElement.dataset.theme = localStorage.getItem("tsd-theme") || "os"</script><header class="tsd-page-toolbar">
|
|
2
2
|
<div class="tsd-toolbar-contents container">
|
|
3
3
|
<div class="table-cell" id="tsd-search" data-base=".">
|
|
4
4
|
<div class="field"><label for="tsd-search-field" class="tsd-widget search no-caption"><svg width="16" height="16" viewBox="0 0 16 16" fill="none"><path d="M15.7824 13.833L12.6666 10.7177C12.5259 10.5771 12.3353 10.499 12.1353 10.499H11.6259C12.4884 9.39596 13.001 8.00859 13.001 6.49937C13.001 2.90909 10.0914 0 6.50048 0C2.90959 0 0 2.90909 0 6.49937C0 10.0896 2.90959 12.9987 6.50048 12.9987C8.00996 12.9987 9.39756 12.4863 10.5008 11.6239V12.1332C10.5008 12.3332 10.5789 12.5238 10.7195 12.6644L13.8354 15.7797C14.1292 16.0734 14.6042 16.0734 14.8948 15.7797L15.7793 14.8954C16.0731 14.6017 16.0731 14.1267 15.7824 13.833ZM6.50048 10.499C4.29094 10.499 2.50018 8.71165 2.50018 6.49937C2.50018 4.29021 4.28781 2.49976 6.50048 2.49976C8.71001 2.49976 10.5008 4.28708 10.5008 6.49937C10.5008 8.70852 8.71314 10.499 6.50048 10.499Z" fill="var(--color-text)"></path></svg></label><input type="text" id="tsd-search-field" aria-label="Search"/></div>
|
|
5
5
|
<ul class="results">
|
|
6
6
|
<li class="state loading">Preparing search index...</li>
|
|
7
|
-
<li class="state failure">The search index is not available</li></ul><a href="index.html" class="title">node-pyatv - v5.
|
|
7
|
+
<li class="state failure">The search index is not available</li></ul><a href="index.html" class="title">node-pyatv - v5.1.0</a></div>
|
|
8
8
|
<div class="table-cell" id="tsd-widgets"><a href="#" class="tsd-widget menu no-caption" data-toggle="menu" aria-label="Menu"><svg width="16" height="16" viewBox="0 0 16 16" fill="none"><rect x="1" y="3" width="14" height="2" fill="var(--color-text)"></rect><rect x="1" y="7" width="14" height="2" fill="var(--color-text)"></rect><rect x="1" y="11" width="14" height="2" fill="var(--color-text)"></rect></svg></a></div></div></header>
|
|
9
9
|
<div class="container container-main">
|
|
10
10
|
<div class="col-8 col-content">
|
|
11
11
|
<div class="tsd-page-title">
|
|
12
|
-
<h2>node-pyatv - v5.
|
|
12
|
+
<h2>node-pyatv - v5.1.0</h2></div>
|
|
13
13
|
<div class="tsd-panel tsd-typography">
|
|
14
14
|
<a href="#node-pyatv" id="node-pyatv" style="color: inherit; text-decoration: none;">
|
|
15
15
|
<h1>node-pyatv</h1>
|
|
@@ -36,8 +36,58 @@
|
|
|
36
36
|
<p>Before you use <code>node-pyatv</code> you need to install pyatv. This module woun't do this for you. Run <code>atvremote --version</code> to
|
|
37
37
|
double check your installation. See FAQ section for installation tips.</p>
|
|
38
38
|
<p>To install the javascript module via npm just run:</p>
|
|
39
|
-
<pre><code><span class="hl-0">npm</span><span class="hl-1"> </span><span class="hl-0">install</span>
|
|
39
|
+
<pre><code><span class="hl-0">npm</span><span class="hl-1"> </span><span class="hl-0">install</span><span class="hl-1"> @</span><span class="hl-0">sebbo2002</span><span class="hl-1">/</span><span class="hl-0">node</span><span class="hl-1">-</span><span class="hl-0">pyatv</span>
|
|
40
40
|
</code></pre>
|
|
41
|
+
|
|
42
|
+
<a href="#⚒-quick-start" id="⚒-quick-start" style="color: inherit; text-decoration: none;">
|
|
43
|
+
<h2>⚒ Quick Start</h2>
|
|
44
|
+
</a>
|
|
45
|
+
<pre><code class="language-typescript"><span class="hl-2">import</span><span class="hl-1"> </span><span class="hl-0">pyatv</span><span class="hl-1">, {</span><span class="hl-0">NodePyATVDeviceEvent</span><span class="hl-1">} </span><span class="hl-2">from</span><span class="hl-1"> </span><span class="hl-3">'@sebbo2002/node-pyatv'</span><span class="hl-1">;</span><br/><br/><span class="hl-4">const</span><span class="hl-1"> </span><span class="hl-5">devices</span><span class="hl-1"> = </span><span class="hl-2">await</span><span class="hl-1"> </span><span class="hl-0">pyatv</span><span class="hl-1">.</span><span class="hl-6">find</span><span class="hl-1">(</span><span class="hl-7">/*{debug: true}*/</span><span class="hl-1">);</span><br/><span class="hl-2">if</span><span class="hl-1"> (!</span><span class="hl-0">devices</span><span class="hl-1">.</span><span class="hl-0">length</span><span class="hl-1">) {</span><br/><span class="hl-1"> </span><span class="hl-2">throw</span><span class="hl-1"> </span><span class="hl-4">new</span><span class="hl-1"> </span><span class="hl-8">Error</span><span class="hl-1">(</span><span class="hl-3">'Oh no.'</span><span class="hl-1">);</span><br/><span class="hl-1">}</span><br/><br/><span class="hl-4">const</span><span class="hl-1"> </span><span class="hl-5">device</span><span class="hl-1"> = </span><span class="hl-0">devices</span><span class="hl-1">[</span><span class="hl-9">0</span><span class="hl-1">];</span><br/><br/><span class="hl-7">// request current title</span><br/><span class="hl-0">console</span><span class="hl-1">.</span><span class="hl-6">log</span><span class="hl-1">(</span><span class="hl-2">await</span><span class="hl-1"> </span><span class="hl-0">device</span><span class="hl-1">.</span><span class="hl-6">getTitle</span><span class="hl-1">());</span><br/><br/><span class="hl-7">// request full state</span><br/><span class="hl-0">console</span><span class="hl-1">.</span><span class="hl-6">log</span><span class="hl-1">(</span><span class="hl-2">await</span><span class="hl-1"> </span><span class="hl-0">device</span><span class="hl-1">.</span><span class="hl-6">getState</span><span class="hl-1">());</span><br/><br/><span class="hl-7">// subscribe to events</span><br/><span class="hl-0">device</span><span class="hl-1">.</span><span class="hl-6">on</span><span class="hl-1">(</span><span class="hl-3">'update:deviceState'</span><span class="hl-1">, (</span><span class="hl-0">event</span><span class="hl-1">: </span><span class="hl-8">NodePyATVDeviceEvent</span><span class="hl-1"> | </span><span class="hl-8">Error</span><span class="hl-1">) </span><span class="hl-4">=></span><span class="hl-1"> {</span><br/><span class="hl-1"> </span><span class="hl-2">if</span><span class="hl-1">(</span><span class="hl-0">event</span><span class="hl-1"> </span><span class="hl-4">instanceof</span><span class="hl-1"> </span><span class="hl-8">Error</span><span class="hl-1">) </span><span class="hl-2">return</span><span class="hl-1">;</span><br/><span class="hl-1"> </span><span class="hl-0">console</span><span class="hl-1">.</span><span class="hl-6">log</span><span class="hl-1">(</span><span class="hl-3">`Current device state is </span><span class="hl-4">${</span><span class="hl-0">event</span><span class="hl-10">.</span><span class="hl-0">value</span><span class="hl-4">}</span><span class="hl-3">`</span><span class="hl-1">);</span><br/><span class="hl-1">});</span>
|
|
46
|
+
</code></pre>
|
|
47
|
+
|
|
48
|
+
<a href="#📑-api-reference" id="📑-api-reference" style="color: inherit; text-decoration: none;">
|
|
49
|
+
<h2>📑 API Reference</h2>
|
|
50
|
+
</a>
|
|
51
|
+
<p>The API documentation is automatically generated from the code comments and can be found
|
|
52
|
+
<a href="https://sebbo2002.github.io/node-pyatv/main/reference/classes/default.html">here</a>.</p>
|
|
53
|
+
|
|
54
|
+
<a href="#📑-changelog" id="📑-changelog" style="color: inherit; text-decoration: none;">
|
|
55
|
+
<h2>📑 Changelog</h2>
|
|
56
|
+
</a>
|
|
57
|
+
<p>Please have a look at <a href="https://github.com/sebbo2002/node-pyatv/blob/main/CHANGELOG.md">CHANGELOG.md</a> to see the changelog.</p>
|
|
58
|
+
|
|
59
|
+
<a href="#🤨-faq" id="🤨-faq" style="color: inherit; text-decoration: none;">
|
|
60
|
+
<h2>🤨 FAQ</h2>
|
|
61
|
+
</a>
|
|
62
|
+
|
|
63
|
+
<a href="#how-to-install-pyatv" id="how-to-install-pyatv" style="color: inherit; text-decoration: none;">
|
|
64
|
+
<h4>How to install pyatv</h4>
|
|
65
|
+
</a>
|
|
66
|
+
<pre><code class="language-bash"><span class="hl-1">pip3 install pyatv</span>
|
|
67
|
+
</code></pre>
|
|
68
|
+
|
|
69
|
+
<a href="#how-to-debug-things" id="how-to-debug-things" style="color: inherit; text-decoration: none;">
|
|
70
|
+
<h4>How to debug things</h4>
|
|
71
|
+
</a>
|
|
72
|
+
<p>You can pass <code>"debug": true</code> for any command called. Some debug information is then printed via console.log. Additionaly
|
|
73
|
+
you can pass a function to process debugs logs.</p>
|
|
74
|
+
|
|
75
|
+
<a href="#why-are-some-tests-skipped" id="why-are-some-tests-skipped" style="color: inherit; text-decoration: none;">
|
|
76
|
+
<h4>Why are some tests skipped?</h4>
|
|
77
|
+
</a>
|
|
78
|
+
<p>Some unit tests require a responding apple tv to pass. These tests are disabled by default. You can set the environment
|
|
79
|
+
variable <code>ENABLE_INTEGRATION=1</code> to enable them.</p>
|
|
80
|
+
|
|
81
|
+
<a href="#is-this-secure" id="is-this-secure" style="color: inherit; text-decoration: none;">
|
|
82
|
+
<h4>Is this secure?</h4>
|
|
83
|
+
</a>
|
|
84
|
+
<p>Defenitely not. For example, there's no escaping for parameters passed to pyatv. So be sure to double check the data you
|
|
85
|
+
pass to this library, otherwise it may be possible to run code on your machine.</p>
|
|
86
|
+
|
|
87
|
+
<a href="#copyright-and-license" id="copyright-and-license" style="color: inherit; text-decoration: none;">
|
|
88
|
+
<h2>Copyright and license</h2>
|
|
89
|
+
</a>
|
|
90
|
+
<p>Copyright (c) Sebastian Pekarek under the <a href="LICENSE">MIT license</a>.</p>
|
|
41
91
|
</div></div>
|
|
42
92
|
<div class="col-4 col-menu menu-sticky-wrap menu-highlight">
|
|
43
93
|
<div class="tsd-navigation settings">
|
|
@@ -56,11 +106,13 @@ double check your installation. See FAQ section for installation tips.</p>
|
|
|
56
106
|
<h3><svg width="20" height="20" viewBox="0 0 24 24" fill="none"><path d="M4.93896 8.531L12 15.591L19.061 8.531L16.939 6.409L12 11.349L7.06098 6.409L4.93896 8.531Z" fill="var(--color-text)"></path></svg> Modules</h3></summary>
|
|
57
107
|
<div class="tsd-accordion-details">
|
|
58
108
|
<ul>
|
|
59
|
-
<li class="current selected"><a href="modules.html">node-<wbr/>pyatv -<wbr/> v5.
|
|
109
|
+
<li class="current selected"><a href="modules.html">node-<wbr/>pyatv -<wbr/> v5.1.0</a>
|
|
60
110
|
<ul></ul></li></ul></div></details></nav>
|
|
61
111
|
<nav class="tsd-navigation secondary menu-sticky">
|
|
62
112
|
<ul>
|
|
113
|
+
<li class="tsd-kind-reference"><a href="modules.html#default" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><rect fill="var(--color-icon-background)" stroke="#FF4D82" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="12" id="icon-8388608-path"></rect><path d="M10.354 17V8.24H13.066C13.586 8.24 14.042 8.348 14.434 8.564C14.826 8.772 15.13 9.064 15.346 9.44C15.562 9.816 15.67 10.256 15.67 10.76C15.67 11.352 15.514 11.86 15.202 12.284C14.898 12.708 14.482 13 13.954 13.16L15.79 17H14.518L12.838 13.28H11.434V17H10.354ZM11.434 12.308H13.066C13.514 12.308 13.874 12.168 14.146 11.888C14.418 11.6 14.554 11.224 14.554 10.76C14.554 10.288 14.418 9.912 14.146 9.632C13.874 9.352 13.514 9.212 13.066 9.212H11.434V12.308Z" fill="var(--color-text)" id="icon-8388608-text"></path></svg>default</a></li>
|
|
63
114
|
<li class="tsd-kind-enum"><a href="enums/NodePyATVDeviceState.html" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-enum)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6" id="icon-8-path"></rect><path d="M9.45 16V7.24H14.49V8.224H10.518V10.936H14.07V11.908H10.518V15.016H14.49V16H9.45Z" fill="var(--color-text)" id="icon-8-text"></path></svg>Node<wbr/>PyATVDevice<wbr/>State</a></li>
|
|
115
|
+
<li class="tsd-kind-enum"><a href="enums/NodePyATVExecutableType.html" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-8-path"></use><use href="#icon-8-text"></use></svg>Node<wbr/>PyATVExecutable<wbr/>Type</a></li>
|
|
64
116
|
<li class="tsd-kind-enum"><a href="enums/NodePyATVKeys.html" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-8-path"></use><use href="#icon-8-text"></use></svg>Node<wbr/>PyATVKeys</a></li>
|
|
65
117
|
<li class="tsd-kind-enum"><a href="enums/NodePyATVListenerState.html" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-8-path"></use><use href="#icon-8-text"></use></svg>Node<wbr/>PyATVListener<wbr/>State</a></li>
|
|
66
118
|
<li class="tsd-kind-enum"><a href="enums/NodePyATVMediaType.html" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-8-path"></use><use href="#icon-8-text"></use></svg>Node<wbr/>PyATVMedia<wbr/>Type</a></li>
|
|
@@ -70,12 +122,13 @@ double check your installation. See FAQ section for installation tips.</p>
|
|
|
70
122
|
<li class="tsd-kind-enum"><a href="enums/NodePyATVShuffleState.html" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-8-path"></use><use href="#icon-8-text"></use></svg>Node<wbr/>PyATVShuffle<wbr/>State</a></li>
|
|
71
123
|
<li class="tsd-kind-class"><a href="classes/NodePyATVDevice.html" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-class)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6" id="icon-128-path"></rect><path d="M11.898 16.1201C11.098 16.1201 10.466 15.8961 10.002 15.4481C9.53803 15.0001 9.30603 14.3841 9.30603 13.6001V9.64012C9.30603 8.85612 9.53803 8.24012 10.002 7.79212C10.466 7.34412 11.098 7.12012 11.898 7.12012C12.682 7.12012 13.306 7.34812 13.77 7.80412C14.234 8.25212 14.466 8.86412 14.466 9.64012H13.386C13.386 9.14412 13.254 8.76412 12.99 8.50012C12.734 8.22812 12.37 8.09212 11.898 8.09212C11.426 8.09212 11.054 8.22412 10.782 8.48812C10.518 8.75212 10.386 9.13212 10.386 9.62812V13.6001C10.386 14.0961 10.518 14.4801 10.782 14.7521C11.054 15.0161 11.426 15.1481 11.898 15.1481C12.37 15.1481 12.734 15.0161 12.99 14.7521C13.254 14.4801 13.386 14.0961 13.386 13.6001H14.466C14.466 14.3761 14.234 14.9921 13.77 15.4481C13.306 15.8961 12.682 16.1201 11.898 16.1201Z" fill="var(--color-text)" id="icon-128-text"></path></svg>Node<wbr/>PyATVDevice</a></li>
|
|
72
124
|
<li class="tsd-kind-class"><a href="classes/NodePyATVDeviceEvent.html" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-128-path"></use><use href="#icon-128-text"></use></svg>Node<wbr/>PyATVDevice<wbr/>Event</a></li>
|
|
73
|
-
<li class="tsd-kind-class"><a href="classes/
|
|
125
|
+
<li class="tsd-kind-class"><a href="classes/NodePyATVInstance.html" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-128-path"></use><use href="#icon-128-text"></use></svg>Node<wbr/>PyATVInstance</a></li>
|
|
74
126
|
<li class="tsd-kind-interface"><a href="interfaces/NodePyATVDeviceOptions.html" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-interface)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6" id="icon-256-path"></rect><path d="M9.51 16V15.016H11.298V8.224H9.51V7.24H14.19V8.224H12.402V15.016H14.19V16H9.51Z" fill="var(--color-text)" id="icon-256-text"></path></svg>Node<wbr/>PyATVDevice<wbr/>Options</a></li>
|
|
75
127
|
<li class="tsd-kind-interface"><a href="interfaces/NodePyATVFindAndInstanceOptions.html" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-256-path"></use><use href="#icon-256-text"></use></svg>Node<wbr/>PyATVFind<wbr/>And<wbr/>Instance<wbr/>Options</a></li>
|
|
76
128
|
<li class="tsd-kind-interface"><a href="interfaces/NodePyATVFindOptions.html" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-256-path"></use><use href="#icon-256-text"></use></svg>Node<wbr/>PyATVFind<wbr/>Options</a></li>
|
|
77
129
|
<li class="tsd-kind-interface"><a href="interfaces/NodePyATVGetStateOptions.html" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-256-path"></use><use href="#icon-256-text"></use></svg>Node<wbr/>PyATVGet<wbr/>State<wbr/>Options</a></li>
|
|
78
130
|
<li class="tsd-kind-interface"><a href="interfaces/NodePyATVInstanceOptions.html" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-256-path"></use><use href="#icon-256-text"></use></svg>Node<wbr/>PyATVInstance<wbr/>Options</a></li>
|
|
131
|
+
<li class="tsd-kind-interface"><a href="interfaces/NodePyATVService.html" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-256-path"></use><use href="#icon-256-text"></use></svg>Node<wbr/>PyATVService</a></li>
|
|
79
132
|
<li class="tsd-kind-interface"><a href="interfaces/NodePyATVState.html" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-256-path"></use><use href="#icon-256-text"></use></svg>Node<wbr/>PyATVState</a></li>
|
|
80
133
|
<li class="tsd-kind-interface"><a href="interfaces/NodePyATVVersionResponse.html" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-256-path"></use><use href="#icon-256-text"></use></svg>Node<wbr/>PyATVVersion<wbr/>Response</a></li>
|
|
81
134
|
<li class="tsd-kind-type-alias"><a href="types/NodePyATVEventValueType.html" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><rect fill="var(--color-icon-background)" stroke="var(--color-ts)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6" id="icon-4194304-path"></rect><path d="M11.31 16V8.224H8.91V7.24H14.79V8.224H12.39V16H11.31Z" fill="var(--color-text)" id="icon-4194304-text"></path></svg>Node<wbr/>PyATVEvent<wbr/>Value<wbr/>Type</a></li></ul></nav></div></div>
|