Compare commits
1991
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
920d56b824 | ||
|
|
fdafd098df | ||
|
|
0c1c6880c9 | ||
|
|
1c05cd2304 | ||
|
|
fe1bd0131b | ||
|
|
4135bb615c | ||
|
|
116e6e7190 | ||
|
|
8505a977d6 | ||
|
|
c28629bb40 | ||
|
|
fdcf02c1ad | ||
|
|
eb61020395 | ||
|
|
cb47151646 | ||
|
|
8153d70da7 | ||
|
|
0dba51181c | ||
|
|
8d7ace50a3 | ||
|
|
a0f06d303f | ||
|
|
022fe06258 | ||
|
|
e2ef96b637 | ||
|
|
90b762f8ce | ||
|
|
74ada33fa2 | ||
|
|
b32f23e74e | ||
|
|
557f0716d3 | ||
|
|
2ae28e1bd3 | ||
|
|
cfd36beaa1 | ||
|
|
8a318f3795 | ||
|
|
4b12b0e6f0 | ||
|
|
64fac66dff | ||
|
|
118eaa66b4 | ||
|
|
9f8c88ac60 | ||
|
|
19df3c70e0 | ||
|
|
4e03fd9b44 | ||
|
|
4e3258d78d | ||
|
|
c76939f2c1 | ||
|
|
4b9a1c2cee | ||
|
|
658c4233d4 | ||
|
|
008d787e7f | ||
|
|
1d29d718ba | ||
|
|
c2842694ce | ||
|
|
42f154c01c | ||
|
|
1f8d8d982b | ||
|
|
a2e92fb459 | ||
|
|
ed10fa47cf | ||
|
|
ae32445fea | ||
|
|
737d7e017e | ||
|
|
e2f1fc64ae | ||
|
|
bc85a0d02a | ||
|
|
28ae00d9de | ||
|
|
8b3a51c1a0 | ||
|
|
1627b8627b | ||
|
|
d4fc7e940f | ||
|
|
526a8e9a9f | ||
|
|
9a8996037f | ||
|
|
3c094f5585 | ||
|
|
d4a543426f | ||
|
|
f5304abbe2 | ||
|
|
c4725ca208 | ||
|
|
686eda3536 | ||
|
|
f4d7cb9326 | ||
|
|
b6d36b47db | ||
|
|
56e81d5ea0 | ||
|
|
270cb4f9de | ||
|
|
43a62bf6f3 | ||
|
|
a3d077f05e | ||
|
|
4455535423 | ||
|
|
4ce0501017 | ||
|
|
34828e2feb | ||
|
|
2885244988 | ||
|
|
d60c5a631a | ||
|
|
444fe44d48 | ||
|
|
bcea4839f6 | ||
|
|
01ad3c3de6 | ||
|
|
7d5474cb3d | ||
|
|
945825f03f | ||
|
|
1bd19e3fd5 | ||
|
|
fd8a72a77a | ||
|
|
1212c00bba | ||
|
|
da6f3a2ebb | ||
|
|
dfe7dc7a78 | ||
|
|
16086741b8 | ||
|
|
781c0d91e6 | ||
|
|
cbd463b0f9 | ||
|
|
3bbd3f7a3e | ||
|
|
995c8aa0c6 | ||
|
|
e3999ca5bb | ||
|
|
e71546d382 | ||
|
|
87d04544dc | ||
|
|
0438f77d71 | ||
|
|
49733c2aba | ||
|
|
4a9e573107 | ||
|
|
58dc515990 | ||
|
|
d3e92db8a8 | ||
|
|
450d5bb9ae | ||
|
|
5444c46777 | ||
|
|
e293fd1c3e | ||
|
|
e451493c0d | ||
|
|
2a247672a6 | ||
|
|
3dc5b89c19 | ||
|
|
f522274116 | ||
|
|
0ae536a895 | ||
|
|
9990e432dd | ||
|
|
14c2d49d12 | ||
|
|
a1dee07d76 | ||
|
|
1ae017954b | ||
|
|
54454deaf3 | ||
|
|
e3df0ea934 | ||
|
|
f8f4225e8d | ||
|
|
24e8770119 | ||
|
|
1b04c08a1a | ||
|
|
ddfd333b62 | ||
|
|
b3affac9e5 | ||
|
|
577c8020a1 | ||
|
|
3daddb239e | ||
|
|
03d3dfb496 | ||
|
|
027d8f8069 | ||
|
|
098db891cb | ||
|
|
1120dc94a1 | ||
|
|
76299089b3 | ||
|
|
e90a95b714 | ||
|
|
b7b832383f | ||
|
|
d362685bcb | ||
|
|
b65bcf27ce | ||
|
|
04664467b4 | ||
|
|
1a13d54559 | ||
|
|
6011839f48 | ||
|
|
cffcecc2bb | ||
|
|
fd685a0197 | ||
|
|
217f1cdf5f | ||
|
|
c1a7f999db | ||
|
|
422e7858a4 | ||
|
|
e5cb22d5dd | ||
|
|
45f115a79a | ||
|
|
2a401775a4 | ||
|
|
e938b5a3b0 | ||
|
|
129dde8ba0 | ||
|
|
b65472b507 | ||
|
|
89edb9a670 | ||
|
|
006782ee40 | ||
|
|
f48991c2e1 | ||
|
|
10a129e54f | ||
|
|
f8c529723b | ||
|
|
fd8db5e9ca | ||
|
|
34b4fd0b05 | ||
|
|
e1312af21e | ||
|
|
58e4a7fc01 | ||
|
|
c5b1a3a3b6 | ||
|
|
4e92516d78 | ||
|
|
0f398328ad | ||
|
|
4c1d0338f4 | ||
|
|
6c81c355b0 | ||
|
|
1f712c70ac | ||
|
|
99e7d9b141 | ||
|
|
4c854b435c | ||
|
|
d3bd4a895d | ||
|
|
1509f38779 | ||
|
|
5f7679b11b | ||
|
|
411b925506 | ||
|
|
f3c0c29f69 | ||
|
|
0bd5544284 | ||
|
|
6026f066e0 | ||
|
|
6a697e9013 | ||
|
|
700aa78f27 | ||
|
|
6050fad5ba | ||
|
|
f31194f753 | ||
|
|
16a7ce0c88 | ||
|
|
de2b95537c | ||
|
|
53d73182de | ||
|
|
30c9b89299 | ||
|
|
01855da915 | ||
|
|
9c072d6440 | ||
|
|
0e1ada7a0e | ||
|
|
18c3e6660f | ||
|
|
8799296591 | ||
|
|
0bba8be6dc | ||
|
|
4bdf904eeb | ||
|
|
5fc22593f9 | ||
|
|
75ec0c887e | ||
|
|
9b0f60da05 | ||
|
|
2bcfb3dce8 | ||
|
|
c21961113d | ||
|
|
d71de9003d | ||
|
|
8740c5a826 | ||
|
|
cdcbb13102 | ||
|
|
2f266f9974 | ||
|
|
a7d4c5f2df | ||
|
|
3a7f539fd5 | ||
|
|
3e6e7d3a6a | ||
|
|
4156ccc08f | ||
|
|
1fdd0a7ee1 | ||
|
|
b8417d838c | ||
|
|
3fe45661cd | ||
|
|
3c3f55e0c1 | ||
|
|
70d07889e2 | ||
|
|
d61705aace | ||
|
|
4d2e7f1ddd | ||
|
|
a8660c9ef2 | ||
|
|
4d60b6b604 | ||
|
|
36e5ded017 | ||
|
|
a62fc00f3a | ||
|
|
18281a9ebd | ||
|
|
e158b82983 | ||
|
|
9bbce7caf4 | ||
|
|
122a6667ea | ||
|
|
51b4375ed7 | ||
|
|
17c3d6e57a | ||
|
|
52e105416d | ||
|
|
cc60f457f8 | ||
|
|
4699412f7b | ||
|
|
dcd1d4b749 | ||
|
|
19388fc11f | ||
|
|
464f0cd83f | ||
|
|
161e21fe0f | ||
|
|
e993405785 | ||
|
|
323d7ecb0d | ||
|
|
65324c6796 | ||
|
|
037519eebd | ||
|
|
f7e53a4a50 | ||
|
|
07040b103f | ||
|
|
d442d5a7bf | ||
|
|
6873cff462 | ||
|
|
e77f5b7385 | ||
|
|
e74041bc93 | ||
|
|
bd443e2efc | ||
|
|
67c8ff4b66 | ||
|
|
507bf89d73 | ||
|
|
7e23356add | ||
|
|
e82f4551f3 | ||
|
|
3c5c4ff385 | ||
|
|
5700695ef3 | ||
|
|
e004a24bf0 | ||
|
|
3985d10e04 | ||
|
|
6942ddebc2 | ||
|
|
d50c738a2d | ||
|
|
28ec474ed4 | ||
|
|
334fb7453e | ||
|
|
7f5700e0f9 | ||
|
|
f62867de47 | ||
|
|
9f2a6cf6e0 | ||
|
|
5421c1bfe3 | ||
|
|
b55a256419 | ||
|
|
2fd886f413 | ||
|
|
5cde163f2b | ||
|
|
32a52bdb0f | ||
|
|
7d22354566 | ||
|
|
974cde5294 | ||
|
|
6618be9e84 | ||
|
|
fc106e5918 | ||
|
|
8bb3312bba | ||
|
|
9f77502214 | ||
|
|
1e16e9052c | ||
|
|
030886e549 | ||
|
|
e41b8e3090 | ||
|
|
20ca1018bd | ||
|
|
635156cf7a | ||
|
|
d73d530600 | ||
|
|
cbe72cc1ec | ||
|
|
8ff0eab24e | ||
|
|
11047940bc | ||
|
|
a707bfdee4 | ||
|
|
c2d1e279ae | ||
|
|
7f8cc5601b | ||
|
|
c355318f1a | ||
|
|
e0d874059d | ||
|
|
34f94a043d | ||
|
|
f63f177c78 | ||
|
|
df08459ede | ||
|
|
87ddc8468c | ||
|
|
d774122023 | ||
|
|
02c2e9e983 | ||
|
|
146c83152d | ||
|
|
8bf25c33e5 | ||
|
|
85f6fa0182 | ||
|
|
c8f7f25e21 | ||
|
|
e1657d5e3e | ||
|
|
05cd0211ff | ||
|
|
7a13ec1edc | ||
|
|
599d80ad7b | ||
|
|
c3a796ae4c | ||
|
|
b0917feba7 | ||
|
|
cae4f1a0b7 | ||
|
|
1fb243099c | ||
|
|
45cf5ddf44 | ||
|
|
bb6b694fa7 | ||
|
|
6dd92f234f | ||
|
|
6f2c8c1e2b | ||
|
|
e98a5df858 | ||
|
|
054b856839 | ||
|
|
d19acf892a | ||
|
|
df5f456072 | ||
|
|
786203b7ac | ||
|
|
c2cec4e11c | ||
|
|
f9543773ec | ||
|
|
0a018dd2c4 | ||
|
|
b5a7586926 | ||
|
|
4c1152c70b | ||
|
|
7955fbd269 | ||
|
|
b60c1092a4 | ||
|
|
7ffa3595db | ||
|
|
47e25d54cd | ||
|
|
3196f0b445 | ||
|
|
d478a0c4bb | ||
|
|
d98f7a2dcb | ||
|
|
56033f56a0 | ||
|
|
d62c97081c | ||
|
|
6fc97f8f30 | ||
|
|
c37c64a742 | ||
|
|
e6860aaec6 | ||
|
|
fcf45f7d59 | ||
|
|
e11cd882e6 | ||
|
|
88921542ef | ||
|
|
ca6deb07d8 | ||
|
|
92221b3996 | ||
|
|
20ed3d10ab | ||
|
|
64ac824fb8 | ||
|
|
995d3572fc | ||
|
|
c78c2641dd | ||
|
|
1c70931e12 | ||
|
|
8e15dffca0 | ||
|
|
e9ea4c4d95 | ||
|
|
04391495e7 | ||
|
|
b202c6db54 | ||
|
|
3778bcc423 | ||
|
|
9cf0802bf2 | ||
|
|
f1ea8a3a02 | ||
|
|
8db57f72ab | ||
|
|
49621a65b0 | ||
|
|
86c2b60a4d | ||
|
|
3c9fa3eff2 | ||
|
|
f912adcd33 | ||
|
|
ecf56b6658 | ||
|
|
1f4d22affb | ||
|
|
5d326e9c57 | ||
|
|
e4fff3ff4f | ||
|
|
884ccee5f8 | ||
|
|
ac07c77276 | ||
|
|
c838436d77 | ||
|
|
f2845855dd | ||
|
|
bce1b028c9 | ||
|
|
d153bad51b | ||
|
|
d83d4b1528 | ||
|
|
2c03ecdfff | ||
|
|
7234b26d2a | ||
|
|
0ad9690abd | ||
|
|
d80f67df9a | ||
|
|
fa8d4f7c58 | ||
|
|
6810a2c00f | ||
|
|
6053cad832 | ||
|
|
2087c3da54 | ||
|
|
8b319e9637 | ||
|
|
e403e8cc75 | ||
|
|
3b3a2a9732 | ||
|
|
9f1a53b315 | ||
|
|
8354e0c200 | ||
|
|
ae60033551 | ||
|
|
f69ab86524 | ||
|
|
7131738987 | ||
|
|
98454a2827 | ||
|
|
7765e9afa9 | ||
|
|
a0db794bd6 | ||
|
|
e1f8a82dc2 | ||
|
|
513b9b951c | ||
|
|
0580b0fa73 | ||
|
|
0ce1c0537c | ||
|
|
78042648ee | ||
|
|
3319624e82 | ||
|
|
6725bbfa47 | ||
|
|
4842835ec5 | ||
|
|
8f77a8fcda | ||
|
|
0cb987a8bd | ||
|
|
58fd13b238 | ||
|
|
19c39588e6 | ||
|
|
6b11d0b528 | ||
|
|
2180d856b9 | ||
|
|
2494736d5f | ||
|
|
e42d49d88c | ||
|
|
25abe0562d | ||
|
|
2b8f1d7340 | ||
|
|
3a80aa7881 | ||
|
|
93f5fd2eff | ||
|
|
4c46247989 | ||
|
|
99fb6cfee7 | ||
|
|
8435039e64 | ||
|
|
6248f3bd6b | ||
|
|
fd86369cc6 | ||
|
|
0c5b2fbf36 | ||
|
|
877fe18297 | ||
|
|
c9bdd10fb8 | ||
|
|
73776c04f4 | ||
|
|
e03f28999f | ||
|
|
42bd85586b | ||
|
|
b1b7200d63 | ||
|
|
6ad8f6b2f4 | ||
|
|
6cb550e9f4 | ||
|
|
f3be7a488e | ||
|
|
f8d6c64ddb | ||
|
|
b6ebe7c853 | ||
|
|
29484fb292 | ||
|
|
e0956d3ced | ||
|
|
fe83e15563 | ||
|
|
5c9c92750f | ||
|
|
e26d711e86 | ||
|
|
09b23fb83a | ||
|
|
d8976e1ba3 | ||
|
|
0cf06a606d | ||
|
|
55158bdef9 | ||
|
|
e11da95a52 | ||
|
|
dfb0d71ed9 | ||
|
|
ab1262fa71 | ||
|
|
1a251c9455 | ||
|
|
8c4020eac1 | ||
|
|
7054a726bb | ||
|
|
ed87ea751b | ||
|
|
fcbff23fcb | ||
|
|
9616508bb5 | ||
|
|
d7e39288ea | ||
|
|
6c0176455b | ||
|
|
e818c0d8d3 | ||
|
|
0a9820acbe | ||
|
|
77af2bd81f | ||
|
|
a34202fdec | ||
|
|
d197fabffc | ||
|
|
944441ec7d | ||
|
|
c1721ee9c4 | ||
|
|
ad15eb11ed | ||
|
|
372a6d64ef | ||
|
|
f7063cce48 | ||
|
|
17958a460d | ||
|
|
7b9008d285 | ||
|
|
1170914f62 | ||
|
|
beef176ac0 | ||
|
|
61ed63d233 | ||
|
|
c1cb5353a2 | ||
|
|
c2844c8132 | ||
|
|
a55b623781 | ||
|
|
33c3166e0b | ||
|
|
4bf87fea39 | ||
|
|
643dcba468 | ||
|
|
7bbecc9587 | ||
|
|
a79bac252b | ||
|
|
25c4444801 | ||
|
|
bf15c8053b | ||
|
|
c3b5991c4d | ||
|
|
7c32c44cbd | ||
|
|
38c0c31ada | ||
|
|
33e1f6cac8 | ||
|
|
d25a9f94b8 | ||
|
|
216568d24f | ||
|
|
bcf57aaeb7 | ||
|
|
a3c5c75b12 | ||
|
|
79c66a441a | ||
|
|
54c5cd26ab | ||
|
|
6e5568551f | ||
|
|
6f37a7cb76 | ||
|
|
32a7902da1 | ||
|
|
3158a04728 | ||
|
|
52356b7542 | ||
|
|
e6e1517714 | ||
|
|
a811f191f2 | ||
|
|
77b1f5ffe0 | ||
|
|
6d01d12d99 | ||
|
|
f97db4465f | ||
|
|
6fb72edd38 | ||
|
|
bf2d424888 | ||
|
|
07c4630d12 | ||
|
|
72dfa803c6 | ||
|
|
631085f78f | ||
|
|
84373a7617 | ||
|
|
983dd4d437 | ||
|
|
7e37569613 | ||
|
|
43e5c65472 | ||
|
|
d4e47f9764 | ||
|
|
8ddb51fc91 | ||
|
|
35c3acf610 | ||
|
|
236cb56b49 | ||
|
|
875fb72fec | ||
|
|
306d4f2942 | ||
|
|
741fac4396 | ||
|
|
262983840a | ||
|
|
08922975f3 | ||
|
|
91733d314f | ||
|
|
a24d3f26ae | ||
|
|
bb2c3273c0 | ||
|
|
d8fa8e3029 | ||
|
|
3feb8deb8c | ||
|
|
aa53344304 | ||
|
|
849cea15c1 | ||
|
|
ed21f75acf | ||
|
|
d2452c007e | ||
|
|
84a6b2bfe1 | ||
|
|
b9374a2d7f | ||
|
|
7d989fd07f | ||
|
|
770492a955 | ||
|
|
9c33571dc9 | ||
|
|
46a6c58d49 | ||
|
|
e74721c07a | ||
|
|
9ab2ba29b9 | ||
|
|
7ea6969e13 | ||
|
|
23803d1de4 | ||
|
|
aa9a2335ce | ||
|
|
1c91668194 | ||
|
|
b5b1e8a812 | ||
|
|
f64abb22b3 | ||
|
|
89273598ae | ||
|
|
90f1a44c2d | ||
|
|
a6cc6126d6 | ||
|
|
361162aac2 | ||
|
|
9625695467 | ||
|
|
164b0a5496 | ||
|
|
5355870066 | ||
|
|
7668afcff7 | ||
|
|
fd2ece0f13 | ||
|
|
a71f6fcd40 | ||
|
|
f9745515e1 | ||
|
|
cbb7fe16ff | ||
|
|
cf2ce1e88b | ||
|
|
b1596f30d9 | ||
|
|
e66497756a | ||
|
|
62f03e371f | ||
|
|
a441e48906 | ||
|
|
07c1d53a44 | ||
|
|
47cf12e9f3 | ||
|
|
ab59bd4421 | ||
|
|
2883f7f161 | ||
|
|
7f86453f29 | ||
|
|
33bda86918 | ||
|
|
084625fe7c | ||
|
|
25cf537931 | ||
|
|
e79c41abf9 | ||
|
|
4c4570e2e1 | ||
|
|
ffea45ce54 | ||
|
|
00f11bc581 | ||
|
|
b7e2796e60 | ||
|
|
0494fa5753 | ||
|
|
d6e1868569 | ||
|
|
f5d21618d1 | ||
|
|
28ecef207e | ||
|
|
95201882e6 | ||
|
|
bea7f34887 | ||
|
|
11e30150b7 | ||
|
|
ca3b78d140 | ||
|
|
5b7bc6cb91 | ||
|
|
fe7541c784 | ||
|
|
ac2e25f6d6 | ||
|
|
0dc452e445 | ||
|
|
97b6f25cfd | ||
|
|
fec2f9b83e | ||
|
|
b87e99187d | ||
|
|
bd3f7f8897 | ||
|
|
e43f4ddb50 | ||
|
|
d0f6bf3e06 | ||
|
|
ea58ccd9a3 | ||
|
|
86aa5548c6 | ||
|
|
2fc287768b | ||
|
|
5335750939 | ||
|
|
a628549ad3 | ||
|
|
c0232c1551 | ||
|
|
566e214ee4 | ||
|
|
f303f72055 | ||
|
|
27af9721e5 | ||
|
|
14b462ae98 | ||
|
|
ecd2bf81e3 | ||
|
|
2703cbc474 | ||
|
|
0fd00ef5fc | ||
|
|
72db742a56 | ||
|
|
6cfbf33d08 | ||
|
|
559e5d8f84 | ||
|
|
6f6dcdeef2 | ||
|
|
4a58c848b8 | ||
|
|
1637631ef7 | ||
|
|
5d6a27b751 | ||
|
|
55b08f6b5b | ||
|
|
c00fe8fda2 | ||
|
|
32fd4df542 | ||
|
|
0297a68536 | ||
|
|
689369432f | ||
|
|
68660035b6 | ||
|
|
281c4b698c | ||
|
|
2bfa72acd4 | ||
|
|
47eeb0eb00 | ||
|
|
8a0f6171ad | ||
|
|
85a6144de9 | ||
|
|
777f6ed610 | ||
|
|
8c25c88a20 | ||
|
|
6a39f84f16 | ||
|
|
e60c8db43b | ||
|
|
14ed49a5dd | ||
|
|
37c439ca8c | ||
|
|
c005aa6692 | ||
|
|
1eefa99c97 | ||
|
|
c773c256c1 | ||
|
|
4b02482349 | ||
|
|
98860ece7f | ||
|
|
6a9415b39f | ||
|
|
65706d4171 | ||
|
|
740287528a | ||
|
|
3b05e15e13 | ||
|
|
0904f9917d | ||
|
|
f50f7ab4f5 | ||
|
|
5257a2c863 | ||
|
|
5eb03c1e9e | ||
|
|
664a8fff79 | ||
|
|
9176730e5e | ||
|
|
3a90b394c0 | ||
|
|
473d72f516 | ||
|
|
a9ea150b92 | ||
|
|
8a08127b52 | ||
|
|
2913eb5fd8 | ||
|
|
bd420feedd | ||
|
|
9792e1e3ae | ||
|
|
641a4cdb00 | ||
|
|
cb795f857d | ||
|
|
eddc288d9e | ||
|
|
13aa5a4e25 | ||
|
|
2a6f7478c3 | ||
|
|
ff85953c72 | ||
|
|
6ae9e00eb0 | ||
|
|
4bc2435412 | ||
|
|
2e94a71484 | ||
|
|
70f50c7fa4 | ||
|
|
5d08b5d1d8 | ||
|
|
d0bc1341dd | ||
|
|
1840c3d19d | ||
|
|
b7a8670ffd | ||
|
|
5040e1d547 | ||
|
|
38fff3aa87 | ||
|
|
0ebf26d0a3 | ||
|
|
b3bb9b20cd | ||
|
|
0b029d8338 | ||
|
|
96aead40dc | ||
|
|
cc876e3794 | ||
|
|
dc2b63ba81 | ||
|
|
127becc3df | ||
|
|
cdb1aaf6bc | ||
|
|
f81aa14b89 | ||
|
|
55291b6bfd | ||
|
|
3fc21fae75 | ||
|
|
259a4b91f5 | ||
|
|
5f08333f87 | ||
|
|
f669c3fb0d | ||
|
|
5825910303 | ||
|
|
eff9793b33 | ||
|
|
6913338dd9 | ||
|
|
de81d91a52 | ||
|
|
4fe6b6e568 | ||
|
|
3f60fa492b | ||
|
|
4ba0899531 | ||
|
|
9df942c7c4 | ||
|
|
4179a6b370 | ||
|
|
5e620bcdfe | ||
|
|
dcd3592fd4 | ||
|
|
7f56d47dbc | ||
|
|
d041e1ce97 | ||
|
|
ad0c0ddfe1 | ||
|
|
0308150048 | ||
|
|
35e35d92a6 | ||
|
|
95441dafd4 | ||
|
|
f7ad7d93a5 | ||
|
|
9c8691eeb7 | ||
|
|
f2c6e99449 | ||
|
|
4531f44ed5 | ||
|
|
7f3baa3b1e | ||
|
|
89c871c83d | ||
|
|
6b516201ca | ||
|
|
417b33d9fe | ||
|
|
b38d6aed05 | ||
|
|
a3cf05202c | ||
|
|
a89d03b794 | ||
|
|
7810a622a9 | ||
|
|
ba45413ca7 | ||
|
|
4cd73f4fc5 | ||
|
|
f7c84b423c | ||
|
|
785a938cc6 | ||
|
|
acb9e09293 | ||
|
|
edd5933560 | ||
|
|
c4ec17c1ff | ||
|
|
211669db1c | ||
|
|
9041561576 | ||
|
|
a0bfa0fe93 | ||
|
|
9b793e867c | ||
|
|
f97441f6ca | ||
|
|
bb8fafaacb | ||
|
|
977e021b36 | ||
|
|
cf1d6e6a32 | ||
|
|
2b74a7f603 | ||
|
|
d7db470999 | ||
|
|
992ef83795 | ||
|
|
5860942967 | ||
|
|
e9adcddf7f | ||
|
|
8af4144a66 | ||
|
|
20c0833cbc | ||
|
|
1be8c23069 | ||
|
|
850ec59694 | ||
|
|
2474653a7f | ||
|
|
cd9aab7eef | ||
|
|
e1ac1fa983 | ||
|
|
93504d983c | ||
|
|
2efc3b841e | ||
|
|
44a009fd6f | ||
|
|
cacc329a61 | ||
|
|
8e37ad5da1 | ||
|
|
7b5ab1af64 | ||
|
|
fe287cf6f8 | ||
|
|
1af19bb417 | ||
|
|
954205d2a6 | ||
|
|
fad6ee2904 | ||
|
|
81b8507692 | ||
|
|
be5d4907ef | ||
|
|
37fa52c47a | ||
|
|
98a3566555 | ||
|
|
5cce83f0b7 | ||
|
|
a4046d3080 | ||
|
|
4ce6f7f13b | ||
|
|
eb7348dfee | ||
|
|
e23d3b88f9 | ||
|
|
19f774429f | ||
|
|
29acb4cacc | ||
|
|
013a5aace8 | ||
|
|
00fb7daecf | ||
|
|
31fee9c596 | ||
|
|
9d3437bd37 | ||
|
|
ff440d36e2 | ||
|
|
74facf9373 | ||
|
|
f7a1f0b69f | ||
|
|
b667257ecd | ||
|
|
bf3461f9f1 | ||
|
|
56c516aa9a | ||
|
|
99decf0d66 | ||
|
|
85919a1df5 | ||
|
|
f8d8af8cc4 | ||
|
|
498463f5cb | ||
|
|
6698bbf68f | ||
|
|
d2ef14b438 | ||
|
|
91f6d52532 | ||
|
|
cd424779cb | ||
|
|
f757035d32 | ||
|
|
a1dde3ab51 | ||
|
|
be9c3acf39 | ||
|
|
1cff1b4c9c | ||
|
|
31f10576df | ||
|
|
c8dbd89411 | ||
|
|
85edae2cba | ||
|
|
2375cbe637 | ||
|
|
d215ea2b4e | ||
|
|
3d4acbe332 | ||
|
|
14f59c7b56 | ||
|
|
cce77c958c | ||
|
|
35c3660958 | ||
|
|
99360762d9 | ||
|
|
6e9005a6b6 | ||
|
|
0fde02eca4 | ||
|
|
de8c31ed51 | ||
|
|
6b2485363e | ||
|
|
59fa74925a | ||
|
|
a84b5be104 | ||
|
|
8b96f71bc0 | ||
|
|
66cfed71e9 | ||
|
|
2e6c9e80aa | ||
|
|
3278118487 | ||
|
|
a11f81c84a | ||
|
|
76aeda4991 | ||
|
|
5512b1f8d7 | ||
|
|
c3762b3119 | ||
|
|
1f08c9b6db | ||
|
|
221ecad5c8 | ||
|
|
04c8d7a888 | ||
|
|
5a86da1090 | ||
|
|
789c7a5e75 | ||
|
|
f0ecc04648 | ||
|
|
cd1d72b267 | ||
|
|
2a51385f43 | ||
|
|
6afa83a7a1 | ||
|
|
fd891e39ff | ||
|
|
f4a2af750c | ||
|
|
f2403a13e5 | ||
|
|
35494e975d | ||
|
|
0de01942a3 | ||
|
|
850d449290 | ||
|
|
2e7ed0106a | ||
|
|
d091d2de28 | ||
|
|
e8b0277d76 | ||
|
|
b807eb2d6d | ||
|
|
3f8f1e598a | ||
|
|
74c2ce2054 | ||
|
|
3cf798120a | ||
|
|
5687da064c | ||
|
|
bf8ff63585 | ||
|
|
223064ce46 | ||
|
|
bf6010f21f | ||
|
|
3b79f83c50 | ||
|
|
17389ac17b | ||
|
|
973002c6cb | ||
|
|
58911009c4 | ||
|
|
f8458520f5 | ||
|
|
886c3d9449 | ||
|
|
535af4aa1d | ||
|
|
dc269846d1 | ||
|
|
cfaeaba39c | ||
|
|
7046bb9f15 | ||
|
|
f9537f4b10 | ||
|
|
38c5745ccb | ||
|
|
ebe82576cc | ||
|
|
f66b318022 | ||
|
|
97ec0493d1 | ||
|
|
64283ff273 | ||
|
|
d42c703e6e | ||
|
|
e46e8fa17a | ||
|
|
12d6de51da | ||
|
|
424dc0a13d | ||
|
|
d9fef47e78 | ||
|
|
222b9997a1 | ||
|
|
fea8e890a4 | ||
|
|
3124c08927 | ||
|
|
46ea1343d7 | ||
|
|
8a7a436ee9 | ||
|
|
2697bd7a42 | ||
|
|
ade3a772e4 | ||
|
|
ffe352e61b | ||
|
|
280baee3a0 | ||
|
|
edf83dbacd | ||
|
|
a2d4fc08a5 | ||
|
|
00caee03ac | ||
|
|
8b8b7b5c50 | ||
|
|
a09daa21ab | ||
|
|
804b7654b2 | ||
|
|
88a8e51810 | ||
|
|
8241d07190 | ||
|
|
9e6d5c9d5d | ||
|
|
bdeb765f75 | ||
|
|
669660c2fb | ||
|
|
93b09509e2 | ||
|
|
84b61e01f4 | ||
|
|
38256815ef | ||
|
|
c111054fd6 | ||
|
|
25684e3c4a | ||
|
|
82dd94d51b | ||
|
|
1536ed6da3 | ||
|
|
9f9d0fc788 | ||
|
|
a23daa7c81 | ||
|
|
3382949530 | ||
|
|
6f05dd4ece | ||
|
|
841bce69a5 | ||
|
|
82d308c9ac | ||
|
|
fe7437388a | ||
|
|
5ef7b2c68a | ||
|
|
28a1c8bb4f | ||
|
|
f812b18bc6 | ||
|
|
1b5d24cb9d | ||
|
|
3dc683ea99 | ||
|
|
f67c15a9a4 | ||
|
|
ba27cdfd9a | ||
|
|
a74309d650 | ||
|
|
220979bf68 | ||
|
|
4826200cec | ||
|
|
49cd9d3283 | ||
|
|
9187529ff6 | ||
|
|
07c4b17260 | ||
|
|
d905a91470 | ||
|
|
5cb2564335 | ||
|
|
4e729c50a8 | ||
|
|
62ff12b1c2 | ||
|
|
e59cc370c0 | ||
|
|
d60bb43e07 | ||
|
|
572ea6f2a7 | ||
|
|
871321e32d | ||
|
|
46a9e68bb9 | ||
|
|
d4af37ae8a | ||
|
|
48d6fb50c5 | ||
|
|
1f97ee333d | ||
|
|
86db7d8ec4 | ||
|
|
b124de4f04 | ||
|
|
43541ceebc | ||
|
|
308ac450e7 | ||
|
|
d80a27a64a | ||
|
|
8ef57e2ab7 | ||
|
|
0eaf5fdeab | ||
|
|
c558fa4b28 | ||
|
|
a4630df622 | ||
|
|
201d54e06a | ||
|
|
d6a3f46892 | ||
|
|
ecb99dbd9a | ||
|
|
c12447dca2 | ||
|
|
ad724d6e2f | ||
|
|
ce170ecba8 | ||
|
|
be0acfeceb | ||
|
|
4b0c1fe63c | ||
|
|
077d4cd0d4 | ||
|
|
149161694d | ||
|
|
5e7ea35239 | ||
|
|
4768a7eb5a | ||
|
|
84fb97f82a | ||
|
|
90c0675234 | ||
|
|
684941b48a | ||
|
|
c30673fac0 | ||
|
|
9f5781eff4 | ||
|
|
f2ed1ebc74 | ||
|
|
0b17f1e891 | ||
|
|
e7e731800b | ||
|
|
89f3edcb27 | ||
|
|
68e3527eec | ||
|
|
1a1083f781 | ||
|
|
c44e90302d | ||
|
|
5b5163c812 | ||
|
|
f1417063cb | ||
|
|
83f488d1d2 | ||
|
|
d311fb18e0 | ||
|
|
ab5d19bf12 | ||
|
|
75796dafbc | ||
|
|
79cc0b1da9 | ||
|
|
1ef25a4177 | ||
|
|
316c830eaa | ||
|
|
2670d16407 | ||
|
|
54f98a5ad1 | ||
|
|
1238edf1b9 | ||
|
|
5f2a95d154 | ||
|
|
b4e5fd0299 | ||
|
|
9c2f50a620 | ||
|
|
8cd51103d9 | ||
|
|
b94424411a | ||
|
|
fabf331197 | ||
|
|
3e9b4ccf3d | ||
|
|
a4b44a8b0f | ||
|
|
9a57362602 | ||
|
|
cca3000eb2 | ||
|
|
8fce191c55 | ||
|
|
bed0f8d1c8 | ||
|
|
f55d7e29f7 | ||
|
|
b8bbdbdc64 | ||
|
|
c63fdb2e1a | ||
|
|
33dbfd2b3b | ||
|
|
b7a45b79bf | ||
|
|
1b41ab8567 | ||
|
|
d857779d67 | ||
|
|
4166ef1556 | ||
|
|
6a695c851a | ||
|
|
84b41e70a6 | ||
|
|
fe6a865c13 | ||
|
|
5325b32cf2 | ||
|
|
e82eced346 | ||
|
|
959b8637db | ||
|
|
e5f893d2ba | ||
|
|
e94c248f23 | ||
|
|
7483a24efa | ||
|
|
1480dcf6e0 | ||
|
|
ca62d15aac | ||
|
|
b5ce6281d8 | ||
|
|
cb9e5b401f | ||
|
|
3bd7004733 | ||
|
|
4110287349 | ||
|
|
a5e18300ea | ||
|
|
ee63eea02f | ||
|
|
caa63017cf | ||
|
|
837b5a65ea | ||
|
|
0aa5be6709 | ||
|
|
7f4dcaa5f1 | ||
|
|
7bdda2e2a6 | ||
|
|
7d49f20571 | ||
|
|
95ddb184a0 | ||
|
|
eec43e31c2 | ||
|
|
ee4eb72014 | ||
|
|
a58e02940d | ||
|
|
d41feaec6d | ||
|
|
de29cdb7e5 | ||
|
|
18e4025c47 | ||
|
|
79f0b06150 | ||
|
|
189d3bbbdf | ||
|
|
60f14e1f99 | ||
|
|
d0ad6c6223 | ||
|
|
6c1eaad083 | ||
|
|
27ced65a4d | ||
|
|
1e0f549fb6 | ||
|
|
9fed67306e | ||
|
|
0267250af4 | ||
|
|
b12e5a6e00 | ||
|
|
60a40d55b6 | ||
|
|
8500584c02 | ||
|
|
5246ca85f0 | ||
|
|
900d7c36d2 | ||
|
|
29994cd63f | ||
|
|
718f89fdbd | ||
|
|
dbc012fa4c | ||
|
|
f21653510f | ||
|
|
065b87d694 | ||
|
|
7986ba7072 | ||
|
|
8793495edd | ||
|
|
c02c1452e6 | ||
|
|
55ddfdd314 | ||
|
|
d5e4cf3a1a | ||
|
|
b73f62b433 | ||
|
|
16161fdb0a | ||
|
|
5102c3b5e0 | ||
|
|
fe87062768 | ||
|
|
21a30001fa | ||
|
|
e1d55e00af | ||
|
|
d98a6da7b2 | ||
|
|
f510cc4218 | ||
|
|
ac347c4e06 | ||
|
|
d2298a8092 | ||
|
|
e45e97f9ac | ||
|
|
292aa99543 | ||
|
|
61a08d26b2 | ||
|
|
a3dd2c6b34 | ||
|
|
c0c6dd7c7b | ||
|
|
fd319fc82f | ||
|
|
0d90bb9e8f | ||
|
|
3db176e77f | ||
|
|
6c18931153 | ||
|
|
688188777f | ||
|
|
83c411b308 | ||
|
|
2acf4764c2 | ||
|
|
021748e81a | ||
|
|
1d689d0b87 | ||
|
|
c20c9946f8 | ||
|
|
8294eae6d9 | ||
|
|
79814905fa | ||
|
|
4dea9f08ef | ||
|
|
9494db9568 | ||
|
|
4bafd14bef | ||
|
|
706210a483 | ||
|
|
69644593f7 | ||
|
|
c5051ddb30 | ||
|
|
e7d037d3d4 | ||
|
|
3478aa1305 | ||
|
|
8033692873 | ||
|
|
257deabbbe | ||
|
|
78f26de1d8 | ||
|
|
b96f7657e6 | ||
|
|
de81591b26 | ||
|
|
90130dcd7d | ||
|
|
4392ca7352 | ||
|
|
23b6bd1101 | ||
|
|
d62b9f00de | ||
|
|
f291fa898e | ||
|
|
1688d8f22a | ||
|
|
3c31d98c50 | ||
|
|
446e1b7ece | ||
|
|
bc785141e5 | ||
|
|
1e5d6786da | ||
|
|
9f0ae77f95 | ||
|
|
100764b03e | ||
|
|
c715751bc6 | ||
|
|
d3cf2a8e35 | ||
|
|
18e6bfc7f8 | ||
|
|
aafbd62c2d | ||
|
|
29726b15d1 | ||
|
|
a653628acb | ||
|
|
6b44909f21 | ||
|
|
eb37b72dc1 | ||
|
|
9ab1a56935 | ||
|
|
8427383b31 | ||
|
|
7c4582a0fe | ||
|
|
86255c7bbe | ||
|
|
a788fc255d | ||
|
|
7599a09b0d | ||
|
|
b5be8f3eae | ||
|
|
6d6671c2a1 | ||
|
|
cae6730ea8 | ||
|
|
fbfb34df58 | ||
|
|
1f93b2355a | ||
|
|
60f45ffaf6 | ||
|
|
aba033ae63 | ||
|
|
986312b6ae | ||
|
|
af60fd6428 | ||
|
|
559c9b4e52 | ||
|
|
21c8095b8a | ||
|
|
8377b59217 | ||
|
|
d06e0c5e94 | ||
|
|
db0cf4082d | ||
|
|
0747a4d850 | ||
|
|
3b19d4b6fb | ||
|
|
8a3a4ff653 | ||
|
|
d652524cef | ||
|
|
3c1aaa24f5 | ||
|
|
26151b3c42 | ||
|
|
9a7712ed11 | ||
|
|
098e5f2516 | ||
|
|
687e6ad900 | ||
|
|
22ce8e4c24 | ||
|
|
24204efab6 | ||
|
|
9611172b88 | ||
|
|
a808c58091 | ||
|
|
d19ce0a67e | ||
|
|
3672f7bad7 | ||
|
|
855cdad612 | ||
|
|
b857fd1e24 | ||
|
|
9dce1e5291 | ||
|
|
126d370b34 | ||
|
|
37210a76fa | ||
|
|
0bdedffac3 | ||
|
|
e92e69b35b | ||
|
|
86e6cd595f | ||
|
|
5faff84a9d | ||
|
|
656b0edb90 | ||
|
|
7f042b1c55 | ||
|
|
c574947e93 | ||
|
|
b218cbab92 | ||
|
|
6746e8777a | ||
|
|
0949975fcd | ||
|
|
a24dad6bdb | ||
|
|
81b295726f | ||
|
|
b7d749ec90 | ||
|
|
025fb23fed | ||
|
|
87102407c7 | ||
|
|
8668e5d66b | ||
|
|
0b9158f727 | ||
|
|
d98b793705 | ||
|
|
0d96f1b8ca | ||
|
|
290de2f15c | ||
|
|
d30b3a398f | ||
|
|
fc56327e79 | ||
|
|
03918703d9 | ||
|
|
8feb5b2ff9 | ||
|
|
cf16ce6e64 | ||
|
|
fb6248c624 | ||
|
|
10827e56aa | ||
|
|
107926dd7e | ||
|
|
c0495d22c9 | ||
|
|
030f9ac6d3 | ||
|
|
786e2f860f | ||
|
|
a6fc1e715a | ||
|
|
917dd262f9 | ||
|
|
d85d3f346e | ||
|
|
4b0ad7dc1f | ||
|
|
dd78fd3ed3 | ||
|
|
cac1e4b0bd | ||
|
|
b8294f2cb7 | ||
|
|
40c21acf38 | ||
|
|
250842e561 | ||
|
|
1cbc322904 | ||
|
|
46beea8972 | ||
|
|
30cfc57b03 | ||
|
|
67378e1d55 | ||
|
|
5a9ef80f4c | ||
|
|
dee7f31e55 | ||
|
|
9a688ab1bd | ||
|
|
cb43f46b83 | ||
|
|
cfb9c93e65 | ||
|
|
e781e9c3e8 | ||
|
|
b51d5fecd1 | ||
|
|
64b57186da | ||
|
|
a5a3b9f8ee | ||
|
|
9e5d1e9ad6 | ||
|
|
6ea2caa770 | ||
|
|
0b92c63734 | ||
|
|
ef8903902c | ||
|
|
9f289a0e9c | ||
|
|
80f2ab86c1 | ||
|
|
ec4e2c7193 | ||
|
|
cdce9a6feb | ||
|
|
c1fa23d745 | ||
|
|
5f7c7ecfd8 | ||
|
|
b80826dd0c | ||
|
|
d320b1c7a3 | ||
|
|
7657544d74 | ||
|
|
44b5ce144c | ||
|
|
65eb45c56a | ||
|
|
0dd43d7bcc | ||
|
|
4cf2a673c8 | ||
|
|
e83e2a4467 | ||
|
|
497cf925ab | ||
|
|
1d09914f8c | ||
|
|
497af61712 | ||
|
|
e91fcd6387 | ||
|
|
b3bc1e75aa | ||
|
|
6132f481ce | ||
|
|
966c473507 | ||
|
|
f415010337 | ||
|
|
cbf1fe71a5 | ||
|
|
e72aab3448 | ||
|
|
98c7fc8197 | ||
|
|
105078f4b1 | ||
|
|
e57adfac08 | ||
|
|
bdb68ae28b | ||
|
|
b7fab60023 | ||
|
|
98a83e89d0 | ||
|
|
fadbe7bffe | ||
|
|
c4a807c090 | ||
|
|
513a7bf4b1 | ||
|
|
69247460a1 | ||
|
|
bd7ed94b4a | ||
|
|
8357f344af | ||
|
|
045d4b9856 | ||
|
|
ed3a775ad2 | ||
|
|
52b08b9959 | ||
|
|
16c8eb2689 | ||
|
|
89544ba9fb | ||
|
|
c7ef487f2b | ||
|
|
711aae9c85 | ||
|
|
b09c0d6819 | ||
|
|
6fed292ef1 | ||
|
|
3dc181e3fb | ||
|
|
c235b12201 | ||
|
|
5cd93e4e0f | ||
|
|
95ab458677 | ||
|
|
641f27af3c | ||
|
|
72eec66208 | ||
|
|
2fb60bd40f | ||
|
|
f79d217ffa | ||
|
|
ab016b5ccd | ||
|
|
a11c3895ef | ||
|
|
82754a5213 | ||
|
|
5ca20f741a | ||
|
|
4d82f2a4c6 | ||
|
|
49b40a4af3 | ||
|
|
0de671a1de | ||
|
|
1306c6f7be | ||
|
|
2a19480084 | ||
|
|
5df72729d1 | ||
|
|
4bf2896413 | ||
|
|
09c2800181 | ||
|
|
3111846ddc | ||
|
|
33d28e6226 | ||
|
|
99293b9ccf | ||
|
|
8ea4adce56 | ||
|
|
45d3e7c864 | ||
|
|
89412a761a | ||
|
|
b8b3cdde53 | ||
|
|
8c829048af | ||
|
|
14a5f89b59 | ||
|
|
65d5d8963b | ||
|
|
ea58e48dad | ||
|
|
0a605ccb12 | ||
|
|
5a33ecf63b | ||
|
|
abbbd926bc | ||
|
|
ad6230074a | ||
|
|
58fa6004bb | ||
|
|
1d55e488ae | ||
|
|
ffb2a0ed73 | ||
|
|
0364130dd3 | ||
|
|
c6155e9279 | ||
|
|
ac967499f3 | ||
|
|
3ab84ed7e4 | ||
|
|
3f7bc1ebb5 | ||
|
|
9897fc2d56 | ||
|
|
e49d0b0c22 | ||
|
|
35ae4af868 | ||
|
|
a846fd8f83 | ||
|
|
c9186edd34 | ||
|
|
e7e04271fd | ||
|
|
894178918b | ||
|
|
05cd917693 | ||
|
|
ffde393c66 | ||
|
|
252b9b7e41 | ||
|
|
b0247597f9 | ||
|
|
fb8fcb0685 | ||
|
|
cae900b1fb | ||
|
|
65937a9244 | ||
|
|
06637280e5 | ||
|
|
95c8902d96 | ||
|
|
c57c2b5a2b | ||
|
|
57b8d0b88e | ||
|
|
462f90979d | ||
|
|
458ab91f91 | ||
|
|
ab8ad72bc3 | ||
|
|
e9b6d22932 | ||
|
|
3b6be8b4b9 | ||
|
|
57b085ff5c | ||
|
|
0cfc08748b | ||
|
|
0188745d05 | ||
|
|
5246e2ccb4 | ||
|
|
f1d4cb670a | ||
|
|
9dd1e95eae | ||
|
|
6083943e03 | ||
|
|
a8ba43308e | ||
|
|
87cd0a88fb | ||
|
|
6165e5b0f0 | ||
|
|
d47ea73dfc | ||
|
|
f62addc5e8 | ||
|
|
4511d8667b | ||
|
|
af3a63fd9b | ||
|
|
8b939d89a5 | ||
|
|
b973b5fab2 | ||
|
|
c1bddcd594 | ||
|
|
b1e2121682 | ||
|
|
b3d094db02 | ||
|
|
bc015da547 | ||
|
|
a9ad2aa2fa | ||
|
|
232d5ce54f | ||
|
|
1afd7d532c | ||
|
|
eba336221e | ||
|
|
2bb0e0edfc | ||
|
|
8f508067e6 | ||
|
|
93e54f57e0 | ||
|
|
a884888caa | ||
|
|
c40ae9f181 | ||
|
|
e33b3b5883 | ||
|
|
1da4c2b7ab | ||
|
|
c5baa05b5e | ||
|
|
719c3e3b0b | ||
|
|
123266d0ff | ||
|
|
aa0ba6881c | ||
|
|
b8246d41e3 | ||
|
|
7d037ab1a4 | ||
|
|
01940bbb10 | ||
|
|
dbd7f719f6 | ||
|
|
63135a4b2b | ||
|
|
6ef5b5001e | ||
|
|
2a4853bbd4 | ||
|
|
003b80689e | ||
|
|
df66dd9abf | ||
|
|
6bac39c193 | ||
|
|
7915e6c04e | ||
|
|
b20c15f56d | ||
|
|
1b05e782bf | ||
|
|
d2a23c3dc7 | ||
|
|
27191f5202 | ||
|
|
248352ae5c | ||
|
|
d628f11388 | ||
|
|
87cd6de96c | ||
|
|
650d54d188 | ||
|
|
a2510cf32a | ||
|
|
42abcd7009 | ||
|
|
b150989286 | ||
|
|
736dca4d07 | ||
|
|
7ee8c5d284 | ||
|
|
6c891a3e29 | ||
|
|
f2ca247731 | ||
|
|
fa148a8b7e | ||
|
|
20a3700a2c | ||
|
|
f1cc40a87c | ||
|
|
a19c9366ed | ||
|
|
46203fd43c | ||
|
|
38f1c74379 | ||
|
|
54b3d770e7 | ||
|
|
288f6ac900 | ||
|
|
08b48e92d3 | ||
|
|
7f6d2c9582 | ||
|
|
113dcd3fc9 | ||
|
|
0b471aae9e | ||
|
|
42769dad7d | ||
|
|
d2110c3013 | ||
|
|
1746820d69 | ||
|
|
32b655451c | ||
|
|
0bc2bd6e40 | ||
|
|
0ff72a3510 | ||
|
|
b61b75e015 | ||
|
|
7339cb5d7b | ||
|
|
78b503239e | ||
|
|
2da5799677 | ||
|
|
ee74453839 | ||
|
|
7fe5af0466 | ||
|
|
9f68900dc5 | ||
|
|
7c4e0b2344 | ||
|
|
75c1b02760 | ||
|
|
fd1ddab50f | ||
|
|
940909c0f8 | ||
|
|
622aad07dc | ||
|
|
9921887047 | ||
|
|
e3a83ccb00 | ||
|
|
13c575b3bc | ||
|
|
0c9c25fb41 | ||
|
|
ff67171d46 | ||
|
|
f6fef5e61f | ||
|
|
ff552daf31 | ||
|
|
cf9de3d11c | ||
|
|
637f34162f | ||
|
|
3846a55c5e | ||
|
|
6cc0a5ae34 | ||
|
|
e88bd1f441 | ||
|
|
4fc5aa7c3a | ||
|
|
ca493459b3 | ||
|
|
a01128b273 | ||
|
|
727c69bb3f | ||
|
|
43fc028e2e | ||
|
|
2e4c3fed24 | ||
|
|
805159b07f | ||
|
|
27d2e22433 | ||
|
|
bbab42cacd | ||
|
|
9b6a14cf19 | ||
|
|
9a48342ce2 | ||
|
|
eb8eeae418 | ||
|
|
331cc3614a | ||
|
|
5287dca4e5 | ||
|
|
ced1bbf53d | ||
|
|
d114551bd1 | ||
|
|
8d32f65c5b | ||
|
|
ada121d2ec | ||
|
|
eac45562f8 | ||
|
|
0461992496 | ||
|
|
7224970e2c | ||
|
|
a0c0b2d8af | ||
|
|
e9f9ad3a0d | ||
|
|
9deabb895a | ||
|
|
c2705a96f1 | ||
|
|
a370f1e42f | ||
|
|
5b022a7321 | ||
|
|
063ad6cb3b | ||
|
|
8bf0ef5ddb | ||
|
|
4ac8476f74 | ||
|
|
86925a43c4 | ||
|
|
70ba9d56ab | ||
|
|
f3327eb3aa | ||
|
|
22177092be | ||
|
|
f9387a46c3 | ||
|
|
8e13e4fcc0 | ||
|
|
a81e2cd983 | ||
|
|
987b2e858f | ||
|
|
6396d5ede0 | ||
|
|
6d8a131c6d | ||
|
|
a4eb739a95 | ||
|
|
533039619e | ||
|
|
6e6af0203d | ||
|
|
2e4b5ebef6 | ||
|
|
82b07ae8f2 | ||
|
|
a9440eea88 | ||
|
|
eeaac73a5d | ||
|
|
0ac205cdf2 | ||
|
|
b399ce6fbc | ||
|
|
9d1633ae65 | ||
|
|
def106f409 | ||
|
|
462f2e602b | ||
|
|
a6fc4b6c7f | ||
|
|
6625f81b6e | ||
|
|
7290a6d350 | ||
|
|
4555200027 | ||
|
|
4415481604 | ||
|
|
fcf60b2a9a | ||
|
|
0aed3c05cb | ||
|
|
1903a7a319 | ||
|
|
4689e87a1f | ||
|
|
165b3421f1 | ||
|
|
80aa7933ab | ||
|
|
5dd1b19373 | ||
|
|
2f630f69de | ||
|
|
0a9e9ef3a3 | ||
|
|
143cffd060 | ||
|
|
1d48d49453 | ||
|
|
0a5f9dfc00 | ||
|
|
607e4b376c | ||
|
|
9042442bea | ||
|
|
55dafd511b | ||
|
|
ddb88ea737 | ||
|
|
31e98b8949 | ||
|
|
37526800c1 | ||
|
|
eef51b1cb9 | ||
|
|
8e662fea9e | ||
|
|
4c73774104 | ||
|
|
b675ec6137 | ||
|
|
0c5a458759 | ||
|
|
ff47314d76 | ||
|
|
86d442a1e3 | ||
|
|
a819b5d2ca | ||
|
|
379c969a9f | ||
|
|
c3d2b31232 | ||
|
|
a909be7f49 | ||
|
|
207da9cda1 | ||
|
|
23f2b6c7d0 | ||
|
|
6fc415bb67 | ||
|
|
e4f8448d26 | ||
|
|
72ebf6f4c4 | ||
|
|
5cbba2b2b7 | ||
|
|
eb3d73bcf3 | ||
|
|
12cca448c7 | ||
|
|
a4d6e24dad | ||
|
|
2206b84f3e | ||
|
|
488a75737c | ||
|
|
2570b296ca | ||
|
|
a2c38dbc12 | ||
|
|
fb43bc0e25 | ||
|
|
839dc3e07f | ||
|
|
2bbe566f72 | ||
|
|
23a4a581a5 | ||
|
|
80f94946e3 | ||
|
|
42943050fe | ||
|
|
dac60a6783 | ||
|
|
1a37f0209c | ||
|
|
db46b4fb6f | ||
|
|
2b527f333f | ||
|
|
73fbd15bca | ||
|
|
f88b5e8142 | ||
|
|
a934075407 | ||
|
|
2e5d97e99c | ||
|
|
499b9130dd | ||
|
|
fd640c6962 | ||
|
|
1eb022e42b | ||
|
|
6751d683f3 | ||
|
|
1f5391fc2c | ||
|
|
5533263e91 | ||
|
|
65a66b11eb | ||
|
|
052f81275b | ||
|
|
e0a5751d9f | ||
|
|
8a18963a72 | ||
|
|
12d674882a | ||
|
|
b0d3c4a512 | ||
|
|
97483bc0cb | ||
|
|
92cfa98d88 | ||
|
|
6d501c84c5 | ||
|
|
58a6649157 | ||
|
|
3387b22040 | ||
|
|
52d3b9cf13 | ||
|
|
b763c0516d | ||
|
|
f4ba30b4ce | ||
|
|
6367ab8bf9 | ||
|
|
d99d2581aa | ||
|
|
1d2e82644c | ||
|
|
4d8a6faac3 | ||
|
|
3fd88b4f13 | ||
|
|
2baea4e5de | ||
|
|
d71b8e9e82 | ||
|
|
2bd29a7cb2 | ||
|
|
5c1271a56e | ||
|
|
bbbebe35fd | ||
|
|
3e777dd43c | ||
|
|
f862473969 | ||
|
|
f016bb1e0c | ||
|
|
85de9d5f45 | ||
|
|
ed1b02dcb2 | ||
|
|
4ba94c3ce9 | ||
|
|
679713f169 | ||
|
|
1b66edcb2e | ||
|
|
9e3cf58bc9 | ||
|
|
84e6ea99f3 | ||
|
|
2281b6e8e9 | ||
|
|
90b94c265d | ||
|
|
e62d50eb21 | ||
|
|
4ddaf350b4 | ||
|
|
8330a1d05f | ||
|
|
3bc4ae14cc | ||
|
|
51f5ff4193 | ||
|
|
8bae5ace0f | ||
|
|
553f8ce28f | ||
|
|
fb8ef4e7fa | ||
|
|
15f5873cc2 | ||
|
|
ef3c8bb6c2 | ||
|
|
87b20ddfe9 | ||
|
|
7bd781e7d2 | ||
|
|
fa2153f3e3 | ||
|
|
c766e99743 | ||
|
|
d97fdb5ce8 | ||
|
|
a96167729c | ||
|
|
52f990b9cb | ||
|
|
403b638eb6 | ||
|
|
0a889dc7e6 | ||
|
|
81e1ad2ee7 | ||
|
|
6aa2fc51f9 | ||
|
|
127bd37e29 | ||
|
|
e3d360a51a | ||
|
|
45aff52c81 | ||
|
|
65b960f0f0 | ||
|
|
1c371a24fb | ||
|
|
2d8904e2cf | ||
|
|
5b92be5889 | ||
|
|
bec4d04c15 | ||
|
|
a871766175 | ||
|
|
97a82c0cc1 | ||
|
|
5cb7fa4dc9 | ||
|
|
e6336c62ab | ||
|
|
582c3739e7 | ||
|
|
258250131f | ||
|
|
2cb8b03f7b | ||
|
|
fedbbdf3fb | ||
|
|
aab012d530 | ||
|
|
b930fb0edb | ||
|
|
8fd3ec6d6a | ||
|
|
d215715b52 | ||
|
|
2519c764c3 | ||
|
|
dcd0a8499e | ||
|
|
09823115af | ||
|
|
6b379fbef3 | ||
|
|
00a5243ec9 | ||
|
|
2bed65d819 | ||
|
|
ae16dcc16a | ||
|
|
d513459c63 | ||
|
|
63e915c8cc | ||
|
|
bd2a72d178 | ||
|
|
a55eeaf794 | ||
|
|
e366bbb588 | ||
|
|
31161e7a08 | ||
|
|
e6b747aef5 | ||
|
|
c5759e3349 | ||
|
|
2fc094a563 | ||
|
|
99efba4fc3 | ||
|
|
43fe5cd8be | ||
|
|
2b603b6f60 | ||
|
|
26feb27b83 | ||
|
|
45b9fcefd2 | ||
|
|
5ad06bc602 | ||
|
|
40a0913fa4 | ||
|
|
f66421c1a8 | ||
|
|
ff09cd0e54 | ||
|
|
810ee2f6d0 | ||
|
|
09b07274ab | ||
|
|
8604b5c105 | ||
|
|
fde070665d | ||
|
|
ebe2c53de7 | ||
|
|
3fccee1bc2 | ||
|
|
0a658e1b2e | ||
|
|
02ec6c5a47 | ||
|
|
01574aadfe | ||
|
|
93f78efed4 | ||
|
|
7c66f51395 | ||
|
|
46d4a73955 | ||
|
|
c4c4d055ea | ||
|
|
8ee6b9fdf1 | ||
|
|
0da0e6cf8b | ||
|
|
79cd98d467 | ||
|
|
7767c16916 | ||
|
|
014d32b83b | ||
|
|
ee70e9d546 | ||
|
|
2cc0e91c38 | ||
|
|
596a01ab30 | ||
|
|
0861e6f176 | ||
|
|
3dfbad68c9 | ||
|
|
f99ba720a8 | ||
|
|
7e4c29befb | ||
|
|
ef7a247df3 | ||
|
|
b63eec3e91 | ||
|
|
5596daf346 | ||
|
|
99072cd63d | ||
|
|
eec9a5c6e9 | ||
|
|
669668a134 | ||
|
|
698c13b2f1 | ||
|
|
00057e997d | ||
|
|
851539cc6f | ||
|
|
761a0fdb61 | ||
|
|
85ce90ca52 | ||
|
|
8a01d89049 | ||
|
|
610a7ed8a8 | ||
|
|
27bbab9582 | ||
|
|
05cbe89d87 | ||
|
|
9781d5c1ff | ||
|
|
86751249be | ||
|
|
5b795014e2 | ||
|
|
6232a04e52 | ||
|
|
edfa786514 | ||
|
|
504137d249 | ||
|
|
b818042fc5 | ||
|
|
c37f83c6c3 | ||
|
|
fe7894fb5f | ||
|
|
f57afca557 | ||
|
|
38e8878ded | ||
|
|
230740708b | ||
|
|
0c3b0b8a40 | ||
|
|
cf560a47d5 | ||
|
|
d99af420ac | ||
|
|
73c2baa39e | ||
|
|
054df68741 | ||
|
|
f7756698e9 | ||
|
|
453ef0cb97 | ||
|
|
5015422086 | ||
|
|
2d85d8acf8 | ||
|
|
2af589a823 | ||
|
|
20c55f4d3d | ||
|
|
b7fdc82d30 | ||
|
|
770ebf2cf9 | ||
|
|
a75c641c18 | ||
|
|
38c09153ac | ||
|
|
e30e18e431 | ||
|
|
249d19f55b | ||
|
|
2e043ecf5b | ||
|
|
831edf234d | ||
|
|
b42c753d3f | ||
|
|
e0b09857c4 | ||
|
|
924cd5cb4c | ||
|
|
73f7c4d8a1 | ||
|
|
0d035496f5 | ||
|
|
10079b8d9d | ||
|
|
c31566a626 | ||
|
|
0cfc7a2976 | ||
|
|
de5a10163e | ||
|
|
0a22c4e66c | ||
|
|
a88d95af77 | ||
|
|
010221ab5b | ||
|
|
6471a04a86 | ||
|
|
7b2762c590 | ||
|
|
de0b97b99c | ||
|
|
60d2bd1ac1 | ||
|
|
4d716647e5 | ||
|
|
43ab47a260 | ||
|
|
88ecfbdb65 | ||
|
|
8087967683 | ||
|
|
cb43197105 | ||
|
|
b1b9329614 | ||
|
|
7317814ce0 | ||
|
|
66ef7b66bb | ||
|
|
be3ff5f043 | ||
|
|
c36fa6da90 | ||
|
|
aadcf650c7 | ||
|
|
95c3fa0b04 | ||
|
|
1d0829a1db | ||
|
|
8d31d6687e | ||
|
|
3f3cb556a7 | ||
|
|
4460c8bee0 | ||
|
|
89b597a656 | ||
|
|
e1a25a8913 | ||
|
|
482c2f7115 | ||
|
|
7fa4ebd1ec | ||
|
|
9c3b552aa8 | ||
|
|
3229e65a8d | ||
|
|
7191d39b51 | ||
|
|
58bc5171ee | ||
|
|
74f3bc9ae6 | ||
|
|
464d9c0757 | ||
|
|
94ae90ab80 | ||
|
|
33b89550a4 | ||
|
|
9661469532 | ||
|
|
b06c222a7d | ||
|
|
9f85b54681 | ||
|
|
5d1ad5d75d | ||
|
|
dc32f955b7 | ||
|
|
220592c267 | ||
|
|
0faa6879b4 | ||
|
|
71b5de91bf | ||
|
|
928d62a517 | ||
|
|
78bd3b1a52 | ||
|
|
b9bab0577b | ||
|
|
c41551a643 | ||
|
|
6c92dd1303 | ||
|
|
124f01ca2d | ||
|
|
0dece85fa7 | ||
|
|
caebf90ee9 | ||
|
|
0c77014903 | ||
|
|
231a796200 | ||
|
|
fe755405e8 | ||
|
|
2200f2186c | ||
|
|
b57b7cb606 | ||
|
|
f2b2496e58 | ||
|
|
e603b98d0d | ||
|
|
e235fc299f | ||
|
|
4f25ed546e | ||
|
|
f72b9db6a9 | ||
|
|
80e8e33283 | ||
|
|
00d0396417 | ||
|
|
59e39662f1 | ||
|
|
038e1b9a57 | ||
|
|
bbefeeeb02 | ||
|
|
2801da5c51 | ||
|
|
471dab9406 | ||
|
|
1deb247ce5 | ||
|
|
4469a2d84a | ||
|
|
2da7aa358d | ||
|
|
cbb083d7f6 | ||
|
|
d68de2c3c7 | ||
|
|
454c5e494a | ||
|
|
3b1874ea25 | ||
|
|
e0233dee13 | ||
|
|
84a99e1b53 | ||
|
|
b7e0e89bb4 | ||
|
|
d8c3063813 | ||
|
|
1485050234 | ||
|
|
6d7721f8f5 | ||
|
|
e3ae71eabd | ||
|
|
e88041c59e | ||
|
|
e17db4e1cf | ||
|
|
766a64c8f6 | ||
|
|
8485d2c9a7 | ||
|
|
397e691a6a | ||
|
|
6481f7cf6b | ||
|
|
46c527d24a | ||
|
|
5392f39cc4 | ||
|
|
4a324b4f5e | ||
|
|
2855b0e7a7 | ||
|
|
39e4cd3136 | ||
|
|
8fefa63c8c | ||
|
|
10532b9118 | ||
|
|
7f2eb470e4 | ||
|
|
8955b8e0b6 | ||
|
|
ee9d5048e2 | ||
|
|
09bb74b6c6 | ||
|
|
493dddf66e | ||
|
|
8173f8d0c4 | ||
|
|
01feec47d7 | ||
|
|
2b60dbc7e1 | ||
|
|
32f5f36e5a | ||
|
|
96294df710 | ||
|
|
ef54cbb148 | ||
|
|
9cd597a467 | ||
|
|
2263ebde72 | ||
|
|
1fd8d597ab | ||
|
|
2aec0b3a75 | ||
|
|
47d10a6d3e | ||
|
|
ee216ddc93 | ||
|
|
7756d312e2 | ||
|
|
19e03eeeb2 | ||
|
|
e73aeba03b | ||
|
|
87f3c5acce | ||
|
|
a38a3e67c9 | ||
|
|
547ae9e13e | ||
|
|
b031092f07 | ||
|
|
6e6dd2c34e | ||
|
|
759f4f8ea2 | ||
|
|
bee82bcde9 | ||
|
|
888fb97e66 | ||
|
|
9c775bd899 | ||
|
|
4bf3445eef | ||
|
|
47b3f51a3f | ||
|
|
2e6b85990d | ||
|
|
30a4b9e9ab | ||
|
|
81a259e51b | ||
|
|
e85e9661e0 | ||
|
|
1d60250942 | ||
|
|
e11463f6ce | ||
|
|
1146a1bb6f | ||
|
|
311fdd5aca | ||
|
|
6ddc55bf80 | ||
|
|
2c930ef069 | ||
|
|
3739bbc652 | ||
|
|
8d544e63f4 | ||
|
|
7e4cf6c5dc | ||
|
|
c8d162c999 | ||
|
|
017515dcc1 | ||
|
|
d8bd684f96 | ||
|
|
aad5c70eb0 | ||
|
|
ea2f0a9b17 | ||
|
|
c4131d5e4b | ||
|
|
21127bcf2a | ||
|
|
04da8afb07 | ||
|
|
c38f06cce2 | ||
|
|
968f952f69 | ||
|
|
8409fdaa48 | ||
|
|
f29e736427 | ||
|
|
ac3b6f6df8 | ||
|
|
a4444ccb68 | ||
|
|
270a0dcb1f | ||
|
|
a889bec4d8 | ||
|
|
7ee9bc32eb | ||
|
|
fd62c1fa3d | ||
|
|
a445cfe65e | ||
|
|
e20a9925dd | ||
|
|
09a4fb2515 | ||
|
|
cce7389a42 | ||
|
|
b138ea7a47 | ||
|
|
3b708ce079 | ||
|
|
4441618be5 | ||
|
|
0525c9ab40 | ||
|
|
0035e7c3ff | ||
|
|
073060d253 | ||
|
|
55980a1c2c | ||
|
|
852a2cf157 | ||
|
|
2e6ee57162 | ||
|
|
5c54f16ece | ||
|
|
04a13268ad | ||
|
|
49fdac7528 | ||
|
|
75f6ef4bae | ||
|
|
9fd608691b | ||
|
|
a70a45f062 | ||
|
|
61b0845f19 | ||
|
|
369c643ed8 | ||
|
|
6c75ff6c98 | ||
|
|
788a1f0a13 | ||
|
|
30d618267f | ||
|
|
8302253f84 | ||
|
|
932ede865b | ||
|
|
e1d6a14df6 | ||
|
|
d796d34a8a | ||
|
|
b9665a8af4 | ||
|
|
204d212323 | ||
|
|
04528a635b | ||
|
|
15522a98b0 | ||
|
|
db1c18075f | ||
|
|
3b556e9d79 | ||
|
|
8761273636 | ||
|
|
08efe80304 | ||
|
|
c4258c5bb0 | ||
|
|
58799888b7 | ||
|
|
fb6d57963b | ||
|
|
03f228c0ef | ||
|
|
93ae368f58 | ||
|
|
378752e155 | ||
|
|
bec307900d | ||
|
|
cc1d88c4c8 | ||
|
|
72eef3e224 | ||
|
|
84f6833597 | ||
|
|
2a94abdc49 | ||
|
|
fab5f34aaa | ||
|
|
76f79e5380 | ||
|
|
1b25029207 | ||
|
|
8df2a5436b | ||
|
|
72f005b7fe | ||
|
|
0eac10d5a6 | ||
|
|
2a42f02aec | ||
|
|
7c48cfd0f7 | ||
|
|
bba796d551 | ||
|
|
a855f3e62c | ||
|
|
5079e7e891 | ||
|
|
ddc948fa94 | ||
|
|
f88f2b25ea | ||
|
|
ea59dab7ab | ||
|
|
f0914c2214 | ||
|
|
b3e76c3ecc | ||
|
|
a4d5acb0b8 | ||
|
|
79b66f17b6 | ||
|
|
bcb6c7a1d4 | ||
|
|
36198c684f | ||
|
|
a3a60c5967 | ||
|
|
6df3cb5c12 | ||
|
|
0611329a6d | ||
|
|
2f90fca5ce | ||
|
|
e4e97190da | ||
|
|
9c748a85b4 | ||
|
|
78c2199d89 | ||
|
|
dc519e0aff | ||
|
|
c4978db302 | ||
|
|
70540ff51b | ||
|
|
3eb572ede5 | ||
|
|
f5e56b4d4a | ||
|
|
0612fe4e36 | ||
|
|
16cff1a098 | ||
|
|
0e67906d1e | ||
|
|
4c602cba2e | ||
|
|
89255e2ec9 | ||
|
|
372b3662e9 | ||
|
|
e007dbaf4c | ||
|
|
dd6ca9d351 | ||
|
|
732c510b98 | ||
|
|
9aea8ed218 | ||
|
|
4c66ece044 | ||
|
|
dbe07af426 | ||
|
|
62298c55b8 | ||
|
|
7c51fbda1b | ||
|
|
e4afae66a3 | ||
|
|
f67f9b9399 | ||
|
|
c6c5328418 | ||
|
|
accbfc2b45 | ||
|
|
9976f2b7a3 | ||
|
|
f249563b2c | ||
|
|
8d10eff9df | ||
|
|
09e023917c | ||
|
|
799b86b287 | ||
|
|
4b028562d8 | ||
|
|
ea1bcf8e5d | ||
|
|
395dce457d | ||
|
|
2bf7eceb8e | ||
|
|
ee93e25ffd | ||
|
|
d25f664be3 | ||
|
|
3bffe4f7cb | ||
|
|
f140dd9d44 | ||
|
|
d44747b39a | ||
|
|
f2da9d8d7d | ||
|
|
5483ef7cd4 | ||
|
|
85d212ba97 | ||
|
|
44af09580a | ||
|
|
530fca95e4 | ||
|
|
59ae7e39f2 | ||
|
|
72167d14d2 | ||
|
|
2c6568acd1 | ||
|
|
e27c216a05 | ||
|
|
7b4c148dd7 | ||
|
|
a924520dd6 | ||
|
|
1c3e463ac6 | ||
|
|
e88eb6dd85 | ||
|
|
59dfa994bd | ||
|
|
6959ce4d38 | ||
|
|
08bc0082cf | ||
|
|
6069d74a54 | ||
|
|
68ee7030f1 | ||
|
|
81342acccc | ||
|
|
e029f33901 | ||
|
|
7bd8cff137 | ||
|
|
055dcfa0e1 | ||
|
|
8acf417383 | ||
|
|
b50e1aee8a | ||
|
|
c714bce17e | ||
|
|
a9a8e48489 | ||
|
|
9dec840818 | ||
|
|
9af125ca6d | ||
|
|
1f4fabe6ef | ||
|
|
121f36704d | ||
|
|
85ff545c07 | ||
|
|
3662c84de5 | ||
|
|
79558fdfbf | ||
|
|
11040f272a | ||
|
|
fa2716c65c | ||
|
|
768b06e35a | ||
|
|
0820c23aea | ||
|
|
361fbaa366 | ||
|
|
a91359f2af | ||
|
|
4bfabf82ae | ||
|
|
c90f556fe9 | ||
|
|
352b190a72 | ||
|
|
e9b0bd9e65 | ||
|
|
c8ea808d93 | ||
|
|
d40c3e6241 | ||
|
|
e94f789b72 | ||
|
|
9ff44c49a6 | ||
|
|
c7b933ba00 | ||
|
|
6765b25803 | ||
|
|
59b60f5dad | ||
|
|
2822992843 | ||
|
|
1b82aa859f | ||
|
|
12be637f85 | ||
|
|
3bd9d11fc3 | ||
|
|
e864d6b03e | ||
|
|
547db7c1f5 | ||
|
|
d6516e4a4c | ||
|
|
2387b4a771 | ||
|
|
b03d43156d | ||
|
|
07423712a6 | ||
|
|
81735d07c9 | ||
|
|
03e328fd13 | ||
|
|
7efcf00baf | ||
|
|
a3254466f7 | ||
|
|
f8dc504773 |
No files matched your search
+12
-4
@@ -8,15 +8,23 @@ end_of_line = lf
|
|||||||
charset = utf-8
|
charset = utf-8
|
||||||
insert_final_newline = true
|
insert_final_newline = true
|
||||||
trim_trailing_whitespace = true
|
trim_trailing_whitespace = true
|
||||||
|
indent_style = space
|
||||||
|
max_line_length = 90
|
||||||
|
|
||||||
[**.py]
|
[**.py]
|
||||||
indent_style = tab
|
|
||||||
indent_size = 4
|
indent_size = 4
|
||||||
|
|
||||||
|
[**.yaml]
|
||||||
|
indent_size = 2
|
||||||
|
|
||||||
[src/octoprint/static/js/app/**.js]
|
[src/octoprint/static/js/app/**.js]
|
||||||
indent_style = space
|
|
||||||
indent_size = 4
|
indent_size = 4
|
||||||
|
|
||||||
[.travis.yml]
|
[src/octoprint/static/js/login/**.js]
|
||||||
indent_style = space
|
indent_size = 4
|
||||||
|
|
||||||
|
[src/octoprint/static/js/recovery/**.js]
|
||||||
|
indent_size = 4
|
||||||
|
|
||||||
|
[src/octoprint/static/less/octoprint.less]
|
||||||
indent_size = 2
|
indent_size = 2
|
||||||
@@ -0,0 +1,40 @@
|
|||||||
|
overrides:
|
||||||
|
- files:
|
||||||
|
- "src/octoprint/static/js/app/**"
|
||||||
|
env:
|
||||||
|
browser: true
|
||||||
|
jquery: true
|
||||||
|
parserOptions:
|
||||||
|
ecmaVersion: 5
|
||||||
|
rules:
|
||||||
|
es5/no-arrow-functions: error
|
||||||
|
es5/no-binary-and-octal-literals: error
|
||||||
|
es5/no-block-scoping: error
|
||||||
|
es5/no-classes: error
|
||||||
|
es5/no-computed-properties: error
|
||||||
|
es5/no-default-parameters: error
|
||||||
|
es5/no-destructuring: error
|
||||||
|
es5/no-exponentiation-operator: error
|
||||||
|
es5/no-for-of: error
|
||||||
|
es5/no-generators: error
|
||||||
|
es5/no-modules: error
|
||||||
|
es5/no-object-super: error
|
||||||
|
es5/no-rest-parameters: error
|
||||||
|
es5/no-shorthand-properties: error
|
||||||
|
es5/no-spread: error
|
||||||
|
es5/no-template-literals: error
|
||||||
|
es5/no-typeof-symbol: error
|
||||||
|
es5/no-unicode-code-point-escape: error
|
||||||
|
es5/no-unicode-regex: error
|
||||||
|
- files:
|
||||||
|
- "tests/cypress/**"
|
||||||
|
env:
|
||||||
|
node: true
|
||||||
|
es6: true
|
||||||
|
cypress/globals: true
|
||||||
|
extends:
|
||||||
|
- "plugin:cypress/recommended"
|
||||||
|
|
||||||
|
plugins:
|
||||||
|
- eslint-plugin-es5
|
||||||
|
- cypress
|
||||||
@@ -0,0 +1,16 @@
|
|||||||
|
# refs to ignore during git blame, use with --ignore-revs-file
|
||||||
|
|
||||||
|
# Switch to black formatting
|
||||||
|
1f93b2355a2816918e11a55e61b42010d15a6720
|
||||||
|
5f2a95d154650366078b0d387e5b01427c4340c0
|
||||||
|
|
||||||
|
# Switch to prettier formatting
|
||||||
|
6b44909f21ee39237b7504cd31ffa6cf28275c33
|
||||||
|
|
||||||
|
# EOF/trailing whitespace check
|
||||||
|
#cae6730ea87da18bd6ebfeaf3e1e9cd354390939
|
||||||
|
|
||||||
|
# dict_to_literal, set_to_literal, not_in, flake8 fixes
|
||||||
|
#af60fd642832736966104ae71d852d745397c749
|
||||||
|
#986312b6ae7eeadcaf620cc99d53b23794be83b6
|
||||||
|
#b5be8f3eaec18ae2a88110a3a16c552931d493dd
|
||||||
@@ -0,0 +1,3 @@
|
|||||||
|
# someone from the docker-maintainers team will be requested for review
|
||||||
|
# whenever the trigger_docker workflow is changed in a Pull Request
|
||||||
|
.github/workflows/trigger_docker.yml @OctoPrint/docker-maintainers
|
||||||
@@ -0,0 +1,5 @@
|
|||||||
|
# These are supported funding model platforms
|
||||||
|
|
||||||
|
github: [foosel]
|
||||||
|
patreon: foosel
|
||||||
|
custom: https://octoprint.org/support-octoprint/
|
||||||
@@ -1,135 +0,0 @@
|
|||||||
---
|
|
||||||
name: Bug report
|
|
||||||
about: Create a report to help improve OctoPrint
|
|
||||||
|
|
||||||
---
|
|
||||||
|
|
||||||
<!--
|
|
||||||
READ THE FOLLOWING FIRST:
|
|
||||||
|
|
||||||
If not already done, please read the the Contribution Guidelines that
|
|
||||||
are linked to the right under "Helpful resources" > "Contributing".
|
|
||||||
|
|
||||||
Also read the FAQ: https://faq.octoprint.org
|
|
||||||
|
|
||||||
This is a bug and feature tracker, please only use it to report bugs
|
|
||||||
or request features within OctoPrint (not OctoPi, not any OctoPrint
|
|
||||||
plugins and not unofficial OctoPrint versions).
|
|
||||||
|
|
||||||
Do not seek support here ("I need help with ...", "I have a
|
|
||||||
question ..."), that belongs on the community forum at
|
|
||||||
community.octoprint.org, NOT here.
|
|
||||||
|
|
||||||
Mark requests with a "[Request]" prefix in the title please. For bug
|
|
||||||
reports fully fill out the bug reporting template (if you don't know
|
|
||||||
where to find some information - it's all described in the Contribution
|
|
||||||
Guidelines linked up there in the big yellow box).
|
|
||||||
|
|
||||||
When reporting a bug do NOT delete ANY lines from the template.
|
|
||||||
|
|
||||||
Make sure any bug you want to report is still present with the CURRENT
|
|
||||||
OctoPrint version and that it does not vanish when you start OctoPrint
|
|
||||||
in safe mode - how to do that is also explained in the Contribution
|
|
||||||
Guidelines linked up there in the big yellow box.
|
|
||||||
|
|
||||||
Thank you!
|
|
||||||
-->
|
|
||||||
|
|
||||||
#### What were you doing?
|
|
||||||
|
|
||||||
<!--
|
|
||||||
Please be as specific as possible here. The maintainers will need to
|
|
||||||
reproduce your issue in order to fix it and that is not possible if they
|
|
||||||
don't know what you did to get it to happen in the first place.
|
|
||||||
|
|
||||||
Ideally provide exact steps to follow in order to reproduce your problem:
|
|
||||||
-->
|
|
||||||
|
|
||||||
1. Go to '...'
|
|
||||||
2. Click on '....'
|
|
||||||
3. Scroll down to '....'
|
|
||||||
4. See error
|
|
||||||
|
|
||||||
<!--
|
|
||||||
If you encountered a problem with specific files of any sorts, make sure
|
|
||||||
to also include a link to a file with which to reproduce the problem.
|
|
||||||
-->
|
|
||||||
|
|
||||||
#### What did you expect to happen?
|
|
||||||
|
|
||||||
#### What happened instead?
|
|
||||||
|
|
||||||
#### Did the same happen when running OctoPrint in safe mode?
|
|
||||||
|
|
||||||
<!--
|
|
||||||
Test if you can reproduce your problem in safe mode. You can find information
|
|
||||||
on how to enable safe mode in the Contribution Guidelines.
|
|
||||||
|
|
||||||
If you can't reproduce in safe mode, this is a bug with one of your
|
|
||||||
installed third party plugins. Don't open a ticket here!
|
|
||||||
|
|
||||||
If you can't test this in safe mode, state why.
|
|
||||||
-->
|
|
||||||
|
|
||||||
#### Version of OctoPrint
|
|
||||||
|
|
||||||
<!--
|
|
||||||
Can be found in the lower left corner of the web interface. ALWAYS INCLUDE.
|
|
||||||
-->
|
|
||||||
|
|
||||||
#### Operating System running OctoPrint
|
|
||||||
|
|
||||||
<!--
|
|
||||||
OctoPi, Linux, Windows, MacOS, something else? With version please.
|
|
||||||
OctoPi's version can be found in /etc/octopi_version or in the lower left
|
|
||||||
corner of the web interface.
|
|
||||||
-->
|
|
||||||
|
|
||||||
#### Printer model & used firmware incl. version
|
|
||||||
|
|
||||||
<!--
|
|
||||||
If applicable, always include if unsure.
|
|
||||||
-->
|
|
||||||
|
|
||||||
#### Browser and version of browser, operating system running browser
|
|
||||||
|
|
||||||
<!--
|
|
||||||
If applicable, always include if unsure.
|
|
||||||
-->
|
|
||||||
|
|
||||||
#### Link to octoprint.log
|
|
||||||
|
|
||||||
<!--
|
|
||||||
On gist.github.com or pastebin.com. ALWAYS INCLUDE and never truncate.
|
|
||||||
|
|
||||||
The Contribution Guidelines tell you where to find that.
|
|
||||||
-->
|
|
||||||
|
|
||||||
#### Link to contents of terminal tab or serial.log
|
|
||||||
|
|
||||||
<!--
|
|
||||||
On gist.github.com or pastebin.com. If applicable, always include if unsure or
|
|
||||||
reporting communication issues. Never truncate.
|
|
||||||
|
|
||||||
serial.log is usually not written due to performance reasons and must be
|
|
||||||
enabled explicitly. Provide at the very least the FULL contents of your
|
|
||||||
terminal tab at the time of the bug occurrence, even if you do not have
|
|
||||||
a serial.log (which the Contribution Guidelines tell you where to find).
|
|
||||||
-->
|
|
||||||
|
|
||||||
#### Link to contents of Javascript console in the browser
|
|
||||||
|
|
||||||
<!--
|
|
||||||
On gist.github.com or pastebin.com or alternatively a screenshot. If applicable -
|
|
||||||
always include if unsure or reporting UI issues.
|
|
||||||
|
|
||||||
The Contribution Guidelines tell you where to find that.
|
|
||||||
-->
|
|
||||||
|
|
||||||
#### Screenshot(s)/video(s) showing the problem:
|
|
||||||
|
|
||||||
<!--
|
|
||||||
If applicable. Always include if unsure or reporting UI issues.
|
|
||||||
-->
|
|
||||||
|
|
||||||
I have read the FAQ.
|
|
||||||
@@ -0,0 +1,130 @@
|
|||||||
|
name: 🐛 Report a bug
|
||||||
|
description: Create a bug report to help improve OctoPrint
|
||||||
|
body:
|
||||||
|
- type: markdown
|
||||||
|
attributes:
|
||||||
|
value: >
|
||||||
|
**Thank you for wanting to report a bug in OctoPrint!**
|
||||||
|
|
||||||
|
|
||||||
|
If this is the first time you are doing this, please take a few moments to read
|
||||||
|
through the [Contribution Guidelines](https://github.com/OctoPrint/OctoPrint/blob/master/CONTRIBUTING.md).
|
||||||
|
Also check out [the FAQ](https://faq.octoprint.org) if your
|
||||||
|
problem is maybe already covered there.
|
||||||
|
|
||||||
|
|
||||||
|
You are about to report a bug in **OctoPrint**. Do not proceed if your issues
|
||||||
|
occurs with OctoPi, any third party OctoPrint plugins, unofficial or outdated
|
||||||
|
OctoPrint versions. If you are unsure of the difference between OctoPrint and
|
||||||
|
OctoPi, [read this FAQ entry](https://faq.octoprint.org/octoprint-vs-octopi).
|
||||||
|
|
||||||
|
|
||||||
|
Do also not seek support here ("I need help with ...", "I have a
|
||||||
|
question ...", "Can someone walk me through ..."), that belongs into the
|
||||||
|
[community forum at community.octoprint.org](https://community.octoprint.org) or on the [Discord server](https://discord.octoprint.org).
|
||||||
|
|
||||||
|
|
||||||
|
And finally, make sure any bug you want to report is still present with the **current**
|
||||||
|
OctoPrint version and that it does not vanish when you start OctoPrint
|
||||||
|
in [safe mode](https://docs.octoprint.org/en/master/features/safemode.html) either.
|
||||||
|
|
||||||
|
|
||||||
|
Thank you for your collaboration!
|
||||||
|
- type: textarea
|
||||||
|
attributes:
|
||||||
|
label: The problem
|
||||||
|
description: >-
|
||||||
|
Describe the issue you are experiencing here. Tell us what you were trying to do
|
||||||
|
step by step, and what happened that you did not expect.
|
||||||
|
|
||||||
|
Provide a clear and concise description of what the problem is and include as many
|
||||||
|
details as possible.
|
||||||
|
placeholder: |
|
||||||
|
1. ...
|
||||||
|
2. ...
|
||||||
|
3. ...
|
||||||
|
validations:
|
||||||
|
required: true
|
||||||
|
- type: dropdown
|
||||||
|
attributes:
|
||||||
|
label: Did the issue persist even in safe mode?
|
||||||
|
description: >-
|
||||||
|
Testing in safe mode is required to make sure the issue you are reporting is not
|
||||||
|
caused by a third party plugin. Please see [here](https://docs.octoprint.org/en/master/features/safemode.html)
|
||||||
|
on how to run OctoPrint in safe mode.
|
||||||
|
options:
|
||||||
|
- Yes, it did persist
|
||||||
|
- No, it did not persist (it's an issue with one of your installed plugins, don't report here)
|
||||||
|
- I cannot test this issue in safe mode (state why below)
|
||||||
|
validations:
|
||||||
|
required: true
|
||||||
|
- type: input
|
||||||
|
attributes:
|
||||||
|
label: If you could not test in safe mode, please state why
|
||||||
|
description: >-
|
||||||
|
Issues caused by a third party plugin are a major cause of bugs reported here, so we really need to
|
||||||
|
rule out that a plugin is at fault here. [Safe mode](https://docs.octoprint.org/en/master/features/safemode.html) is an easy way to do that. Only skip safe mode
|
||||||
|
if your particular problem *absolutely requires* third party plugins to be enabled. "It would take
|
||||||
|
too long" is **not** a reason to skip testing in safe mode, neither is "I do not know how to
|
||||||
|
enable it" as you can find info on that [here](https://docs.octoprint.org/en/master/features/safemode.html).
|
||||||
|
|
||||||
|
If you really *cannot* test in safe mode, leave a short explanation as to why.
|
||||||
|
- type: markdown
|
||||||
|
attributes:
|
||||||
|
value: |
|
||||||
|
## Environment
|
||||||
|
- type: input
|
||||||
|
attributes:
|
||||||
|
label: Version of OctoPrint
|
||||||
|
description: Can be found in the lower left corner of the web interface.
|
||||||
|
validations:
|
||||||
|
required: true
|
||||||
|
- type: input
|
||||||
|
attributes:
|
||||||
|
label: Operating system running OctoPrint
|
||||||
|
description: >-
|
||||||
|
OctoPi, Linux, Windows, MacOS, something else? With version please? OctoPi's
|
||||||
|
version can be found in `/etc/octopi_version` or in the lower left corner of the
|
||||||
|
web interface.
|
||||||
|
validations:
|
||||||
|
required: true
|
||||||
|
- type: input
|
||||||
|
attributes:
|
||||||
|
label: Printer model & used firmware incl. version
|
||||||
|
description: If applicable, always include if unsure
|
||||||
|
- type: input
|
||||||
|
attributes:
|
||||||
|
label: Browser and version of browser, operating system running browser
|
||||||
|
description: If applicable, always include if unsure
|
||||||
|
- type: markdown
|
||||||
|
attributes:
|
||||||
|
value: |
|
||||||
|
## Logs and other files needed for analysis
|
||||||
|
- type: markdown
|
||||||
|
attributes:
|
||||||
|
value: >-
|
||||||
|
Please also be sure to upload the following files below:
|
||||||
|
|
||||||
|
* Systeminfo Bundle: See [here](https://community.octoprint.org/t/what-is-a-systeminfo-bundle-and-how-can-i-obtain-one/29887) if you don't know where to find that. Just attach down below as-is. Note that you'll need at least OctoPrint 1.6.0 for this to be available - we no longer accept bug reports created for older versions than this.
|
||||||
|
* If you are reporting an issue that involves communicating with you printer, **be sure to enable `serial.log` before reproducing and creating the Systeminfo Bundle**!
|
||||||
|
* Your browser's JavaScript console, if you are reporting a problem with the
|
||||||
|
user interface. See [here](https://webmasters.stackexchange.com/questions/8525/how-to-open-the-javascript-console-in-different-browsers) on where to find that.
|
||||||
|
* If possible, screenshots or videos showing the problem, especially if you
|
||||||
|
are reporting a problem with the user interface!
|
||||||
|
* GCODE files with which to reproduce, if you are reporting an issue with
|
||||||
|
GCODE file analysis or printing behaviour.
|
||||||
|
|
||||||
|
Please be aware that unless at least Systeminfo Bundle is included, your bug report
|
||||||
|
will not be processed and closed after a while.
|
||||||
|
- type: checkboxes
|
||||||
|
attributes:
|
||||||
|
label: Checklist of files to include below
|
||||||
|
options:
|
||||||
|
- label: Systeminfo Bundle (always include!)
|
||||||
|
required: true
|
||||||
|
- label: Contents of the JavaScript browser console (always include in cases of issues with the user interface)
|
||||||
|
- label: Screenshots and/or videos showing the problem (always include in case of issues with the user interface)
|
||||||
|
- label: GCODE file with which to reproduce (always include in case of issues with GCODE analysis or printing behaviour)
|
||||||
|
- type: textarea
|
||||||
|
attributes:
|
||||||
|
label: Additional information & file uploads
|
||||||
@@ -0,0 +1,7 @@
|
|||||||
|
contact_links:
|
||||||
|
- name: 🤔 Have questions or need support?
|
||||||
|
url: https://community.octoprint.org
|
||||||
|
about: Please get in touch on the OctoPrint Community Forums!
|
||||||
|
- name: 💸 Want to donate?
|
||||||
|
url: https://support.octoprint.org
|
||||||
|
about: Please take a look at the various options to support OctoPrint's development financially!
|
||||||
@@ -1,21 +0,0 @@
|
|||||||
---
|
|
||||||
name: Feature request
|
|
||||||
about: Suggest an idea for this project
|
|
||||||
|
|
||||||
---
|
|
||||||
|
|
||||||
<!--
|
|
||||||
Please make sure to add [Request] to your issue's title. Thank you!
|
|
||||||
-->
|
|
||||||
|
|
||||||
**Is your feature request related to a problem? Please describe.**
|
|
||||||
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
|
|
||||||
|
|
||||||
**Describe the solution you'd like**
|
|
||||||
A clear and concise description of what you want to happen.
|
|
||||||
|
|
||||||
**Describe alternatives you've considered**
|
|
||||||
A clear and concise description of any alternative solutions or features you've considered.
|
|
||||||
|
|
||||||
**Additional context**
|
|
||||||
Add any other context or screenshots about the feature request here.
|
|
||||||
@@ -0,0 +1,34 @@
|
|||||||
|
name: ✨ Request a feature
|
||||||
|
description: Request a new feature to implement in OctoPrint
|
||||||
|
title: "[Request]"
|
||||||
|
body:
|
||||||
|
- type: markdown
|
||||||
|
attributes:
|
||||||
|
value: >
|
||||||
|
**Thank you for wanting to request a feature in OctoPrint!**
|
||||||
|
|
||||||
|
|
||||||
|
Before you go ahead with your request, please first consider if it wouldn't be
|
||||||
|
better suited for a plugin. As a general rule of thumb, any feature that is only
|
||||||
|
of interest to a small sub group should be moved into a plugin. Only such features
|
||||||
|
that are of interest to a majority of OctoPrint's users will be implemented as
|
||||||
|
part of the core itself.
|
||||||
|
|
||||||
|
- type: textarea
|
||||||
|
attributes:
|
||||||
|
label: Is your feature request related to a problem? Please describe.
|
||||||
|
description: A clear and concise description of what the problem is. Eg, "I'm always frustrated when [...]".
|
||||||
|
- type: textarea
|
||||||
|
attributes:
|
||||||
|
label: Describe the solution you'd like
|
||||||
|
description: A clear and concise description of what you want to happen. Explain why it needs to be included in OctoPrint's core and can't become a plugin.
|
||||||
|
validations:
|
||||||
|
required: true
|
||||||
|
- type: textarea
|
||||||
|
attributes:
|
||||||
|
label: Describe alternatives you've considered
|
||||||
|
description: A clear and concise description of any alternative solutions or features you've considered.
|
||||||
|
- type: textarea
|
||||||
|
attributes:
|
||||||
|
label: Additional context
|
||||||
|
description: Add any other context or screenshots about the feature request here.
|
||||||
@@ -16,14 +16,15 @@ checklist:
|
|||||||
made sure your changes don't interfere with current development by
|
made sure your changes don't interfere with current development by
|
||||||
talking it through with the maintainers, e.g. through a
|
talking it through with the maintainers, e.g. through a
|
||||||
Brainstorming ticket
|
Brainstorming ticket
|
||||||
* [ ] Your PR targets OctoPrint's devel branch, or maintenance if it's
|
* [ ] Your PR targets OctoPrint's devel branch if it's a completely
|
||||||
a bug fix for an issue present in the current stable version (no PRs
|
new feature, or maintenance if it's a bug fix or improvement of
|
||||||
|
existing functionality for the current stable version (no PRs
|
||||||
against master or anything else please)
|
against master or anything else please)
|
||||||
* [ ] Your PR was opened from a custom branch on your repository
|
* [ ] Your PR was opened from a custom branch on your repository
|
||||||
(no PRs from your version of master, maintenance or devel please),
|
(no PRs from your version of master, maintenance or devel please),
|
||||||
e.g. dev/my_new_feature or fix/my_bugfix
|
e.g. dev/my_new_feature or fix/my_bugfix
|
||||||
* [ ] Your PR only contains relevant changes: no unrelated files,
|
* [ ] Your PR only contains relevant changes: no unrelated files,
|
||||||
no dead code, ideally only one commit - rebase and squash your PR
|
no dead code, ideally only one commit - rebase and squash your PR
|
||||||
if necessary!
|
if necessary!
|
||||||
* [ ] Your changes follow the existing coding style
|
* [ ] Your changes follow the existing coding style
|
||||||
* [ ] If your changes include style sheets: You have modified the
|
* [ ] If your changes include style sheets: You have modified the
|
||||||
@@ -36,7 +37,7 @@ checklist:
|
|||||||
* [ ] You have added yourself to the AUTHORS.md file :)
|
* [ ] You have added yourself to the AUTHORS.md file :)
|
||||||
|
|
||||||
<!--
|
<!--
|
||||||
Describe your PR further using the template provided below. The more
|
Describe your PR further using the template provided below. The more
|
||||||
details the better!
|
details the better!
|
||||||
-->
|
-->
|
||||||
|
|
||||||
|
|||||||
@@ -0,0 +1,18 @@
|
|||||||
|
accessControl:
|
||||||
|
salt: zXmvzI3uWuTLkSPOEfA2ZLwn3f3sGUNS
|
||||||
|
plugins:
|
||||||
|
virtual_printer:
|
||||||
|
enabled: true
|
||||||
|
tracking:
|
||||||
|
enabled: false
|
||||||
|
server:
|
||||||
|
firstRun: false
|
||||||
|
onlineCheck:
|
||||||
|
enabled: false
|
||||||
|
pluginBlacklist:
|
||||||
|
enabled: false
|
||||||
|
secretKey: rrdHjvmeGMPSdYWg2NGdiM7mpz9pjekk
|
||||||
|
seenWizards:
|
||||||
|
backup: null
|
||||||
|
corewizard: 3
|
||||||
|
tracking: null
|
||||||
@@ -0,0 +1,22 @@
|
|||||||
|
admin:
|
||||||
|
active: true
|
||||||
|
apikey: null
|
||||||
|
groups:
|
||||||
|
- admins
|
||||||
|
- users
|
||||||
|
password: 3033587f3b040680c77ce4fb7e8d61422878ef49a2a784227689f3b44ce66ada7f6161f8b2b037267f0d37b783a5600276eb88e1d224d24915f64e187a49a89f
|
||||||
|
permissions: []
|
||||||
|
roles:
|
||||||
|
- user
|
||||||
|
- admin
|
||||||
|
settings: {}
|
||||||
|
user:
|
||||||
|
active: true
|
||||||
|
apikey: null
|
||||||
|
groups:
|
||||||
|
- users
|
||||||
|
password: 3033587f3b040680c77ce4fb7e8d61422878ef49a2a784227689f3b44ce66ada7f6161f8b2b037267f0d37b783a5600276eb88e1d224d24915f64e187a49a89f
|
||||||
|
permissions: []
|
||||||
|
roles:
|
||||||
|
- user
|
||||||
|
settings: {}
|
||||||
@@ -0,0 +1,62 @@
|
|||||||
|
approve_label: approved
|
||||||
|
problem_label: incomplete
|
||||||
|
ignored_labels:
|
||||||
|
- approved
|
||||||
|
- bug
|
||||||
|
- request
|
||||||
|
- improvement
|
||||||
|
- brainstorming
|
||||||
|
- task
|
||||||
|
- rc feedback
|
||||||
|
- awaiting information
|
||||||
|
- not octoprint
|
||||||
|
- done
|
||||||
|
ignored_authors:
|
||||||
|
- "@OctoPrint"
|
||||||
|
- "sentry-io"
|
||||||
|
- "FormerLurker"
|
||||||
|
- "bzed"
|
||||||
|
|
||||||
|
validation_comment: >
|
||||||
|
Hi @@@AUTHOR@@,
|
||||||
|
|
||||||
|
|
||||||
|
it looks like there is some **information missing** from your bug report that will
|
||||||
|
be needed in order to solve the problem. Read the [Contribution Guidelines](https://github.com/OctoPrint/OctoPrint/blob/master/CONTRIBUTING.md)
|
||||||
|
which will provide you with a template to *fully fill out* here so that your bug report
|
||||||
|
is ready to be investigated (I promise I'll go away then too!).
|
||||||
|
|
||||||
|
|
||||||
|
If you did not intend to report a bug but wanted to **request a feature or brain
|
||||||
|
storm** about some kind of development, please take special note of the title format
|
||||||
|
to use as described in the [Contribution Guidelines](https://github.com/OctoPrint/OctoPrint/blob/master/CONTRIBUTING.md).
|
||||||
|
|
||||||
|
|
||||||
|
**Please do not abuse the bug tracker as a support forum** - that can be found at
|
||||||
|
[community.octoprint.org](https://community.octoprint.org). Go there for any kind
|
||||||
|
of issues with network connectivity, webcam functionality, printer detection or
|
||||||
|
any other kind of such support requests or general questions.
|
||||||
|
|
||||||
|
|
||||||
|
Also **make sure you are at the right place** - this is the bug tracker of the official
|
||||||
|
version of OctoPrint, not the Raspberry Pi image OctoPi nor any unbundled third
|
||||||
|
party OctoPrint plugins or unofficial versions. Make sure too that you have **read
|
||||||
|
through the [Frequently Asked Questions](http://faq.octoprint.org)** and searched
|
||||||
|
the [**existing tickets**](https://github.com/OctoPrint/OctoPrint/issues)
|
||||||
|
for your problem - try multiple search terms please.
|
||||||
|
|
||||||
|
|
||||||
|
I'm marking this one now as needing some more information. Please understand that
|
||||||
|
if you do not provide that information within the next two weeks
|
||||||
|
I'll close this ticket so it doesn't clutter the bug tracker. This is nothing
|
||||||
|
personal, it's needed to keep this project manageable. Please just be considerate
|
||||||
|
and help the maintainers solve this problem
|
||||||
|
quickly by following the guidelines linked above. Remember, the less time the devs
|
||||||
|
have to spend running after information on tickets, the more time they have to actually
|
||||||
|
solve problems and add awesome new features. Thank you!
|
||||||
|
|
||||||
|
|
||||||
|
*I'm just a bot 🤖, not a human being, so don't expect any replies
|
||||||
|
from me :) Your ticket is read by humans too, I'm just not one of them.*
|
||||||
|
|
||||||
|
keyphrase: I have read the FAQ
|
||||||
@@ -0,0 +1,25 @@
|
|||||||
|
docs:
|
||||||
|
- "docs/*"
|
||||||
|
- "docs/**/*"
|
||||||
|
- "README.md"
|
||||||
|
|
||||||
|
meta:
|
||||||
|
- "CODE_OF_CONDUCT.md"
|
||||||
|
- "CONTRIBUTING.md"
|
||||||
|
- "SECURITY.md"
|
||||||
|
- ".github/CODEOWNERS"
|
||||||
|
- ".github/FUNDING.yml"
|
||||||
|
- ".github/ISSUE_TEMPLATE/*"
|
||||||
|
- ".github/PULL_REQUEST_TEMPLATE.md"
|
||||||
|
|
||||||
|
ci/cd:
|
||||||
|
- ".github/fixtures/**/*"
|
||||||
|
- ".github/workflows/*"
|
||||||
|
- ".github/labeler.yml"
|
||||||
|
|
||||||
|
docker:
|
||||||
|
- ".github/workflows/trigger_docker.yml"
|
||||||
|
|
||||||
|
tests:
|
||||||
|
- "tests/*"
|
||||||
|
- "tests/**/*"
|
||||||
@@ -0,0 +1,15 @@
|
|||||||
|
approve_label: "approved"
|
||||||
|
problem_label: "needs some work"
|
||||||
|
ignore_label: "skip validation"
|
||||||
|
|
||||||
|
allowed_targets: ["maintenance", "devel", "staging/maintenance", "staging/devel"]
|
||||||
|
forbidden_sources:
|
||||||
|
["master", "maintenance", "devel", "staging/maintenance", "staging/devel"]
|
||||||
|
|
||||||
|
labels:
|
||||||
|
docs:
|
||||||
|
additional_allowed_targets: ["master"]
|
||||||
|
meta:
|
||||||
|
additional_allowed_targets: ["master"]
|
||||||
|
ci/cd:
|
||||||
|
additional_allowed_targets: ["master"]
|
||||||
@@ -0,0 +1,196 @@
|
|||||||
|
name: Build
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
pull_request:
|
||||||
|
release:
|
||||||
|
types: [published]
|
||||||
|
workflow_dispatch:
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
name: 🔨 Build distribution
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v2
|
||||||
|
with:
|
||||||
|
fetch-depth: 0
|
||||||
|
- name: 🏗 Set up Python 3.7
|
||||||
|
uses: actions/setup-python@v1
|
||||||
|
with:
|
||||||
|
python-version: 3.7
|
||||||
|
- name: 🏗 Install build dependencies
|
||||||
|
run: |
|
||||||
|
python -m pip install wheel --user
|
||||||
|
- name: 🔨 Build a binary wheel and a source tarball
|
||||||
|
run: |
|
||||||
|
python setup.py sdist bdist_wheel
|
||||||
|
- name: ⬆ Upload build result
|
||||||
|
uses: actions/upload-artifact@v1
|
||||||
|
with:
|
||||||
|
name: dist
|
||||||
|
path: dist
|
||||||
|
|
||||||
|
pre-commit:
|
||||||
|
name: 🧹 Pre-commit
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v2
|
||||||
|
- name: 🏗 Set up Python 3.7
|
||||||
|
uses: actions/setup-python@v1
|
||||||
|
with:
|
||||||
|
python-version: 3.7
|
||||||
|
- name: 🏗 Set up dev dependencies
|
||||||
|
run: |
|
||||||
|
pip install -e .[develop]
|
||||||
|
- name: 🚀 Run pre-commit
|
||||||
|
run: |
|
||||||
|
pre-commit run --all-files --show-diff-on-failure
|
||||||
|
|
||||||
|
test-unit:
|
||||||
|
name: 🧪 Unit tests
|
||||||
|
strategy:
|
||||||
|
matrix:
|
||||||
|
python: ["3.7", "3.8", "3.9", "3.10"]
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v2
|
||||||
|
- name: 🏗 Set up Python ${{ matrix.python }}
|
||||||
|
uses: actions/setup-python@v1
|
||||||
|
with:
|
||||||
|
python-version: ${{ matrix.python }}
|
||||||
|
- name: 🏗 Set up test dependencies
|
||||||
|
run: |
|
||||||
|
pip install -e .[develop]
|
||||||
|
- name: 🚀 Run test suite
|
||||||
|
run: |
|
||||||
|
pytest
|
||||||
|
|
||||||
|
test-install:
|
||||||
|
name: 🧪 Installation tests
|
||||||
|
needs: build
|
||||||
|
strategy:
|
||||||
|
matrix:
|
||||||
|
python: ["3.7", "3.8", "3.9", "3.10"]
|
||||||
|
installable: ["wheel", "sdist"]
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: ⬇ Download build result
|
||||||
|
uses: actions/download-artifact@v1
|
||||||
|
with:
|
||||||
|
name: dist
|
||||||
|
path: dist
|
||||||
|
- name: 🏗 Set up Python ${{ matrix.python }}
|
||||||
|
uses: actions/setup-python@v1
|
||||||
|
with:
|
||||||
|
python-version: ${{ matrix.python }}
|
||||||
|
- name: 🚀 Install wheel
|
||||||
|
if: matrix.installable == 'wheel'
|
||||||
|
run: |
|
||||||
|
pip install dist/OctoPrint-*-py2.py3-none-any.whl
|
||||||
|
- name: 🚀 Install source tarball
|
||||||
|
if: matrix.installable == 'sdist'
|
||||||
|
run: |
|
||||||
|
pip install dist/OctoPrint-*.tar.gz
|
||||||
|
|
||||||
|
test-e2e:
|
||||||
|
name: 🧪 E2E tests
|
||||||
|
needs: build
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: ⬇ Checkout code
|
||||||
|
uses: actions/checkout@v2
|
||||||
|
|
||||||
|
- name: ⬇ Download build result
|
||||||
|
uses: actions/download-artifact@v1
|
||||||
|
with:
|
||||||
|
name: dist
|
||||||
|
path: dist
|
||||||
|
- name: 🏗 Set up Python 3.7
|
||||||
|
uses: actions/setup-python@v1
|
||||||
|
with:
|
||||||
|
python-version: 3.7
|
||||||
|
- name: 🚀 Install wheel
|
||||||
|
run: |
|
||||||
|
pip install dist/OctoPrint-*-py2.py3-none-any.whl
|
||||||
|
|
||||||
|
- name: 🏗 Create base config for test server
|
||||||
|
run: |
|
||||||
|
mkdir e2econfig
|
||||||
|
cp -r .github/fixtures/with_acl/* e2econfig
|
||||||
|
|
||||||
|
- name: 🚀 Run Cypress
|
||||||
|
uses: cypress-io/github-action@v2
|
||||||
|
with:
|
||||||
|
working-directory: tests/cypress
|
||||||
|
browser: chrome
|
||||||
|
start: "octoprint -b ${{ github.workspace }}/e2econfig serve --host 127.0.0.1 --port 5000"
|
||||||
|
wait-on: "http://127.0.0.1:5000/online.txt"
|
||||||
|
|
||||||
|
- name: ⬆ Upload screenshots
|
||||||
|
uses: actions/upload-artifact@v1
|
||||||
|
if: failure()
|
||||||
|
with:
|
||||||
|
name: cypress-screenshots
|
||||||
|
path: tests/cypress/screenshots
|
||||||
|
- name: ⬆ Upload videos
|
||||||
|
uses: actions/upload-artifact@v1
|
||||||
|
if: always()
|
||||||
|
with:
|
||||||
|
name: cypress-videos
|
||||||
|
path: tests/cypress/videos
|
||||||
|
|
||||||
|
publish-on-testpypi:
|
||||||
|
name: 📦 Publish on TestPyPI
|
||||||
|
if: github.event_name == 'release'
|
||||||
|
needs:
|
||||||
|
- pre-commit
|
||||||
|
- test-unit
|
||||||
|
- test-install
|
||||||
|
- test-e2e
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: ⬇ Download build result
|
||||||
|
uses: actions/download-artifact@v1
|
||||||
|
with:
|
||||||
|
name: dist
|
||||||
|
path: dist
|
||||||
|
- name: 📦 Publish to index
|
||||||
|
uses: pypa/gh-action-pypi-publish@master
|
||||||
|
continue-on-error: true
|
||||||
|
with:
|
||||||
|
password: ${{ secrets.testpypi_password }}
|
||||||
|
repository_url: https://test.pypi.org/legacy/
|
||||||
|
|
||||||
|
publish-on-pypi:
|
||||||
|
name: 📦 Publish tagged releases to PyPI
|
||||||
|
if: github.event_name == 'release'
|
||||||
|
needs: publish-on-testpypi
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: ⬇ Download build result
|
||||||
|
uses: actions/download-artifact@v1
|
||||||
|
with:
|
||||||
|
name: dist
|
||||||
|
path: dist
|
||||||
|
- name: 📦 Publish to index
|
||||||
|
uses: pypa/gh-action-pypi-publish@master
|
||||||
|
with:
|
||||||
|
password: ${{ secrets.pypi_password }}
|
||||||
|
|
||||||
|
notify-custopizer-build:
|
||||||
|
name: 📧 Notify OctoPi-UpToDate
|
||||||
|
if: github.event_name == 'release'
|
||||||
|
needs: publish-on-pypi
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: 👀 Determine version
|
||||||
|
run: |
|
||||||
|
OCTOPRINT_VERSION=$(echo $GITHUB_REF | cut -d/ -f3)
|
||||||
|
echo "OCTOPRINT_VERSION=$OCTOPRINT_VERSION" >> $GITHUB_ENV
|
||||||
|
- name: 🚀 Repository Dispatch
|
||||||
|
uses: peter-evans/repository-dispatch@v1
|
||||||
|
with:
|
||||||
|
token: ${{ secrets.REPODISPATCH_TOKEN }}
|
||||||
|
repository: OctoPrint/OctoPi-UpToDate
|
||||||
|
event-type: octoprint_release
|
||||||
|
client-payload: '{"version": "${{ env.OCTOPRINT_VERSION }}"}'
|
||||||
@@ -0,0 +1,37 @@
|
|||||||
|
name: "Cleanup issues & PRs"
|
||||||
|
|
||||||
|
on:
|
||||||
|
schedule:
|
||||||
|
- cron: "0 0 * * *"
|
||||||
|
workflow_dispatch:
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
lock:
|
||||||
|
name: 🔒 Lock issues & PRs closed over a year
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: dessant/lock-threads@v2
|
||||||
|
with:
|
||||||
|
github-token: ${{ github.token }}
|
||||||
|
issue-lock-comment: ""
|
||||||
|
pr-lock-comment: ""
|
||||||
|
|
||||||
|
cleanup:
|
||||||
|
name: 🧹 Close issues marked as incomplete & older than 14 days
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- id: date
|
||||||
|
run: |
|
||||||
|
echo "::set-output name=CUTOFF::`date --date='14 days ago' +'%Y-%m-%d'`"
|
||||||
|
- uses: OctoPrint/actions/close-by-query@main
|
||||||
|
with:
|
||||||
|
repo-token: "${{ secrets.GITHUB_TOKEN }}"
|
||||||
|
query: "is:issue is:open label:incomplete created:<${{ steps.date.outputs.CUTOFF }}"
|
||||||
|
comment: >
|
||||||
|
Since apparently some of the required information is still missing, this will be
|
||||||
|
closed now, sorry. Feel free to request a reopen of this or create a new issue
|
||||||
|
once you can provide **all**
|
||||||
|
[required information](https://github.com/OctoPrint/OctoPrint/blob/master/CONTRIBUTING.md#how-to-file-a-bug-report).
|
||||||
|
|
||||||
|
|
||||||
|
This is nothing personal. Thank you for your collaboration.
|
||||||
@@ -0,0 +1,161 @@
|
|||||||
|
name: "Issue Automation"
|
||||||
|
on:
|
||||||
|
issues:
|
||||||
|
types: [opened, edited, closed, reopened, labeled, unlabeled]
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
issue-automation:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/github-script@v5
|
||||||
|
with:
|
||||||
|
github-token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
script: |
|
||||||
|
let labels = context.payload.issue.labels.map(label => label.name);
|
||||||
|
let setLabels = false;
|
||||||
|
|
||||||
|
switch (context.payload.action) {
|
||||||
|
|
||||||
|
case 'opened':
|
||||||
|
case 'edited': {
|
||||||
|
if (context.payload.issue.title.match(/\[request\]|feature request/i)) {
|
||||||
|
labels.push('request');
|
||||||
|
labels = labels.filter(label => label !== 'triage');
|
||||||
|
setLabels = true;
|
||||||
|
}
|
||||||
|
if (context.payload.issue.title.match(/\[rc feedback\]/i)) {
|
||||||
|
labels.push('rc feedback');
|
||||||
|
labels = labels.filter(label => label !== 'triage');
|
||||||
|
setLabels = true;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (labels.length === 0) {
|
||||||
|
labels.push('triage');
|
||||||
|
setLabels = true;
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
|
case 'closed': {
|
||||||
|
if (labels.includes('bug') || labels.includes('request') || labels.includes('improvement')) {
|
||||||
|
labels.push('done');
|
||||||
|
setLabels = true;
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
|
case 'reopened': {
|
||||||
|
if (labels.includes('done')) {
|
||||||
|
labels = labels.filter(label => label !== 'done');
|
||||||
|
setLabels = true;
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
if (setLabels) {
|
||||||
|
github.rest.issues.setLabels({
|
||||||
|
issue_number: context.issue.number,
|
||||||
|
owner: context.repo.owner,
|
||||||
|
repo: context.repo.repo,
|
||||||
|
labels: labels
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
#- uses: OctoPrint/actions/issue-validation@main
|
||||||
|
# if: github.event_name == 'issues' && (github.event.action == 'opened' || github.event.action == 'edited')
|
||||||
|
# with:
|
||||||
|
# repo-token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
||||||
|
- uses: actions/github-script@v5
|
||||||
|
env:
|
||||||
|
REMINDER: >
|
||||||
|
Hi @${{ github.event.issue.user.login }}!
|
||||||
|
|
||||||
|
|
||||||
|
It looks like you didn't upload a [system info bundle](https://community.octoprint.org/t/29887) as requested by the template.
|
||||||
|
A bundle is required to further process your issue. It contains important logs and
|
||||||
|
system information to be able to put your issue into context and give pointers as to
|
||||||
|
what has happened.
|
||||||
|
|
||||||
|
|
||||||
|
Please **edit your original post above** and upload **a bundle zip file**. Actually upload the file please and
|
||||||
|
do not paste some link to a cloud provider, we want to have everything in one place here. Also do
|
||||||
|
not unpack, repack or otherwise modify the bundle or its name, share it **exactly** like you get it from OctoPrint.
|
||||||
|
|
||||||
|
|
||||||
|
Without the availability of a bundle, your issue will have to be closed.
|
||||||
|
|
||||||
|
|
||||||
|
Thank you for your collaboration.
|
||||||
|
THANKYOU: >
|
||||||
|
Thank you @${{ github.event.issue.user.login }} for adding a bundle! Now this can actually get looked at.
|
||||||
|
with:
|
||||||
|
script: |
|
||||||
|
const { REMINDER, THANKYOU } = process.env;
|
||||||
|
const bundleRegex = /\[(octoprint-systeminfo-\d{14}\.zip)\]\(([^)]+)\)/g;
|
||||||
|
const marker = "<!-- check_for_bundle -->";
|
||||||
|
|
||||||
|
const issueLabels = await github.rest.issues.listLabelsOnIssue({
|
||||||
|
owner: context.repo.owner,
|
||||||
|
repo: context.repo.repo,
|
||||||
|
issue_number: context.issue.number
|
||||||
|
});
|
||||||
|
let labels = issueLabels.data.map(label => label.name);
|
||||||
|
|
||||||
|
const comments = await github.rest.issues.listComments({
|
||||||
|
owner: context.repo.owner,
|
||||||
|
repo: context.repo.repo,
|
||||||
|
issue_number: context.issue.number,
|
||||||
|
})
|
||||||
|
const comment = comments.data.find(c => c.user.login === "github-actions[bot]" && c.body.includes(marker));
|
||||||
|
if (comment) {
|
||||||
|
console.log("Found comment, id=" + comment.id);
|
||||||
|
} else {
|
||||||
|
console.log("No comment found");
|
||||||
|
}
|
||||||
|
|
||||||
|
if (!labels.includes("triage") || labels.includes("approved")) {
|
||||||
|
console.log("Deleting comment if it exists...");
|
||||||
|
if (comment) {
|
||||||
|
await github.rest.issues.deleteComment({
|
||||||
|
owner: context.repo.owner,
|
||||||
|
repo: context.repo.repo,
|
||||||
|
comment_id: comment.id,
|
||||||
|
})
|
||||||
|
}
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
const found = !!context.payload.issue.body.match(bundleRegex);
|
||||||
|
|
||||||
|
if (!found) {
|
||||||
|
console.log("No bundle found, posting/updating reminder");
|
||||||
|
const text = REMINDER + "\n" + marker;
|
||||||
|
if (!comment) {
|
||||||
|
await github.rest.issues.createComment({
|
||||||
|
owner: context.repo.owner,
|
||||||
|
repo: context.repo.repo,
|
||||||
|
issue_number: context.issue.number,
|
||||||
|
body: text
|
||||||
|
});
|
||||||
|
} else if (comment.body !== text) {
|
||||||
|
await github.rest.issues.updateComment({
|
||||||
|
owner: context.repo.owner,
|
||||||
|
repo: context.repo.repo,
|
||||||
|
comment_id: comment.id,
|
||||||
|
body: text
|
||||||
|
});
|
||||||
|
}
|
||||||
|
} else if (found && comment) {
|
||||||
|
console.log("Bundle found, saying thanks");
|
||||||
|
const text = REMINDER.split("\n\n").map(line => `~~${line.trim()}~~`).join("\n\n") + "\n\n" + THANKYOU + "\n" + marker;
|
||||||
|
if (comment.body !== text) {
|
||||||
|
await github.rest.issues.updateComment({
|
||||||
|
owner: context.repo.owner,
|
||||||
|
repo: context.repo.repo,
|
||||||
|
comment_id: comment.id,
|
||||||
|
body: text
|
||||||
|
});
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,54 @@
|
|||||||
|
name: "Linkify systeminfo bundles"
|
||||||
|
on:
|
||||||
|
issue_comment:
|
||||||
|
types: [created, edited]
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
linkifyBundles:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/github-script@v2
|
||||||
|
with:
|
||||||
|
github-token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
script: |
|
||||||
|
let comment = context.payload.comment.body;
|
||||||
|
|
||||||
|
const botMarker = "<!-- linkify_bundles -->";
|
||||||
|
const botWasHere = comment.indexOf(botMarker);
|
||||||
|
if (botWasHere !== -1) {
|
||||||
|
comment = comment.substring(0, botWasHere);
|
||||||
|
};
|
||||||
|
|
||||||
|
const bundleRegex = /\[(octoprint-systeminfo-\d{14}\.zip)\]\(([^)]+)\)/g;
|
||||||
|
|
||||||
|
const bundles = [];
|
||||||
|
const seen = [];
|
||||||
|
const matches = comment.matchAll(bundleRegex);
|
||||||
|
for (const match of matches) {
|
||||||
|
if (!seen.includes(match[1])) {
|
||||||
|
bundles.push({filename: match[1], link: match[2], match: match[0]});
|
||||||
|
seen.push(match[1]);
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
if (bundles.length > 0) {
|
||||||
|
let text = comment + botMarker + "\n\n---\n\n\nBundles:\n\n";
|
||||||
|
bundles.forEach((bundle) => {
|
||||||
|
text += " * [" + bundle.filename + "](https://bundleviewer.octoprint.org/?url=" + encodeURIComponent(bundle.link) + ")\n"
|
||||||
|
});
|
||||||
|
text += "\n*edited by @github-actions to add bundle viewer links*\n";
|
||||||
|
|
||||||
|
github.issues.updateComment({
|
||||||
|
owner: context.repo.owner,
|
||||||
|
repo: context.repo.repo,
|
||||||
|
comment_id: context.payload.comment.id,
|
||||||
|
body: text
|
||||||
|
});
|
||||||
|
} else if (botWasHere !== -1) {
|
||||||
|
github.issues.updateComment({
|
||||||
|
owner: context.repo.owner,
|
||||||
|
repo: context.repo.repo,
|
||||||
|
comment_id: context.payload.comment.id,
|
||||||
|
body: comment
|
||||||
|
});
|
||||||
|
}
|
||||||
@@ -0,0 +1,33 @@
|
|||||||
|
name: "Nightly merge"
|
||||||
|
|
||||||
|
on:
|
||||||
|
schedule:
|
||||||
|
- cron: "0 0 * * *"
|
||||||
|
workflow_dispatch:
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
nightly-merge:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: ⬇ Checkout
|
||||||
|
uses: actions/checkout@v2
|
||||||
|
with:
|
||||||
|
fetch-depth: 0
|
||||||
|
|
||||||
|
- name: 🔀 Merge master into maintenance
|
||||||
|
uses: robotology/gh-action-nightly-merge@v1.3.2
|
||||||
|
with:
|
||||||
|
stable_branch: "master"
|
||||||
|
development_branch: "maintenance"
|
||||||
|
allow_ff: false
|
||||||
|
env:
|
||||||
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
||||||
|
#- name: 🔀 Merge maintenance into devel
|
||||||
|
# uses: robotology/gh-action-nightly-merge@v1.3.2
|
||||||
|
# with:
|
||||||
|
# stable_branch: "maintenance"
|
||||||
|
# development_branch: "devel"
|
||||||
|
# allow_ff: false
|
||||||
|
# env:
|
||||||
|
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
@@ -0,0 +1,45 @@
|
|||||||
|
name: "Pull Request Automation"
|
||||||
|
on:
|
||||||
|
pull_request_target:
|
||||||
|
#types: ["opened", "synchronize", "reopened", "edited", "labeled", "unlabeled"]
|
||||||
|
types: ["opened"]
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
pr-automation:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/labeler@v3
|
||||||
|
with:
|
||||||
|
repo-token: "${{ secrets.GITHUB_TOKEN }}"
|
||||||
|
|
||||||
|
- uses: actions/github-script@v5
|
||||||
|
with:
|
||||||
|
github-token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
script: |
|
||||||
|
// fetch a fresh set of labels, they might have changed earlier
|
||||||
|
const issueLabels = await github.rest.issues.listLabelsOnIssue({
|
||||||
|
owner: context.repo.owner,
|
||||||
|
repo: context.repo.repo,
|
||||||
|
issue_number: context.issue.number
|
||||||
|
});
|
||||||
|
let labels = issueLabels.data.map(label => label.name);
|
||||||
|
let setLabels = false;
|
||||||
|
|
||||||
|
let target = context.payload.pull_request.base.ref;
|
||||||
|
if (["maintenance", "devel", "staging/maintenance", "staging/devel", "master"].includes(target)) {
|
||||||
|
labels.push(`targets ${target}`);
|
||||||
|
setLabels = true;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (setLabels) {
|
||||||
|
github.rest.issues.setLabels({
|
||||||
|
issue_number: context.issue.number,
|
||||||
|
owner: context.repo.owner,
|
||||||
|
repo: context.repo.repo,
|
||||||
|
labels: labels
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
- uses: OctoPrint/actions/pr-validation@main
|
||||||
|
with:
|
||||||
|
repo-token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
@@ -0,0 +1,79 @@
|
|||||||
|
name: Test install of branches and latest release twice per day
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- master
|
||||||
|
workflow_dispatch:
|
||||||
|
schedule:
|
||||||
|
- cron: "0 */12 * * *"
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
install-branch:
|
||||||
|
name: Install branch
|
||||||
|
strategy:
|
||||||
|
matrix:
|
||||||
|
os: ["ubuntu-latest"]
|
||||||
|
python: ["3.7", "3.8", "3.9", "3.10"]
|
||||||
|
branch: ["master"]
|
||||||
|
runs-on: ${{ matrix.os }}
|
||||||
|
steps:
|
||||||
|
- name: 🐍 Set up Python ${{ matrix.python }}
|
||||||
|
uses: actions/setup-python@v2
|
||||||
|
with:
|
||||||
|
python-version: ${{ matrix.python }}
|
||||||
|
- name: ⬇ Checkout code
|
||||||
|
uses: actions/checkout@v2
|
||||||
|
with:
|
||||||
|
ref: ${{ matrix.branch }}
|
||||||
|
fetch-depth: 0
|
||||||
|
- name: 👷 Build and install checkout
|
||||||
|
run: |
|
||||||
|
pip install .
|
||||||
|
- name: 📧 Discord success notification
|
||||||
|
env:
|
||||||
|
DISCORD_WEBHOOK: ${{ secrets.discord_webhook }}
|
||||||
|
uses: Ilshidur/action-discord@master
|
||||||
|
with:
|
||||||
|
args: "☑️ Test install on Python ${{ matrix.python }} under `${{ matrix.os }}` for `OctoPrint/OctoPrint:${{ matrix.branch }}` was successful"
|
||||||
|
- name: 📧 Discord failure notification
|
||||||
|
if: failure()
|
||||||
|
env:
|
||||||
|
DISCORD_WEBHOOK: ${{ secrets.discord_webhook }}
|
||||||
|
uses: Ilshidur/action-discord@master
|
||||||
|
with:
|
||||||
|
args: "🚫 Test install on Python ${{ matrix.python }} under `${{ matrix.os }}` for `OctoPrint/OctoPrint:${{ matrix.branch }}` failed"
|
||||||
|
|
||||||
|
install-latest:
|
||||||
|
name: Install latest release
|
||||||
|
strategy:
|
||||||
|
matrix:
|
||||||
|
os: ["ubuntu-latest"]
|
||||||
|
python: ["3.7", "3.8", "3.9", "3.10"]
|
||||||
|
runs-on: ${{ matrix.os }}
|
||||||
|
steps:
|
||||||
|
- name: 👀 Determine latest release
|
||||||
|
id: latest
|
||||||
|
uses: foosel/github-action-get-latest-release@master
|
||||||
|
with:
|
||||||
|
repository: "OctoPrint/OctoPrint"
|
||||||
|
- name: 🐍 Set up Python ${{ matrix.python }}
|
||||||
|
uses: actions/setup-python@v2
|
||||||
|
with:
|
||||||
|
python-version: ${{ matrix.python }}
|
||||||
|
- name: 👷 Build and install latest release
|
||||||
|
run: |
|
||||||
|
pip install https://github.com/OctoPrint/OctoPrint/archive/${{ steps.latest.outputs.release }}.zip
|
||||||
|
- name: 📧 Discord success notification
|
||||||
|
env:
|
||||||
|
DISCORD_WEBHOOK: ${{ secrets.discord_webhook }}
|
||||||
|
uses: Ilshidur/action-discord@master
|
||||||
|
with:
|
||||||
|
args: "☑️ Test install on Python ${{ matrix.python }} under `${{ matrix.os }}` for `OctoPrint/OctoPrint:${{ steps.latest.outputs.release }}` was successful"
|
||||||
|
- name: 📧 Discord failure notification
|
||||||
|
if: failure()
|
||||||
|
env:
|
||||||
|
DISCORD_WEBHOOK: ${{ secrets.discord_webhook }}
|
||||||
|
uses: Ilshidur/action-discord@master
|
||||||
|
with:
|
||||||
|
args: "🚫 Test install on Python ${{ matrix.python }} under `${{ matrix.os }}` for `OctoPrint/OctoPrint:${{ steps.latest.outputs.release }}` failed"
|
||||||
@@ -0,0 +1,47 @@
|
|||||||
|
name: Trigger docker build
|
||||||
|
on:
|
||||||
|
release:
|
||||||
|
types:
|
||||||
|
- released
|
||||||
|
- prereleased
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- maintenance
|
||||||
|
- devel
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
dispatch_releases:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
if: github.repository == 'OctoPrint/OctoPrint' && github.event_name != 'push'
|
||||||
|
steps:
|
||||||
|
- name: 🚀 Repository Dispatch
|
||||||
|
uses: peter-evans/repository-dispatch@v1
|
||||||
|
with:
|
||||||
|
token: ${{ secrets.DOCKER_ACCESS_TOKEN }}
|
||||||
|
repository: ${{ github.repository_owner }}/octoprint-docker
|
||||||
|
event-type: ${{ github.event.action }}
|
||||||
|
client-payload: '{"tag_name": "${{ github.event.release.tag_name }}"}'
|
||||||
|
|
||||||
|
dispatch_canary:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
if: github.repository == 'OctoPrint/OctoPrint' && github.event_name == 'push' && github.ref == 'refs/heads/maintenance'
|
||||||
|
steps:
|
||||||
|
- name: 🚀 Repository Dispatch
|
||||||
|
uses: peter-evans/repository-dispatch@v1
|
||||||
|
with:
|
||||||
|
token: ${{ secrets.DOCKER_ACCESS_TOKEN }}
|
||||||
|
repository: ${{ github.repository_owner }}/octoprint-docker
|
||||||
|
event-type: "canary"
|
||||||
|
client-payload: '{"tag_name": "maintenance"}'
|
||||||
|
|
||||||
|
dispatch_bleeding:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
if: github.repository == 'OctoPrint/OctoPrint' && github.event_name == 'push' && github.ref == 'refs/heads/devel'
|
||||||
|
steps:
|
||||||
|
- name: 🚀 Repository Dispatch
|
||||||
|
uses: peter-evans/repository-dispatch@v1
|
||||||
|
with:
|
||||||
|
token: ${{ secrets.DOCKER_ACCESS_TOKEN }}
|
||||||
|
repository: ${{ github.repository_owner }}/octoprint-docker
|
||||||
|
event-type: "bleeding"
|
||||||
|
client-payload: '{"tag_name": "devel"}'
|
||||||
@@ -0,0 +1,20 @@
|
|||||||
|
name: Trigger doc build
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
release:
|
||||||
|
types:
|
||||||
|
- released
|
||||||
|
- prereleased
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
trigger:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
if: github.repository == 'OctoPrint/OctoPrint'
|
||||||
|
steps:
|
||||||
|
- name: 🚀 Repository Dispatch
|
||||||
|
uses: peter-evans/repository-dispatch@v1
|
||||||
|
with:
|
||||||
|
token: ${{ secrets.REPODISPATCH_TOKEN }}
|
||||||
|
repository: OctoPrint/docs.octoprint.org
|
||||||
|
event-type: docs
|
||||||
|
client-payload: '{"ref": "${{ github.ref }}", "sha": "${{ github.sha }}"}'
|
||||||
+17
-13
@@ -2,6 +2,8 @@ src/octoprint/templates/_data/AUTHORS.md
|
|||||||
src/octoprint/templates/_data/CHANGELOG.md
|
src/octoprint/templates/_data/CHANGELOG.md
|
||||||
src/octoprint/templates/_data/SUPPORTERS.md
|
src/octoprint/templates/_data/SUPPORTERS.md
|
||||||
src/octoprint/templates/_data/THIRDPARTYLICENSES.md
|
src/octoprint/templates/_data/THIRDPARTYLICENSES.md
|
||||||
|
src/octoprint/plugins/pi_support/.local_debug
|
||||||
|
docs/_build
|
||||||
|
|
||||||
devtools
|
devtools
|
||||||
|
|
||||||
@@ -17,26 +19,28 @@ win32-Cura-*
|
|||||||
linux-Cura-*
|
linux-Cura-*
|
||||||
*.iml
|
*.iml
|
||||||
Printrun
|
Printrun
|
||||||
=======
|
|
||||||
.idea
|
.idea
|
||||||
|
.vscode
|
||||||
.DS_Store
|
.DS_Store
|
||||||
Cura/current_profile.ini
|
Cura/current_profile.ini
|
||||||
Cura/preferences.ini
|
Cura/preferences.ini
|
||||||
build
|
build
|
||||||
dist
|
dist
|
||||||
pypy
|
pypy
|
||||||
OctoPrint.egg-info
|
|
||||||
*.orig
|
|
||||||
|
|
||||||
|
*.orig
|
||||||
*.codekit
|
*.codekit
|
||||||
|
|
||||||
venv
|
*.egg-info
|
||||||
venv2
|
.eggs
|
||||||
venv3
|
.mypy_cache
|
||||||
venv26
|
.pytest_cache
|
||||||
venv27
|
.python-version
|
||||||
venv33
|
.tox
|
||||||
venv34
|
|
||||||
venv35
|
venv*
|
||||||
venv36
|
testconf*
|
||||||
venv37
|
|
||||||
|
node_modules
|
||||||
|
tests/cypress/screenshots
|
||||||
|
tests/cypress/videos
|
||||||
@@ -0,0 +1,4 @@
|
|||||||
|
# ripgrep ignore file
|
||||||
|
|
||||||
|
src/octoprint/static/vendor/
|
||||||
|
src/octoprint/vendor/
|
||||||
@@ -0,0 +1,59 @@
|
|||||||
|
exclude: ^(src/octoprint/vendor/|src/octoprint/static/js/lib|src/octoprint/static/vendor|tests/static/js/lib|tests/util/_files|docs/|scripts/|translations/|versioneer.py|.*\.css|.*\.svg)
|
||||||
|
repos:
|
||||||
|
- repo: https://github.com/pre-commit/pre-commit-hooks
|
||||||
|
rev: v3.2.0
|
||||||
|
hooks:
|
||||||
|
- id: end-of-file-fixer
|
||||||
|
- id: trailing-whitespace
|
||||||
|
- id: check-case-conflict
|
||||||
|
- id: check-json
|
||||||
|
- id: check-yaml
|
||||||
|
- id: check-toml
|
||||||
|
- id: check-merge-conflict
|
||||||
|
- id: fix-encoding-pragma
|
||||||
|
args: ["--remove"]
|
||||||
|
- repo: https://github.com/asottile/pyupgrade
|
||||||
|
rev: v2.10.0
|
||||||
|
hooks:
|
||||||
|
- id: pyupgrade
|
||||||
|
args: ["--py37-plus"]
|
||||||
|
- repo: https://github.com/OctoPrint/codemods
|
||||||
|
rev: devel
|
||||||
|
hooks:
|
||||||
|
- id: codemod_detect_past_builtins_imports
|
||||||
|
args: ["--ignore", "src/octoprint/vendor"]
|
||||||
|
- id: codemod_not_in
|
||||||
|
args: ["--ignore", "src/octoprint/vendor"]
|
||||||
|
- id: codemod_remove_float_conversion
|
||||||
|
args: ["--ignore", "src/octoprint/vendor"]
|
||||||
|
- id: codemod_remove_future_imports
|
||||||
|
args: ["--ignore", "src/octoprint/vendor"]
|
||||||
|
- repo: https://github.com/pre-commit/mirrors-isort
|
||||||
|
rev: v5.5.4
|
||||||
|
hooks:
|
||||||
|
- id: isort
|
||||||
|
- repo: https://github.com/psf/black
|
||||||
|
rev: 20.8b1
|
||||||
|
hooks:
|
||||||
|
- id: black
|
||||||
|
args: ["--config", "black.toml"]
|
||||||
|
- repo: https://gitlab.com/pycqa/flake8
|
||||||
|
rev: 3.8.4
|
||||||
|
hooks:
|
||||||
|
- id: flake8
|
||||||
|
additional_dependencies:
|
||||||
|
- flake8-bugbear
|
||||||
|
- repo: https://github.com/pre-commit/mirrors-prettier
|
||||||
|
rev: v2.1.2
|
||||||
|
hooks:
|
||||||
|
- id: prettier
|
||||||
|
- repo: https://github.com/pre-commit/mirrors-eslint
|
||||||
|
rev: v7.19.0
|
||||||
|
hooks:
|
||||||
|
- id: eslint
|
||||||
|
additional_dependencies:
|
||||||
|
- eslint@7.19.0
|
||||||
|
- eslint-plugin-es5@v1.3.0
|
||||||
|
- eslint-plugin-cypress@2.11.2
|
||||||
|
files: \.js$
|
||||||
|
exclude: ^(src/octoprint/vendor/|tests/static/js/lib|tests/util/_files|docs/|scripts/|translations/)
|
||||||
@@ -0,0 +1,15 @@
|
|||||||
|
src/octoprint/static/js/lib
|
||||||
|
src/octoprint/static/vendor
|
||||||
|
src/octoprint/static/less/bootstrap
|
||||||
|
src/octoprint/static/less/font-awesome.less
|
||||||
|
*.md
|
||||||
|
*.css
|
||||||
|
**/package.json
|
||||||
|
**/package-lock.json
|
||||||
|
**/*.min.js
|
||||||
|
docs
|
||||||
|
build
|
||||||
|
dist
|
||||||
|
venv
|
||||||
|
venv2
|
||||||
|
venv3
|
||||||
@@ -0,0 +1,11 @@
|
|||||||
|
printWidth: 90
|
||||||
|
tabWidth: 4
|
||||||
|
semi: true
|
||||||
|
trailingComma: "none"
|
||||||
|
singleQuote: false
|
||||||
|
quoteProps: consistent
|
||||||
|
bracketSpacing: false
|
||||||
|
overrides:
|
||||||
|
- files: ["*.yaml", "*.yml", "*.json", "*.less"]
|
||||||
|
options:
|
||||||
|
tabWidth: 2
|
||||||
-22
@@ -1,22 +0,0 @@
|
|||||||
---
|
|
||||||
|
|
||||||
language: python
|
|
||||||
dist: xenial
|
|
||||||
|
|
||||||
matrix:
|
|
||||||
include:
|
|
||||||
- python: '3.7'
|
|
||||||
env: RUN_FLAKE8=true
|
|
||||||
|
|
||||||
python:
|
|
||||||
- "3.7"
|
|
||||||
- "3.6"
|
|
||||||
- "2.7"
|
|
||||||
install:
|
|
||||||
- pip install -e .[develop]
|
|
||||||
script:
|
|
||||||
- test -n "$RUN_FLAKE8" || pytest
|
|
||||||
- test -z "$RUN_FLAKE8" || flake8 --ignore=D,E,W,F401 src/ tests setup.py
|
|
||||||
sudo: false
|
|
||||||
git:
|
|
||||||
depth: 250
|
|
||||||
@@ -5,4 +5,3 @@ host = https://www.transifex.com
|
|||||||
file_filter = translations/<lang>/LC_MESSAGES/messages.po
|
file_filter = translations/<lang>/LC_MESSAGES/messages.po
|
||||||
source_file = translations/messages.pot
|
source_file = translations/messages.pot
|
||||||
source_lang = en
|
source_lang = en
|
||||||
|
|
||||||
+17
-9
@@ -18,16 +18,24 @@ prerelease
|
|||||||
HEAD
|
HEAD
|
||||||
\(detached.*
|
\(detached.*
|
||||||
|
|
||||||
# maintenance is currently the branch for preparation of maintenance release 1.3.12
|
# maintenance is currently the branch for preparation of maintenance release 1.8.0
|
||||||
# so are any fix/... and improve/... branches
|
# so are any fix/... and improve/... branches
|
||||||
maintenance 1.3.12 73df8c2407f04756261acfe62ac3d72877f8a97d pep440-dev
|
maintenance 1.8.0 3fe45661cd79c5137d9d4f5f4adb4d9519bc2084 pep440-dev
|
||||||
fix/.* 1.3.12 73df8c2407f04756261acfe62ac3d72877f8a97d pep440-dev
|
fix/.* 1.8.0 3fe45661cd79c5137d9d4f5f4adb4d9519bc2084 pep440-dev
|
||||||
improve/.* 1.3.12 73df8c2407f04756261acfe62ac3d72877f8a97d pep440-dev
|
improve/.* 1.8.0 3fe45661cd79c5137d9d4f5f4adb4d9519bc2084 pep440-dev
|
||||||
|
|
||||||
# staging/maintenance is currently the branch for preparation of 1.3.11rc4
|
# staging/bugfix is the branch for preparation of the 1.7.3 bugfix release
|
||||||
|
# so are any bug/... branches
|
||||||
|
staging/bugfix 1.7.2 d60c5a631aedf2328e4492125d9b86f595e43d00 pep440-dev
|
||||||
|
bug/.* 1.7.2 d60c5a631aedf2328e4492125d9b86f595e43d00 pep440-dev
|
||||||
|
|
||||||
|
# staging/maintenance is currently the branch for preparation of 1.7.0rc4
|
||||||
# so is regressionfix/...
|
# so is regressionfix/...
|
||||||
staging/maintenance 1.3.11rc4 af3285854995fb5b910fd2ce869e26c02d57bbc2 pep440-dev
|
staging/maintenance 1.7.0rc4 f31194f75365787f3eb5da61a24f2f8620111f4f pep440-dev
|
||||||
regressionfix/.* 1.3.11rc4 af3285854995fb5b910fd2ce869e26c02d57bbc2 pep440-dev
|
regressionfix/.* 1.7.0rc4 f31194f75365787f3eb5da61a24f2f8620111f4f pep440-dev
|
||||||
|
|
||||||
# every other branch is a development branch and thus gets resolved to 1.4.0-dev for now
|
# staging/devel is currently inactive (but has the 1.4.1rc4 namespace)
|
||||||
.* 1.4.0 7f5d03d0549bcbd26f40e7e4a3297ea5204fb1cc pep440-dev
|
staging/devel 1.4.1rc4 650d54d1885409fa1d411eb54b9e8c7ff428910f pep440-dev
|
||||||
|
|
||||||
|
# every other branch is a development branch and thus gets resolved to 2.0.0.dev for now
|
||||||
|
.* 2.0.0 2da7aa358d950b4567aaab8f18d6b5779193e077 pep440-dev
|
||||||
+53
@@ -105,6 +105,59 @@ date of first contribution):
|
|||||||
* [Jack Wilsdon](https://github.com/jackwilsdon)
|
* [Jack Wilsdon](https://github.com/jackwilsdon)
|
||||||
* [Ryan Finnie](https://github.com/rfinnie)
|
* [Ryan Finnie](https://github.com/rfinnie)
|
||||||
* [Timur Duehr](https://github.com/tduehr)
|
* [Timur Duehr](https://github.com/tduehr)
|
||||||
|
* [Nicolai Nielsen](https://github.com/dovecode)
|
||||||
|
* [Janne Mäntyharju](https://github.com/JanneMantyharju)
|
||||||
|
* [Steven Spungin](https://github.com/flamenco)
|
||||||
|
* [Piotr Usewicz](https://github.com/pusewicz)
|
||||||
|
* [Aliaksei Pilko](https://github.com/aliaksei135)
|
||||||
|
* [Ben Yarmis](https://github.com/byarmis)
|
||||||
|
* [Florian Heilmann](https://github.com/FHeilmann)
|
||||||
|
* [Ludovico de Nittis](https://github.com/RyuzakiKK)
|
||||||
|
* [Dominik Paľo](https://github.com/DominikPalo)
|
||||||
|
* [Kelly Anderson](https://github.com/cbxbiker61)
|
||||||
|
* [Jim Neill](https://github.com/jneilliii)
|
||||||
|
* [Dustin Kerber](https://github.com/kerber)
|
||||||
|
* [Tobias Schürg](https://github.com/tobiasschuerg)
|
||||||
|
* [Josh Friend](https://github.com/joshfriend)
|
||||||
|
* [Lachlan Cresswell](https://github.com/lachyc)
|
||||||
|
* [Khoi Pham](https://github.com/osubuu)
|
||||||
|
* [Timofei Korostelev](https://github.com/chudsaviet)
|
||||||
|
* [Federico Nembrini](https://github.com/FedericoNembrini)
|
||||||
|
* [Uri Shaked](https://github.com/urish)
|
||||||
|
* [Brian Vanderbusch](https://github.com/LongLiveCHIEF)
|
||||||
|
* [Charlie Powell](https://github.com/cp2004)
|
||||||
|
* [Ollis Git](https://github.com/OllisGit)
|
||||||
|
* [Sophist](https://github.com/Sophist-UK)
|
||||||
|
* [Manuel McLure](https://github.com/ManuelMcLure)
|
||||||
|
* ["j7126"](https://github.com/j7126)
|
||||||
|
* ["coliss86"](https://github.com/coliss86)
|
||||||
|
* ["MichaIng"](https://github.com/MichaIng)
|
||||||
|
* ["jasonbcox"](https://github.com/jasonbcox)
|
||||||
|
* ["shadycuz"](https://github.com/shadycuz)
|
||||||
|
* [David Rifkind](https://github.com/drifkind)
|
||||||
|
* [Nils Hofmann](https://github.com/Master92)
|
||||||
|
* [Miroslav Šedivý](https://github.com/eumiro)
|
||||||
|
* [Costas Basdekis](https://github.com/costas-basdekis)
|
||||||
|
* [Joe Martella](https://github.com/martellaj)
|
||||||
|
* [Scott Lahteine](https://github.com/thinkyhead)
|
||||||
|
* [Karthikeyan Singaravelan](https://github.com/tirkarthi)
|
||||||
|
* [Yvan Rodrigues](https://github.com/TwoRedCells)
|
||||||
|
* [Elton Law](https://github.com/eltonlaw)
|
||||||
|
* ["sparxooo"](https://github.com/sparxooo)
|
||||||
|
* ["Stevil Knevil"](https://github.com/StevilKnevil)
|
||||||
|
* [ldursw](https://github.com/ldursw)
|
||||||
|
* [Ian Wilt](https://github.com/ianwiltdotcom)
|
||||||
|
* [Ben Sycha](https://github.com/Sycha)
|
||||||
|
* [John Boiles](https://github.com/johnboiles)
|
||||||
|
* [Adam DeMuri](https://github.com/ademuri)
|
||||||
|
* [Daniel Shenkle](https://github.com/DShenkle)
|
||||||
|
* [Bryan Kenote](https://github.com/bryankenote)
|
||||||
|
* [Quinn Damerell](https://github.com/QuinnDamerell)
|
||||||
|
* [Sven Samoray](https://github.com/thelastWallE)
|
||||||
|
* [Christian Würthner](https://github.com/crysxd)
|
||||||
|
* [Maciej Urbański](https://github.com/rooterkyberian)
|
||||||
|
* [Adam Wolf](https://github.com/adamwolf)
|
||||||
|
* [Carey Metcalfe](https://github.com/pR0Ps)
|
||||||
|
|
||||||
OctoPrint started off as a fork of [Cura](https://github.com/daid/Cura) by
|
OctoPrint started off as a fork of [Cura](https://github.com/daid/Cura) by
|
||||||
[Daid Braam](https://github.com/daid). Parts of its communication layer and
|
[Daid Braam](https://github.com/daid). Parts of its communication layer and
|
||||||
|
|||||||
+3
-1172
File diff suppressed because it is too large.
Load diff
@@ -0,0 +1 @@
|
|||||||
|
OctoPrint's Code of Conduct can be found at [octoprint.org/conduct/](https://octoprint.org/conduct/).
|
||||||
+83
-151
@@ -39,7 +39,7 @@ nothing but ticket management.
|
|||||||
[community forum at community.octoprint.org](https://community.octoprint.org) for
|
[community forum at community.octoprint.org](https://community.octoprint.org) for
|
||||||
such support issues.
|
such support issues.
|
||||||
- If you are a **developer** that wants to brainstorm a pull request or possible
|
- If you are a **developer** that wants to brainstorm a pull request or possible
|
||||||
changes to the plugin system, please get in touch on the
|
changes to the plugin system, please get in touch on the
|
||||||
[community forum at community.octoprint.org](https://community.octoprint.org/c/development).
|
[community forum at community.octoprint.org](https://community.octoprint.org/c/development).
|
||||||
- If you need **support**, have a **question** or some **other reason** that
|
- If you need **support**, have a **question** or some **other reason** that
|
||||||
doesn't fit any of the above categories, the issue tracker is not the right place.
|
doesn't fit any of the above categories, the issue tracker is not the right place.
|
||||||
@@ -49,7 +49,7 @@ No matter what kind of ticket you create, never mix two or more "ticket reasons"
|
|||||||
into one ticket: One ticket per bug, request, brainstorming thread please.
|
into one ticket: One ticket per bug, request, brainstorming thread please.
|
||||||
|
|
||||||
> 👉 **Note**
|
> 👉 **Note**
|
||||||
>
|
>
|
||||||
> A bot is in place that monitors new tickets, automatically
|
> A bot is in place that monitors new tickets, automatically
|
||||||
> categorizes them and checks new bug reports for usage of the provided template.
|
> categorizes them and checks new bug reports for usage of the provided template.
|
||||||
> That bot will only bother you if you open a ticket that appears to be a bug (no
|
> That bot will only bother you if you open a ticket that appears to be a bug (no
|
||||||
@@ -60,7 +60,7 @@ into one ticket: One ticket per bug, request, brainstorming thread please.
|
|||||||
## How to file a bug report
|
## How to file a bug report
|
||||||
|
|
||||||
If you encounter an issue with OctoPrint, you are welcome to
|
If you encounter an issue with OctoPrint, you are welcome to
|
||||||
[submit a bug report](https://github.com/foosel/OctoPrint/issues/new).
|
[submit a bug report](https://github.com/OctoPrint/OctoPrint/issues/new?template=bug_report.yml).
|
||||||
|
|
||||||
Before you do that for the first time though please take a moment to read the
|
Before you do that for the first time though please take a moment to read the
|
||||||
following section *completely* and also follow the instructions in the
|
following section *completely* and also follow the instructions in the
|
||||||
@@ -71,12 +71,12 @@ following section *completely* and also follow the instructions in the
|
|||||||
1. **Make sure you are at the right location**. This is the bug tracker
|
1. **Make sure you are at the right location**. This is the bug tracker
|
||||||
of the official version of OctoPrint, which is the 3D print server and
|
of the official version of OctoPrint, which is the 3D print server and
|
||||||
corresponding web interface itself.
|
corresponding web interface itself.
|
||||||
|
|
||||||
**OctoPrint doesn't manage your network connection or your webcam nor
|
**OctoPrint doesn't manage your network connection or your webcam nor
|
||||||
can it fix your printer not getting detected as a serial interface** -
|
can it fix your printer not getting detected as a serial interface** -
|
||||||
if you have any kinds of problems with that, get in touch on the
|
if you have any kinds of problems with that, get in touch on the
|
||||||
[community forum](https://community.octoprint.org).
|
[community forum](https://community.octoprint.org).
|
||||||
|
|
||||||
**This is not the bug tracker of OctoPi**, which is the preconfigured
|
**This is not the bug tracker of OctoPi**, which is the preconfigured
|
||||||
Raspberry Pi image including OctoPrint among other things - that one can be found
|
Raspberry Pi image including OctoPrint among other things - that one can be found
|
||||||
[here](https://github.com/guysoft/OctoPi). If you have any kind of specific
|
[here](https://github.com/guysoft/OctoPi). If you have any kind of specific
|
||||||
@@ -97,7 +97,7 @@ following section *completely* and also follow the instructions in the
|
|||||||
**safe mode**, either by selecting "Restart OctoPrint in safe mode" from
|
**safe mode**, either by selecting "Restart OctoPrint in safe mode" from
|
||||||
the "System" menu, or by starting OctoPrint from the command line with
|
the "System" menu, or by starting OctoPrint from the command line with
|
||||||
`octoprint serve --safe`. Then try to reproduce your issue. Find out
|
`octoprint serve --safe`. Then try to reproduce your issue. Find out
|
||||||
more about safe mode in the [docs](http://docs.octoprint.org/en/master/features/safemode.html).
|
more about safe mode in the [docs](https://docs.octoprint.org/en/master/features/safemode.html).
|
||||||
|
|
||||||
You might also want to try the current development version of OctoPrint
|
You might also want to try the current development version of OctoPrint
|
||||||
(if you aren't already). Refer to the [FAQ](https://faq.octoprint.org)
|
(if you aren't already). Refer to the [FAQ](https://faq.octoprint.org)
|
||||||
@@ -118,24 +118,24 @@ following section *completely* and also follow the instructions in the
|
|||||||
it is the same as your's, it actually behaves the same as your's. E.g. if someone gives steps
|
it is the same as your's, it actually behaves the same as your's. E.g. if someone gives steps
|
||||||
to reproduce his bug that looks like your's, reproduce the bug like that if possible,
|
to reproduce his bug that looks like your's, reproduce the bug like that if possible,
|
||||||
and only add a "me too" if you actually can reproduce the same
|
and only add a "me too" if you actually can reproduce the same
|
||||||
issue. Also **provide all information** as [described below](#what-should-i-include-in-a-bug-report)
|
issue. Also **provide all information like Systeminfo Bundle, additional logs & versions, different reproduction steps**
|
||||||
and whatever was additionally requested over the course of the ticket
|
and whatever was additionally requested over the course of the ticket
|
||||||
even if you "only" add to an existing ticket. The more information available regarding a bug, the higher
|
even if you "only" add to an existing ticket. The more information available regarding a bug, the higher
|
||||||
the chances of reproducing and solving it. But "me too" on an actually unrelated ticket
|
the chances of reproducing and solving it. But "me too" on an actually unrelated ticket
|
||||||
makes it more difficult due to on top of having to figure out the original problem
|
makes it more difficult due to on top of having to figure out the original problem
|
||||||
there's now also a [red herring](https://en.wikipedia.org/wiki/Red_herring) interfering - so please be
|
there's now also a [red herring](https://en.wikipedia.org/wiki/Red_herring) interfering - so please be
|
||||||
very diligent here!
|
very diligent here!
|
||||||
|
|
||||||
If in doubt about any of the above - get in touch on the [community forum](https://community.octoprint.org)
|
If in doubt about any of the above - get in touch on the [community forums](https://community.octoprint.org)
|
||||||
instead of opening a ticket here. If you are actually running into a bug, we'll figure it out together
|
instead of opening a ticket here. If you are actually running into a bug, we'll figure it out together
|
||||||
there.
|
there.
|
||||||
|
|
||||||
### What should I include in a bug report?
|
### What should I include in a bug report?
|
||||||
|
|
||||||
First of all make sure your use **a descriptive title**. "It doesn't work"
|
First of all make sure your use **a descriptive title**. "It doesn't work"
|
||||||
and similar unspecific complaints are NOT descriptive titles.
|
and similar unspecific complaints are NOT descriptive titles.
|
||||||
|
|
||||||
**Always use the following template, even if only adding a "me too" to an
|
**Always use the following template, even if only adding a "me too" to an
|
||||||
existing ticket**:
|
existing ticket**:
|
||||||
|
|
||||||
```
|
```
|
||||||
@@ -152,7 +152,7 @@ or request features within OctoPrint (not OctoPi, not any OctoPrint
|
|||||||
plugins and not unofficial OctoPrint versions).
|
plugins and not unofficial OctoPrint versions).
|
||||||
|
|
||||||
Do not seek support here ("I need help with ...", "I have a
|
Do not seek support here ("I need help with ...", "I have a
|
||||||
question ..."), that belongs on the community forum at
|
question ..."), that belongs on the community forum at
|
||||||
community.octoprint.org, NOT here.
|
community.octoprint.org, NOT here.
|
||||||
|
|
||||||
Mark requests with a "[Request]" prefix in the title please. For bug
|
Mark requests with a "[Request]" prefix in the title please. For bug
|
||||||
@@ -172,7 +172,7 @@ Thank you!
|
|||||||
|
|
||||||
#### What were you doing?
|
#### What were you doing?
|
||||||
|
|
||||||
<!--
|
<!--
|
||||||
Please be as specific as possible here. The maintainers will need to
|
Please be as specific as possible here. The maintainers will need to
|
||||||
reproduce your issue in order to fix it and that is not possible if they
|
reproduce your issue in order to fix it and that is not possible if they
|
||||||
don't know what you did to get it to happen in the first place.
|
don't know what you did to get it to happen in the first place.
|
||||||
@@ -180,9 +180,10 @@ don't know what you did to get it to happen in the first place.
|
|||||||
Ideally provide exact steps to follow in order to reproduce your problem:
|
Ideally provide exact steps to follow in order to reproduce your problem:
|
||||||
-->
|
-->
|
||||||
|
|
||||||
1. ...
|
1. Go to '...'
|
||||||
2. ...
|
2. Click on '....'
|
||||||
3. ...
|
3. Scroll down to '....'
|
||||||
|
4. See error
|
||||||
|
|
||||||
<!--
|
<!--
|
||||||
If you encountered a problem with specific files of any sorts, make sure
|
If you encountered a problem with specific files of any sorts, make sure
|
||||||
@@ -195,7 +196,7 @@ to also include a link to a file with which to reproduce the problem.
|
|||||||
|
|
||||||
#### Did the same happen when running OctoPrint in safe mode?
|
#### Did the same happen when running OctoPrint in safe mode?
|
||||||
|
|
||||||
<!--
|
<!--
|
||||||
Test if you can reproduce your problem in safe mode. You can find information
|
Test if you can reproduce your problem in safe mode. You can find information
|
||||||
on how to enable safe mode in the Contribution Guidelines.
|
on how to enable safe mode in the Contribution Guidelines.
|
||||||
|
|
||||||
@@ -211,14 +212,6 @@ If you can't test this in safe mode, state why.
|
|||||||
Can be found in the lower left corner of the web interface. ALWAYS INCLUDE.
|
Can be found in the lower left corner of the web interface. ALWAYS INCLUDE.
|
||||||
-->
|
-->
|
||||||
|
|
||||||
#### Operating System running OctoPrint
|
|
||||||
|
|
||||||
<!--
|
|
||||||
OctoPi, Linux, Windows, MacOS, something else? With version please.
|
|
||||||
OctoPi's version can be found in /etc/octopi_version or in the lower left
|
|
||||||
corner of the web interface.
|
|
||||||
-->
|
|
||||||
|
|
||||||
#### Printer model & used firmware incl. version
|
#### Printer model & used firmware incl. version
|
||||||
|
|
||||||
<!--
|
<!--
|
||||||
@@ -231,31 +224,19 @@ If applicable, always include if unsure.
|
|||||||
If applicable, always include if unsure.
|
If applicable, always include if unsure.
|
||||||
-->
|
-->
|
||||||
|
|
||||||
#### Link to octoprint.log
|
#### System Info Bundle
|
||||||
|
|
||||||
<!--
|
<!--
|
||||||
On gist.github.com or pastebin.com. ALWAYS INCLUDE and never truncate.
|
Directly uploaded here. ALWAYS INCLUDE.
|
||||||
|
|
||||||
The Contribution Guidelines tell you where to find that.
|
The Contribution Guidelines tell you where to find that.
|
||||||
-->
|
-->
|
||||||
|
|
||||||
#### Link to contents of terminal tab or serial.log
|
|
||||||
|
|
||||||
<!--
|
|
||||||
On gist.github.com or pastebin.com. If applicable, always include if unsure or
|
|
||||||
reporting communication issues. Never truncate.
|
|
||||||
|
|
||||||
serial.log is usually not written due to performance reasons and must be
|
|
||||||
enabled explicitly. Provide at the very least the FULL contents of your
|
|
||||||
terminal tab at the time of the bug occurrence, even if you do not have
|
|
||||||
a serial.log (which the Contribution Guidelines tell you where to find).
|
|
||||||
-->
|
|
||||||
|
|
||||||
#### Link to contents of Javascript console in the browser
|
#### Link to contents of Javascript console in the browser
|
||||||
|
|
||||||
<!--
|
<!--
|
||||||
On gist.github.com or pastebin.com or alternatively a screenshot. If applicable -
|
Directly uploaded here or on gist.github.com or pastebin.com.
|
||||||
always include if unsure or reporting UI issues.
|
If applicable - always include if unsure or reporting UI issues.
|
||||||
|
|
||||||
The Contribution Guidelines tell you where to find that.
|
The Contribution Guidelines tell you where to find that.
|
||||||
-->
|
-->
|
||||||
@@ -269,9 +250,12 @@ If applicable. Always include if unsure or reporting UI issues.
|
|||||||
I have read the FAQ.
|
I have read the FAQ.
|
||||||
```
|
```
|
||||||
|
|
||||||
Copy-paste this template **completely** (or use the version that gets pre-filled
|
Provide the same kind and amount of information also when you are just adding on to an
|
||||||
into the "new issue" form). Do not skip any lines or the bot *will* complain! Provide
|
existing ticket!
|
||||||
all requested information or your ticket will be closed.
|
|
||||||
|
### Where can I find the System Info Bundle?
|
||||||
|
|
||||||
|
Please refer to [this FAQ entry](https://community.octoprint.org/t/what-is-a-systeminfo-bundle-and-how-can-i-obtain-one/29887).
|
||||||
|
|
||||||
### Where can I find which version and branch I'm on?
|
### Where can I find which version and branch I'm on?
|
||||||
|
|
||||||
@@ -287,9 +271,10 @@ See [How to open the Javascript Console in different browsers](https://webmaster
|
|||||||
|
|
||||||
## Setting up a development environment
|
## Setting up a development environment
|
||||||
|
|
||||||
See [the corresponding chapter in the documentation](http://docs.octoprint.org/en/master/development/index.html#setting-up-a-development-environment).
|
See [the corresponding chapter in the documentation](https://docs.octoprint.org/en/master/development/environment.html).
|
||||||
This also includes information on how to run the test suite and how to build
|
This also includes information on how to run the test suite and how to build
|
||||||
the documentation.
|
the documentation, the bundled virtual printer plugin and OctoPrint's versioning
|
||||||
|
and branching strategy.
|
||||||
|
|
||||||
## Pull requests
|
## Pull requests
|
||||||
|
|
||||||
@@ -297,11 +282,12 @@ the documentation.
|
|||||||
consider if it wouldn't be better suited for a plugin.** As a general rule
|
consider if it wouldn't be better suited for a plugin.** As a general rule
|
||||||
of thumb, any feature that is only of interest to a small sub group should
|
of thumb, any feature that is only of interest to a small sub group should
|
||||||
be moved into a plugin. If the current plugin system doesn't allow you to
|
be moved into a plugin. If the current plugin system doesn't allow you to
|
||||||
implement your feature as a plugin, create a "Brainstorming" ticket to get
|
implement your feature as a plugin, please get in touch on the
|
||||||
|
[forums](https://community.octoprint.org/c/development) to get
|
||||||
the discussion going on how best to solve *this* in OctoPrint's plugin
|
the discussion going on how best to solve *this* in OctoPrint's plugin
|
||||||
system - maybe that's the actual PR you have been waiting for to contribute :)
|
system - maybe that's the actual PR you have been waiting for to contribute :)
|
||||||
2. If you plan to make **any large or otherwise disruptive changes to the
|
2. If you plan to make **any large or otherwise disruptive changes to the
|
||||||
code or appearance, please get in touch on the
|
code or appearance, please get in touch on the
|
||||||
[forums](https://community.octoprint.org/c/development)** first so
|
[forums](https://community.octoprint.org/c/development)** first so
|
||||||
that we can determine if it's a good time for your specific pull
|
that we can determine if it's a good time for your specific pull
|
||||||
request. It might be that we're currently in the process of making
|
request. It might be that we're currently in the process of making
|
||||||
@@ -310,19 +296,20 @@ the documentation.
|
|||||||
just cause unnecessary work and frustration for everyone or
|
just cause unnecessary work and frustration for everyone or
|
||||||
possibly get the PR rejected.
|
possibly get the PR rejected.
|
||||||
3. Create your pull request **from a custom branch** on your end (e.g.
|
3. Create your pull request **from a custom branch** on your end (e.g.
|
||||||
`dev/myNewFeature`)[1].
|
`improve/myNewFeature`)[1].
|
||||||
4. Create your pull request **only against the `maintenance` or `devel` branch**:
|
4. Create your pull request **only against the `maintenance` or `devel` branch**:
|
||||||
* if it's a bug fix for a bug in the current stable version, an improvement of existing functionality or a
|
* if it's a bug fix for a bug in the current stable version, an improvement of existing functionality or a
|
||||||
*small* new feature (e.g. a new hook, a new config flag, ...): `maintenance` branch
|
*small* backwards compatible new feature (e.g. a new hook, a new config flag, ...): `maintenance` branch
|
||||||
* otherwise: `devel` branch
|
* if it's a bigger backwards compatible new feature: please [get in touch](https://community.octoprint.org/c/development) first to avoid
|
||||||
|
wasting work that doesn't match the current direction of the project or implement as a plugin.
|
||||||
|
* if it's any breaking backwards incompatible change: `devel` branch. In case of big changes, [get in touch](https://community.octoprint.org/c/development) first.
|
||||||
5. Create **one pull request per feature/bug fix**.
|
5. Create **one pull request per feature/bug fix**.
|
||||||
6. Make sure there are **only relevant changes** included in your PR. No
|
6. Make sure there are **only relevant changes** included in your PR. No
|
||||||
changes to unrelated files, no additional files that don't belong (e.g.
|
changes to unrelated files, no additional files that don't belong (e.g.
|
||||||
commits of your full virtual environment). Make sure your PR consists
|
commits of your full virtual environment). Make sure your PR consists
|
||||||
**ideally of only one commit** (use git's rebase and squash functionality).
|
**ideally of only one commit** (use git's rebase and squash functionality).
|
||||||
7. Make sure you **follow the current coding style**. This means:
|
7. Make sure you **follow the current coding style**. This means:
|
||||||
* Tabs instead of spaces in the Python files[2]
|
* Spaces for indenting and alignment, indentation width 4.
|
||||||
* Spaces instead of tabs in the JavaScript sources
|
|
||||||
* English language (code, variables, comments, ...)
|
* English language (code, variables, comments, ...)
|
||||||
* Comments where necessary: Tell *why* the code does something like it does
|
* Comments where necessary: Tell *why* the code does something like it does
|
||||||
it, structure your code
|
it, structure your code
|
||||||
@@ -333,29 +320,41 @@ the documentation.
|
|||||||
from experiments).
|
from experiments).
|
||||||
8. Ensure your changes **pass the existing unit tests**. PRs that break
|
8. Ensure your changes **pass the existing unit tests**. PRs that break
|
||||||
those cannot be accepted. You can run the unit tests locally (after
|
those cannot be accepted. You can run the unit tests locally (after
|
||||||
[initial development environment setup with "develop" dependencies](http://docs.octoprint.org/en/master/development/index.html#setting-up-a-development-environment))
|
[initial development environment setup with "develop" dependencies](https://docs.octoprint.org/en/master/development/environment.html))
|
||||||
by running
|
by running
|
||||||
|
|
||||||
```
|
```
|
||||||
nosetests --with-doctest
|
pytest
|
||||||
```
|
```
|
||||||
|
|
||||||
in the OctoPrint checkout folder. A [travis build](https://travis-ci.org/foosel/OctoPrint)
|
in the OctoPrint checkout folder. An [automatic build workflow](https://github.com/OctoPrint/OctoPrint/actions?query=workflow%3ABuild)
|
||||||
is also setup so that if the tests should fail, your PR will be marked
|
is also setup so that if the tests should fail, your PR will be marked
|
||||||
accordingly.
|
accordingly.
|
||||||
9. **Test your changes thoroughly**. That also means testing with usage
|
9. Run the **pre-commit check suite** against your changes. You can run that (after
|
||||||
scenarios you don't normally use, e.g. if you only use access control, test
|
[initial development environment setup with "develop" dependencies](https://docs.octoprint.org/en/master/development/environment.html))
|
||||||
without and vice versa. If you only test with your printer, test with the
|
by running
|
||||||
virtual printer and vice versa. State in your pull request how you tested
|
|
||||||
your changes. Ideally **add unit tests** - OctoPrint severely lacks in that
|
```
|
||||||
department, but we are trying to change that, so any new code already covered
|
pre-commit run --hook-stage manual --all-files
|
||||||
with a test suite helps a lot!
|
```
|
||||||
10. In your pull request's description, **state what your pull request does**,
|
|
||||||
|
in the OctoPrint checkout folder. If you install the pre-commit hooks via
|
||||||
|
`pre-commit install` (which you really should!) this will even be taken care of for you prior to committing.
|
||||||
|
|
||||||
|
An [automatic build workflow](https://github.com/OctoPrint/OctoPrint/actions?query=workflow%3ABuild)
|
||||||
|
is in place that will run these checks - if they fail your PR will be marked accordingly.
|
||||||
|
10. **Test your changes thoroughly**. That also means testing with usage
|
||||||
|
scenarios you don't normally use. If you only test with your printer, test with the
|
||||||
|
virtual printer and vice versa. State in your pull request how you tested
|
||||||
|
your changes. Ideally **add unit tests** - OctoPrint severely lacks in that
|
||||||
|
department, but we are trying to change that, so any new code already covered
|
||||||
|
with a test suite helps a lot!
|
||||||
|
11. In your pull request's description, **state what your pull request does**,
|
||||||
as in, what feature does it implement, what bug does it fix. The more
|
as in, what feature does it implement, what bug does it fix. The more
|
||||||
thoroughly you explain your intent behind the PR here, the higher the
|
thoroughly you explain your intent behind the PR here, the higher the
|
||||||
chances it will get merged fast. There is a template provided below
|
chances it will get merged fast. There is a template provided below
|
||||||
that can help you here.
|
that can help you here.
|
||||||
11. Don't forget to **add yourself to the [AUTHORS](./AUTHORS.md)
|
12. Don't forget to **add yourself to the [AUTHORS](./AUTHORS.md)
|
||||||
file** :)
|
file** :)
|
||||||
|
|
||||||
Template to use for Pull Request descriptions:
|
Template to use for Pull Request descriptions:
|
||||||
@@ -374,81 +373,13 @@ Template to use for Pull Request descriptions:
|
|||||||
#### Further notes
|
#### Further notes
|
||||||
```
|
```
|
||||||
|
|
||||||
|
## How is OctoPrint versioned?
|
||||||
|
|
||||||
|
See [the corresponding chapter in the documentation](https://docs.octoprint.org/en/master/development/versioning.html).
|
||||||
|
|
||||||
## What do the branches mean?
|
## What do the branches mean?
|
||||||
|
|
||||||
There are three main branches in OctoPrint:
|
See [the corresponding chapter in the documentation](https://docs.octoprint.org/en/master/development/branches.html).
|
||||||
|
|
||||||
* `master`: The master branch always contains the current stable release. It
|
|
||||||
is *only* updated on new releases. Will have a version number following
|
|
||||||
the scheme `<x>.<y>.<z>` (e.g. `1.2.9`) or - if it's absolutely necessary to
|
|
||||||
add a commit after release to this branch - `<x>.<y>.<z>.post<commits since x.y.z>`
|
|
||||||
(e.g. `1.2.9.post1`).
|
|
||||||
* `maintenance`: Improvements and fixes of the current release that make up
|
|
||||||
the next release go here. More or less continuously updated. You can consider
|
|
||||||
this a preview of the next release version. It should be very stable at all
|
|
||||||
times. Anything you spot in here helps tremendously with getting a rock solid
|
|
||||||
next stable release, so if you want to help out development, running the
|
|
||||||
`maintenance` branch and reporting back anything you find is a very good way
|
|
||||||
to do that. Will usually have a version number following the scheme
|
|
||||||
`<x>.<y>.<z+1>.dev<commits since increase of z>` for an OctoPrint version of `<x>.<y>.<z>`
|
|
||||||
(e.g. `1.2.10.dev12`).
|
|
||||||
* `devel`: Ongoing development of new features that will go into the next bigger
|
|
||||||
release (MINOR version number increases) will happen on this branch. Usually
|
|
||||||
kept stable, sometimes stuff can break though or lose backwards compatibility
|
|
||||||
temporarily. Can be considered the "bleeding edge". All PRs should target
|
|
||||||
*this* branch. Important improvements and fixes from PRs here are backported to
|
|
||||||
`maintenance` as needed. Will usually have a version number following the
|
|
||||||
scheme `<x>.<y+1>.0.dev<commits since increase of y>` for a current OctoPrint version
|
|
||||||
of `<x>.<y>.<z>` (e.g. `1.3.0.dev123`).
|
|
||||||
* `rc/maintenance`: This branch is reserved for future releases that have graduated from
|
|
||||||
the `maintenance` branch and are now being pushed on the "Maintenance"
|
|
||||||
pre release channel for further testing. Version number follows the scheme
|
|
||||||
`<x>.<y>.<z>rc<n>` (e.g. `1.2.9rc1`).
|
|
||||||
* `staging/maintenance`: Any preparation for potential follow-up RCs takes place here.
|
|
||||||
Version number follows the scheme `<x>.<y>.<z>rc<n+1>.dev<commits since increase of n>` (e.g.
|
|
||||||
`1.2.9rc1.dev3`) for a current Maintenance RC of `<x>.<y>.<z>rc<n>`.
|
|
||||||
* `rc/devel`: This branch is reserved for future releases that have graduated from
|
|
||||||
the `devel` branch and are now being pushed on the "Devel" pre release channel
|
|
||||||
for further testing. Version number follows the scheme `<x>.<y+1>.0rc<n>` (e.g. `1.3.0rc1`)
|
|
||||||
for a current stable OctoPrint version of `<x>.<y>.<z>`.
|
|
||||||
* `staging/devel`: Any preparation for potential follow-up Devel RCs takes place
|
|
||||||
here. Version number follows the scheme `<x>.<y>.0rc<n+1>.dev<commits since increase of n>` (e.g.
|
|
||||||
`1.3.0rc1.dev12`) for a current Devel RC of `<x>.<y>.0rc<n>`.
|
|
||||||
|
|
||||||
Additionally, from time to time you might see other branches pop up in the repository.
|
|
||||||
Those usually have one of the following prefixes:
|
|
||||||
|
|
||||||
* `fix/...`: Fixes under development that are to be merged into the `maintenance`
|
|
||||||
and `devel` branches.
|
|
||||||
* `improve/...`: Improvements under development that are to be merged into the
|
|
||||||
`maintenance` and `devel` branches.
|
|
||||||
* `dev/...` or `feature/...`: New functionality under development that is to be merged
|
|
||||||
into the `devel` branch.
|
|
||||||
|
|
||||||
There is also the `gh-pages` branch, which holds OctoPrint's web page, and a few
|
|
||||||
older development branches that are slowly being migrated or deleted.
|
|
||||||
|
|
||||||
## How OctoPrint is versioned
|
|
||||||
|
|
||||||
OctoPrint follows the [semantic versioning scheme](http://semver.org/) of **MAJOR.MINOR.PATCH**.
|
|
||||||
|
|
||||||
The **PATCH** version number is the one increasing most often due to OctoPrint's maintenance releases.
|
|
||||||
Releases that only change the patch number indicate that they contain bug fixes and small improvements
|
|
||||||
of existing functionality. Example: 1.2.8 to 1.2.9.
|
|
||||||
|
|
||||||
The **MINOR** version number increases with releases that add a lot of new functionality and
|
|
||||||
large features. Example: 1.2.x to 1.3.0.
|
|
||||||
|
|
||||||
Finally, the **MAJOR** version number increases if there are breaking API changes that concern any of the
|
|
||||||
documented interfaces (REST API, plugin interfaces, ...). So far this hasn't happened. Example: 1.x.y to 2.0.0.
|
|
||||||
|
|
||||||
OctoPrint's version numbers are automatically generated using [versioneer](https://github.com/warner/python-versioneer)
|
|
||||||
and depend on the selected git branch, nearest git tag and commits. The generated version number
|
|
||||||
should always be [PEP440](https://www.python.org/dev/peps/pep-0440/) compatible. Unless a git tag
|
|
||||||
is used for version number determination, the version number will also contain the git hash within
|
|
||||||
the local version identifier to allow for an exact determination of the active code base
|
|
||||||
(e.g. `1.2.9.dev68+g46c7a9c`). Additionally, instances with active uncommitted changes will contain
|
|
||||||
`.dirty` in the local version identifier.
|
|
||||||
|
|
||||||
## History
|
## History
|
||||||
|
|
||||||
@@ -477,14 +408,15 @@ the local version identifier to allow for an exact determination of the active c
|
|||||||
* 2018-03-29: "Where to find version numbers" is now located on the FAQ
|
* 2018-03-29: "Where to find version numbers" is now located on the FAQ
|
||||||
* 2018-10-18: Allow PRs against `maintenance` branch for improvements and small
|
* 2018-10-18: Allow PRs against `maintenance` branch for improvements and small
|
||||||
new features, suggest getting in touch on the forum for larger changes
|
new features, suggest getting in touch on the forum for larger changes
|
||||||
|
* 2020-08-10: Update versioning scheme and PR instructions
|
||||||
|
* 2020-09-23: Move branch & versioning into development docs
|
||||||
|
* 2020-10-07: Introduce `pre-commit`
|
||||||
|
* 2021-02-04: Issue forms! \o/
|
||||||
|
* 2021-03-04: Correct issue forms link
|
||||||
|
* 2021-04-27: Systeminfo Bundles! \o/
|
||||||
|
|
||||||
## Footnotes
|
## Footnotes
|
||||||
* [1] - If you are wondering why, the problem is that anything that you add
|
* [1] - If you are wondering why, the problem is that anything that you add
|
||||||
to your PR's branch will also become part of your PR, so if you create a
|
to your PR's branch will also become part of your PR, so if you create a
|
||||||
PR from your version of `devel` chances are high you'll add changes to the
|
PR from your version of `devel` chances are high you'll add changes to the
|
||||||
PR that do not belong to the PR.
|
PR that do not belong to the PR.
|
||||||
* [2] - Yes, we know that this goes against PEP-8. OctoPrint started out as
|
|
||||||
a fork of Cura and hence stuck to the coding style found therein. Changing
|
|
||||||
it now would make the history and especially `git blame` completely
|
|
||||||
unusable, so for now we'll have to deal with it (this decision might be
|
|
||||||
revisited in the future).
|
|
||||||
@@ -1,46 +1,54 @@
|
|||||||
# OctoPrint
|
<p align="center"><img src="https://octoprint.org/assets/img/logo.png" alt="OctoPrint's logo" /></p>
|
||||||
|
|
||||||
|
<h1 align="center">OctoPrint</h1>
|
||||||
|
|
||||||

|
<p align="center">
|
||||||
[](https://travis-ci.org/foosel/OctoPrint)
|
<img src="https://img.shields.io/github/v/release/OctoPrint/OctoPrint?logo=github&logoColor=white" alt="GitHub release"/>
|
||||||
[](https://community.octoprint.org)
|
<img src="https://img.shields.io/pypi/v/OctoPrint?logo=python&logoColor=white" alt="PyPI"/>
|
||||||
[](https://chat.octoprint.org)
|
<img src="https://img.shields.io/github/workflow/status/OctoPrint/OctoPrint/Build" alt="Build status"/>
|
||||||
[](https://twitter.com/OctoPrint3d)
|
<a href="https://community.octoprint.org"><img src="https://img.shields.io/discourse/users?logo=discourse&logoColor=white&server=https%3A%2F%2Fcommunity.octoprint.org" alt="Community Forum"/></a>
|
||||||
|
<a href="https://discord.octoprint.org"><img src="https://img.shields.io/discord/704958479194128507?label=discord&logo=discord&logoColor=white" alt="Discord"/></a>
|
||||||
|
<a href="https://twitter.com/OctoPrint3d"><img src="https://img.shields.io/twitter/follow/OctoPrint3d.svg?style=social&label=Follow" alt="Twitter Follow"/></a>
|
||||||
|
<a href="https://octoprint.org/conduct/"><img src="https://img.shields.io/badge/Contributor%20Covenant-v2.0%20adopted-ff69b4.svg" alt="Contributor Covenant"/></a>
|
||||||
|
<a href="https://github.com/psf/black"><img src="https://img.shields.io/badge/code%20style-black-000000.svg" alt="Code style: black"/></a>
|
||||||
|
<a href="https://github.com/prettier/prettier"><img src="https://img.shields.io/badge/code_style-prettier-ff69b4.svg?style=flat-square" alt="Code style: prettier"/></a>
|
||||||
|
<a href="https://pycqa.github.io/isort/"><img src="https://img.shields.io/badge/%20imports-isort-%231674b1" alt="Imports: isort"/></a>
|
||||||
|
<a href="https://github.com/pre-commit/pre-commit"><img src="https://img.shields.io/badge/pre--commit-enabled-brightgreen?logo=pre-commit&logoColor=white" alt="pre-commit"/></a>
|
||||||
|
</p>
|
||||||
|
|
||||||
OctoPrint provides a snappy web interface for controlling consumer 3D printers. It is Free Software
|
OctoPrint provides a snappy web interface for controlling consumer 3D printers. It is Free Software
|
||||||
and released under the [GNU Affero General Public License V3](http://www.gnu.org/licenses/agpl.html).
|
and released under the [GNU Affero General Public License V3](https://www.gnu.org/licenses/agpl-3.0.html).
|
||||||
|
|
||||||
Its website can be found at [octoprint.org](https://octoprint.org/?utm_source=github&utm_medium=readme).
|
Its website can be found at [octoprint.org](https://octoprint.org/?utm_source=github&utm_medium=readme).
|
||||||
|
|
||||||
The community forum is available at [community.octoprint.org](https://community.octoprint.org/?utm_source=github&utm_medium=readme).
|
The community forum is available at [community.octoprint.org](https://community.octoprint.org/?utm_source=github&utm_medium=readme). It also serves as central knowledge base.
|
||||||
|
|
||||||
The official IRC channel is [#octoprint on freenode](https://chat.octoprint.org). Its logs can be found [here](https://freenode.logbot.info/octoprint).
|
An invite to the Discord server can be found at [discord.octoprint.org](https://discord.octoprint.org).
|
||||||
|
|
||||||
The FAQ can be accessed by following [faq.octoprint.org](https://faq.octoprint.org/?utm_source=github&utm_medium=readme).
|
The FAQ can be accessed by following [faq.octoprint.org](https://faq.octoprint.org/?utm_source=github&utm_medium=readme).
|
||||||
|
|
||||||
The documentation is located at [docs.octoprint.org](http://docs.octoprint.org).
|
The documentation is located at [docs.octoprint.org](https://docs.octoprint.org).
|
||||||
|
|
||||||
The official plugin repository can be reached at [plugins.octoprint.org](https://plugins.octoprint.org/?utm_source=github&utm_medium=readme).
|
The official plugin repository can be reached at [plugins.octoprint.org](https://plugins.octoprint.org/?utm_source=github&utm_medium=readme).
|
||||||
|
|
||||||
**OctoPrint's development wouldn't be possible without the [financial support by its community](https://octoprint.org/support-octoprint/?utm_source=github&utm_medium=readme).
|
**OctoPrint's development wouldn't be possible without the [financial support by its community](https://octoprint.org/support-octoprint/?utm_source=github&utm_medium=readme).
|
||||||
If you enjoy OctoPrint, please consider becoming a regular supporter!**
|
If you enjoy OctoPrint, please consider becoming a regular supporter!**
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
You are currently looking at the source code repository of OctoPrint. If you already installed it
|
You are currently looking at the source code repository of OctoPrint. If you already installed it
|
||||||
(e.g. by using the Raspberry Pi targeted distribution [OctoPi](https://github.com/guysoft/OctoPi)) and only
|
(e.g. by using the Raspberry Pi targeted distribution [OctoPi](https://github.com/guysoft/OctoPi)) and only
|
||||||
want to find out how to use it, [the documentation](http://docs.octoprint.org/) and [the public wiki](https://github.com/foosel/OctoPrint/wiki)
|
want to find out how to use it, [the documentation](https://docs.octoprint.org/) might be of more interest for you. You might also want to subscribe to join
|
||||||
might be of more interest for you. You might also want to subscribe to join
|
|
||||||
[the community forum at community.octoprint.org](https://community.octoprint.org) where there are other active users who might be
|
[the community forum at community.octoprint.org](https://community.octoprint.org) where there are other active users who might be
|
||||||
able to help you with any questions you might have.
|
able to help you with any questions you might have.
|
||||||
|
|
||||||
## Contributing
|
## Contributing
|
||||||
|
|
||||||
Contributions of all kinds are welcome, not only in the form of code but also with regards to the
|
Contributions of all kinds are welcome, not only in the form of code but also with regards to the
|
||||||
[official documentation](http://docs.octoprint.org/) or [the public wiki](https://github.com/foosel/OctoPrint/wiki), debugging help
|
[official documentation](https://docs.octoprint.org/), debugging help
|
||||||
in the [bug tracker](https://github.com/foosel/OctoPrint/issues), support of other users on
|
in the [bug tracker](https://github.com/OctoPrint/OctoPrint/issues), support of other users on
|
||||||
[the community forum at community.octoprint.org](https://community.octoprint.org)
|
[the community forum at community.octoprint.org](https://community.octoprint.org) or
|
||||||
|
[the official discord at discord.octoprint.org](https://discord.octoprint.org)
|
||||||
and also [financially](https://octoprint.org/support-octoprint/?utm_source=github&utm_medium=readme).
|
and also [financially](https://octoprint.org/support-octoprint/?utm_source=github&utm_medium=readme).
|
||||||
|
|
||||||
If you think something is bad about OctoPrint or its documentation the way it is, please help
|
If you think something is bad about OctoPrint or its documentation the way it is, please help
|
||||||
@@ -48,48 +56,44 @@ in any way to make it better instead of just complaining about it -- this is an
|
|||||||
after all :)
|
after all :)
|
||||||
|
|
||||||
For information about how to go about submitting bug reports or pull requests, please see the project's
|
For information about how to go about submitting bug reports or pull requests, please see the project's
|
||||||
[Contribution Guidelines](https://github.com/foosel/OctoPrint/blob/master/CONTRIBUTING.md).
|
[Contribution Guidelines](https://github.com/OctoPrint/OctoPrint/blob/master/CONTRIBUTING.md).
|
||||||
|
|
||||||
## Installation
|
## Installation
|
||||||
|
|
||||||
Installation instructions for installing from source for different operating
|
Installation instructions for installing from source for different operating
|
||||||
systems can be found [on the wiki](https://github.com/foosel/OctoPrint/wiki#assorted-guides).
|
systems can be found [on the forum](https://community.octoprint.org/tags/c/support/guides/15/setup).
|
||||||
|
|
||||||
If you want to run OctoPrint on a Raspberry Pi, you might want to take a look at [OctoPi](https://github.com/guysoft/OctoPi)
|
If you want to run OctoPrint on a Raspberry Pi, you really should take a look at [OctoPi](https://github.com/guysoft/OctoPi)
|
||||||
which is a custom SD card image that includes OctoPrint plus dependencies.
|
which is a custom SD card image that includes OctoPrint plus dependencies.
|
||||||
|
|
||||||
The generic steps that should basically be done regardless of operating system
|
The generic steps that should basically be done regardless of operating system
|
||||||
and runtime environment are the following (as *regular
|
and runtime environment are the following (as *regular
|
||||||
user*, please keep your hands *off* of the `sudo` command here!) - this assumes
|
user*, please keep your hands *off* of the `sudo` command here!) - this assumes
|
||||||
you already have Python 2.7, 3.6 or 3.7, pip and virtualenv set up on your system:
|
you already have Python 3.6, 3.7 or 3.8, pip and virtualenv and their dependencies set up on your system:
|
||||||
|
|
||||||
1. Checkout OctoPrint: `git clone https://github.com/foosel/OctoPrint.git`
|
1. Create a user-owned virtual environment therein: `virtualenv venv`. If you want to specify a specific python
|
||||||
2. Change into the OctoPrint folder: `cd OctoPrint`
|
to use instead of whatever version your system defaults to, you can also explicitly require that via the `--python`
|
||||||
3. Create a user-owned virtual environment therein: `virtualenv venv`
|
parameter, e.g. `virtualenv --python=python3 venv`.
|
||||||
4. Install OctoPrint *into that virtual environment*: `./venv/bin/pip install .`
|
2. Install OctoPrint *into that virtual environment*: `./venv/bin/pip install OctoPrint`
|
||||||
|
|
||||||
You may then start the OctoPrint server via `/path/to/OctoPrint/venv/bin/octoprint`, see [Usage](#usage)
|
You may then start the OctoPrint server via `/path/to/OctoPrint/venv/bin/octoprint`, see [Usage](#usage)
|
||||||
for details.
|
for details.
|
||||||
|
|
||||||
After installation, please make sure you follow the first-run wizard and set up
|
After installation, please make sure you follow the first-run wizard and set up
|
||||||
access control as necessary.
|
access control as necessary.
|
||||||
|
|
||||||
## Dependencies
|
## Dependencies
|
||||||
|
|
||||||
OctoPrint depends on a few python modules to do its job. Those are automatically installed when installing
|
OctoPrint depends on a few python modules to do its job. Those are automatically installed when installing
|
||||||
OctoPrint via `pip`:
|
OctoPrint via `pip`.
|
||||||
|
|
||||||
pip install .
|
OctoPrint currently supports Python 3.6, 3.7 and 3.8.
|
||||||
|
|
||||||
You should do this every time after pulling from the repository, since the dependencies may have changed.
|
|
||||||
|
|
||||||
OctoPrint currently supports Python 2.7, 3.6 and 3.7.
|
|
||||||
|
|
||||||
## Usage
|
## Usage
|
||||||
|
|
||||||
Running the pip install via
|
Running the pip install via
|
||||||
|
|
||||||
pip install .
|
pip install OctoPrint
|
||||||
|
|
||||||
installs the `octoprint` script in your Python installation's scripts folder
|
installs the `octoprint` script in your Python installation's scripts folder
|
||||||
(which, depending on whether you installed OctoPrint globally or into a virtual env, will be in your `PATH` or not). The
|
(which, depending on whether you installed OctoPrint globally or into a virtual env, will be in your `PATH` or not). The
|
||||||
@@ -136,7 +140,7 @@ which is located at `~/.octoprint` on Linux, at `%APPDATA%/OctoPrint` on Windows
|
|||||||
at `~/Library/Application Support/OctoPrint` on MacOS.
|
at `~/Library/Application Support/OctoPrint` on MacOS.
|
||||||
|
|
||||||
A comprehensive overview of all available configuration settings can be found
|
A comprehensive overview of all available configuration settings can be found
|
||||||
[in the docs](http://docs.octoprint.org/en/master/configuration/config_yaml.html).
|
[in the docs](https://docs.octoprint.org/en/master/configuration/config_yaml.html).
|
||||||
Please note that the most commonly used configuration settings can also easily
|
Please note that the most commonly used configuration settings can also easily
|
||||||
be edited from OctoPrint's settings dialog.
|
be edited from OctoPrint's settings dialog.
|
||||||
|
|
||||||
|
|||||||
+11
@@ -0,0 +1,11 @@
|
|||||||
|
# Security Policy
|
||||||
|
|
||||||
|
## Supported Versions
|
||||||
|
|
||||||
|
Always update to the latest version of OctoPrint to keep up with security patches.
|
||||||
|
|
||||||
|
## Reporting a Vulnerability
|
||||||
|
|
||||||
|
Email to security@octoprint.org.
|
||||||
|
|
||||||
|
For the sake of the userbase of OctoPrint please always disclose responsibly and with a 90+ day window.
|
||||||
+50
-26
@@ -1,57 +1,81 @@
|
|||||||
# Supporters
|
# Supporters
|
||||||
|
|
||||||
Development of this version of OctoPrint wouldn't have been possible without
|
Development of this version of OctoPrint wouldn't have been possible without
|
||||||
[the financial support by the community](https://octoprint.org/support-octoprint/) -
|
[the financial support by the community](https://support.octoprint.org) -
|
||||||
thanks to everyone who contributed!
|
thanks to everyone who contributed!
|
||||||
|
|
||||||
## Patreon Patrons
|
## Patrons & Sponsors
|
||||||
|
|
||||||
* Andre Bubel
|
* 3D-TECH
|
||||||
* Andrew Moorby
|
* 3DPrinterOS
|
||||||
* Arnljot Arntsen
|
* Arnljot Arntsen
|
||||||
* Bjorn Breckenridge
|
* Artillery 3D
|
||||||
|
* Ash King
|
||||||
|
* BigTreeTech
|
||||||
* Boris Hussein
|
* Boris Hussein
|
||||||
* Brad Jackson
|
* Brad Jackson
|
||||||
|
* BRANDON ROBERTSON
|
||||||
|
* BuildBee
|
||||||
|
* Chris Lynch
|
||||||
* Christian Petropolis
|
* Christian Petropolis
|
||||||
* Christian Wolf
|
* Christian Wolf
|
||||||
* COLLE+McVOY
|
* Christian Würthner
|
||||||
* D Brian Kimmel
|
* Christoph Sigrist
|
||||||
|
* Creality3D
|
||||||
|
* David Bounds
|
||||||
* DeltaMaker 3D Printers
|
* DeltaMaker 3D Printers
|
||||||
* Dorian Gray
|
* Dennis Breining
|
||||||
* E3D BigBox
|
* Dr. Frank Wester
|
||||||
* Eric Betts
|
* Eric Betts
|
||||||
* Ernesto Martinez
|
* Ernesto Martinez
|
||||||
* Franziska Kunsmann
|
* Franziska Kunsmann
|
||||||
* George Robles
|
* George Robles
|
||||||
* jean-claude migneault
|
* Greg Holloway
|
||||||
* Jeff Renfer
|
* Hog Duske
|
||||||
* Jefferson Hunt
|
* Itay Shem-tov
|
||||||
* Jeremiah Avery
|
* Jeff Moe
|
||||||
* Joseph Payne
|
* Jeremy Cole
|
||||||
* Joshua Wills
|
* Joshua Wills
|
||||||
|
* Julian Melo
|
||||||
* Justin Kaufman
|
* Justin Kaufman
|
||||||
* Kaile Riser
|
* Kaile Riser
|
||||||
* Kale Stedman
|
|
||||||
* Kazuhiro Ogura
|
* Kazuhiro Ogura
|
||||||
|
* Kelly C McNiece
|
||||||
|
* Kenneth Jiang
|
||||||
|
* Kurt Wubbels
|
||||||
|
* Kyle Menigoz
|
||||||
* LA 3D Printer Repair
|
* LA 3D Printer Repair
|
||||||
* LulzBot®
|
* Lachlan Bell
|
||||||
|
* Lee Dohm
|
||||||
|
* Lefteris Lertas
|
||||||
|
* LulzBot
|
||||||
* Makespace Madrid
|
* Makespace Madrid
|
||||||
* Mark Walker
|
* Mark Walker
|
||||||
* Michael Aumock
|
* Michael Aumock
|
||||||
|
* Mike Kershaw
|
||||||
* Miles Flavel
|
* Miles Flavel
|
||||||
* Mosaic Manufacturing
|
* Mosaic Manufacturing
|
||||||
* OMER MEHMET SUTAS
|
* Nat Friedman
|
||||||
* Patrick McGinnis
|
* Neil R. Goldberg
|
||||||
* Prof Yuh Wen Chen
|
* Norman Jaffe
|
||||||
|
* Ory Weaver
|
||||||
|
* Peopoly
|
||||||
|
* Pete Barnwell
|
||||||
|
* Raise3D
|
||||||
* Randy C. Will
|
* Randy C. Will
|
||||||
|
* Ranjib Dey
|
||||||
|
* Richard McGuire
|
||||||
|
* Richard Michaud
|
||||||
|
* Richard Stocks
|
||||||
* Robert Gusek
|
* Robert Gusek
|
||||||
* Samer Najia
|
* Ronald Griehsler
|
||||||
* Shawn Lewis
|
* Sebastien Andrivet
|
||||||
* Simon Hallam
|
|
||||||
* Stefan Krister
|
* Stefan Krister
|
||||||
|
* Steve Thompson
|
||||||
* Sven Mueller
|
* Sven Mueller
|
||||||
* TEVO 3D Printers
|
* TH3D
|
||||||
* Trent Shumay
|
* The Spaghetti Detective
|
||||||
|
* Ulderico Cirello
|
||||||
* Ulrich Kempken
|
* Ulrich Kempken
|
||||||
|
|
||||||
and 1544 more wonderful people pledging on the [Patreon campaign](https://patreon.com/foosel)!
|
and 2247 more wonderful people pledging on the [Patreon campaign](https://patreon.com/foosel) or via [GitHub Sponsors](https://github.com/users/foosel/sponsorship)!
|
||||||
+17
-1
@@ -4,6 +4,7 @@
|
|||||||
|
|
||||||
* [AVLTree](https://gist.github.com/viking/2424106) (modified): GPL, LGPL (dual licensed)
|
* [AVLTree](https://gist.github.com/viking/2424106) (modified): GPL, LGPL (dual licensed)
|
||||||
* [Babel JavaScript Support](https://github.com/mitsuhiko/babel/blob/master/contrib/babel.js): BSD
|
* [Babel JavaScript Support](https://github.com/mitsuhiko/babel/blob/master/contrib/babel.js): BSD
|
||||||
|
* [@babel/polyfill](https://babeljs.io/docs/en/babel-polyfill/): MIT
|
||||||
* [Bootstrap](http://getbootstrap.com/): Apache License 2.0
|
* [Bootstrap](http://getbootstrap.com/): Apache License 2.0
|
||||||
* [Bootstrap Modal](http://jschr.github.io/bootstrap-modal/): Apache License 2.0
|
* [Bootstrap Modal](http://jschr.github.io/bootstrap-modal/): Apache License 2.0
|
||||||
* [Bootstrap Slider Knockout Binding](https://github.com/cosminstefanxp/bootstrap-slider-knockout-binding): MIT
|
* [Bootstrap Slider Knockout Binding](https://github.com/cosminstefanxp/bootstrap-slider-knockout-binding): MIT
|
||||||
@@ -12,6 +13,7 @@
|
|||||||
* [css-element-queries](https://github.com/marcj/css-element-queries): MIT
|
* [css-element-queries](https://github.com/marcj/css-element-queries): MIT
|
||||||
* [Detect Mobile Browser](http://detectmobilebrowsers.com/): Public Domain
|
* [Detect Mobile Browser](http://detectmobilebrowsers.com/): Public Domain
|
||||||
* [Flot](http://www.flotcharts.org/): MIT
|
* [Flot](http://www.flotcharts.org/): MIT
|
||||||
|
* [HLS.js](https://github.com/video-dev/hls.js): Apache License 2.0
|
||||||
* [JavaScript MD5](https://github.com/blueimp/JavaScript-MD5): MIT
|
* [JavaScript MD5](https://github.com/blueimp/JavaScript-MD5): MIT
|
||||||
* [JQuery](http://jquery.com/): MIT
|
* [JQuery](http://jquery.com/): MIT
|
||||||
* [JQuery Bootstrap Wizard](http://github.com/VinceG/twitter-bootstrap-wizard): MIT, GPL (dual licensed)
|
* [JQuery Bootstrap Wizard](http://github.com/VinceG/twitter-bootstrap-wizard): MIT, GPL (dual licensed)
|
||||||
@@ -21,15 +23,19 @@
|
|||||||
* [JQuery Slimscroll](http://rocha.la/jQuery-slimScroll): MIT, GPL (dual licensed)
|
* [JQuery Slimscroll](http://rocha.la/jQuery-slimScroll): MIT, GPL (dual licensed)
|
||||||
* [JQuery UI Core, Mouse, Slider and Widget](http://jqueryui.com): MIT
|
* [JQuery UI Core, Mouse, Slider and Widget](http://jqueryui.com): MIT
|
||||||
* [Knockout](http://knockoutjs.com/): MIT
|
* [Knockout](http://knockoutjs.com/): MIT
|
||||||
|
* [Knockout.Markdown](https://github.com/grofit/knockout.markdown): MIT
|
||||||
* [LESS](http://lesscss.org): Apache License 2.0
|
* [LESS](http://lesscss.org): Apache License 2.0
|
||||||
* [lodash](https://lodash.com): MIT
|
* [lodash](https://lodash.com): MIT
|
||||||
* [Loglevel](https://github.com/pimterry/loglevel): MIT
|
* [Loglevel](https://github.com/pimterry/loglevel): MIT
|
||||||
|
* [Markdown-it](https://markdown-it.github.io/): MIT
|
||||||
|
* [md5.js](https://blueimp.github.io/JavaScript-MD5/): MIT
|
||||||
* [Modernizr](http://modernizr.com): MIT
|
* [Modernizr](http://modernizr.com): MIT
|
||||||
* [Moment.js](http://momentjs.com/): MIT
|
* [Moment.js](http://momentjs.com/): MIT
|
||||||
* [PNotify](http://sciactive.com/pnotify/): GPL, LGPL, MPL (triple licensed)
|
* [PNotify](http://sciactive.com/pnotify/): GPL, LGPL, MPL (triple licensed)
|
||||||
* [pusher.color.js](http://cache.preserve.io/5g18q0pw/index.html) (original link dead): MIT
|
* [pusher.color.js](http://cache.preserve.io/5g18q0pw/index.html) (original link dead): MIT
|
||||||
* [SockJS](https://github.com/sockjs/sockjs-client): MIT
|
* [SockJS](https://github.com/sockjs/sockjs-client): MIT
|
||||||
* [sprintf-js](http://alexei.ro/): BSD
|
* [sprintf-js](http://alexei.ro/): BSD
|
||||||
|
* [UAParser.js](https://faisalman.github.io/ua-parser-js/): MIT
|
||||||
|
|
||||||
## Server
|
## Server
|
||||||
|
|
||||||
@@ -39,17 +45,20 @@
|
|||||||
* [Click](http://click.pocoo.org/): BSD
|
* [Click](http://click.pocoo.org/): BSD
|
||||||
* [emoji](https://github.com/carpedm20/emoji/): BSD
|
* [emoji](https://github.com/carpedm20/emoji/): BSD
|
||||||
* [feedparser](https://github.com/kurtmckee/feedparser): BSD
|
* [feedparser](https://github.com/kurtmckee/feedparser): BSD
|
||||||
|
* [filetype](https://h2non.github.io/filetype.py/): MIT
|
||||||
* [Flask](http://flask.pocoo.org/): BSD
|
* [Flask](http://flask.pocoo.org/): BSD
|
||||||
* [Flask-Assets](http://github.com/miracle2k/flask-assets): BSD
|
* [Flask-Assets](http://github.com/miracle2k/flask-assets): BSD
|
||||||
* [Flask-Babel](http://github.com/mitsuhiko/flask-babel): BSD
|
* [Flask-Babel](http://github.com/mitsuhiko/flask-babel): BSD
|
||||||
* [Flask-Login](https://github.com/maxcountryman/flask-login): MIT
|
* [Flask-Login](https://github.com/maxcountryman/flask-login): MIT
|
||||||
* [Flask-Markdown](http://github.com/dcolish/flask-markdown): BSD
|
* [Flask-Markdown](http://github.com/dcolish/flask-markdown): BSD
|
||||||
* [Flask-Principal](http://packages.python.org/Flask-Principal/): MIT
|
* [Flask-Principal](http://packages.python.org/Flask-Principal/): MIT
|
||||||
|
* [frozendict](https://github.com/slezica/python-frozendict): MIT
|
||||||
* [future](https://python-future.org/): MIT
|
* [future](https://python-future.org/): MIT
|
||||||
* [futures](https://github.com/agronholm/pythonfutures): Python
|
* [futures](https://github.com/agronholm/pythonfutures): Python
|
||||||
* [monotonic](https://github.com/atdt/monotonic): Apache License 2.0
|
* [monotonic](https://github.com/atdt/monotonic): Apache License 2.0
|
||||||
* [netaddr](https://github.com/drkjam/netaddr/): BSD
|
* [netaddr](https://github.com/drkjam/netaddr/): BSD
|
||||||
* [netifaces](https://bitbucket.org/al45tair/netifaces): MIT
|
* [netifaces](https://bitbucket.org/al45tair/netifaces): MIT
|
||||||
|
* [pathvalidate](https://pathvalidate.readthedocs.io/en/latest/index.html): MIT
|
||||||
* [pkginfo](http://pypi.python.org/pypi/pkginfo/): Python
|
* [pkginfo](http://pypi.python.org/pypi/pkginfo/): Python
|
||||||
* [psutil](https://github.com/giampaolo/psutil): BSD
|
* [psutil](https://github.com/giampaolo/psutil): BSD
|
||||||
* [pylru](https://github.com/jlhutch/pylru): GPLv2
|
* [pylru](https://github.com/jlhutch/pylru): GPLv2
|
||||||
@@ -58,19 +67,26 @@
|
|||||||
* [requests](http://python-requests.org/): Apache License 2.0
|
* [requests](http://python-requests.org/): Apache License 2.0
|
||||||
* [rsa](http://stuvel.eu/rsa): Apache License 2.0
|
* [rsa](http://stuvel.eu/rsa): Apache License 2.0
|
||||||
* [sarge](http://sarge.readthedocs.org/): BSD
|
* [sarge](http://sarge.readthedocs.org/): BSD
|
||||||
|
* [sentry-sdk](https://github.com/getsentry/sentry-python): BSD
|
||||||
* [scandir](https://github.com/benhoyt/scandir): BSD
|
* [scandir](https://github.com/benhoyt/scandir): BSD
|
||||||
* [semantic_version](https://github.com/rbarrois/python-semanticversion): BSD
|
* [semantic_version](https://github.com/rbarrois/python-semanticversion): BSD
|
||||||
* [SockJS-Tornado](http://github.com/mrjoes/sockjs-tornado/): MIT
|
* [SockJS-Tornado](http://github.com/mrjoes/sockjs-tornado/): MIT
|
||||||
* [Tornado](http://www.tornadoweb.org/): Apache License 2.0
|
* [Tornado](http://www.tornadoweb.org/): Apache License 2.0
|
||||||
|
* [typing](https://pypi.org/project/typing/): Python
|
||||||
* [watchdog](http://github.com/gorakhargosh/watchdog): Apache License 2.0
|
* [watchdog](http://github.com/gorakhargosh/watchdog): Apache License 2.0
|
||||||
* [websocket-client](https://github.com/liris/websocket-client): LGPLv3
|
* [websocket-client](https://github.com/liris/websocket-client): LGPLv3
|
||||||
* [wrapt](http://wrapt.readthedocs.org/): BSD
|
* [wrapt](http://wrapt.readthedocs.org/): BSD
|
||||||
|
* [zipstream-ng](https://github.com/pR0Ps/zipstream-ng): LGPLv3
|
||||||
|
|
||||||
## Development (testing, documentation generation, etc)
|
## Development (testing, documentation generation, etc)
|
||||||
|
|
||||||
|
* [cookiecutter](https://github.com/cookiecutter/cookiecutter): BSD
|
||||||
* [ddt](https://github.com/txels/ddt): MIT
|
* [ddt](https://github.com/txels/ddt): MIT
|
||||||
|
* [flake8](https://gitlab.com/pycqa/flake8): MIT
|
||||||
* [mock](https://github.com/testing-cabal/mock): BSD
|
* [mock](https://github.com/testing-cabal/mock): BSD
|
||||||
* [nose](http://pythonhosted.org/nose/): LGPL
|
* [pyinstrument](https://github.com/joerick/pyinstrument): BSD
|
||||||
|
* [pytest](https://docs.pytest.org/en/latest/): MIT
|
||||||
|
* [pytest-doctest-custom](http://github.com/danilobellini/pytest-doctest-custom): MIT
|
||||||
* [Sphinx](http://sphinx-doc.org/): BSD
|
* [Sphinx](http://sphinx-doc.org/): BSD
|
||||||
* [sphinxcontrib-httpdomain](https://bitbucket.org/birkenfeld/sphinx-contrib/src/default/httpdomain/): BSD
|
* [sphinxcontrib-httpdomain](https://bitbucket.org/birkenfeld/sphinx-contrib/src/default/httpdomain/): BSD
|
||||||
* [sphinxcontrib-mermad](https://github.com/mgaitan/sphinxcontrib-mermaid): BSD
|
* [sphinxcontrib-mermad](https://github.com/mgaitan/sphinxcontrib-mermaid): BSD
|
||||||
|
|||||||
@@ -1,8 +1,15 @@
|
|||||||
[python: src/octoprint/**.py]
|
[python: src/octoprint/**.py]
|
||||||
|
|
||||||
[jinja2: src/octoprint/templates/**.jinja2]
|
[jinja2: src/octoprint/templates/**.jinja2]
|
||||||
|
silent=false
|
||||||
|
extensions=jinja2.ext.autoescape, jinja2.ext.with_, webassets.ext.jinja2.AssetsExtension, jinja2.ext.do, octoprint.util.jinja.trycatch
|
||||||
|
|
||||||
[jinja2: src/octoprint/plugins/**.jinja2]
|
[jinja2: src/octoprint/plugins/**.jinja2]
|
||||||
extensions=jinja2.ext.autoescape, jinja2.ext.with_, webassets.ext.jinja2.AssetsExtension
|
silent=false
|
||||||
|
extensions=jinja2.ext.autoescape, jinja2.ext.with_, webassets.ext.jinja2.AssetsExtension, jinja2.ext.do, octoprint.util.jinja.trycatch
|
||||||
|
|
||||||
[javascript: src/octoprint/static/js/app/**.js]
|
[javascript: src/octoprint/static/js/app/**.js]
|
||||||
|
extract_messages = gettext, ngettext
|
||||||
|
|
||||||
[javascript: src/octoprint/plugins/**.js]
|
[javascript: src/octoprint/plugins/**.js]
|
||||||
extract_messages = gettext, ngettext
|
extract_messages = gettext, ngettext
|
||||||
+21
@@ -0,0 +1,21 @@
|
|||||||
|
[tool.black]
|
||||||
|
line-length = 90
|
||||||
|
include = '''
|
||||||
|
|
||||||
|
(
|
||||||
|
(
|
||||||
|
src
|
||||||
|
| tests
|
||||||
|
| .github
|
||||||
|
).*\.pyi?$
|
||||||
|
)|(
|
||||||
|
setup\.py
|
||||||
|
)
|
||||||
|
'''
|
||||||
|
exclude = '''
|
||||||
|
|
||||||
|
(
|
||||||
|
src/octoprint/vendor # we want to still be able to apply patches from upstream w/o
|
||||||
|
# match issues
|
||||||
|
)
|
||||||
|
'''
|
||||||
-177
@@ -1,177 +0,0 @@
|
|||||||
# Makefile for Sphinx documentation
|
|
||||||
#
|
|
||||||
|
|
||||||
# You can set these variables from the command line.
|
|
||||||
SPHINXOPTS =
|
|
||||||
SPHINXBUILD = sphinx-build
|
|
||||||
PAPER =
|
|
||||||
BUILDDIR = _build
|
|
||||||
|
|
||||||
# User-friendly check for sphinx-build
|
|
||||||
ifeq ($(shell which $(SPHINXBUILD) >/dev/null 2>&1; echo $$?), 1)
|
|
||||||
$(error The '$(SPHINXBUILD)' command was not found. Make sure you have Sphinx installed, then set the SPHINXBUILD environment variable to point to the full path of the '$(SPHINXBUILD)' executable. Alternatively you can add the directory with the executable to your PATH. If you don't have Sphinx installed, grab it from http://sphinx-doc.org/)
|
|
||||||
endif
|
|
||||||
|
|
||||||
# Internal variables.
|
|
||||||
PAPEROPT_a4 = -D latex_paper_size=a4
|
|
||||||
PAPEROPT_letter = -D latex_paper_size=letter
|
|
||||||
ALLSPHINXOPTS = -d $(BUILDDIR)/doctrees $(PAPEROPT_$(PAPER)) $(SPHINXOPTS) .
|
|
||||||
# the i18n builder cannot share the environment and doctrees with the others
|
|
||||||
I18NSPHINXOPTS = $(PAPEROPT_$(PAPER)) $(SPHINXOPTS) .
|
|
||||||
|
|
||||||
.PHONY: help clean html dirhtml singlehtml pickle json htmlhelp qthelp devhelp epub latex latexpdf text man changes linkcheck doctest gettext
|
|
||||||
|
|
||||||
help:
|
|
||||||
@echo "Please use \`make <target>' where <target> is one of"
|
|
||||||
@echo " html to make standalone HTML files"
|
|
||||||
@echo " dirhtml to make HTML files named index.html in directories"
|
|
||||||
@echo " singlehtml to make a single large HTML file"
|
|
||||||
@echo " pickle to make pickle files"
|
|
||||||
@echo " json to make JSON files"
|
|
||||||
@echo " htmlhelp to make HTML files and a HTML help project"
|
|
||||||
@echo " qthelp to make HTML files and a qthelp project"
|
|
||||||
@echo " devhelp to make HTML files and a Devhelp project"
|
|
||||||
@echo " epub to make an epub"
|
|
||||||
@echo " latex to make LaTeX files, you can set PAPER=a4 or PAPER=letter"
|
|
||||||
@echo " latexpdf to make LaTeX files and run them through pdflatex"
|
|
||||||
@echo " latexpdfja to make LaTeX files and run them through platex/dvipdfmx"
|
|
||||||
@echo " text to make text files"
|
|
||||||
@echo " man to make manual pages"
|
|
||||||
@echo " texinfo to make Texinfo files"
|
|
||||||
@echo " info to make Texinfo files and run them through makeinfo"
|
|
||||||
@echo " gettext to make PO message catalogs"
|
|
||||||
@echo " changes to make an overview of all changed/added/deprecated items"
|
|
||||||
@echo " xml to make Docutils-native XML files"
|
|
||||||
@echo " pseudoxml to make pseudoxml-XML files for display purposes"
|
|
||||||
@echo " linkcheck to check all external links for integrity"
|
|
||||||
@echo " doctest to run all doctests embedded in the documentation (if enabled)"
|
|
||||||
|
|
||||||
clean:
|
|
||||||
rm -rf $(BUILDDIR)/*
|
|
||||||
|
|
||||||
html:
|
|
||||||
$(SPHINXBUILD) -b html $(ALLSPHINXOPTS) $(BUILDDIR)/html
|
|
||||||
@echo
|
|
||||||
@echo "Build finished. The HTML pages are in $(BUILDDIR)/html."
|
|
||||||
|
|
||||||
dirhtml:
|
|
||||||
$(SPHINXBUILD) -b dirhtml $(ALLSPHINXOPTS) $(BUILDDIR)/dirhtml
|
|
||||||
@echo
|
|
||||||
@echo "Build finished. The HTML pages are in $(BUILDDIR)/dirhtml."
|
|
||||||
|
|
||||||
singlehtml:
|
|
||||||
$(SPHINXBUILD) -b singlehtml $(ALLSPHINXOPTS) $(BUILDDIR)/singlehtml
|
|
||||||
@echo
|
|
||||||
@echo "Build finished. The HTML page is in $(BUILDDIR)/singlehtml."
|
|
||||||
|
|
||||||
pickle:
|
|
||||||
$(SPHINXBUILD) -b pickle $(ALLSPHINXOPTS) $(BUILDDIR)/pickle
|
|
||||||
@echo
|
|
||||||
@echo "Build finished; now you can process the pickle files."
|
|
||||||
|
|
||||||
json:
|
|
||||||
$(SPHINXBUILD) -b json $(ALLSPHINXOPTS) $(BUILDDIR)/json
|
|
||||||
@echo
|
|
||||||
@echo "Build finished; now you can process the JSON files."
|
|
||||||
|
|
||||||
htmlhelp:
|
|
||||||
$(SPHINXBUILD) -b htmlhelp $(ALLSPHINXOPTS) $(BUILDDIR)/htmlhelp
|
|
||||||
@echo
|
|
||||||
@echo "Build finished; now you can run HTML Help Workshop with the" \
|
|
||||||
".hhp project file in $(BUILDDIR)/htmlhelp."
|
|
||||||
|
|
||||||
qthelp:
|
|
||||||
$(SPHINXBUILD) -b qthelp $(ALLSPHINXOPTS) $(BUILDDIR)/qthelp
|
|
||||||
@echo
|
|
||||||
@echo "Build finished; now you can run "qcollectiongenerator" with the" \
|
|
||||||
".qhcp project file in $(BUILDDIR)/qthelp, like this:"
|
|
||||||
@echo "# qcollectiongenerator $(BUILDDIR)/qthelp/OctoPrint.qhcp"
|
|
||||||
@echo "To view the help file:"
|
|
||||||
@echo "# assistant -collectionFile $(BUILDDIR)/qthelp/OctoPrint.qhc"
|
|
||||||
|
|
||||||
devhelp:
|
|
||||||
$(SPHINXBUILD) -b devhelp $(ALLSPHINXOPTS) $(BUILDDIR)/devhelp
|
|
||||||
@echo
|
|
||||||
@echo "Build finished."
|
|
||||||
@echo "To view the help file:"
|
|
||||||
@echo "# mkdir -p $$HOME/.local/share/devhelp/OctoPrint"
|
|
||||||
@echo "# ln -s $(BUILDDIR)/devhelp $$HOME/.local/share/devhelp/OctoPrint"
|
|
||||||
@echo "# devhelp"
|
|
||||||
|
|
||||||
epub:
|
|
||||||
$(SPHINXBUILD) -b epub $(ALLSPHINXOPTS) $(BUILDDIR)/epub
|
|
||||||
@echo
|
|
||||||
@echo "Build finished. The epub file is in $(BUILDDIR)/epub."
|
|
||||||
|
|
||||||
latex:
|
|
||||||
$(SPHINXBUILD) -b latex $(ALLSPHINXOPTS) $(BUILDDIR)/latex
|
|
||||||
@echo
|
|
||||||
@echo "Build finished; the LaTeX files are in $(BUILDDIR)/latex."
|
|
||||||
@echo "Run \`make' in that directory to run these through (pdf)latex" \
|
|
||||||
"(use \`make latexpdf' here to do that automatically)."
|
|
||||||
|
|
||||||
latexpdf:
|
|
||||||
$(SPHINXBUILD) -b latex $(ALLSPHINXOPTS) $(BUILDDIR)/latex
|
|
||||||
@echo "Running LaTeX files through pdflatex..."
|
|
||||||
$(MAKE) -C $(BUILDDIR)/latex all-pdf
|
|
||||||
@echo "pdflatex finished; the PDF files are in $(BUILDDIR)/latex."
|
|
||||||
|
|
||||||
latexpdfja:
|
|
||||||
$(SPHINXBUILD) -b latex $(ALLSPHINXOPTS) $(BUILDDIR)/latex
|
|
||||||
@echo "Running LaTeX files through platex and dvipdfmx..."
|
|
||||||
$(MAKE) -C $(BUILDDIR)/latex all-pdf-ja
|
|
||||||
@echo "pdflatex finished; the PDF files are in $(BUILDDIR)/latex."
|
|
||||||
|
|
||||||
text:
|
|
||||||
$(SPHINXBUILD) -b text $(ALLSPHINXOPTS) $(BUILDDIR)/text
|
|
||||||
@echo
|
|
||||||
@echo "Build finished. The text files are in $(BUILDDIR)/text."
|
|
||||||
|
|
||||||
man:
|
|
||||||
$(SPHINXBUILD) -b man $(ALLSPHINXOPTS) $(BUILDDIR)/man
|
|
||||||
@echo
|
|
||||||
@echo "Build finished. The manual pages are in $(BUILDDIR)/man."
|
|
||||||
|
|
||||||
texinfo:
|
|
||||||
$(SPHINXBUILD) -b texinfo $(ALLSPHINXOPTS) $(BUILDDIR)/texinfo
|
|
||||||
@echo
|
|
||||||
@echo "Build finished. The Texinfo files are in $(BUILDDIR)/texinfo."
|
|
||||||
@echo "Run \`make' in that directory to run these through makeinfo" \
|
|
||||||
"(use \`make info' here to do that automatically)."
|
|
||||||
|
|
||||||
info:
|
|
||||||
$(SPHINXBUILD) -b texinfo $(ALLSPHINXOPTS) $(BUILDDIR)/texinfo
|
|
||||||
@echo "Running Texinfo files through makeinfo..."
|
|
||||||
make -C $(BUILDDIR)/texinfo info
|
|
||||||
@echo "makeinfo finished; the Info files are in $(BUILDDIR)/texinfo."
|
|
||||||
|
|
||||||
gettext:
|
|
||||||
$(SPHINXBUILD) -b gettext $(I18NSPHINXOPTS) $(BUILDDIR)/locale
|
|
||||||
@echo
|
|
||||||
@echo "Build finished. The message catalogs are in $(BUILDDIR)/locale."
|
|
||||||
|
|
||||||
changes:
|
|
||||||
$(SPHINXBUILD) -b changes $(ALLSPHINXOPTS) $(BUILDDIR)/changes
|
|
||||||
@echo
|
|
||||||
@echo "The overview file is in $(BUILDDIR)/changes."
|
|
||||||
|
|
||||||
linkcheck:
|
|
||||||
$(SPHINXBUILD) -b linkcheck $(ALLSPHINXOPTS) $(BUILDDIR)/linkcheck
|
|
||||||
@echo
|
|
||||||
@echo "Link check complete; look for any errors in the above output " \
|
|
||||||
"or in $(BUILDDIR)/linkcheck/output.txt."
|
|
||||||
|
|
||||||
doctest:
|
|
||||||
$(SPHINXBUILD) -b doctest $(ALLSPHINXOPTS) $(BUILDDIR)/doctest
|
|
||||||
@echo "Testing of doctests in the sources finished, look at the " \
|
|
||||||
"results in $(BUILDDIR)/doctest/output.txt."
|
|
||||||
|
|
||||||
xml:
|
|
||||||
$(SPHINXBUILD) -b xml $(ALLSPHINXOPTS) $(BUILDDIR)/xml
|
|
||||||
@echo
|
|
||||||
@echo "Build finished. The XML files are in $(BUILDDIR)/xml."
|
|
||||||
|
|
||||||
pseudoxml:
|
|
||||||
$(SPHINXBUILD) -b pseudoxml $(ALLSPHINXOPTS) $(BUILDDIR)/pseudoxml
|
|
||||||
@echo
|
|
||||||
@echo "Build finished. The pseudo-XML files are in $(BUILDDIR)/pseudoxml."
|
|
||||||
Vendored
+1
@@ -0,0 +1 @@
|
|||||||
|
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.mermaid=e():t.mermaid=e()}("undefined"!=typeof self?self:this,(function(){return function(t){var e={};function n(r){if(e[r])return e[r].exports;var i=e[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)n.d(r,i,function(e){return t[e]}.bind(null,i));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=383)}([function(t,e,n){"use strict";n.r(e);var r=function(t,e){return t<e?-1:t>e?1:t>=e?0:NaN},i=function(t){var e;return 1===t.length&&(e=t,t=function(t,n){return r(e(t),n)}),{left:function(e,n,r,i){for(null==r&&(r=0),null==i&&(i=e.length);r<i;){var a=r+i>>>1;t(e[a],n)<0?r=a+1:i=a}return r},right:function(e,n,r,i){for(null==r&&(r=0),null==i&&(i=e.length);r<i;){var a=r+i>>>1;t(e[a],n)>0?i=a:r=a+1}return r}}};var a=i(r),o=a.right,s=a.left,c=o,u=function(t,e){null==e&&(e=l);for(var n=0,r=t.length-1,i=t[0],a=new Array(r<0?0:r);n<r;)a[n]=e(i,i=t[++n]);return a};function l(t,e){return[t,e]}var h=function(t,e,n){var r,i,a,o,s=t.length,c=e.length,u=new Array(s*c);for(null==n&&(n=l),r=a=0;r<s;++r)for(o=t[r],i=0;i<c;++i,++a)u[a]=n(o,e[i]);return u},f=function(t,e){return e<t?-1:e>t?1:e>=t?0:NaN},d=function(t){return null===t?NaN:+t},p=function(t,e){var n,r,i=t.length,a=0,o=-1,s=0,c=0;if(null==e)for(;++o<i;)isNaN(n=d(t[o]))||(c+=(r=n-s)*(n-(s+=r/++a)));else for(;++o<i;)isNaN(n=d(e(t[o],o,t)))||(c+=(r=n-s)*(n-(s+=r/++a)));if(a>1)return c/(a-1)},y=function(t,e){var n=p(t,e);return n?Math.sqrt(n):n},g=function(t,e){var n,r,i,a=t.length,o=-1;if(null==e){for(;++o<a;)if(null!=(n=t[o])&&n>=n)for(r=i=n;++o<a;)null!=(n=t[o])&&(r>n&&(r=n),i<n&&(i=n))}else for(;++o<a;)if(null!=(n=e(t[o],o,t))&&n>=n)for(r=i=n;++o<a;)null!=(n=e(t[o],o,t))&&(r>n&&(r=n),i<n&&(i=n));return[r,i]},v=Array.prototype,m=v.slice,b=v.map,x=function(t){return function(){return t}},_=function(t){return t},k=function(t,e,n){t=+t,e=+e,n=(i=arguments.length)<2?(e=t,t=0,1):i<3?1:+n;for(var r=-1,i=0|Math.max(0,Math.ceil((e-t)/n)),a=new Array(i);++r<i;)a[r]=t+r*n;return a},w=Math.sqrt(50),E=Math.sqrt(10),T=Math.sqrt(2),C=function(t,e,n){var r,i,a,o,s=-1;if(n=+n,(t=+t)===(e=+e)&&n>0)return[t];if((r=e<t)&&(i=t,t=e,e=i),0===(o=S(t,e,n))||!isFinite(o))return[];if(o>0)for(t=Math.ceil(t/o),e=Math.floor(e/o),a=new Array(i=Math.ceil(e-t+1));++s<i;)a[s]=(t+s)*o;else for(t=Math.floor(t*o),e=Math.ceil(e*o),a=new Array(i=Math.ceil(t-e+1));++s<i;)a[s]=(t-s)/o;return r&&a.reverse(),a};function S(t,e,n){var r=(e-t)/Math.max(0,n),i=Math.floor(Math.log(r)/Math.LN10),a=r/Math.pow(10,i);return i>=0?(a>=w?10:a>=E?5:a>=T?2:1)*Math.pow(10,i):-Math.pow(10,-i)/(a>=w?10:a>=E?5:a>=T?2:1)}function A(t,e,n){var r=Math.abs(e-t)/Math.max(0,n),i=Math.pow(10,Math.floor(Math.log(r)/Math.LN10)),a=r/i;return a>=w?i*=10:a>=E?i*=5:a>=T&&(i*=2),e<t?-i:i}var M=function(t){return Math.ceil(Math.log(t.length)/Math.LN2)+1},O=function(){var t=_,e=g,n=M;function r(r){var i,a,o=r.length,s=new Array(o);for(i=0;i<o;++i)s[i]=t(r[i],i,r);var u=e(s),l=u[0],h=u[1],f=n(s,l,h);Array.isArray(f)||(f=A(l,h,f),f=k(Math.ceil(l/f)*f,h,f));for(var d=f.length;f[0]<=l;)f.shift(),--d;for(;f[d-1]>h;)f.pop(),--d;var p,y=new Array(d+1);for(i=0;i<=d;++i)(p=y[i]=[]).x0=i>0?f[i-1]:l,p.x1=i<d?f[i]:h;for(i=0;i<o;++i)l<=(a=s[i])&&a<=h&&y[c(f,a,0,d)].push(r[i]);return y}return r.value=function(e){return arguments.length?(t="function"==typeof e?e:x(e),r):t},r.domain=function(t){return arguments.length?(e="function"==typeof t?t:x([t[0],t[1]]),r):e},r.thresholds=function(t){return arguments.length?(n="function"==typeof t?t:Array.isArray(t)?x(m.call(t)):x(t),r):n},r},D=function(t,e,n){if(null==n&&(n=d),r=t.length){if((e=+e)<=0||r<2)return+n(t[0],0,t);if(e>=1)return+n(t[r-1],r-1,t);var r,i=(r-1)*e,a=Math.floor(i),o=+n(t[a],a,t);return o+(+n(t[a+1],a+1,t)-o)*(i-a)}},N=function(t,e,n){return t=b.call(t,d).sort(r),Math.ceil((n-e)/(2*(D(t,.75)-D(t,.25))*Math.pow(t.length,-1/3)))},B=function(t,e,n){return Math.ceil((n-e)/(3.5*y(t)*Math.pow(t.length,-1/3)))},L=function(t,e){var n,r,i=t.length,a=-1;if(null==e){for(;++a<i;)if(null!=(n=t[a])&&n>=n)for(r=n;++a<i;)null!=(n=t[a])&&n>r&&(r=n)}else for(;++a<i;)if(null!=(n=e(t[a],a,t))&&n>=n)for(r=n;++a<i;)null!=(n=e(t[a],a,t))&&n>r&&(r=n);return r},P=function(t,e)Line truncated
|
||||||
@@ -0,0 +1,529 @@
|
|||||||
|
.. _sec-api-access:
|
||||||
|
|
||||||
|
**************
|
||||||
|
Access control
|
||||||
|
**************
|
||||||
|
|
||||||
|
.. contents::
|
||||||
|
|
||||||
|
.. _sec-api-access-permissions:
|
||||||
|
|
||||||
|
Permissions
|
||||||
|
===========
|
||||||
|
|
||||||
|
.. _sec-api-access-permissions-list:
|
||||||
|
|
||||||
|
List all permissions
|
||||||
|
--------------------
|
||||||
|
|
||||||
|
.. http:get:: /api/access/permissions
|
||||||
|
|
||||||
|
Retrieves all permissions available in the system.
|
||||||
|
|
||||||
|
Will return a :http:statuscode:`200` with a :ref:`permission list <sec-api-access-datamodel-permissions-list>`
|
||||||
|
as body.
|
||||||
|
|
||||||
|
:status 200: No error
|
||||||
|
|
||||||
|
.. _sec-api-access-groups:
|
||||||
|
|
||||||
|
Groups
|
||||||
|
======
|
||||||
|
|
||||||
|
.. _sec-api-access-groups-list:
|
||||||
|
|
||||||
|
Get group list
|
||||||
|
--------------
|
||||||
|
|
||||||
|
.. http:get:: /api/access/groups
|
||||||
|
|
||||||
|
Retrieves all groups registered in the system.
|
||||||
|
|
||||||
|
Will return a :http:statuscode:`200` with a :ref:`group list <sec-api-access-datamodel-groups-list>`
|
||||||
|
as body.
|
||||||
|
|
||||||
|
Requires the ``SETTINGS`` permission.
|
||||||
|
|
||||||
|
:status 200: No error
|
||||||
|
|
||||||
|
.. _sec-api-access-groups-add:
|
||||||
|
|
||||||
|
Add a new group
|
||||||
|
---------------
|
||||||
|
|
||||||
|
.. http:post:: /api/access/groups
|
||||||
|
|
||||||
|
Adds a new group to the system.
|
||||||
|
|
||||||
|
Expects a :ref:`group registration request <sec-api-access-datamodel-groups-addgrouprequest>` as request body.
|
||||||
|
|
||||||
|
Will return a :ref:`group list response <sec-api-access-datamodel-groups-list>` on success.
|
||||||
|
|
||||||
|
Requires the ``SETTINGS`` permission.
|
||||||
|
|
||||||
|
:json key: The group's identifier
|
||||||
|
:json name: The user's name
|
||||||
|
:json description: A human readable description of the group
|
||||||
|
:json permissions: The permissions to assign to the group
|
||||||
|
:json subgroups: Subgroups assigned to the group
|
||||||
|
:json default: Whether the group should be assigned to new users by default or not
|
||||||
|
:status 200: No error
|
||||||
|
:status 400: If any of the mandatory fields is missing or the request is otherwise
|
||||||
|
invalid
|
||||||
|
:status 409: A group with the provided key does already exist
|
||||||
|
|
||||||
|
.. _sec-api-access-groups-retrieve:
|
||||||
|
|
||||||
|
Retrieve a group
|
||||||
|
----------------
|
||||||
|
|
||||||
|
.. http:get:: /api/access/groups/(string:key)
|
||||||
|
|
||||||
|
Retrieves an individual group record.
|
||||||
|
|
||||||
|
Will return a :http:statuscode:`200` with a :ref:`group record <sec-api-access-datamodel-groups-list>`
|
||||||
|
as body.
|
||||||
|
|
||||||
|
Requires the ``SETTINGS`` permission.
|
||||||
|
|
||||||
|
:status 200: No error
|
||||||
|
|
||||||
|
.. _sec-api-access-groups-modify:
|
||||||
|
|
||||||
|
Update a group
|
||||||
|
--------------
|
||||||
|
|
||||||
|
.. http:put:: /api/access/groups/(string:key)
|
||||||
|
|
||||||
|
Updates an existing group.
|
||||||
|
|
||||||
|
Expects a :ref:`group update request <sec-api-access-datamodel-groups-updategrouprequest>` as request body.
|
||||||
|
|
||||||
|
Will return a :ref:`group list response <sec-api-access-datamodel-groups-list>` on success.
|
||||||
|
|
||||||
|
Requires the ``SETTINGS`` permission.
|
||||||
|
|
||||||
|
:json description: A human readable description of the group
|
||||||
|
:json permissions: The permissions to assign to the group
|
||||||
|
:json subgroups: Subgroups assigned to the group
|
||||||
|
:json default: Whether the group should be assigned to new users by default or not
|
||||||
|
:status 200: No error
|
||||||
|
:status 400: If any of the mandatory fields is missing or the request is otherwise
|
||||||
|
invalid
|
||||||
|
|
||||||
|
.. _sec-api-access-groups-delete:
|
||||||
|
|
||||||
|
Delete a group
|
||||||
|
--------------
|
||||||
|
|
||||||
|
.. http:delete:: /api/access/groups/(string:key)
|
||||||
|
|
||||||
|
Deletes a group.
|
||||||
|
|
||||||
|
Will return a :ref:`group list response <sec-api-access-datamodel-groups-list>` on success.
|
||||||
|
|
||||||
|
Requires the ``SETTINGS`` permission.
|
||||||
|
|
||||||
|
:status 200: No error
|
||||||
|
|
||||||
|
.. _sec-api-access-users:
|
||||||
|
|
||||||
|
Users
|
||||||
|
=====
|
||||||
|
|
||||||
|
.. _sec-api-access-users-list:
|
||||||
|
|
||||||
|
Retrieve a list of users
|
||||||
|
========================
|
||||||
|
|
||||||
|
.. http:get:: /api/access/users
|
||||||
|
|
||||||
|
Retrieves a list of all registered users in OctoPrint.
|
||||||
|
|
||||||
|
Will return a :http:statuscode:`200` with a :ref:`user list response <sec-api-access-datamodel-users-userlistresponse>`
|
||||||
|
as body.
|
||||||
|
|
||||||
|
Requires the ``SETTINGS`` permission.
|
||||||
|
|
||||||
|
:status 200: No error
|
||||||
|
|
||||||
|
.. _sec-api-access-users-retrieve:
|
||||||
|
|
||||||
|
Retrieve a user
|
||||||
|
---------------
|
||||||
|
|
||||||
|
.. http:get:: /api/access/users/(string:username)
|
||||||
|
|
||||||
|
Retrieves information about a user.
|
||||||
|
|
||||||
|
Will return a :http:statuscode:`200` with a :ref:`user record <sec-api-datamodel-access>`
|
||||||
|
as body.
|
||||||
|
|
||||||
|
Requires either the ``SETTINGS`` permission or to be logged in as the user.
|
||||||
|
|
||||||
|
:param username: Name of the user which to retrieve
|
||||||
|
:status 200: No error
|
||||||
|
:status 404: Unknown user
|
||||||
|
|
||||||
|
.. _sec-api-access-users-add:
|
||||||
|
|
||||||
|
Add a new user
|
||||||
|
--------------
|
||||||
|
|
||||||
|
.. http:post:: /api/access/users
|
||||||
|
|
||||||
|
Adds a user to OctoPrint.
|
||||||
|
|
||||||
|
Expects a :ref:`user registration request <sec-api-access-datamodel-users-adduserrequest>`
|
||||||
|
as request body.
|
||||||
|
|
||||||
|
Returns a list of registered users on success, see :ref:`Retrieve a list of users <sec-api-access-users-list>`.
|
||||||
|
|
||||||
|
Requires the ``SETTINGS`` permission.
|
||||||
|
|
||||||
|
:json name: The user's name
|
||||||
|
:json password: The user's password
|
||||||
|
:json active: Whether to activate the account (true) or not (false)
|
||||||
|
:json admin: Whether to give the account admin rights (true) or not (false)
|
||||||
|
:status 200: No error
|
||||||
|
:status 400: If any of the mandatory fields is missing or the request is otherwise
|
||||||
|
invalid
|
||||||
|
:status 409: A user with the provided name does already exist
|
||||||
|
|
||||||
|
.. _sec-api-access-users-modify:
|
||||||
|
|
||||||
|
Update a user
|
||||||
|
-------------
|
||||||
|
|
||||||
|
.. http:put:: /api/access/users/(string:username)
|
||||||
|
|
||||||
|
Updates a user record.
|
||||||
|
|
||||||
|
Expects a :ref:`user update request <sec-api-access-datamodel-users-updateuserrequest>`
|
||||||
|
as request body.
|
||||||
|
|
||||||
|
Returns a list of registered users on success, see :ref:`Retrieve a list of users <sec-api-access-users-list>`.
|
||||||
|
|
||||||
|
Requires the ``SETTINGS`` permission.
|
||||||
|
|
||||||
|
:param username: Name of the user to update
|
||||||
|
:json admin: Whether to mark the user as admin (true) or not (false), can be left out (no change)
|
||||||
|
:json active: Whether to mark the account as activated (true) or deactivated (false), can be left out (no change)
|
||||||
|
:status 200: No error
|
||||||
|
:status 404: Unknown user
|
||||||
|
|
||||||
|
.. _sec-api-access-users-delete:
|
||||||
|
|
||||||
|
Delete a user
|
||||||
|
-------------
|
||||||
|
|
||||||
|
.. http:delete:: /api/access/users/(string:username)
|
||||||
|
|
||||||
|
Delete a user record.
|
||||||
|
|
||||||
|
Returns a list of registered users on success, see :ref:`Retrieve a list of users <sec-api-access-users-list>`.
|
||||||
|
|
||||||
|
Requires the ``SETTINGS`` permission.
|
||||||
|
|
||||||
|
:param username: Name of the user to delete
|
||||||
|
:status 200: No error
|
||||||
|
:status 404: Unknown user
|
||||||
|
|
||||||
|
.. _sec-api-access-users-password:
|
||||||
|
|
||||||
|
Change a user's password
|
||||||
|
------------------------
|
||||||
|
|
||||||
|
.. http:put:: /api/access/users/(string:username)/password
|
||||||
|
|
||||||
|
Changes the password of a user.
|
||||||
|
|
||||||
|
Expects a JSON object with a single property ``password`` as request body.
|
||||||
|
|
||||||
|
Requires the ``SETTINGS`` permission or to be logged in as the user.
|
||||||
|
|
||||||
|
:param username: Name of the user to change the password for
|
||||||
|
:json password: The new password to set
|
||||||
|
:status 200: No error
|
||||||
|
:status 400: If the request doesn't contain a ``password`` property or the request
|
||||||
|
is otherwise invalid
|
||||||
|
:status 403: No admin rights and not logged in as the user
|
||||||
|
:status 404: The user is unknown
|
||||||
|
|
||||||
|
.. _sec-api-access-users-settings-get:
|
||||||
|
|
||||||
|
Get a user's settings
|
||||||
|
---------------------
|
||||||
|
|
||||||
|
.. http:get:: /api/access/users/(string:username)/settings
|
||||||
|
|
||||||
|
Retrieves a user's settings.
|
||||||
|
|
||||||
|
Will return a :http:statuscode:`200` with a JSON object representing the user's
|
||||||
|
personal settings (if any) as body.
|
||||||
|
|
||||||
|
Requires the ``SETTINGS`` permission or to be logged in as the user.
|
||||||
|
|
||||||
|
:param username: Name of the user to retrieve the settings for
|
||||||
|
:status 200: No error
|
||||||
|
:status 403: No admin rights and not logged in as the user
|
||||||
|
:status 404: The user is unknown
|
||||||
|
|
||||||
|
.. _sec-api-access-users-settings-set:
|
||||||
|
|
||||||
|
Update a user's settings
|
||||||
|
------------------------
|
||||||
|
|
||||||
|
.. http:patch:: /api/access/users/(string:username)/settings
|
||||||
|
|
||||||
|
Updates a user's settings.
|
||||||
|
|
||||||
|
Expects a new settings JSON object to merge with the current settings as
|
||||||
|
request body.
|
||||||
|
|
||||||
|
Requires the ``SETTINGS`` permission or to be logged in as the user.
|
||||||
|
|
||||||
|
:param username: Name of the user to retrieve the settings for
|
||||||
|
:status 204: No error
|
||||||
|
:status 403: No admin rights and not logged in as the user
|
||||||
|
:status 404: The user is unknown
|
||||||
|
|
||||||
|
.. _sec-api-access-users-apikey-generate:
|
||||||
|
|
||||||
|
Regenerate a user's api key
|
||||||
|
---------------------------
|
||||||
|
|
||||||
|
.. http:post:: /api/access/users/(string:username)/apikey
|
||||||
|
|
||||||
|
Generates a new API key for the user.
|
||||||
|
|
||||||
|
Does not expect a body. Will return the generated API key as ``apikey``
|
||||||
|
property in the JSON object contained in the response body.
|
||||||
|
|
||||||
|
Requires the ``SETTINGS`` permission or to be logged in as the user.
|
||||||
|
|
||||||
|
:param username: Name of the user to retrieve the settings for
|
||||||
|
:status 200: No error
|
||||||
|
:status 403: No admin rights and not logged in as the user
|
||||||
|
:status 404: The user is unknown
|
||||||
|
|
||||||
|
.. _sec-api-access-users-apikey-delete:
|
||||||
|
|
||||||
|
Delete a user's api key
|
||||||
|
-----------------------
|
||||||
|
|
||||||
|
.. http:delete:: /api/access/users/(string:username)/apikey
|
||||||
|
|
||||||
|
Deletes a user's personal API key.
|
||||||
|
|
||||||
|
Requires the ``SETTINGS`` permission or to be logged in as the user.
|
||||||
|
|
||||||
|
:param username: Name of the user to retrieve the settings for
|
||||||
|
:status 204: No error
|
||||||
|
:status 403: No admin rights and not logged in as the user
|
||||||
|
:status 404: The user is unknown
|
||||||
|
|
||||||
|
.. _sec-api-access-datamodel:
|
||||||
|
|
||||||
|
Data model
|
||||||
|
==========
|
||||||
|
|
||||||
|
.. _sec-api-access-datamodel-permissions:
|
||||||
|
|
||||||
|
Permissions
|
||||||
|
-----------
|
||||||
|
|
||||||
|
.. _sec-api-access-datamodel-permissions-list:
|
||||||
|
|
||||||
|
Permission list response
|
||||||
|
~~~~~~~~~~~~~~~~~~~~~~~~
|
||||||
|
|
||||||
|
.. list-table::
|
||||||
|
:widths: 15 5 10 30
|
||||||
|
:header-rows: 1
|
||||||
|
|
||||||
|
* - Name
|
||||||
|
- Multiplicity
|
||||||
|
- Type
|
||||||
|
- Description
|
||||||
|
* - ``permissions``
|
||||||
|
- 0..n
|
||||||
|
- List of :ref:`permission records <sec-api-datamodel-access-permissions>`
|
||||||
|
- The list of permissions
|
||||||
|
|
||||||
|
|
||||||
|
.. _sec-api-access-datamodel-groups:
|
||||||
|
|
||||||
|
Groups
|
||||||
|
------
|
||||||
|
|
||||||
|
.. _sec-api-access-datamodel-groups-list:
|
||||||
|
|
||||||
|
Group list response
|
||||||
|
~~~~~~~~~~~~~~~~~~~
|
||||||
|
|
||||||
|
.. list-table::
|
||||||
|
:widths: 15 5 10 30
|
||||||
|
:header-rows: 1
|
||||||
|
|
||||||
|
* - Name
|
||||||
|
- Multiplicity
|
||||||
|
- Type
|
||||||
|
- Description
|
||||||
|
* - ``groups``
|
||||||
|
- 0..n
|
||||||
|
- List of :ref:`group records <sec-api-datamodel-access-groups>`
|
||||||
|
- The list of groups
|
||||||
|
|
||||||
|
.. _sec-api-access-datamodel-groups-addgrouprequest:
|
||||||
|
|
||||||
|
Group registration request
|
||||||
|
~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||||
|
|
||||||
|
.. list-table::
|
||||||
|
:widths: 15 5 10 30
|
||||||
|
:header-rows: 1
|
||||||
|
|
||||||
|
* - Name
|
||||||
|
- Multiplicity
|
||||||
|
- Type
|
||||||
|
- Description
|
||||||
|
* - ``key``
|
||||||
|
- 1
|
||||||
|
- string
|
||||||
|
- The group's identifier
|
||||||
|
* - ``name``
|
||||||
|
- 1
|
||||||
|
- string
|
||||||
|
- The group's name
|
||||||
|
* - ``description``
|
||||||
|
- 0..1
|
||||||
|
- string
|
||||||
|
- The group's description. Set to empty if not provided.
|
||||||
|
* - ``permissions``
|
||||||
|
- 1..n
|
||||||
|
- List of string
|
||||||
|
- A list of identifier's of permissions to assign to the group
|
||||||
|
* - ``subgroups``
|
||||||
|
- 0..n
|
||||||
|
- List of string
|
||||||
|
- A list of identifier's of groups to assign to the group as subgroups
|
||||||
|
* - ``default``
|
||||||
|
- 0..1
|
||||||
|
- boolean
|
||||||
|
- Whether to assign the group to new users by default (true) or not (false, default value)
|
||||||
|
|
||||||
|
.. _sec-api-access-datamodel-groups-updategrouprequest:
|
||||||
|
|
||||||
|
Group update request
|
||||||
|
~~~~~~~~~~~~~~~~~~~~
|
||||||
|
|
||||||
|
.. list-table::
|
||||||
|
:widths: 15 5 10 30
|
||||||
|
:header-rows: 1
|
||||||
|
|
||||||
|
* - Name
|
||||||
|
- Multiplicity
|
||||||
|
- Type
|
||||||
|
- Description
|
||||||
|
* - ``description``
|
||||||
|
- 0..1
|
||||||
|
- string
|
||||||
|
- The group's description. Set to empty if not provided.
|
||||||
|
* - ``permissions``
|
||||||
|
- 1..n
|
||||||
|
- List of string
|
||||||
|
- A list of identifier's of permissions to assign to the group
|
||||||
|
* - ``subgroups``
|
||||||
|
- 0..n
|
||||||
|
- List of string
|
||||||
|
- A list of identifier's of groups to assign to the group as subgroups
|
||||||
|
* - ``default``
|
||||||
|
- 0..1
|
||||||
|
- boolean
|
||||||
|
- Whether to assign the group to new users by default (true) or not (false, default value)
|
||||||
|
|
||||||
|
|
||||||
|
.. _sec-api-access-datamodel-users:
|
||||||
|
|
||||||
|
Users
|
||||||
|
-----
|
||||||
|
|
||||||
|
.. _sec-api-access-datamodel-users-userlistresponse:
|
||||||
|
|
||||||
|
User list response
|
||||||
|
~~~~~~~~~~~~~~~~~~
|
||||||
|
|
||||||
|
.. list-table::
|
||||||
|
:widths: 15 5 10 30
|
||||||
|
:header-rows: 1
|
||||||
|
|
||||||
|
* - Name
|
||||||
|
- Multiplicity
|
||||||
|
- Type
|
||||||
|
- Description
|
||||||
|
* - ``users``
|
||||||
|
- 0..n
|
||||||
|
- List of :ref:`user records <sec-api-datamodel-access-users>`
|
||||||
|
- The list of users
|
||||||
|
|
||||||
|
.. _sec-api-access-datamodel-users-adduserrequest:
|
||||||
|
|
||||||
|
User registration request
|
||||||
|
~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||||
|
|
||||||
|
.. list-table::
|
||||||
|
:widths: 15 5 10 30
|
||||||
|
:header-rows: 1
|
||||||
|
|
||||||
|
* - Name
|
||||||
|
- Multiplicity
|
||||||
|
- Type
|
||||||
|
- Description
|
||||||
|
* - ``name``
|
||||||
|
- 1
|
||||||
|
- string
|
||||||
|
- The user's name
|
||||||
|
* - ``password``
|
||||||
|
- 1
|
||||||
|
- string
|
||||||
|
- The user's password
|
||||||
|
* - ``active``
|
||||||
|
- 1
|
||||||
|
- bool
|
||||||
|
- Whether to activate the account (true) or not (false)
|
||||||
|
* - ``groups``
|
||||||
|
- 0..n
|
||||||
|
- List of string
|
||||||
|
- A list of identifiers of groups to assign to the user
|
||||||
|
* - ``permissions``
|
||||||
|
- 0..n
|
||||||
|
- List of string
|
||||||
|
- A list of identifiers of permissions to assign to the user
|
||||||
|
|
||||||
|
.. _sec-api-access-datamodel-users-updateuserrequest:
|
||||||
|
|
||||||
|
User update request
|
||||||
|
~~~~~~~~~~~~~~~~~~~
|
||||||
|
|
||||||
|
.. list-table::
|
||||||
|
:widths: 15 5 10 30
|
||||||
|
:header-rows: 1
|
||||||
|
|
||||||
|
* - Name
|
||||||
|
- Multiplicity
|
||||||
|
- Type
|
||||||
|
- Description
|
||||||
|
* - ``active``
|
||||||
|
- 0..1
|
||||||
|
- bool
|
||||||
|
- If present will set the user's active flag to the provided value. True for
|
||||||
|
activating the account, false for deactivating it.
|
||||||
|
* - ``groups``
|
||||||
|
- 0..n
|
||||||
|
- List of string
|
||||||
|
- A list of identifiers of groups to assign to the user
|
||||||
|
* - ``permissions``
|
||||||
|
- 0..n
|
||||||
|
- List of string
|
||||||
|
- A list of identifiers of permissions to assign to the user
|
||||||
@@ -16,6 +16,8 @@ Get connection settings
|
|||||||
Retrieve the current connection settings, including information regarding the available baudrates and
|
Retrieve the current connection settings, including information regarding the available baudrates and
|
||||||
serial ports and the current connection state.
|
serial ports and the current connection state.
|
||||||
|
|
||||||
|
Requires the ``STATUS`` permission.
|
||||||
|
|
||||||
**Example**
|
**Example**
|
||||||
|
|
||||||
.. sourcecode:: http
|
.. sourcecode:: http
|
||||||
@@ -81,7 +83,7 @@ Issue a connection command
|
|||||||
for the lost acknowledgment should always be properly investigated and removed instead of depending on this
|
for the lost acknowledgment should always be properly investigated and removed instead of depending on this
|
||||||
"symptom solver".
|
"symptom solver".
|
||||||
|
|
||||||
Requires user rights.
|
Requires the ``CONNECTION`` permission.
|
||||||
|
|
||||||
**Example Connect Request**
|
**Example Connect Request**
|
||||||
|
|
||||||
|
|||||||
+275
-5
@@ -145,6 +145,31 @@ Temperature offset
|
|||||||
- Number
|
- Number
|
||||||
- Temperature offset for the printer's heated bed.
|
- Temperature offset for the printer's heated bed.
|
||||||
|
|
||||||
|
.. _sec-api-datamodel-printer-resends:
|
||||||
|
|
||||||
|
Resend stats
|
||||||
|
------------
|
||||||
|
|
||||||
|
.. list-table::
|
||||||
|
:widths: 15 5 10 30
|
||||||
|
:header-rows: 1
|
||||||
|
|
||||||
|
* - Name
|
||||||
|
- Multiplicity
|
||||||
|
- Type
|
||||||
|
- Description
|
||||||
|
* - ``count``
|
||||||
|
- 1
|
||||||
|
- int
|
||||||
|
- Number of resend requests received since connecting.
|
||||||
|
* - ``transmitted``
|
||||||
|
- 1
|
||||||
|
- int
|
||||||
|
- Number of transmitted lines since connecting.
|
||||||
|
* - ``ratio``
|
||||||
|
- 1
|
||||||
|
- int
|
||||||
|
- Percentage of resend requests vs transmitted lines. Value between 0 and 100.
|
||||||
|
|
||||||
.. _sec-api-datamodel-jobs:
|
.. _sec-api-datamodel-jobs:
|
||||||
|
|
||||||
@@ -170,11 +195,11 @@ Job information
|
|||||||
- The file that is the target of the current print job
|
- The file that is the target of the current print job
|
||||||
* - ``estimatedPrintTime``
|
* - ``estimatedPrintTime``
|
||||||
- 0..1
|
- 0..1
|
||||||
- Integer
|
- Float
|
||||||
- The estimated print time for the file, in seconds.
|
- The estimated print time for the file, in seconds.
|
||||||
* - ``lastPrintTime``
|
* - ``lastPrintTime``
|
||||||
- 0..1
|
- 0..1
|
||||||
- Integer
|
- Float
|
||||||
- The print time of the last print of the file, in seconds.
|
- The print time of the last print of the file, in seconds.
|
||||||
* - ``filament``
|
* - ``filament``
|
||||||
- 0..1
|
- 0..1
|
||||||
@@ -182,7 +207,7 @@ Job information
|
|||||||
- Information regarding the estimated filament usage of the print job
|
- Information regarding the estimated filament usage of the print job
|
||||||
* - ``filament.length``
|
* - ``filament.length``
|
||||||
- 0..1
|
- 0..1
|
||||||
- Integer
|
- Float
|
||||||
- Length of filament used, in mm
|
- Length of filament used, in mm
|
||||||
* - ``filament.volume``
|
* - ``filament.volume``
|
||||||
- 0..1
|
- 0..1
|
||||||
@@ -218,6 +243,17 @@ Progress information
|
|||||||
- 1
|
- 1
|
||||||
- Integer
|
- Integer
|
||||||
- Estimate of time left to print, in seconds
|
- Estimate of time left to print, in seconds
|
||||||
|
* - ``printTimeLeftOrigin``
|
||||||
|
- 1
|
||||||
|
- String
|
||||||
|
- Origin of the current time left estimate. Can currently be either of:
|
||||||
|
|
||||||
|
* ``linear``: based on an linear approximation of the progress in file in bytes vs time
|
||||||
|
* ``analysis``: based on an analysis of the file
|
||||||
|
* ``estimate``: calculated estimate after stabilization of linear estimation
|
||||||
|
* ``average``: based on the average total from past prints of the same model against the same printer profile
|
||||||
|
* ``mixed-analysis``: mixture of ``estimate`` and ``analysis``
|
||||||
|
* ``mixed-average``: mixture of ``estimate`` and ``average``
|
||||||
|
|
||||||
.. _sec-api-datamodel-files:
|
.. _sec-api-datamodel-files:
|
||||||
|
|
||||||
@@ -329,6 +365,14 @@ Files
|
|||||||
- 0..1
|
- 0..1
|
||||||
- :ref:`GCODE analysis information <sec-api-datamodel-files-gcodeanalysis>`
|
- :ref:`GCODE analysis information <sec-api-datamodel-files-gcodeanalysis>`
|
||||||
- Information from the analysis of the GCODE file, if available. Left out in abridged version.
|
- Information from the analysis of the GCODE file, if available. Left out in abridged version.
|
||||||
|
* - ``prints``
|
||||||
|
- 0..1
|
||||||
|
- :ref:`Print history information <sec-api-datamodel-files-prints>`
|
||||||
|
- Information about previous prints of the file. Left out if the file has never been printed.
|
||||||
|
* - ``statistics``
|
||||||
|
- 0..1
|
||||||
|
- :ref:`Print statistics information <sec-api-datamodel-files-stats>`
|
||||||
|
- Statistics about the file, based on the previous print times. Left out if the file has never been printed.
|
||||||
|
|
||||||
.. _sec-api-datamodel-files-fileabridged:
|
.. _sec-api-datamodel-files-fileabridged:
|
||||||
|
|
||||||
@@ -383,7 +427,7 @@ GCODE analysis information
|
|||||||
- Description
|
- Description
|
||||||
* - ``estimatedPrintTime``
|
* - ``estimatedPrintTime``
|
||||||
- 0..1
|
- 0..1
|
||||||
- Integer
|
- Float
|
||||||
- The estimated print time of the file, in seconds
|
- The estimated print time of the file, in seconds
|
||||||
* - ``filament``
|
* - ``filament``
|
||||||
- 0..1
|
- 0..1
|
||||||
@@ -391,7 +435,7 @@ GCODE analysis information
|
|||||||
- The estimated usage of filament
|
- The estimated usage of filament
|
||||||
* - ``filament.tool{n}.length``
|
* - ``filament.tool{n}.length``
|
||||||
- 0..1
|
- 0..1
|
||||||
- Integer
|
- Float
|
||||||
- The length of filament used, in mm
|
- The length of filament used, in mm
|
||||||
* - ``filament.tool{n}.volume``
|
* - ``filament.tool{n}.volume``
|
||||||
- 0..1
|
- 0..1
|
||||||
@@ -469,3 +513,229 @@ References
|
|||||||
- URL
|
- URL
|
||||||
- The model from which this file was generated (e.g. an STL, currently not used). Never present for
|
- The model from which this file was generated (e.g. an STL, currently not used). Never present for
|
||||||
folders.
|
folders.
|
||||||
|
|
||||||
|
.. _sec-api-datamodel-files-prints:
|
||||||
|
|
||||||
|
Print History
|
||||||
|
-------------
|
||||||
|
|
||||||
|
.. list-table::
|
||||||
|
:widths: 15 5 10 30
|
||||||
|
:header-rows: 1
|
||||||
|
|
||||||
|
* - Name
|
||||||
|
- Multiplicity
|
||||||
|
- Type
|
||||||
|
- Description
|
||||||
|
* - ``success``
|
||||||
|
- 1
|
||||||
|
- Number
|
||||||
|
- Number of successful prints
|
||||||
|
* - ``failure``
|
||||||
|
- 1
|
||||||
|
- Number
|
||||||
|
- Number of failed prints
|
||||||
|
* - ``last.date``
|
||||||
|
- 1
|
||||||
|
- Unix Timestamp
|
||||||
|
- Last date this file was printed
|
||||||
|
* - ``last.printTime``
|
||||||
|
- 1
|
||||||
|
- Float
|
||||||
|
- Last print time in seconds
|
||||||
|
* - ``last.success``
|
||||||
|
- 1
|
||||||
|
- Boolean
|
||||||
|
- Whether the last print was a success or not
|
||||||
|
|
||||||
|
.. _sec-api-datamodel-files-stats:
|
||||||
|
|
||||||
|
Print Statistics
|
||||||
|
----------------
|
||||||
|
|
||||||
|
.. list-table::
|
||||||
|
:widths: 15 5 10 30
|
||||||
|
:header-rows: 1
|
||||||
|
|
||||||
|
* - Name
|
||||||
|
- Multiplicity
|
||||||
|
- Type
|
||||||
|
- Description
|
||||||
|
* - ``averagePrintTime``
|
||||||
|
- 1
|
||||||
|
- Object
|
||||||
|
- Object that maps printer profile names to the last print time of the file, in seconds
|
||||||
|
* - ``lastPrintTime``
|
||||||
|
- 1
|
||||||
|
- Object
|
||||||
|
- Object that maps printer profile names to the average print time of the file, in seconds
|
||||||
|
|
||||||
|
.. _sec-api-datamodel-access:
|
||||||
|
|
||||||
|
Access control
|
||||||
|
==============
|
||||||
|
|
||||||
|
.. _sec-api-datamodel-access-users:
|
||||||
|
|
||||||
|
User record
|
||||||
|
-----------
|
||||||
|
|
||||||
|
.. list-table::
|
||||||
|
:widths: 15 5 10 30
|
||||||
|
:header-rows: 1
|
||||||
|
|
||||||
|
* - Name
|
||||||
|
- Multiplicity
|
||||||
|
- Type
|
||||||
|
- Description
|
||||||
|
* - ``name``
|
||||||
|
- 1
|
||||||
|
- string
|
||||||
|
- The user's name
|
||||||
|
* - ``active``
|
||||||
|
- 1
|
||||||
|
- bool
|
||||||
|
- Whether the user's account is active (true) or not (false)
|
||||||
|
* - ``user``
|
||||||
|
- 1
|
||||||
|
- bool
|
||||||
|
- Whether the user has user rights. Should always be true. Deprecated as of 1.4.0, use the ``users`` group instead.
|
||||||
|
* - ``admin``
|
||||||
|
- 1
|
||||||
|
- bool
|
||||||
|
- Whether the user has admin rights (true) or not (false). Deprecated as of 1.4.0, use the ``admins`` group instead.
|
||||||
|
* - ``apikey``
|
||||||
|
- 0..1
|
||||||
|
- string
|
||||||
|
- The user's personal API key
|
||||||
|
* - ``settings``
|
||||||
|
- 1
|
||||||
|
- object
|
||||||
|
- The user's personal settings, might be an empty object.
|
||||||
|
* - ``groups``
|
||||||
|
- 1..n
|
||||||
|
- List of string
|
||||||
|
- Groups assigned to the user
|
||||||
|
* - ``needs``
|
||||||
|
- 1
|
||||||
|
- :ref:`Needs object <sec-api-datamodel-access-needs>`
|
||||||
|
- Effective needs of the user
|
||||||
|
* - ``permissions``
|
||||||
|
- 0..n
|
||||||
|
- List of :ref:`Permissions <sec-api-datamodel-access-permissions>`
|
||||||
|
- The list of permissions assigned to the user (note: this does not include implicit permissions inherit from groups).
|
||||||
|
|
||||||
|
.. _sec-api-datamodel-access-permissions:
|
||||||
|
|
||||||
|
Permission record
|
||||||
|
-----------------
|
||||||
|
|
||||||
|
.. list-table::
|
||||||
|
:widths: 15 5 10 30
|
||||||
|
:header-rows: 1
|
||||||
|
|
||||||
|
* - Name
|
||||||
|
- Multiplicity
|
||||||
|
- Type
|
||||||
|
- Description
|
||||||
|
* - ``key``
|
||||||
|
- 1
|
||||||
|
- string
|
||||||
|
- The permission's identifier
|
||||||
|
* - ``name``
|
||||||
|
- 1
|
||||||
|
- string
|
||||||
|
- The permission's name
|
||||||
|
* - ``dangerous``
|
||||||
|
- 1
|
||||||
|
- boolean
|
||||||
|
- Whether the permission should be considered dangerous due to a high reponsibility (true) or not (false).
|
||||||
|
* - ``default_groups``
|
||||||
|
- 1
|
||||||
|
- List of string
|
||||||
|
- List of group identifiers for which this permission is enabled by default
|
||||||
|
* - ``description``
|
||||||
|
- 1
|
||||||
|
- string
|
||||||
|
- Human readable description of the permission
|
||||||
|
* - ``needs``
|
||||||
|
- 1
|
||||||
|
- :ref:`Needs object <sec-api-datamodel-access-needs>`
|
||||||
|
- Needs assigned to the permission
|
||||||
|
|
||||||
|
.. _sec-api-datamodel-access-groups:
|
||||||
|
|
||||||
|
Group record
|
||||||
|
------------
|
||||||
|
|
||||||
|
.. list-table::
|
||||||
|
:widths: 15 5 10 30
|
||||||
|
:header-rows: 1
|
||||||
|
|
||||||
|
* - Name
|
||||||
|
- Multiplicity
|
||||||
|
- Type
|
||||||
|
- Description
|
||||||
|
* - ``key``
|
||||||
|
- 1
|
||||||
|
- string
|
||||||
|
- The group's identifier
|
||||||
|
* - ``name``
|
||||||
|
- 1
|
||||||
|
- string
|
||||||
|
- The group's name
|
||||||
|
* - ``description``
|
||||||
|
- 1
|
||||||
|
- string
|
||||||
|
- A human readable description of the group
|
||||||
|
* - ``permissions``
|
||||||
|
- 0..n
|
||||||
|
- List of :ref:`Permissions <sec-api-datamodel-access-permissions>`
|
||||||
|
- The list of permissions assigned to the group (note: this does not include implicit permissions inherited from
|
||||||
|
subgroups).
|
||||||
|
* - ``subgroups``
|
||||||
|
- 0..n
|
||||||
|
- List of :ref:`Groups <sec-api-datamodel-access-groups>`
|
||||||
|
- Subgroups assigned to the group
|
||||||
|
* - ``needs``
|
||||||
|
- 1
|
||||||
|
- :ref:`Needs object <sec-api-datamodel-access-needs>`
|
||||||
|
- Effective needs of the group
|
||||||
|
* - ``default``
|
||||||
|
- 1
|
||||||
|
- boolean
|
||||||
|
- Whether this is a default group (true) or not (false)
|
||||||
|
* - ``removable``
|
||||||
|
- 1
|
||||||
|
- boolean
|
||||||
|
- Whether this group can be removed (true) or not (false)
|
||||||
|
* - ``changeable``
|
||||||
|
- 1
|
||||||
|
- boolean
|
||||||
|
- Whether this group can be modified (true) or not (false)
|
||||||
|
* - ``toggleable``
|
||||||
|
- 1
|
||||||
|
- boolean
|
||||||
|
- Whether this group can be assigned to users or other groups (true) or not (false)
|
||||||
|
|
||||||
|
.. _sec-api-datamodel-access-needs:
|
||||||
|
|
||||||
|
Needs
|
||||||
|
-----
|
||||||
|
|
||||||
|
.. list-table::
|
||||||
|
:widths: 15 5 10 30
|
||||||
|
:header-rows: 1
|
||||||
|
|
||||||
|
* - Name
|
||||||
|
- Multiplicity
|
||||||
|
- Type
|
||||||
|
- Description
|
||||||
|
* - ``role``
|
||||||
|
- 0..1
|
||||||
|
- List of string
|
||||||
|
- List of ``role`` needs
|
||||||
|
* - ``group``
|
||||||
|
- 0..1
|
||||||
|
- List of string
|
||||||
|
- List of ``group`` needs
|
||||||
+45
-10
@@ -14,13 +14,18 @@ Retrieve all files
|
|||||||
.. http:get:: /api/files
|
.. http:get:: /api/files
|
||||||
|
|
||||||
Retrieve information regarding all files currently available and regarding the disk space still available
|
Retrieve information regarding all files currently available and regarding the disk space still available
|
||||||
locally in the system.
|
locally in the system. The results are cached for performance reasons. If you
|
||||||
|
want to override the cache, supply the query parameter ``force`` and set it to ``true``. Note that
|
||||||
|
while printing a refresh/override of the cache for files stored on the printer's SD card
|
||||||
|
is disabled due to bandwidth restrictions on the serial interface.
|
||||||
|
|
||||||
By default only returns the files and folders in the root directory. If the query parameter ``recursive``
|
By default only returns the files and folders in the root directory. If the query parameter ``recursive``
|
||||||
is provided and set to ``true``, returns all files and folders.
|
is provided and set to ``true``, returns all files and folders.
|
||||||
|
|
||||||
Returns a :ref:`Retrieve response <sec-api-fileops-datamodel-retrieveresponse>`.
|
Returns a :ref:`Retrieve response <sec-api-fileops-datamodel-retrieveresponse>`.
|
||||||
|
|
||||||
|
Requires the ``FILES_LIST`` permission.
|
||||||
|
|
||||||
**Example 1**:
|
**Example 1**:
|
||||||
|
|
||||||
Fetch only the files and folders from the root folder.
|
Fetch only the files and folders from the root folder.
|
||||||
@@ -232,6 +237,7 @@ Retrieve all files
|
|||||||
"free": "3.2GB"
|
"free": "3.2GB"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
:param force: If set to ``true``, forces a refresh, overriding the cache.
|
||||||
:param recursive: If set to ``true``, return all files and folders recursively. Otherwise only return items on same level.
|
:param recursive: If set to ``true``, return all files and folders recursively. Otherwise only return items on same level.
|
||||||
:statuscode 200: No error
|
:statuscode 200: No error
|
||||||
|
|
||||||
@@ -243,13 +249,18 @@ Retrieve files from specific location
|
|||||||
.. http:get:: /api/files/(string:location)
|
.. http:get:: /api/files/(string:location)
|
||||||
|
|
||||||
Retrieve information regarding the files currently available on the selected `location` and -- if targeting
|
Retrieve information regarding the files currently available on the selected `location` and -- if targeting
|
||||||
the ``local`` location -- regarding the disk space still available locally in the system.
|
the ``local`` location -- regarding the disk space still available locally in the system. The results are cached for performance reasons. If you
|
||||||
|
want to override the cache, supply the query parameter ``force`` and set it to ``true``.
|
||||||
|
Note that while printing a refresh/override of the cache for files stored on the printer's SD card
|
||||||
|
is disabled due to bandwidth restrictions on the serial interface.
|
||||||
|
|
||||||
By default only returns the files and folders in the root directory. If the query parameter ``recursive``
|
By default only returns the files and folders in the root directory. If the query parameter ``recursive``
|
||||||
is provided and set to ``true``, returns all files and folders.
|
is provided and set to ``true``, returns all files and folders.
|
||||||
|
|
||||||
Returns a :ref:`Retrieve response <sec-api-fileops-datamodel-retrieveresponse>`.
|
Returns a :ref:`Retrieve response <sec-api-fileops-datamodel-retrieveresponse>`.
|
||||||
|
|
||||||
|
Requires the ``FILES_LIST`` permission.
|
||||||
|
|
||||||
**Example**:
|
**Example**:
|
||||||
|
|
||||||
.. sourcecode:: http
|
.. sourcecode:: http
|
||||||
@@ -301,6 +312,7 @@ Retrieve files from specific location
|
|||||||
:param location: The origin location from which to retrieve the files. Currently only ``local`` and ``sdcard`` are
|
:param location: The origin location from which to retrieve the files. Currently only ``local`` and ``sdcard`` are
|
||||||
supported, with ``local`` referring to files stored in OctoPrint's ``uploads`` folder and ``sdcard``
|
supported, with ``local`` referring to files stored in OctoPrint's ``uploads`` folder and ``sdcard``
|
||||||
referring to files stored on the printer's SD card (if available).
|
referring to files stored on the printer's SD card (if available).
|
||||||
|
:param force: If set to ``true``, forces a refresh, overriding the cache.
|
||||||
:param recursive: If set to ``true``, return all files and folders recursively. Otherwise only return items on same level.
|
:param recursive: If set to ``true``, return all files and folders recursively. Otherwise only return items on same level.
|
||||||
:statuscode 200: No error
|
:statuscode 200: No error
|
||||||
:statuscode 404: If `location` is neither ``local`` nor ``sdcard``
|
:statuscode 404: If `location` is neither ``local`` nor ``sdcard``
|
||||||
@@ -315,7 +327,8 @@ Upload file or create folder
|
|||||||
Upload a file to the selected ``location`` or create a new empty folder on it.
|
Upload a file to the selected ``location`` or create a new empty folder on it.
|
||||||
|
|
||||||
Other than most of the other requests on OctoPrint's API which are expected as JSON, this request is expected as
|
Other than most of the other requests on OctoPrint's API which are expected as JSON, this request is expected as
|
||||||
``Content-Type: multipart/form-data`` due to the included file upload.
|
``Content-Type: multipart/form-data`` due to the included file upload. A ``Content-Length`` header specifying
|
||||||
|
the full length of the request body is required as well.
|
||||||
|
|
||||||
To upload a file, the request body must at least contain the ``file`` form field with the
|
To upload a file, the request body must at least contain the ``file`` form field with the
|
||||||
contents and file name of the file to upload.
|
contents and file name of the file to upload.
|
||||||
@@ -327,7 +340,7 @@ Upload file or create folder
|
|||||||
Returns a :http:statuscode:`201` response with a ``Location`` header set to the management URL of the uploaded
|
Returns a :http:statuscode:`201` response with a ``Location`` header set to the management URL of the uploaded
|
||||||
file and an :ref:`Upload Response <sec-api-fileops-datamodel-uploadresponse>` as the body upon successful completion.
|
file and an :ref:`Upload Response <sec-api-fileops-datamodel-uploadresponse>` as the body upon successful completion.
|
||||||
|
|
||||||
Requires user rights.
|
Requires the ``FILES_UPLOAD`` permission.
|
||||||
|
|
||||||
**Example for uploading a file**
|
**Example for uploading a file**
|
||||||
|
|
||||||
@@ -337,6 +350,7 @@ Upload file or create folder
|
|||||||
Host: example.com
|
Host: example.com
|
||||||
X-Api-Key: abcdef...
|
X-Api-Key: abcdef...
|
||||||
Content-Type: multipart/form-data; boundary=----WebKitFormBoundaryDeC2E3iWbTv1PwMC
|
Content-Type: multipart/form-data; boundary=----WebKitFormBoundaryDeC2E3iWbTv1PwMC
|
||||||
|
Content-Length: 430
|
||||||
|
|
||||||
------WebKitFormBoundaryDeC2E3iWbTv1PwMC
|
------WebKitFormBoundaryDeC2E3iWbTv1PwMC
|
||||||
Content-Disposition: form-data; name="file"; filename="whistle_v2.gcode"
|
Content-Disposition: form-data; name="file"; filename="whistle_v2.gcode"
|
||||||
@@ -346,7 +360,7 @@ Upload file or create folder
|
|||||||
T0
|
T0
|
||||||
G21
|
G21
|
||||||
G90
|
G90
|
||||||
...
|
|
||||||
------WebKitFormBoundaryDeC2E3iWbTv1PwMC
|
------WebKitFormBoundaryDeC2E3iWbTv1PwMC
|
||||||
Content-Disposition: form-data; name="select"
|
Content-Disposition: form-data; name="select"
|
||||||
|
|
||||||
@@ -396,6 +410,7 @@ Upload file or create folder
|
|||||||
Host: example.com
|
Host: example.com
|
||||||
X-Api-Key: abcdef...
|
X-Api-Key: abcdef...
|
||||||
Content-Type: multipart/form-data; boundary=----WebKitFormBoundaryDeC2E3iWbTv1PwMC
|
Content-Type: multipart/form-data; boundary=----WebKitFormBoundaryDeC2E3iWbTv1PwMC
|
||||||
|
Content-Length: 263
|
||||||
|
|
||||||
------WebKitFormBoundaryDeC2E3iWbTv1PwMC
|
------WebKitFormBoundaryDeC2E3iWbTv1PwMC
|
||||||
Content-Disposition: form-data; name="file"; filename*=utf-8''20mm-%C3%BCml%C3%A4ut-b%C3%B6x.gcode
|
Content-Disposition: form-data; name="file"; filename*=utf-8''20mm-%C3%BCml%C3%A4ut-b%C3%B6x.gcode
|
||||||
@@ -405,7 +420,7 @@ Upload file or create folder
|
|||||||
T0
|
T0
|
||||||
G21
|
G21
|
||||||
G90
|
G90
|
||||||
...
|
|
||||||
------WebKitFormBoundaryDeC2E3iWbTv1PwMC--
|
------WebKitFormBoundaryDeC2E3iWbTv1PwMC--
|
||||||
|
|
||||||
.. sourcecode:: http
|
.. sourcecode:: http
|
||||||
@@ -436,6 +451,7 @@ Upload file or create folder
|
|||||||
Host: example.com
|
Host: example.com
|
||||||
X-Api-Key: abcdef...
|
X-Api-Key: abcdef...
|
||||||
Content-Type: multipart/form-data; boundary=----WebKitFormBoundaryDeC2E3iWbTv1PwMD
|
Content-Type: multipart/form-data; boundary=----WebKitFormBoundaryDeC2E3iWbTv1PwMD
|
||||||
|
Content-Length: 246
|
||||||
|
|
||||||
------WebKitFormBoundaryDeC2E3iWbTv1PwMD
|
------WebKitFormBoundaryDeC2E3iWbTv1PwMD
|
||||||
Content-Disposition: form-data; name="foldername"
|
Content-Disposition: form-data; name="foldername"
|
||||||
@@ -504,6 +520,8 @@ Retrieve a specific file's or folder's information
|
|||||||
On success, a :http:statuscode:`200` is returned, with a :ref:`file information item <sec-api-datamodel-files-file>`
|
On success, a :http:statuscode:`200` is returned, with a :ref:`file information item <sec-api-datamodel-files-file>`
|
||||||
as the response body.
|
as the response body.
|
||||||
|
|
||||||
|
Requires the ``FILES_LIST`` permission.
|
||||||
|
|
||||||
**Example**
|
**Example**
|
||||||
|
|
||||||
.. sourcecode:: http
|
.. sourcecode:: http
|
||||||
@@ -566,7 +584,19 @@ Issue a file command
|
|||||||
is not operational when this parameter is present and set to ``true``, the request will fail with a response
|
is not operational when this parameter is present and set to ``true``, the request will fail with a response
|
||||||
of ``409 Conflict``.
|
of ``409 Conflict``.
|
||||||
|
|
||||||
Upon success, a status code of :http:statuscode:`204` and an empty body is returned.
|
Upon success, a status code of :http:statuscode:`204` and an empty body is returned. If there already is an
|
||||||
|
active print job, a :http:statuscode:`409` is returned.
|
||||||
|
|
||||||
|
Requires the ``FILES_SELECT`` permission.
|
||||||
|
|
||||||
|
unselect
|
||||||
|
Unselects the currently selected file for printing.
|
||||||
|
|
||||||
|
Upon success, a status code of :http:statuscode:`204` and an empty body is returned. If no file is selected
|
||||||
|
or there already is an active print job, a :http:statuscode:`409` is returned. If path isn't ``current```
|
||||||
|
or the filename of the current selection, a :http:statuscode:`400` is returned
|
||||||
|
|
||||||
|
Requires the ``FILES_SELECT`` permission.
|
||||||
|
|
||||||
slice
|
slice
|
||||||
Slices an STL file into GCODE. Note that this is an asynchronous operation that will take place in the background
|
Slices an STL file into GCODE. Note that this is an asynchronous operation that will take place in the background
|
||||||
@@ -598,6 +628,8 @@ Issue a file command
|
|||||||
Upon success, a status code of :http:statuscode:`202` and a :ref:`sec-api-datamodel-files-fileabridged` in the response
|
Upon success, a status code of :http:statuscode:`202` and a :ref:`sec-api-datamodel-files-fileabridged` in the response
|
||||||
body will be returned.
|
body will be returned.
|
||||||
|
|
||||||
|
Requires the ``SLICE`` permission.
|
||||||
|
|
||||||
copy
|
copy
|
||||||
Copies the file or folder to a new ``destination`` on the same ``location``. Additional parameters are:
|
Copies the file or folder to a new ``destination`` on the same ``location``. Additional parameters are:
|
||||||
|
|
||||||
@@ -609,6 +641,8 @@ Issue a file command
|
|||||||
Upon success, a status code of :http:statuscode:`201` and a :ref:`sec-api-datamodel-files-fileabridged` in the response
|
Upon success, a status code of :http:statuscode:`201` and a :ref:`sec-api-datamodel-files-fileabridged` in the response
|
||||||
body will be returned.
|
body will be returned.
|
||||||
|
|
||||||
|
Requires the ``FILES_UPLOAD`` permission.
|
||||||
|
|
||||||
move
|
move
|
||||||
Moves the file or folder to a new ``destination`` on the same ``location``. Additional parameters are:
|
Moves the file or folder to a new ``destination`` on the same ``location``. Additional parameters are:
|
||||||
|
|
||||||
@@ -622,7 +656,7 @@ Issue a file command
|
|||||||
Upon success, a status code of :http:statuscode:`201` and a :ref:`sec-api-datamodel-files-fileabridged` in the response
|
Upon success, a status code of :http:statuscode:`201` and a :ref:`sec-api-datamodel-files-fileabridged` in the response
|
||||||
body will be returned.
|
body will be returned.
|
||||||
|
|
||||||
Requires user rights.
|
Requires the ``FILES_UPLOAD`` permission.
|
||||||
|
|
||||||
**Example Select Request**
|
**Example Select Request**
|
||||||
|
|
||||||
@@ -756,7 +790,8 @@ Issue a file command
|
|||||||
:statuscode 400: If the ``command`` is unknown or the request is otherwise invalid
|
:statuscode 400: If the ``command`` is unknown or the request is otherwise invalid
|
||||||
:statuscode 415: If a ``slice`` command was issued against something other than an STL file.
|
:statuscode 415: If a ``slice`` command was issued against something other than an STL file.
|
||||||
:statuscode 404: If ``location`` is neither ``local`` nor ``sdcard`` or the requested file was not found
|
:statuscode 404: If ``location`` is neither ``local`` nor ``sdcard`` or the requested file was not found
|
||||||
:statuscode 409: If a selected file is supposed to start printing directly but the printer is not operational or
|
:statuscode 409: If a selected file is supposed to start printing directly but the printer is not operational
|
||||||
|
or if a file is to be selected but the printer is already printing or
|
||||||
if a file to be sliced is supposed to be selected or start printing directly but the printer
|
if a file to be sliced is supposed to be selected or start printing directly but the printer
|
||||||
is not operational or already printing.
|
is not operational or already printing.
|
||||||
|
|
||||||
@@ -773,7 +808,7 @@ Delete file
|
|||||||
|
|
||||||
Returns a :http:statuscode:`204` after successful deletion.
|
Returns a :http:statuscode:`204` after successful deletion.
|
||||||
|
|
||||||
Requires user rights.
|
Requires the ``FILES_DELETE`` permission.
|
||||||
|
|
||||||
**Example Request**
|
**Example Request**
|
||||||
|
|
||||||
|
|||||||
+85
-54
@@ -12,13 +12,13 @@ Authorization
|
|||||||
=============
|
=============
|
||||||
|
|
||||||
If :ref:`Access Control <sec-features-access_control>` is enabled OctoPrint's API expects an API key to be supplied with each request. This API
|
If :ref:`Access Control <sec-features-access_control>` is enabled OctoPrint's API expects an API key to be supplied with each request. This API
|
||||||
key can be either the globally configured one, a user specific one or an app and user specific one as generated by the
|
key can be either a user specific one or an app and user specific one as generated by the
|
||||||
authorization workflow implemented by the bundled :ref:`Application Keys Plugin <sec-bundledplugins-appkeys>` (since 1.3.10).
|
authorization workflow implemented by the bundled :ref:`Application Keys Plugin <sec-bundledplugins-appkeys>` (since 1.3.10).
|
||||||
|
|
||||||
Clients are advised to implement the :ref:`Application Keys Plugin workflow <sec-bundledplugins-appkeys-workflow>` first and
|
Clients are advised to implement the :ref:`Application Keys Plugin workflow <sec-bundledplugins-appkeys-workflow>` first and
|
||||||
fallback on directing the user to manually supply the the user specific API key. The global key should rarely be used.
|
fallback on directing the user to manually supply the the user specific API key.
|
||||||
|
|
||||||
The API key must be supplied in the custom HTTP header ``X-Api-Key``, e.g.
|
The API key must either be supplied in the custom HTTP header ``X-Api-Key``, e.g.
|
||||||
|
|
||||||
.. sourcecode:: http
|
.. sourcecode:: http
|
||||||
|
|
||||||
@@ -26,6 +26,14 @@ The API key must be supplied in the custom HTTP header ``X-Api-Key``, e.g.
|
|||||||
Host: example.com
|
Host: example.com
|
||||||
X-Api-Key: abcdef...
|
X-Api-Key: abcdef...
|
||||||
|
|
||||||
|
or as a ``Bearer`` token in the ``Authorization`` header, e.g.
|
||||||
|
|
||||||
|
.. sourcecode:: http
|
||||||
|
|
||||||
|
GET /api/files HTTP/1.1
|
||||||
|
Host: example.com
|
||||||
|
Authorization: Bearer abcdef...
|
||||||
|
|
||||||
For testing purposes it is also possible to supply the API key via a query parameter ``apikey``, e.g.
|
For testing purposes it is also possible to supply the API key via a query parameter ``apikey``, e.g.
|
||||||
|
|
||||||
.. sourcecode:: http
|
.. sourcecode:: http
|
||||||
@@ -36,8 +44,7 @@ For testing purposes it is also possible to supply the API key via a query param
|
|||||||
Please be advised that clients should use the header field variant if at all possible.
|
Please be advised that clients should use the header field variant if at all possible.
|
||||||
|
|
||||||
If the key is missing or invalid, OctoPrint will treat the request as it would any unauthenticated anonymous request to the endpoint.
|
If the key is missing or invalid, OctoPrint will treat the request as it would any unauthenticated anonymous request to the endpoint.
|
||||||
Consequently, if the bundled :ref:`ForceLogin plugin <sec-bundledplugins-forcelogin>` is active (which is the default), that means
|
That means that any requests without or with an invalid API key targeting other API endpoints than :ref:`Login <sec-api-general-login>`
|
||||||
that any requests without or with an invalid API key targeting other API endpoints than :ref:`Login <sec-api-general-login>`
|
|
||||||
will be denied with a :http:statuscode:`403`.
|
will be denied with a :http:statuscode:`403`.
|
||||||
|
|
||||||
.. warning::
|
.. warning::
|
||||||
@@ -45,21 +52,6 @@ will be denied with a :http:statuscode:`403`.
|
|||||||
If :ref:`Access Control <sec-features-access_control>` is disabled, OctoPrint will treat any unauthenticated anonymous requests and thus also requests
|
If :ref:`Access Control <sec-features-access_control>` is disabled, OctoPrint will treat any unauthenticated anonymous requests and thus also requests
|
||||||
with an invalid or outright missing API key as requests with full admin rights!
|
with an invalid or outright missing API key as requests with full admin rights!
|
||||||
|
|
||||||
.. note::
|
|
||||||
|
|
||||||
The API key requirements changed in 1.3.11. Up to that version, even if Access Control was disabled, all requests needed to
|
|
||||||
be supplied with an API Key. To make the webinterface work under these circumstances, an unauthenticated anonymous API key was injected into the
|
|
||||||
HTML page and also available on the :ref:`Push API <sec-api-push>`. The presence and ready availability of this unauthenticated
|
|
||||||
anonymous "UI API key" caused confusion and false alarm among users and didn't contribute to the security of the platform in a
|
|
||||||
meaningful way, so it was finally abandoned in 1.3.11.
|
|
||||||
|
|
||||||
.. _fig-api-general-globalapikey:
|
|
||||||
.. figure:: ../images/settings-global-api-key.png
|
|
||||||
:align: center
|
|
||||||
:alt: Global API key in the API settings
|
|
||||||
|
|
||||||
The global API key can be found in the "API" settings
|
|
||||||
|
|
||||||
.. _fig-api-general-userapikey:
|
.. _fig-api-general-userapikey:
|
||||||
.. figure:: ../images/settings-user-api-key.png
|
.. figure:: ../images/settings-user-api-key.png
|
||||||
:align: center
|
:align: center
|
||||||
@@ -126,7 +118,8 @@ check the corresponding checkbox in the API settings dialog.
|
|||||||
|
|
||||||
Support for CORS can be enabled in the "API" settings
|
Support for CORS can be enabled in the "API" settings
|
||||||
|
|
||||||
.. note::
|
.. warning::
|
||||||
|
|
||||||
This means any browser page can send requests to the OctoPrint API. Authorization is still required however.
|
This means any browser page can send requests to the OctoPrint API. Authorization is still required however.
|
||||||
|
|
||||||
If CORS is not enabled you will get errors like the following::
|
If CORS is not enabled you will get errors like the following::
|
||||||
@@ -134,6 +127,15 @@ If CORS is not enabled you will get errors like the following::
|
|||||||
XMLHttpRequest cannot load http://localhost:8081/api/files. No 'Access-Control-Allow-Origin'
|
XMLHttpRequest cannot load http://localhost:8081/api/files. No 'Access-Control-Allow-Origin'
|
||||||
header is present on the requested resource.
|
header is present on the requested resource.
|
||||||
|
|
||||||
|
|
||||||
|
.. note::
|
||||||
|
|
||||||
|
For security reasons, OctoPrint will not set the ``Access-Control-Allow-Credentials``
|
||||||
|
header, even if CORS support is enabled. That means that cookies will not be sent by
|
||||||
|
the browser to OctoPrint, effectively making it impossible to authenticate through
|
||||||
|
the login mechanism (or reusing an existing login session). When accessing OctoPrint
|
||||||
|
via CORS, you'll therefore always need to use an API key.
|
||||||
|
|
||||||
.. _sec-api-general-login:
|
.. _sec-api-general-login:
|
||||||
|
|
||||||
Login
|
Login
|
||||||
@@ -148,8 +150,20 @@ Login
|
|||||||
via the ``passive`` flag.
|
via the ``passive`` flag.
|
||||||
|
|
||||||
Will return a :http:statuscode:`200` with a :ref:`login response <sec-api-general-datamodel-login>` on successful
|
Will return a :http:statuscode:`200` with a :ref:`login response <sec-api-general-datamodel-login>` on successful
|
||||||
login, whether active or passive. The active (username/password) login may also return a :http:statuscode:`401` in
|
login, whether active or passive. The active (username/password) login may also return a :http:statuscode:`403` in
|
||||||
case of a username/password mismatch or unknown user and a :http:statuscode:`403` in case of a deactivated account.
|
case of a username/password mismatch, unknown user or a deactivated account.
|
||||||
|
|
||||||
|
.. warning::
|
||||||
|
|
||||||
|
Previous versions of this API endpoint did return a :http:statuscode:`401` in case of a username/password
|
||||||
|
mismatch or an unknown user. That was incompatible with basic authentication since it was a wrong use of
|
||||||
|
the :http:statuscode:`401` code and got therefore changed as part of a bug fix.
|
||||||
|
|
||||||
|
.. note::
|
||||||
|
|
||||||
|
You cannot use this endpoint to login from a third party page via CORS, see above. You can however use it
|
||||||
|
to retrieve user information via passive login with an API key (e.g. if you need the ``session`` to authenticate
|
||||||
|
on the web socket.
|
||||||
|
|
||||||
:json passive: If present, performs a passive login only, returning information about the current user that's
|
:json passive: If present, performs a passive login only, returning information about the current user that's
|
||||||
active either through an existing session or the used API key
|
active either through an existing session or the used API key
|
||||||
@@ -157,8 +171,7 @@ Login
|
|||||||
:json pass: (active login only) Password
|
:json pass: (active login only) Password
|
||||||
:json remember: (active login only) Whether to set a "remember me" cookie on the session
|
:json remember: (active login only) Whether to set a "remember me" cookie on the session
|
||||||
:status 200: Successful login
|
:status 200: Successful login
|
||||||
:status 401: Username/password mismatch or unknown user
|
:status 403: Username/password mismatch, unknown user or deactivated account
|
||||||
:status 403: Deactivated account
|
|
||||||
|
|
||||||
.. _sec-api-general-logout:
|
.. _sec-api-general-logout:
|
||||||
|
|
||||||
@@ -175,6 +188,20 @@ Logout
|
|||||||
|
|
||||||
:status 204: No error
|
:status 204: No error
|
||||||
|
|
||||||
|
.. _sec-api-general-currentuser:
|
||||||
|
|
||||||
|
Current User
|
||||||
|
============
|
||||||
|
|
||||||
|
.. http:get:: /api/currentuser
|
||||||
|
|
||||||
|
Retrieves information about the current user.
|
||||||
|
|
||||||
|
Will return a :http:statuscode:`200` with a :ref:`current user object <sec-api-general-datamodel-currentuser>`
|
||||||
|
as body.
|
||||||
|
|
||||||
|
:status 200: No error
|
||||||
|
|
||||||
.. _sec-api-general-datamodel:
|
.. _sec-api-general-datamodel:
|
||||||
|
|
||||||
Data model
|
Data model
|
||||||
@@ -185,6 +212,30 @@ Data model
|
|||||||
Login response
|
Login response
|
||||||
--------------
|
--------------
|
||||||
|
|
||||||
|
The Login response is a :ref:`user record <sec-api-datamodel-access-users>` extended by the following fields:
|
||||||
|
|
||||||
|
.. list-table::
|
||||||
|
:widths: 15 5 10 30
|
||||||
|
:header-rows: 1
|
||||||
|
|
||||||
|
* - Name
|
||||||
|
- Multiplicity
|
||||||
|
- Type
|
||||||
|
- Description
|
||||||
|
* - ``session``
|
||||||
|
- 1
|
||||||
|
- string
|
||||||
|
- The session key, can be used to authenticate with the ``auth`` message on the :ref:`push API <sec-api-push>`.
|
||||||
|
* - ``_is_external_client``
|
||||||
|
- 1
|
||||||
|
- boolean
|
||||||
|
- Whether the client that made the request got detected as external from the local network or not.
|
||||||
|
|
||||||
|
.. _sec-api-general-datamodel-currentuser:
|
||||||
|
|
||||||
|
Current user
|
||||||
|
------------
|
||||||
|
|
||||||
.. list-table::
|
.. list-table::
|
||||||
:widths: 15 5 10 30
|
:widths: 15 5 10 30
|
||||||
:header-rows: 1
|
:header-rows: 1
|
||||||
@@ -196,32 +247,12 @@ Login response
|
|||||||
* - ``name``
|
* - ``name``
|
||||||
- 1
|
- 1
|
||||||
- string
|
- string
|
||||||
- the user's name/id
|
- The id of the current user. Unset if guest.
|
||||||
* - ``active``
|
* - ``permissions``
|
||||||
- 1
|
- 0..n
|
||||||
- boolean
|
- List of :ref:`permission records <sec-api-datamodel-access-permissions>`
|
||||||
- Whether the user's account is active or not
|
- The effective list of permissions assigned to the user
|
||||||
* - ``admin``
|
* - ``groups``
|
||||||
- 1
|
- 0..n
|
||||||
- boolean
|
- List of :ref:`permission records <sec-api-datamodel-access-groups>`
|
||||||
- Whether the user has admin rights or not
|
- The list of groups assigned to the user
|
||||||
* - ``user``
|
|
||||||
- 1
|
|
||||||
- boolean
|
|
||||||
- Whether the user has user rights or not (always ``true``)
|
|
||||||
* - ``apikey``
|
|
||||||
- 1
|
|
||||||
- string or None
|
|
||||||
- The user's API key, if set
|
|
||||||
* - ``settings``
|
|
||||||
- 1
|
|
||||||
- dict
|
|
||||||
- The user's settings, if any
|
|
||||||
* - ``session``
|
|
||||||
- 1
|
|
||||||
- string
|
|
||||||
- The session key, can be used to authenticate with the ``auth`` message on the :ref:`push API <sec-api-push>`.
|
|
||||||
* - ``_is_external_client``
|
|
||||||
- 1
|
|
||||||
- boolean
|
|
||||||
- Whether the client that made the request got detected as external from the local network or not.
|
|
||||||
+2
-2
@@ -9,7 +9,7 @@ REST API
|
|||||||
|
|
||||||
general.rst
|
general.rst
|
||||||
version.rst
|
version.rst
|
||||||
apps.rst
|
server.rst
|
||||||
connection.rst
|
connection.rst
|
||||||
files.rst
|
files.rst
|
||||||
job.rst
|
job.rst
|
||||||
@@ -21,7 +21,7 @@ REST API
|
|||||||
slicing.rst
|
slicing.rst
|
||||||
system.rst
|
system.rst
|
||||||
timelapse.rst
|
timelapse.rst
|
||||||
users.rst
|
access.rst
|
||||||
util.rst
|
util.rst
|
||||||
wizard.rst
|
wizard.rst
|
||||||
push.rst
|
push.rst
|
||||||
|
|||||||
+14
-5
@@ -57,7 +57,7 @@ Issue a job command
|
|||||||
|
|
||||||
Upon success, a status code of :http:statuscode:`204` and an empty body is returned.
|
Upon success, a status code of :http:statuscode:`204` and an empty body is returned.
|
||||||
|
|
||||||
Requires user rights.
|
Requires the ``PRINT`` permission.
|
||||||
|
|
||||||
**Example Start Request**
|
**Example Start Request**
|
||||||
|
|
||||||
@@ -180,6 +180,8 @@ Retrieve information about the current job
|
|||||||
|
|
||||||
Returns a :http:statuscode:`200` with a :ref:`sec-api-job-datamodel-response` in the body.
|
Returns a :http:statuscode:`200` with a :ref:`sec-api-job-datamodel-response` in the body.
|
||||||
|
|
||||||
|
Requires the ``STATUS`` permission.
|
||||||
|
|
||||||
**Example**
|
**Example**
|
||||||
|
|
||||||
.. sourcecode:: http
|
.. sourcecode:: http
|
||||||
@@ -203,8 +205,10 @@ Retrieve information about the current job
|
|||||||
},
|
},
|
||||||
"estimatedPrintTime": 8811,
|
"estimatedPrintTime": 8811,
|
||||||
"filament": {
|
"filament": {
|
||||||
"length": 810,
|
"tool0": {
|
||||||
"volume": 5.36
|
"length": 810,
|
||||||
|
"volume": 5.36
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"progress": {
|
"progress": {
|
||||||
@@ -247,5 +251,10 @@ Job information response
|
|||||||
* - ``state``
|
* - ``state``
|
||||||
- 1
|
- 1
|
||||||
- String
|
- String
|
||||||
- A textual representation of the current state of the job, i.e. "Operational", "Printing", "Pausing", "Paused",
|
- A textual representation of the current state of the job or connection, e.g. "Operational", "Printing", "Pausing", "Paused",
|
||||||
"Cancelling", "Error" or "Offline".
|
"Cancelling", "Error", "Offline", "Offline after error", "Opening serial connection", ... -- please note
|
||||||
|
that this list is not exhaustive!
|
||||||
|
* - ``error``
|
||||||
|
- 0..1
|
||||||
|
- String
|
||||||
|
- Any error message for the job or connection, only set if there has been an error.
|
||||||
@@ -6,7 +6,7 @@ Languages
|
|||||||
|
|
||||||
.. note::
|
.. note::
|
||||||
|
|
||||||
All language pack management operations require admin rights.
|
All language pack management operations require the ``SETTINGS`` permission.
|
||||||
|
|
||||||
.. contents::
|
.. contents::
|
||||||
|
|
||||||
|
|||||||
+59
-11
@@ -80,6 +80,8 @@ Retrieve the current printer state
|
|||||||
Returns a :http:statuscode:`200` with a :ref:`Full State Response <sec-api-printer-datamodel-fullstate>` in the
|
Returns a :http:statuscode:`200` with a :ref:`Full State Response <sec-api-printer-datamodel-fullstate>` in the
|
||||||
body upon success.
|
body upon success.
|
||||||
|
|
||||||
|
Requires the ``STATUS`` permission.
|
||||||
|
|
||||||
**Example 1**
|
**Example 1**
|
||||||
|
|
||||||
Include temperature history data, but limit it to two entries.
|
Include temperature history data, but limit it to two entries.
|
||||||
@@ -241,7 +243,7 @@ Issue a print head command
|
|||||||
|
|
||||||
Upon success, a status code of :http:statuscode:`204` and an empty body is returned.
|
Upon success, a status code of :http:statuscode:`204` and an empty body is returned.
|
||||||
|
|
||||||
Requires user rights.
|
Requires the ``CONTROL`` permission.
|
||||||
|
|
||||||
**Example Jog Request**
|
**Example Jog Request**
|
||||||
|
|
||||||
@@ -350,7 +352,7 @@ Issue a tool command
|
|||||||
Sets the given target temperature on the printer's tools. Additional parameters:
|
Sets the given target temperature on the printer's tools. Additional parameters:
|
||||||
|
|
||||||
* ``targets``: Target temperature(s) to set, properties must match the format ``tool{n}`` with ``n`` being the
|
* ``targets``: Target temperature(s) to set, properties must match the format ``tool{n}`` with ``n`` being the
|
||||||
tool's index starting with 0.
|
tool's index starting with 0. A value of `0` will turn the heater off.
|
||||||
|
|
||||||
offset
|
offset
|
||||||
Sets the given temperature offset on the printer's tools. Additional parameters:
|
Sets the given temperature offset on the printer's tools. Additional parameters:
|
||||||
@@ -380,7 +382,7 @@ Issue a tool command
|
|||||||
|
|
||||||
Upon success, a status code of :http:statuscode:`204` and an empty body is returned.
|
Upon success, a status code of :http:statuscode:`204` and an empty body is returned.
|
||||||
|
|
||||||
Requires user rights.
|
Requires the ``CONTROL`` permission.
|
||||||
|
|
||||||
**Example Target Temperature Request**
|
**Example Target Temperature Request**
|
||||||
|
|
||||||
@@ -555,6 +557,8 @@ Retrieve the current tool state
|
|||||||
|
|
||||||
Returns a :http:statuscode:`200` with a Temperature Response in the body upon success.
|
Returns a :http:statuscode:`200` with a Temperature Response in the body upon success.
|
||||||
|
|
||||||
|
Requires the ``STATUS`` permission.
|
||||||
|
|
||||||
.. note::
|
.. note::
|
||||||
If you want both tool and bed temperature information at the same time, take a look at
|
If you want both tool and bed temperature information at the same time, take a look at
|
||||||
:ref:`Retrieve the current printer state <sec-api-printer-state>`.
|
:ref:`Retrieve the current printer state <sec-api-printer-state>`.
|
||||||
@@ -630,7 +634,7 @@ Issue a bed command
|
|||||||
target
|
target
|
||||||
Sets the given target temperature on the printer's bed. Additional parameters:
|
Sets the given target temperature on the printer's bed. Additional parameters:
|
||||||
|
|
||||||
* ``target``: Target temperature to set.
|
* ``target``: Target temperature to set. A value of `0` will turn the heater off.
|
||||||
|
|
||||||
offset
|
offset
|
||||||
Sets the given temperature offset on the printer's bed. Additional parameters:
|
Sets the given temperature offset on the printer's bed. Additional parameters:
|
||||||
@@ -645,7 +649,7 @@ Issue a bed command
|
|||||||
If no heated bed is configured for the currently selected printer profile, the resource will return
|
If no heated bed is configured for the currently selected printer profile, the resource will return
|
||||||
an :http:statuscode:`409`.
|
an :http:statuscode:`409`.
|
||||||
|
|
||||||
Requires user rights.
|
Requires the ``CONTROL`` permission.
|
||||||
|
|
||||||
**Example Target Temperature Request**
|
**Example Target Temperature Request**
|
||||||
|
|
||||||
@@ -714,6 +718,8 @@ Retrieve the current bed state
|
|||||||
If no heated bed is configured for the currently selected printer profile, the resource will return
|
If no heated bed is configured for the currently selected printer profile, the resource will return
|
||||||
an :http:statuscode:`409`.
|
an :http:statuscode:`409`.
|
||||||
|
|
||||||
|
Requires the ``STATUS`` permission.
|
||||||
|
|
||||||
.. note::
|
.. note::
|
||||||
If you want tool, bed and chamber temperature information at the same time, take a look at
|
If you want tool, bed and chamber temperature information at the same time, take a look at
|
||||||
:ref:`Retrieve the current printer state <sec-api-printer-state>`.
|
:ref:`Retrieve the current printer state <sec-api-printer-state>`.
|
||||||
@@ -770,7 +776,7 @@ Retrieve the current bed state
|
|||||||
Issue a chamber command
|
Issue a chamber command
|
||||||
=======================
|
=======================
|
||||||
|
|
||||||
.. http:post:: /api/printer/bed
|
.. http:post:: /api/printer/chamber
|
||||||
|
|
||||||
Chamber commands allow setting the temperature and temperature offsets for the printer's heated chamber. Available commands
|
Chamber commands allow setting the temperature and temperature offsets for the printer's heated chamber. Available commands
|
||||||
are:
|
are:
|
||||||
@@ -778,7 +784,7 @@ Issue a chamber command
|
|||||||
target
|
target
|
||||||
Sets the given target temperature on the printer's chamber. Additional parameters:
|
Sets the given target temperature on the printer's chamber. Additional parameters:
|
||||||
|
|
||||||
* ``target``: Target temperature to set.
|
* ``target``: Target temperature to set. A value of `0` will turn the heater off.
|
||||||
|
|
||||||
offset
|
offset
|
||||||
Sets the given temperature offset on the printer's chamber. Additional parameters:
|
Sets the given temperature offset on the printer's chamber. Additional parameters:
|
||||||
@@ -790,10 +796,10 @@ Issue a chamber command
|
|||||||
|
|
||||||
Upon success, a status code of :http:statuscode:`204` and an empty body is returned.
|
Upon success, a status code of :http:statuscode:`204` and an empty body is returned.
|
||||||
|
|
||||||
If no heated chambed is configured for the currently selected printer profile, the resource will return
|
If no heated chamber is configured for the currently selected printer profile, the resource will return
|
||||||
an :http:statuscode:`409`.
|
an :http:statuscode:`409`.
|
||||||
|
|
||||||
Requires user rights.
|
Requires the ``CONTROL`` permission.
|
||||||
|
|
||||||
**Example Target Temperature Request**
|
**Example Target Temperature Request**
|
||||||
|
|
||||||
@@ -862,6 +868,8 @@ Retrieve the current chamber state
|
|||||||
If no heated chamber is configured for the currently selected printer profile, the resource will return
|
If no heated chamber is configured for the currently selected printer profile, the resource will return
|
||||||
an :http:statuscode:`409`.
|
an :http:statuscode:`409`.
|
||||||
|
|
||||||
|
Requires the ``STATUS`` permission.
|
||||||
|
|
||||||
.. note::
|
.. note::
|
||||||
If you want tool, bed and chamber temperature information at the same time, take a look at
|
If you want tool, bed and chamber temperature information at the same time, take a look at
|
||||||
:ref:`Retrieve the current printer state <sec-api-printer-state>`.
|
:ref:`Retrieve the current printer state <sec-api-printer-state>`.
|
||||||
@@ -944,7 +952,7 @@ Issue an SD command
|
|||||||
|
|
||||||
Upon success, a status code of :http:statuscode:`204` and an empty body is returned.
|
Upon success, a status code of :http:statuscode:`204` and an empty body is returned.
|
||||||
|
|
||||||
Requires user rights.
|
Requires the ``CONTROL`` permission.
|
||||||
|
|
||||||
**Example Init Request**
|
**Example Init Request**
|
||||||
|
|
||||||
@@ -1022,6 +1030,8 @@ Retrieve the current SD state
|
|||||||
Returns a :http:statuscode:`200` with an :ref:`SD State Response <sec-api-printer-datamodel-sdstate>` in the body
|
Returns a :http:statuscode:`200` with an :ref:`SD State Response <sec-api-printer-datamodel-sdstate>` in the body
|
||||||
upon success.
|
upon success.
|
||||||
|
|
||||||
|
Requires the ``STATUS`` permission.
|
||||||
|
|
||||||
**Example**
|
**Example**
|
||||||
|
|
||||||
Read the current state of the SD card.
|
Read the current state of the SD card.
|
||||||
@@ -1058,7 +1068,7 @@ Send an arbitrary command to the printer
|
|||||||
|
|
||||||
If successful returns a :http:statuscode:`204` and an empty body.
|
If successful returns a :http:statuscode:`204` and an empty body.
|
||||||
|
|
||||||
Requires user rights.
|
Requires the ``CONTROL`` permission.
|
||||||
|
|
||||||
**Example for sending a single command**
|
**Example for sending a single command**
|
||||||
|
|
||||||
@@ -1101,6 +1111,26 @@ Send an arbitrary command to the printer
|
|||||||
:json string commands: List of commands to send to the printer, mutually exclusive with ``command``.
|
:json string commands: List of commands to send to the printer, mutually exclusive with ``command``.
|
||||||
:statuscode 204: No error
|
:statuscode 204: No error
|
||||||
|
|
||||||
|
.. _sec-api-printer-customcontrols:
|
||||||
|
|
||||||
|
Retrieve custom controls
|
||||||
|
========================
|
||||||
|
|
||||||
|
.. http:get:: /api/printer/command/custom
|
||||||
|
|
||||||
|
Retrieves the :ref:`custom controls <sec-features-custom_controls>` as configured in
|
||||||
|
:ref:`config.yaml <sec-configuration-config_yaml>`.
|
||||||
|
|
||||||
|
Please refer to the documentation of :ref:`custom controls <sec-features-custom_controls>` on what
|
||||||
|
data structure to expect here.
|
||||||
|
|
||||||
|
Returns a :http:statuscode:`200` with an :ref:`Custom Controls Response <sec-api-printer-datamodel-customcontrols>`
|
||||||
|
in the body upon success.
|
||||||
|
|
||||||
|
Requires the ``CONTROL`` permission.
|
||||||
|
|
||||||
|
:statuscode 200: No error
|
||||||
|
|
||||||
.. _sec-api-printer-datamodel:
|
.. _sec-api-printer-datamodel:
|
||||||
|
|
||||||
Data model
|
Data model
|
||||||
@@ -1211,3 +1241,21 @@ Arbitrary Command Request
|
|||||||
- 0..1
|
- 0..1
|
||||||
- Map of key value pairs
|
- Map of key value pairs
|
||||||
- (only if ``script`` is set) additional template variables to provide to the script renderer
|
- (only if ``script`` is set) additional template variables to provide to the script renderer
|
||||||
|
|
||||||
|
.. _sec-api-printer-datamodel-customcontrols:
|
||||||
|
|
||||||
|
Custom Controls Response
|
||||||
|
------------------------
|
||||||
|
|
||||||
|
.. list-table::
|
||||||
|
:widths: 15 5 10 30
|
||||||
|
:header-rows: 1
|
||||||
|
|
||||||
|
* - Name
|
||||||
|
- Multiplicity
|
||||||
|
- Type
|
||||||
|
- Description
|
||||||
|
* - ``controls``
|
||||||
|
- 0..n
|
||||||
|
- List of :ref:`custom controls <sec-features-custom_controls>`
|
||||||
|
- A list of custom control definitions as defined in ``config.yaml``.
|
||||||
@@ -17,9 +17,11 @@ Retrieve all printer profiles
|
|||||||
|
|
||||||
.. http:get:: /api/printerprofiles
|
.. http:get:: /api/printerprofiles
|
||||||
|
|
||||||
Retrieves a list of all configured printer profiles.
|
Retrieves an object representing all configured printer profiles.
|
||||||
|
|
||||||
Returns a :http:statuscode:`200` with a list of :ref:`profiles <sec-api-printerprofiles-datamodel-profile>`.
|
Returns a :http:statuscode:`200` with a :ref:`profile list <sec-api-printerprofiles-datamodel-profilelist>`.
|
||||||
|
|
||||||
|
Requires the ``CONNECTION`` permission.
|
||||||
|
|
||||||
**Example**
|
**Example**
|
||||||
|
|
||||||
@@ -35,8 +37,8 @@ Retrieve all printer profiles
|
|||||||
Content-Type: application/json
|
Content-Type: application/json
|
||||||
|
|
||||||
{
|
{
|
||||||
"profiles": [
|
"profiles": {
|
||||||
{
|
"_default": {
|
||||||
"id": "_default",
|
"id": "_default",
|
||||||
"name": "Default",
|
"name": "Default",
|
||||||
"color": "default",
|
"color": "default",
|
||||||
@@ -78,7 +80,7 @@ Retrieve all printer profiles
|
|||||||
]
|
]
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
"my_profile": {
|
||||||
"id": "my_profile",
|
"id": "my_profile",
|
||||||
"name": "My Profile",
|
"name": "My Profile",
|
||||||
"color": "default",
|
"color": "default",
|
||||||
@@ -120,10 +122,26 @@ Retrieve all printer profiles
|
|||||||
]
|
]
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
]
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
.. _sec-api-printerprofiles-get:
|
||||||
|
|
||||||
|
Retrieve a single printer profile
|
||||||
|
=================================
|
||||||
|
|
||||||
|
.. http:get:: /api/printerprofiles/(string:identifier)
|
||||||
|
|
||||||
|
Retrieves an existing single printer profile.
|
||||||
|
|
||||||
|
Returns a :http:statuscode:`200` with a :ref:`profile <sec-api-printerprofiles-datamodel-profile>`.
|
||||||
|
|
||||||
|
Requires the ``CONNECTION`` permission.
|
||||||
|
|
||||||
|
:statuscode 200: No error
|
||||||
|
:statuscode 404: The profile does not exist
|
||||||
|
|
||||||
.. _sec-api-printerprofiles-add:
|
.. _sec-api-printerprofiles-add:
|
||||||
|
|
||||||
Add a new printer profile
|
Add a new printer profile
|
||||||
@@ -143,7 +161,7 @@ Add a new printer profile
|
|||||||
Returns a :http:statuscode:`200` with the saved profile as property ``profile``
|
Returns a :http:statuscode:`200` with the saved profile as property ``profile``
|
||||||
in the JSON body upon success.
|
in the JSON body upon success.
|
||||||
|
|
||||||
Requires admin rights.
|
Requires the ``SETTINGS`` permission.
|
||||||
|
|
||||||
**Example 1**
|
**Example 1**
|
||||||
|
|
||||||
@@ -314,7 +332,7 @@ Update an existing printer profile
|
|||||||
Returns a :http:statuscode:`200` with the saved profile as property ``profile``
|
Returns a :http:statuscode:`200` with the saved profile as property ``profile``
|
||||||
in the JSON body upon success.
|
in the JSON body upon success.
|
||||||
|
|
||||||
Requires admin rights.
|
Requires the ``SETTINGS`` permission.
|
||||||
|
|
||||||
**Example**
|
**Example**
|
||||||
|
|
||||||
@@ -400,7 +418,7 @@ Remove an existing printer profile
|
|||||||
|
|
||||||
Returns a :http:statuscode:`204` an empty body upon success.
|
Returns a :http:statuscode:`204` an empty body upon success.
|
||||||
|
|
||||||
Requires admin rights.
|
Requires the ``SETTINGS`` permission.
|
||||||
|
|
||||||
**Example**
|
**Example**
|
||||||
|
|
||||||
@@ -439,7 +457,7 @@ Profile list
|
|||||||
- Collection of all printer profiles available in the system
|
- Collection of all printer profiles available in the system
|
||||||
* - ``profiles.<profile id>``
|
* - ``profiles.<profile id>``
|
||||||
- 0..1
|
- 0..1
|
||||||
- :ref:`Profile <sec-api-slicing-datamodel-profile>`
|
- :ref:`Profile <sec-api-printerprofiles-datamodel-profile>`
|
||||||
- Information about a profile stored in the system.
|
- Information about a profile stored in the system.
|
||||||
|
|
||||||
.. _sec-api-printerprofiles-datamodel-update:
|
.. _sec-api-printerprofiles-datamodel-update:
|
||||||
@@ -457,7 +475,7 @@ Add or update request
|
|||||||
- Description
|
- Description
|
||||||
* - ``profiles``
|
* - ``profiles``
|
||||||
- 1
|
- 1
|
||||||
- :ref:`Profile <sec-api-slicing-datamodel-profile>`
|
- :ref:`Profile <sec-api-printerprofiles-datamodel-profile>`
|
||||||
- Information about the profile being added/updated. Only the values to be overwritten need to be supplied.
|
- Information about the profile being added/updated. Only the values to be overwritten need to be supplied.
|
||||||
Unset fields will be taken from the base profile, which for add requests will be the
|
Unset fields will be taken from the base profile, which for add requests will be the
|
||||||
current default profile unless a different base is defined in the ``basedOn`` property
|
current default profile unless a different base is defined in the ``basedOn`` property
|
||||||
|
|||||||
+95
-4
@@ -29,6 +29,9 @@ following message types are currently available for usage by 3rd party clients:
|
|||||||
|
|
||||||
* ``connected``: Initial connection information, sent only right after establishing the socket connection. See
|
* ``connected``: Initial connection information, sent only right after establishing the socket connection. See
|
||||||
:ref:`the payload data model <sec-api-push-datamodel-connected>`.
|
:ref:`the payload data model <sec-api-push-datamodel-connected>`.
|
||||||
|
* ``reauthRequired``: A reauthentication of the current login session is required. The ``reason`` parameter in the
|
||||||
|
payload defines whether a full active login is necessary (values ``logout`` and ``removed``) or a simple passive
|
||||||
|
login will suffice (all other values).
|
||||||
* ``current``: Rate limited general state update, payload contains information about the printer's state, job progress,
|
* ``current``: Rate limited general state update, payload contains information about the printer's state, job progress,
|
||||||
accumulated temperature points and log lines since last update. OctoPrint will send these updates when new information
|
accumulated temperature points and log lines since last update. OctoPrint will send these updates when new information
|
||||||
is available, but not more often than twice per second in order to not flood the client with messages (e.g.
|
is available, but not more often than twice per second in order to not flood the client with messages (e.g.
|
||||||
@@ -47,13 +50,75 @@ Clients must ignore any unknown messages.
|
|||||||
|
|
||||||
The data model of the attached payloads is described further below.
|
The data model of the attached payloads is described further below.
|
||||||
|
|
||||||
OctoPrint's SockJS socket also accepts two commands from the client to the server.
|
OctoPrint's SockJS socket also accepts three commands from the client to the server.
|
||||||
|
|
||||||
|
* ``subscribe`` (since 1.8.0): With the ``subscribe`` message, clients may selectively
|
||||||
|
subscribe to certain message types. The payload should be a dict of message types with
|
||||||
|
supported keys as follows:
|
||||||
|
|
||||||
|
* ``state``: Either a boolean value indicating whether to generally receive state updates (``current`` and ``history``)
|
||||||
|
or not, or a dict with further options for received state updates. Currently the following options are recognized here:
|
||||||
|
|
||||||
|
* ``logs``: A boolean value whether to include all log lines (``True``, default) or not (``False``). Alternatively a string with
|
||||||
|
a regex pattern can be provided, in which case only log lines matching the pattern will be returned.
|
||||||
|
* ``messages``: Like ``logs`` but for the returned message lines.
|
||||||
|
|
||||||
|
* ``plugins``: Either a boolean value indicating whether to generally receive plugin messages, or a list of plugin
|
||||||
|
identifiers to receive plugin messages for.
|
||||||
|
* ``events``: Either a boolean value indicating whether to generally receive event messages, or a list of event
|
||||||
|
types to receive event messages for.
|
||||||
|
|
||||||
|
If you send a ``subscribe`` message, OctoPrint will default the connection to not subscribe you to anything you did't explicitly
|
||||||
|
request. ``subscribe`` messages do replace previous ones.
|
||||||
|
|
||||||
|
Example for a ``subscribe`` message subscribing only to updates from plugin ``example`` but neither state nor events:
|
||||||
|
|
||||||
|
.. sourcecode:: javascript
|
||||||
|
|
||||||
|
{
|
||||||
|
"subscribe": {
|
||||||
|
"plugins": ["example"]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
Example for a ``subscribe`` message subscribing to state, event and plugin updates,
|
||||||
|
but filtering logs in state updates to only contain lines matching ``^Recv: Cap`` and also
|
||||||
|
filtering out all messages:
|
||||||
|
|
||||||
|
.. sourcecode:: javascript
|
||||||
|
|
||||||
|
{
|
||||||
|
"subscribe": {
|
||||||
|
"state": {
|
||||||
|
"logs": "^Recv: Cap",
|
||||||
|
"messages": false
|
||||||
|
},
|
||||||
|
"events": true,
|
||||||
|
"plugins": true
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
Example for a ``subscribe`` message subscribing only to events of type ``PrintFailed``:
|
||||||
|
|
||||||
|
.. sourcecode:: javascript
|
||||||
|
|
||||||
|
{
|
||||||
|
"subscribe": {
|
||||||
|
"events": ["PrintFailed"]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.. note::
|
||||||
|
|
||||||
|
Per default, OctoPrint will subscribe connecting clients to all state, event and plugin updates
|
||||||
|
without any filtering in place. If you wish to have your more selective subscription active
|
||||||
|
right from the start of your socket session, be sure to send the ``subscribe`` message
|
||||||
|
**before** the ``auth`` message.
|
||||||
|
|
||||||
* ``auth`` (since 1.3.10): With the ``auth`` message, clients may associate an
|
* ``auth`` (since 1.3.10): With the ``auth`` message, clients may associate an
|
||||||
existing user session with the socket. That is of special importance to receive
|
existing user session with the socket. That is of special importance to receive
|
||||||
any kind of messages if the bundled :ref:`Forcelogin Plugin <sec-bundledplugins-forcelogin>` is enabled
|
any kind of messages, since the permission system will prevent any kind of status messages to be sent to connected
|
||||||
(as it is by default), since it will prevent any kind of status messages to be sent to connected unauthenticated
|
clients lacking the ``STATUS`` permission.
|
||||||
clients.
|
|
||||||
|
|
||||||
The ``auth`` message expects the user id of the user to authenticate followed by ``:`` and a session key to be
|
The ``auth`` message expects the user id of the user to authenticate followed by ``:`` and a session key to be
|
||||||
obtained from the successful payload of a :ref:`(passive or active) login via the API <sec-api-general-login>`.
|
obtained from the successful payload of a :ref:`(passive or active) login via the API <sec-api-general-login>`.
|
||||||
@@ -66,6 +131,23 @@ OctoPrint's SockJS socket also accepts two commands from the client to the serve
|
|||||||
"auth": "someuser:LGZ0trf8By"
|
"auth": "someuser:LGZ0trf8By"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
An example for an auth roundtrip with only an API key using the :ref:`JS Client Library <sec-jsclientlib-base>`
|
||||||
|
can be found :ref:`here <sec-jsclient-socket-authsample>`.
|
||||||
|
|
||||||
|
.. mermaid::
|
||||||
|
|
||||||
|
sequenceDiagram
|
||||||
|
participant Client
|
||||||
|
participant API
|
||||||
|
participant Websocket
|
||||||
|
|
||||||
|
Client->>API: GET /api/login?passive=true&apikey=...
|
||||||
|
API->>Client: { name: ..., session: ..., ... }
|
||||||
|
|
||||||
|
note over Client: auth = name ":" session
|
||||||
|
|
||||||
|
Client->>Websocket: { "auth": auth }
|
||||||
|
|
||||||
* ``throttle``: Usually, OctoPrint will push the general state update
|
* ``throttle``: Usually, OctoPrint will push the general state update
|
||||||
in the ``current`` message twice per second. For some clients that might still
|
in the ``current`` message twice per second. For some clients that might still
|
||||||
be too fast, so they can signal a different factor to OctoPrint utilizing the
|
be too fast, so they can signal a different factor to OctoPrint utilizing the
|
||||||
@@ -175,6 +257,15 @@ Data model
|
|||||||
- 0..*
|
- 0..*
|
||||||
- List of String
|
- List of String
|
||||||
- Lines for the serial communication log (special messages)
|
- Lines for the serial communication log (special messages)
|
||||||
|
* - ``resends``
|
||||||
|
- 1
|
||||||
|
- :ref:`Resend stats <sec-api-datamodel-printer-resends>`
|
||||||
|
- Current resend statistics for the connection
|
||||||
|
* - ``plugins``
|
||||||
|
- 0..1
|
||||||
|
- Map of plugin identifiers to additional data
|
||||||
|
- Additional data injected by plugins via the :ref:`octoprint.printer.additional_state_data hook <sec-plugins-hooks-plugin-printer-additional_state_data>`,
|
||||||
|
indexed by plugin identifier. Structure of additional data is determined by the plugin.
|
||||||
|
|
||||||
.. _sec-api-push-datamodel-event:
|
.. _sec-api-push-datamodel-event:
|
||||||
|
|
||||||
|
|||||||
@@ -0,0 +1,36 @@
|
|||||||
|
.. _sec-api-server:
|
||||||
|
|
||||||
|
******************
|
||||||
|
Server information
|
||||||
|
******************
|
||||||
|
|
||||||
|
.. http:get:: /api/server
|
||||||
|
|
||||||
|
.. versionadded:: 1.5.0
|
||||||
|
|
||||||
|
Retrieve information regarding server status. Returns a JSON object with two keys, ``version`` containing
|
||||||
|
the server version and ``safemode`` containing one of ``settings``, ``incomplete_startup`` or ``flag``
|
||||||
|
to indicate the reason the server is running in safe mode, or the boolean value of ``false`` if it's not
|
||||||
|
running in safe mode.
|
||||||
|
|
||||||
|
**Example Request**
|
||||||
|
|
||||||
|
.. sourcecode:: http
|
||||||
|
|
||||||
|
GET /api/server HTTP/1.1
|
||||||
|
Host: example.com
|
||||||
|
X-Api-Key: abcdef...
|
||||||
|
|
||||||
|
**Example Response**
|
||||||
|
|
||||||
|
.. sourcecode:: http
|
||||||
|
|
||||||
|
HTTP/1.1 200 OK
|
||||||
|
Content-Type: application/json
|
||||||
|
|
||||||
|
{
|
||||||
|
"server": "1.5.0",
|
||||||
|
"safemode": "incomplete_startup"
|
||||||
|
}
|
||||||
|
|
||||||
|
:statuscode 200: No error
|
||||||
+5
-130
@@ -21,6 +21,8 @@ Retrieve current settings
|
|||||||
The :ref:`data model <sec-api-settings-datamodel>` is similar to what can be found in
|
The :ref:`data model <sec-api-settings-datamodel>` is similar to what can be found in
|
||||||
:ref:`config.yaml <sec-configuration-config_yaml>`, see below for details.
|
:ref:`config.yaml <sec-configuration-config_yaml>`, see below for details.
|
||||||
|
|
||||||
|
Requires the ``SETTINGS_READ`` permission.
|
||||||
|
|
||||||
.. _sec-api-settings-save:
|
.. _sec-api-settings-save:
|
||||||
|
|
||||||
Save settings
|
Save settings
|
||||||
@@ -36,7 +38,7 @@ Save settings
|
|||||||
|
|
||||||
Returns the currently active settings on success, as part of a :http:statuscode:`200` response.
|
Returns the currently active settings on success, as part of a :http:statuscode:`200` response.
|
||||||
|
|
||||||
Requires admin rights.
|
Requires the ``SETTINGS`` permission.
|
||||||
|
|
||||||
**Example**
|
**Example**
|
||||||
|
|
||||||
@@ -69,23 +71,6 @@ Save settings
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.. _sec-api-settings-generateapikey:
|
|
||||||
|
|
||||||
Regenerate the system wide API key
|
|
||||||
==================================
|
|
||||||
|
|
||||||
.. http:post:: /api/settings/apikey
|
|
||||||
|
|
||||||
Generates a new system wide API key.
|
|
||||||
|
|
||||||
Does not expect a body. Will return the generated API key as ``apikey``
|
|
||||||
property in the JSON object contained in the response body.
|
|
||||||
|
|
||||||
Requires admin rights.
|
|
||||||
|
|
||||||
:status 200: No error
|
|
||||||
:status 403: No admin rights
|
|
||||||
|
|
||||||
.. _sec-api-settings-fetchtemplaatedata:
|
.. _sec-api-settings-fetchtemplaatedata:
|
||||||
|
|
||||||
Fetch template data
|
Fetch template data
|
||||||
@@ -352,84 +337,22 @@ Data model
|
|||||||
==========
|
==========
|
||||||
|
|
||||||
The data model on the settings API mostly reflects the contents of
|
The data model on the settings API mostly reflects the contents of
|
||||||
:ref:`config.yaml <sec-configuration-config_yaml>`. The settings tree
|
:ref:`config.yaml <sec-configuration-config_yaml>`, which are directly
|
||||||
returned by the API contains the following fields, which are directly
|
mapped, with the following exceptions:
|
||||||
mapped from the same fields in ``config.yaml`` unless otherwise noted:
|
|
||||||
|
|
||||||
.. list-table::
|
.. list-table::
|
||||||
:header-rows: 1
|
:header-rows: 1
|
||||||
|
|
||||||
* - Field
|
* - Field
|
||||||
- Notes
|
- Notes
|
||||||
* - ``api.enabled``
|
|
||||||
-
|
|
||||||
* - ``api.key``
|
|
||||||
- Only maps to ``api.key`` in ``config.yaml`` if request is sent with admin rights, set to ``n/a`` otherwise.
|
|
||||||
Starting with OctoPrint 1.3.3 setting this field via :ref:`the API <sec-api-settings-save>` is not possible,
|
|
||||||
only :ref:`regenerating it <sec-api-settings-generateapikey>` is supported. Setting a custom value is only
|
|
||||||
possible through `config.yaml`.
|
|
||||||
* - ``api.allowCrossOrigin``
|
|
||||||
-
|
|
||||||
* - ``appearance.name``
|
|
||||||
-
|
|
||||||
* - ``appearance.color``
|
|
||||||
-
|
|
||||||
* - ``appearance.colorTransparent``
|
|
||||||
-
|
|
||||||
* - ``appearance.defaultLanguage``
|
|
||||||
-
|
|
||||||
* - ``appearance.showFahrenheitAlso``
|
|
||||||
-
|
|
||||||
* - ``feature.gcodeViewer``
|
* - ``feature.gcodeViewer``
|
||||||
- Maps to ``gcodeViewer.enabled`` in ``config.yaml``
|
- Maps to ``gcodeViewer.enabled`` in ``config.yaml``
|
||||||
* - ``feature.sizeThreshold``
|
* - ``feature.sizeThreshold``
|
||||||
- Maps to ``gcodeViewer.sizeThreshold`` in ``config.yaml``
|
- Maps to ``gcodeViewer.sizeThreshold`` in ``config.yaml``
|
||||||
* - ``feature.mobileSizeThreshold``
|
* - ``feature.mobileSizeThreshold``
|
||||||
- Maps to ``gcodeViewer.mobileSizeThreshold`` in ``config.yaml``
|
- Maps to ``gcodeViewer.mobileSizeThreshold`` in ``config.yaml``
|
||||||
* - ``feature.temperatureGraph``
|
|
||||||
-
|
|
||||||
* - ``feature.waitForStart``
|
|
||||||
-
|
|
||||||
* - ``feature.alwaysSendChecksum``
|
|
||||||
-
|
|
||||||
* - ``feature.neverSendChecksum``
|
|
||||||
-
|
|
||||||
* - ``feature.sdSupport``
|
|
||||||
-
|
|
||||||
* - ``feature.sdRelativePath``
|
|
||||||
-
|
|
||||||
* - ``feature.sdAlwaysAvailable``
|
|
||||||
-
|
|
||||||
* - ``feature.swallowOkAfterResend``
|
|
||||||
-
|
|
||||||
* - ``feature.repetierTargetTemp``
|
|
||||||
-
|
|
||||||
* - ``feature.externalHeatupDetection``
|
|
||||||
-
|
|
||||||
* - ``feature.keyboardControl``
|
|
||||||
-
|
|
||||||
* - ``feature.pollWatched``
|
|
||||||
-
|
|
||||||
* - ``feature.ignoreIdenticalResends``
|
|
||||||
-
|
|
||||||
* - ``feature.modelSizeDetection``
|
|
||||||
-
|
|
||||||
* - ``feature.firmwareDetection``
|
|
||||||
-
|
|
||||||
* - ``feature.printCancelConfirmation``
|
|
||||||
-
|
|
||||||
* - ``feature.blockWhileDwelling``
|
|
||||||
-
|
|
||||||
* - ``folder.uploads``
|
|
||||||
-
|
|
||||||
* - ``folder.timelapse``
|
|
||||||
-
|
|
||||||
* - ``folder.timelapseTmp``
|
* - ``folder.timelapseTmp``
|
||||||
- Maps to ``folder.timelapse_tmp`` in ``config.yaml``
|
- Maps to ``folder.timelapse_tmp`` in ``config.yaml``
|
||||||
* - ``folder.logs``
|
|
||||||
-
|
|
||||||
* - ``folder.watched``
|
|
||||||
-
|
|
||||||
* - ``plugins``
|
* - ``plugins``
|
||||||
- Plugin settings as available from ``config.yaml`` and :class:`~octoprint.plugin.SettingsPlugin` implementations
|
- Plugin settings as available from ``config.yaml`` and :class:`~octoprint.plugin.SettingsPlugin` implementations
|
||||||
* - ``printer.defaultExtrusionLength``
|
* - ``printer.defaultExtrusionLength``
|
||||||
@@ -444,8 +367,6 @@ mapped from the same fields in ``config.yaml`` unless otherwise noted:
|
|||||||
- Available serial ports
|
- Available serial ports
|
||||||
* - ``serial.baudrateOptions``
|
* - ``serial.baudrateOptions``
|
||||||
- Available serial baudrates
|
- Available serial baudrates
|
||||||
* - ``serial.autoconnect``
|
|
||||||
-
|
|
||||||
* - ``serial.timeoutConnection``
|
* - ``serial.timeoutConnection``
|
||||||
- Maps to ``serial.timeout.connection`` in ``config.yaml``
|
- Maps to ``serial.timeout.connection`` in ``config.yaml``
|
||||||
* - ``serial.timeoutDetection``
|
* - ``serial.timeoutDetection``
|
||||||
@@ -458,50 +379,18 @@ mapped from the same fields in ``config.yaml`` unless otherwise noted:
|
|||||||
- Maps to ``serial.timeout.temperatureTargetSet`` in ``config.yaml``
|
- Maps to ``serial.timeout.temperatureTargetSet`` in ``config.yaml``
|
||||||
* - ``serial.timeoutSdStatus``
|
* - ``serial.timeoutSdStatus``
|
||||||
- Maps to ``serial.timeout.sdStatus`` in ``config.yaml``
|
- Maps to ``serial.timeout.sdStatus`` in ``config.yaml``
|
||||||
* - ``serial.log``
|
|
||||||
-
|
|
||||||
* - ``serial.additionalPorts``
|
|
||||||
-
|
|
||||||
* - ``serial.additionalBaudrates``
|
|
||||||
-
|
|
||||||
* - ``serial.longRunningCommands``
|
|
||||||
-
|
|
||||||
* - ``serial.checksumRequiringCommands``
|
|
||||||
-
|
|
||||||
* - ``serial.helloCommand``
|
|
||||||
-
|
|
||||||
* - ``serial.ignoreErrorsFromFirmware``
|
|
||||||
-
|
|
||||||
* - ``serial.disconnectOnErrors``
|
|
||||||
-
|
|
||||||
* - ``serial.triggerOkForM29``
|
|
||||||
-
|
|
||||||
* - ``serial.supportResendsWIthoutOk``
|
|
||||||
-
|
|
||||||
* - ``serial.maxTimeoutsIdle``
|
* - ``serial.maxTimeoutsIdle``
|
||||||
- Maps to ``serial.maxCommunicationTimeouts.idle`` in ``config.yaml``
|
- Maps to ``serial.maxCommunicationTimeouts.idle`` in ``config.yaml``
|
||||||
* - ``serial.maxTimeoutsPrinting``
|
* - ``serial.maxTimeoutsPrinting``
|
||||||
- Maps to ``serial.maxCommunicationTimeouts.printing`` in ``config.yaml``
|
- Maps to ``serial.maxCommunicationTimeouts.printing`` in ``config.yaml``
|
||||||
* - ``serial.maxTimeoutsLong``
|
* - ``serial.maxTimeoutsLong``
|
||||||
- Maps to ``serial.maxCommunicationTimeouts.long`` in ``config.yaml``
|
- Maps to ``serial.maxCommunicationTimeouts.long`` in ``config.yaml``
|
||||||
* - ``server.commands.systemShutdownCommand``
|
|
||||||
-
|
|
||||||
* - ``server.commands.systemRestartCommand``
|
|
||||||
-
|
|
||||||
* - ``server.commands.serverRestartCommand``
|
|
||||||
-
|
|
||||||
* - ``server.diskspace.warning``
|
|
||||||
-
|
|
||||||
* - ``server.diskspace.critical``
|
|
||||||
-
|
|
||||||
* - ``system.actions``
|
* - ``system.actions``
|
||||||
- Whole subtree taken from ``config.yaml``
|
- Whole subtree taken from ``config.yaml``
|
||||||
* - ``system.events``
|
* - ``system.events``
|
||||||
- Whole subtree taken from ``config.yaml``
|
- Whole subtree taken from ``config.yaml``
|
||||||
* - ``temperature.profiles``
|
* - ``temperature.profiles``
|
||||||
- Whole subtree taken from ``config.yaml``
|
- Whole subtree taken from ``config.yaml``
|
||||||
* - ``temperature.cutoff``
|
|
||||||
-
|
|
||||||
* - ``terminalFilters``
|
* - ``terminalFilters``
|
||||||
- Whole subtree taken from ``config.yaml``
|
- Whole subtree taken from ``config.yaml``
|
||||||
* - ``webcam.streamUrl``
|
* - ``webcam.streamUrl``
|
||||||
@@ -510,17 +399,3 @@ mapped from the same fields in ``config.yaml`` unless otherwise noted:
|
|||||||
- Maps to ``webcam.snapshot`` in ``config.yaml``
|
- Maps to ``webcam.snapshot`` in ``config.yaml``
|
||||||
* - ``webcam.ffmpegPath``
|
* - ``webcam.ffmpegPath``
|
||||||
- Maps to ``webcam.ffmpeg`` in ``config.yaml``
|
- Maps to ``webcam.ffmpeg`` in ``config.yaml``
|
||||||
* - ``webcam.bitrate``
|
|
||||||
-
|
|
||||||
* - ``webcam.ffmpegThreads``
|
|
||||||
-
|
|
||||||
* - ``webcam.ffmpegVideoCodec``
|
|
||||||
-
|
|
||||||
* - ``webcam.watermark``
|
|
||||||
-
|
|
||||||
* - ``webcam.flipH``
|
|
||||||
-
|
|
||||||
* - ``webcam.flipV``
|
|
||||||
-
|
|
||||||
* - ``webcam.rotate90``
|
|
||||||
-
|
|
||||||
+62
-2
@@ -28,6 +28,8 @@ List All Slicers and Slicing Profiles
|
|||||||
Returns a :http:statuscode:`200` response with a :ref:`Slicer list <sec-api-slicing-datamodel-slicerlist>`
|
Returns a :http:statuscode:`200` response with a :ref:`Slicer list <sec-api-slicing-datamodel-slicerlist>`
|
||||||
as the body upon successful completion.
|
as the body upon successful completion.
|
||||||
|
|
||||||
|
Requires the ``SLICE`` permission.
|
||||||
|
|
||||||
**Example**
|
**Example**
|
||||||
|
|
||||||
.. sourcecode:: http
|
.. sourcecode:: http
|
||||||
@@ -77,6 +79,8 @@ List Slicing Profiles of a Specific Slicer
|
|||||||
Returns a :http:statuscode:`200` response with a :ref:`Profile list <sec-api-slicing-datamodel-profilelist>`
|
Returns a :http:statuscode:`200` response with a :ref:`Profile list <sec-api-slicing-datamodel-profilelist>`
|
||||||
as the body upon successful completion.
|
as the body upon successful completion.
|
||||||
|
|
||||||
|
Requires the ``SLICE`` permission.
|
||||||
|
|
||||||
**Example**
|
**Example**
|
||||||
|
|
||||||
.. sourcecode:: http
|
.. sourcecode:: http
|
||||||
@@ -121,6 +125,8 @@ Retrieve Specific Profile
|
|||||||
Returns a :http:statuscode:`200` response with a :ref:`full Profile <sec-api-slicing-datamodel-profile>`
|
Returns a :http:statuscode:`200` response with a :ref:`full Profile <sec-api-slicing-datamodel-profile>`
|
||||||
as the body upon successful completion.
|
as the body upon successful completion.
|
||||||
|
|
||||||
|
Requires the ``SLICE`` permission.
|
||||||
|
|
||||||
**Example**
|
**Example**
|
||||||
|
|
||||||
.. sourcecode:: http
|
.. sourcecode:: http
|
||||||
@@ -168,7 +174,7 @@ Add Slicing Profile
|
|||||||
Returns a :http:statuscode:`201` and an :ref:`abridged Profile <sec-api-slicing-datamodel-profile>` in the body
|
Returns a :http:statuscode:`201` and an :ref:`abridged Profile <sec-api-slicing-datamodel-profile>` in the body
|
||||||
upon successful completion.
|
upon successful completion.
|
||||||
|
|
||||||
Requires admin rights.
|
Requires the ``SETTINGS`` permission.
|
||||||
|
|
||||||
**Example**
|
**Example**
|
||||||
|
|
||||||
@@ -206,6 +212,31 @@ Add Slicing Profile
|
|||||||
:statuscode 201: No error
|
:statuscode 201: No error
|
||||||
:statuscode 404: If the ``slicer`` was unknown to the system.
|
:statuscode 404: If the ``slicer`` was unknown to the system.
|
||||||
|
|
||||||
|
.. _sec-api-slicing-patch:
|
||||||
|
|
||||||
|
Update Slicing Profile
|
||||||
|
======================
|
||||||
|
|
||||||
|
.. http:patch:: /api/slicing/(string:slicer)/profiles/(string:key)
|
||||||
|
|
||||||
|
Updates the slicing profile identified by ``key`` for the slicer ``slicer``.
|
||||||
|
|
||||||
|
Expects a :ref:`profile update request <sec-api-slicing-datamodel-profileupdate>` as body.
|
||||||
|
|
||||||
|
Returns a :http:statuscode:`201` and an :ref:`abridged Profile <sec-api-slicing-datamodel-profile>` in the body
|
||||||
|
upon successful completion.
|
||||||
|
|
||||||
|
Requires the ``SETTINGS`` permission.
|
||||||
|
|
||||||
|
:param slicer: The identifying key of the slicer for which to update the profile
|
||||||
|
:param key: The identifying key of the profile to update
|
||||||
|
:json data: New profile overrides to apply
|
||||||
|
:json displayName: New display name
|
||||||
|
:json description: New description
|
||||||
|
:json default: Whether to make the profile default (true) or not (false) for the slicer
|
||||||
|
:statuscode 200: No error
|
||||||
|
:statuscode 404: Slicer or profile do not exist
|
||||||
|
|
||||||
.. _sec-api-slicing-delete:
|
.. _sec-api-slicing-delete:
|
||||||
|
|
||||||
Delete Slicing Profile
|
Delete Slicing Profile
|
||||||
@@ -216,7 +247,7 @@ Delete Slicing Profile
|
|||||||
Delete the slicing profile identified by ``key`` for the slicer ``slicer``. If the profile doesn't exist, the
|
Delete the slicing profile identified by ``key`` for the slicer ``slicer``. If the profile doesn't exist, the
|
||||||
request will succeed anyway.
|
request will succeed anyway.
|
||||||
|
|
||||||
Requires admin rights.
|
Requires the ``SETTINGS`` permission.
|
||||||
|
|
||||||
:param slicer: The identifying key of the slicer for which to delete the profile
|
:param slicer: The identifying key of the slicer for which to delete the profile
|
||||||
:param key: The identifying key of the profile to delete
|
:param key: The identifying key of the profile to delete
|
||||||
@@ -340,3 +371,32 @@ Profile
|
|||||||
only the keys differing from the defaults when saving/updating a profile. The keys to be found in here a slicer
|
only the keys differing from the defaults when saving/updating a profile. The keys to be found in here a slicer
|
||||||
specific. Will be left out for list responses.
|
specific. Will be left out for list responses.
|
||||||
|
|
||||||
|
.. _sec-api-slicing-datamodel-profileupdate:
|
||||||
|
|
||||||
|
Profile Update Request
|
||||||
|
----------------------
|
||||||
|
|
||||||
|
.. list-table::
|
||||||
|
:widths: 15 5 10 30
|
||||||
|
:header-rows: 1
|
||||||
|
|
||||||
|
* - Name
|
||||||
|
- Multiplicity
|
||||||
|
- Type
|
||||||
|
- Description
|
||||||
|
* - ``data``
|
||||||
|
- 0..1
|
||||||
|
- Object
|
||||||
|
- The profile data
|
||||||
|
* - ``displayName``
|
||||||
|
- 0..1
|
||||||
|
- ``string``
|
||||||
|
- The new display name for the profile
|
||||||
|
* - ``description``
|
||||||
|
- 0..1
|
||||||
|
- ``string``
|
||||||
|
- The new description for the profile
|
||||||
|
* - ``default``
|
||||||
|
- 0..1
|
||||||
|
- ``boolean``
|
||||||
|
- Whether to mark the profile as default for the slicer (true) or not (false)
|
||||||
+3
-1
@@ -6,7 +6,7 @@ System
|
|||||||
|
|
||||||
.. note::
|
.. note::
|
||||||
|
|
||||||
All system operations require admin rights.
|
All system operations require the ``SYSTEM`` permission.
|
||||||
|
|
||||||
.. _sec-api-system-command-list:
|
.. _sec-api-system-command-list:
|
||||||
|
|
||||||
@@ -20,6 +20,8 @@ List all registered system commands
|
|||||||
A :http:statuscode:`200` with a :ref:`List all response <sec-api-system-commands-listall>`
|
A :http:statuscode:`200` with a :ref:`List all response <sec-api-system-commands-listall>`
|
||||||
will be returned.
|
will be returned.
|
||||||
|
|
||||||
|
Requires the ``SYSTEM`` permission.
|
||||||
|
|
||||||
**Example**
|
**Example**
|
||||||
|
|
||||||
.. sourcecode:: http
|
.. sourcecode:: http
|
||||||
|
|||||||
+10
-4
@@ -18,6 +18,8 @@ Retrieve a list of timelapses and the current config
|
|||||||
Returns a :ref:`timelapse list <sec-api-timelapse-datamodel-list>` in the
|
Returns a :ref:`timelapse list <sec-api-timelapse-datamodel-list>` in the
|
||||||
response body.
|
response body.
|
||||||
|
|
||||||
|
Requires the ``TIMELAPSE_LIST`` permission.
|
||||||
|
|
||||||
:param unrendered: If provided and true, also include unrendered timelapses
|
:param unrendered: If provided and true, also include unrendered timelapses
|
||||||
|
|
||||||
.. _sec-api-timelapse-delete:
|
.. _sec-api-timelapse-delete:
|
||||||
@@ -29,7 +31,7 @@ Delete a timelapse
|
|||||||
|
|
||||||
Delete the timelapse ``filename``.
|
Delete the timelapse ``filename``.
|
||||||
|
|
||||||
Requires user rights.
|
Requires the ``TIMELAPSE_DELETE`` permission.
|
||||||
|
|
||||||
.. _sec-api-timelapse-render:
|
.. _sec-api-timelapse-render:
|
||||||
|
|
||||||
@@ -41,7 +43,7 @@ Issue a command for an unrendered timelapse
|
|||||||
Current only supports to render the unrendered timelapse ``name`` via the
|
Current only supports to render the unrendered timelapse ``name`` via the
|
||||||
``render`` command.
|
``render`` command.
|
||||||
|
|
||||||
Requires user rights.
|
Requires the ``TIMELAPSE_ADMIN`` permission.
|
||||||
|
|
||||||
:json command: The command to issue, currently only ``render`` is supported
|
:json command: The command to issue, currently only ``render`` is supported
|
||||||
|
|
||||||
@@ -54,7 +56,7 @@ Delete an unrendered timelapse
|
|||||||
|
|
||||||
Delete the unrendered timelapse ``name``.
|
Delete the unrendered timelapse ``name``.
|
||||||
|
|
||||||
Requires user rights.
|
Requires the ``TIMELAPSE_DELETE`` permission.
|
||||||
|
|
||||||
.. _sec-api-timelapse-saveconfig:
|
.. _sec-api-timelapse-saveconfig:
|
||||||
|
|
||||||
@@ -67,7 +69,7 @@ Change current timelapse config
|
|||||||
|
|
||||||
The configuration is expected as the request body.
|
The configuration is expected as the request body.
|
||||||
|
|
||||||
Requires user rights.
|
Requires the ``TIMELAPSE_ADMIN`` permission.
|
||||||
|
|
||||||
.. _sec-api-timelapse-datamodel:
|
.. _sec-api-timelapse-datamodel:
|
||||||
|
|
||||||
@@ -224,6 +226,10 @@ For timelapse type ``zchange``.
|
|||||||
- 1
|
- 1
|
||||||
- float
|
- float
|
||||||
- Size of retraction Z hop to detect and ignore for z-based snapshots
|
- Size of retraction Z hop to detect and ignore for z-based snapshots
|
||||||
|
* - ``minDelay``
|
||||||
|
- 1
|
||||||
|
- int
|
||||||
|
- Snapshots will be rate limited against this interval, to prevent performance issues with vase mode/continuous z prints
|
||||||
|
|
||||||
.. _sec-api-timelapse-datamodel-config-timed:
|
.. _sec-api-timelapse-datamodel-config-timed:
|
||||||
|
|
||||||
|
|||||||
+2
-307
@@ -4,311 +4,6 @@
|
|||||||
User
|
User
|
||||||
****
|
****
|
||||||
|
|
||||||
.. contents::
|
.. note::
|
||||||
|
|
||||||
.. _sec-api-users-list:
|
This API endpoint has been moved and is now part of :ref:`Access Control <sec-api-access-users>`.
|
||||||
|
|
||||||
Retrieve a list of users
|
|
||||||
========================
|
|
||||||
|
|
||||||
.. http:get:: /api/users
|
|
||||||
|
|
||||||
Retrieves a list of all registered users in OctoPrint.
|
|
||||||
|
|
||||||
Will return a :http:statuscode:`200` with a :ref:`user list response <sec-api-users-datamodel-userlistresponse>`
|
|
||||||
as body.
|
|
||||||
|
|
||||||
Requires admin rights.
|
|
||||||
|
|
||||||
:status 200: No error
|
|
||||||
|
|
||||||
.. _sec-api-users-retrieve:
|
|
||||||
|
|
||||||
Retrieve a user
|
|
||||||
===============
|
|
||||||
|
|
||||||
.. http:get:: /api/users/(string:username)
|
|
||||||
|
|
||||||
Retrieves information about a user.
|
|
||||||
|
|
||||||
Will return a :http:statuscode:`200` with a :ref:`user record <sec-api-users-datamodel-userrecord>`
|
|
||||||
as body.
|
|
||||||
|
|
||||||
Requires either admin rights or to be logged in as the user.
|
|
||||||
|
|
||||||
:param username: Name of the user which to retrieve
|
|
||||||
:status 200: No error
|
|
||||||
:status 404: Unknown user
|
|
||||||
|
|
||||||
.. _sec-api-users-add:
|
|
||||||
|
|
||||||
Add a user
|
|
||||||
==========
|
|
||||||
|
|
||||||
.. http:post:: /api/users
|
|
||||||
|
|
||||||
Adds a user to OctoPrint.
|
|
||||||
|
|
||||||
Expects a :ref:`user registration request <sec-api-users-datamodel-adduserrequest>`
|
|
||||||
as request body.
|
|
||||||
|
|
||||||
Returns a list of registered users on success, see :ref:`Retrieve a list of users <sec-api-users-list>`.
|
|
||||||
|
|
||||||
Requires admin rights.
|
|
||||||
|
|
||||||
:json name: The user's name
|
|
||||||
:json password: The user's password
|
|
||||||
:json active: Whether to activate the account (true) or not (false)
|
|
||||||
:json admin: Whether to give the account admin rights (true) or not (false)
|
|
||||||
:status 200: No error
|
|
||||||
:status 400: If any of the mandatory fields is missing or the request is otherwise
|
|
||||||
invalid
|
|
||||||
:status 409: A user with the provided name does already exist
|
|
||||||
|
|
||||||
.. _sec-api-users-update:
|
|
||||||
|
|
||||||
Update a user
|
|
||||||
=============
|
|
||||||
|
|
||||||
.. http:put:: /api/users/(string:username)
|
|
||||||
|
|
||||||
Updates a user record.
|
|
||||||
|
|
||||||
Expects a :ref:`user update request <sec-api-users-datamodel-updateuserrequest>`
|
|
||||||
as request body.
|
|
||||||
|
|
||||||
Returns a list of registered users on success, see :ref:`Retrieve a list of users <sec-api-users-list>`.
|
|
||||||
|
|
||||||
Requires admin rights.
|
|
||||||
|
|
||||||
:param username: Name of the user to update
|
|
||||||
:json admin: Whether to mark the user as admin (true) or not (false), can be left out (no change)
|
|
||||||
:json active: Whether to mark the account as activated (true) or deactivated (false), can be left out (no change)
|
|
||||||
:status 200: No error
|
|
||||||
:status 404: Unknown user
|
|
||||||
|
|
||||||
.. _sec-api-users-delete:
|
|
||||||
|
|
||||||
Delete a user
|
|
||||||
=============
|
|
||||||
|
|
||||||
.. http:delete:: /api/users/(string:username)
|
|
||||||
|
|
||||||
Delete a user record.
|
|
||||||
|
|
||||||
Returns a list of registered users on success, see :ref:`Retrieve a list of users <sec-api-users-list>`.
|
|
||||||
|
|
||||||
Requires admin rights.
|
|
||||||
|
|
||||||
:param username: Name of the user to delete
|
|
||||||
:status 200: No error
|
|
||||||
:status 404: Unknown user
|
|
||||||
|
|
||||||
.. _sec-api-users-resetpassword:
|
|
||||||
|
|
||||||
Reset a user's password
|
|
||||||
=======================
|
|
||||||
|
|
||||||
.. http:put:: /api/users/(string:username)/password
|
|
||||||
|
|
||||||
Changes the password of a user.
|
|
||||||
|
|
||||||
Expects a JSON object with a single property ``password`` as request body.
|
|
||||||
|
|
||||||
Requires admin rights or to be logged in as the user.
|
|
||||||
|
|
||||||
:param username: Name of the user to change the password for
|
|
||||||
:json password: The new password to set
|
|
||||||
:status 200: No error
|
|
||||||
:status 400: If the request doesn't contain a ``password`` property or the request
|
|
||||||
is otherwise invalid
|
|
||||||
:status 403: No admin rights and not logged in as the user
|
|
||||||
:status 404: The user is unknown
|
|
||||||
|
|
||||||
.. _sec-api-users-getsettings:
|
|
||||||
|
|
||||||
Retrieve a user's settings
|
|
||||||
==========================
|
|
||||||
|
|
||||||
.. http:get:: /api/users/(string:username)/settings
|
|
||||||
|
|
||||||
Retrieves a user's settings.
|
|
||||||
|
|
||||||
Will return a :http:statuscode:`200` with a JSON object representing the user's
|
|
||||||
personal settings (if any) as body.
|
|
||||||
|
|
||||||
Requires admin rights or to be logged in as the user.
|
|
||||||
|
|
||||||
:param username: Name of the user to retrieve the settings for
|
|
||||||
:status 200: No error
|
|
||||||
:status 403: No admin rights and not logged in as the user
|
|
||||||
:status 404: The user is unknown
|
|
||||||
|
|
||||||
.. _sec-api-users-updatesettings:
|
|
||||||
|
|
||||||
Update a user's settings
|
|
||||||
========================
|
|
||||||
|
|
||||||
.. http:patch:: /api/users/(string:username)/settings
|
|
||||||
|
|
||||||
Updates a user's settings.
|
|
||||||
|
|
||||||
Expects a new settings JSON object to merge with the current settings as
|
|
||||||
request body.
|
|
||||||
|
|
||||||
Requires admin rights or to be logged in as the user.
|
|
||||||
|
|
||||||
:param username: Name of the user to retrieve the settings for
|
|
||||||
:status 204: No error
|
|
||||||
:status 403: No admin rights and not logged in as the user
|
|
||||||
:status 404: The user is unknown
|
|
||||||
|
|
||||||
.. _sec-api-users-generateapikey:
|
|
||||||
|
|
||||||
Regenerate a user's personal API key
|
|
||||||
====================================
|
|
||||||
|
|
||||||
.. http:post:: /api/users/(string:username)/apikey
|
|
||||||
|
|
||||||
Generates a new API key for the user.
|
|
||||||
|
|
||||||
Does not expect a body. Will return the generated API key as ``apikey``
|
|
||||||
property in the JSON object contained in the response body.
|
|
||||||
|
|
||||||
Requires admin rights or to be logged in as the user.
|
|
||||||
|
|
||||||
:param username: Name of the user to retrieve the settings for
|
|
||||||
:status 200: No error
|
|
||||||
:status 403: No admin rights and not logged in as the user
|
|
||||||
:status 404: The user is unknown
|
|
||||||
|
|
||||||
.. _sec-api-users-deleteapikey:
|
|
||||||
|
|
||||||
Delete a user's personal API key
|
|
||||||
================================
|
|
||||||
|
|
||||||
.. http:delete:: /api/users/(string:username)/apikey
|
|
||||||
|
|
||||||
Deletes a user's personal API key.
|
|
||||||
|
|
||||||
Requires admin rights or to be logged in as the user.
|
|
||||||
|
|
||||||
:param username: Name of the user to retrieve the settings for
|
|
||||||
:status 204: No error
|
|
||||||
:status 403: No admin rights and not logged in as the user
|
|
||||||
:status 404: The user is unknown
|
|
||||||
|
|
||||||
.. _sec-api-users-datamodel:
|
|
||||||
|
|
||||||
Data model
|
|
||||||
==========
|
|
||||||
|
|
||||||
.. _sec-api-users-datamodel-userlistresponse:
|
|
||||||
|
|
||||||
User list response
|
|
||||||
------------------
|
|
||||||
|
|
||||||
.. list-table::
|
|
||||||
:widths: 15 5 10 30
|
|
||||||
:header-rows: 1
|
|
||||||
|
|
||||||
* - Name
|
|
||||||
- Multiplicity
|
|
||||||
- Type
|
|
||||||
- Description
|
|
||||||
* - ``users``
|
|
||||||
- 0..n
|
|
||||||
- List of :ref:`user records <sec-api-users-datamodel-userrecord>`
|
|
||||||
- The list of registered users
|
|
||||||
|
|
||||||
.. _sec-api-users-datamodel-userrecord:
|
|
||||||
|
|
||||||
User record
|
|
||||||
-----------
|
|
||||||
|
|
||||||
.. list-table::
|
|
||||||
:widths: 15 5 10 30
|
|
||||||
:header-rows: 1
|
|
||||||
|
|
||||||
* - Name
|
|
||||||
- Multiplicity
|
|
||||||
- Type
|
|
||||||
- Description
|
|
||||||
* - ``name``
|
|
||||||
- 1
|
|
||||||
- string
|
|
||||||
- The user's name
|
|
||||||
* - ``active``
|
|
||||||
- 1
|
|
||||||
- bool
|
|
||||||
- Whether the user's account is active (true) or not (false)
|
|
||||||
* - ``user``
|
|
||||||
- 1
|
|
||||||
- bool
|
|
||||||
- Whether the user has user rights. Should always be true.
|
|
||||||
* - ``admin``
|
|
||||||
- 1
|
|
||||||
- bool
|
|
||||||
- Whether the user has admin rights (true) or not (false)
|
|
||||||
* - ``apikey``
|
|
||||||
- 0..1
|
|
||||||
- string
|
|
||||||
- The user's personal API key
|
|
||||||
* - ``settings``
|
|
||||||
- 1
|
|
||||||
- object
|
|
||||||
- The user's personal settings, might be an empty object.
|
|
||||||
|
|
||||||
.. _sec-api-users-datamodel-adduserrequest:
|
|
||||||
|
|
||||||
User registration request
|
|
||||||
-------------------------
|
|
||||||
|
|
||||||
.. list-table::
|
|
||||||
:widths: 15 5 10 30
|
|
||||||
:header-rows: 1
|
|
||||||
|
|
||||||
* - Name
|
|
||||||
- Multiplicity
|
|
||||||
- Type
|
|
||||||
- Description
|
|
||||||
* - ``name``
|
|
||||||
- 1
|
|
||||||
- string
|
|
||||||
- The user's name
|
|
||||||
* - ``password``
|
|
||||||
- 1
|
|
||||||
- string
|
|
||||||
- The user's password
|
|
||||||
* - ``active``
|
|
||||||
- 1
|
|
||||||
- bool
|
|
||||||
- Whether to activate the account (true) or not (false)
|
|
||||||
* - ``admin``
|
|
||||||
- 0..1
|
|
||||||
- bool
|
|
||||||
- Whether to give the user admin rights (true) or not (false or not present)
|
|
||||||
|
|
||||||
.. _sec-api-users-datamodel-updateuserrequest:
|
|
||||||
|
|
||||||
User update request
|
|
||||||
-------------------
|
|
||||||
|
|
||||||
.. list-table::
|
|
||||||
:widths: 15 5 10 30
|
|
||||||
:header-rows: 1
|
|
||||||
|
|
||||||
* - Name
|
|
||||||
- Multiplicity
|
|
||||||
- Type
|
|
||||||
- Description
|
|
||||||
* - ``active``
|
|
||||||
- 0..1
|
|
||||||
- bool
|
|
||||||
- If present will set the user's active flag to the provided value. True for
|
|
||||||
activating the account, false for deactivating it.
|
|
||||||
* - ``admin``
|
|
||||||
- 0..1
|
|
||||||
- bool
|
|
||||||
- If present will set the user's admin flag to the provided value. True for
|
|
||||||
admin rights, false for no admin rights.
|
|
||||||
+148
-3
@@ -6,8 +6,8 @@ Util
|
|||||||
|
|
||||||
.. _sec-api-util-test:
|
.. _sec-api-util-test:
|
||||||
|
|
||||||
Test paths or URLs
|
Various tests
|
||||||
==================
|
=============
|
||||||
|
|
||||||
.. http:post:: /api/util/test
|
.. http:post:: /api/util/test
|
||||||
|
|
||||||
@@ -99,7 +99,24 @@ Test paths or URLs
|
|||||||
The ``server`` command returns :http:statuscode:`200` with a :ref:`Server test result <sec-api-util-datamodel-servertestresult>`
|
The ``server`` command returns :http:statuscode:`200` with a :ref:`Server test result <sec-api-util-datamodel-servertestresult>`
|
||||||
when the test could be performed. The status code of the response does NOT reflect the test result!
|
when the test could be performed. The status code of the response does NOT reflect the test result!
|
||||||
|
|
||||||
Requires admin rights.
|
resolution
|
||||||
|
Tests whether a provided hostname can be resolved (via DNS lookup). Supported parameters are:
|
||||||
|
|
||||||
|
* ``name``: The host name to test. Mandatory.
|
||||||
|
|
||||||
|
The ``resolution`` command returns :http:statuscode:`200` with a :ref:`Resolution test result <sec-api-util-datamodel-resolutiontestresult>`
|
||||||
|
when the test could be performed. The status code of the response does NOT reflect the test result!
|
||||||
|
|
||||||
|
address
|
||||||
|
Tests whether a provided address (or, if none is provided, the client's remote address) is
|
||||||
|
a LAN address and if so returns the subnet specifier in CIDR format.
|
||||||
|
|
||||||
|
* ``address``: the address to test. If not set, the client's remote address will be used
|
||||||
|
|
||||||
|
The ``address`` command return :http:statuscode:`200` with a :ref:`Address test result <sec-api-util-datamodel-addresstestresult>`
|
||||||
|
when the test could be performed. The status code of the response does NOT reflect the test result!
|
||||||
|
|
||||||
|
Requires the ``ADMIN`` permission.
|
||||||
|
|
||||||
**Example 1**
|
**Example 1**
|
||||||
|
|
||||||
@@ -286,6 +303,84 @@ Test paths or URLs
|
|||||||
"result": true
|
"result": true
|
||||||
}
|
}
|
||||||
|
|
||||||
|
**Example 7**
|
||||||
|
|
||||||
|
Test whether a host name can be resolved successfully.
|
||||||
|
|
||||||
|
.. sourcecode:: http
|
||||||
|
|
||||||
|
POST /api/util/test HTTP/1.1
|
||||||
|
Host: example.com
|
||||||
|
X-Api-Key: abcdef...
|
||||||
|
Content-Type: application/json
|
||||||
|
|
||||||
|
{
|
||||||
|
"command": "resolution",
|
||||||
|
"name": "octoprint"
|
||||||
|
}
|
||||||
|
|
||||||
|
.. sourcecode:: http
|
||||||
|
|
||||||
|
HTTP/1.1 200 OK
|
||||||
|
Content-Type: application/json
|
||||||
|
|
||||||
|
{
|
||||||
|
"name": "octoprint.org",
|
||||||
|
"result": true
|
||||||
|
}
|
||||||
|
|
||||||
|
**Example 8**
|
||||||
|
|
||||||
|
Test whether the client's address is a LAN address.
|
||||||
|
|
||||||
|
.. sourcecode:: http
|
||||||
|
|
||||||
|
POST /api/util/test HTTP/1.1
|
||||||
|
Host: example.com
|
||||||
|
X-Api-Key: abcdef...
|
||||||
|
Content-Type: application/json
|
||||||
|
|
||||||
|
{
|
||||||
|
"command": "address"
|
||||||
|
}
|
||||||
|
|
||||||
|
.. sourcecode:: http
|
||||||
|
|
||||||
|
HTTP/1.1 200 OK
|
||||||
|
Content-Type: application/json
|
||||||
|
|
||||||
|
{
|
||||||
|
"address": "192.168.1.3",
|
||||||
|
"is_lan_address": true,
|
||||||
|
"subnet": "192.168.0.0/16"
|
||||||
|
}
|
||||||
|
|
||||||
|
**Example 9**
|
||||||
|
|
||||||
|
Test whether ``8.8.8.8`` is a LAN address.
|
||||||
|
|
||||||
|
.. sourcecode:: http
|
||||||
|
|
||||||
|
POST /api/util/test HTTP/1.1
|
||||||
|
Host: example.com
|
||||||
|
X-Api-Key: abcdef...
|
||||||
|
Content-Type: application/json
|
||||||
|
|
||||||
|
{
|
||||||
|
"command": "address",
|
||||||
|
"address": "8.8.8.8"
|
||||||
|
}
|
||||||
|
|
||||||
|
.. sourcecode:: http
|
||||||
|
|
||||||
|
HTTP/1.1 200 OK
|
||||||
|
Content-Type: application/json
|
||||||
|
|
||||||
|
{
|
||||||
|
"address": "8.8.8.8",
|
||||||
|
"is_lan_address": false
|
||||||
|
}
|
||||||
|
|
||||||
:json command: The command to execute, currently either ``path`` or ``url``
|
:json command: The command to execute, currently either ``path`` or ``url``
|
||||||
:json path: ``path`` command only: the path to test
|
:json path: ``path`` command only: the path to test
|
||||||
:json check_type: ``path`` command only: the type of path to test for, either ``file`` or ``dir``
|
:json check_type: ``path`` command only: the type of path to test for, either ``file`` or ``dir``
|
||||||
@@ -302,6 +397,8 @@ Test paths or URLs
|
|||||||
:json host: ``server`` command only: the server to test
|
:json host: ``server`` command only: the server to test
|
||||||
:json port: ``server`` command only: the port to test
|
:json port: ``server`` command only: the port to test
|
||||||
:json protocol: ``server`` command only: the protocol to test
|
:json protocol: ``server`` command only: the protocol to test
|
||||||
|
:json name: ``resolution`` command only: the host name to test
|
||||||
|
:json address: ``address`` command only: the address to test
|
||||||
:statuscode 200: No error occurred
|
:statuscode 200: No error occurred
|
||||||
|
|
||||||
.. _sec-api-util-datamodel:
|
.. _sec-api-util-datamodel:
|
||||||
@@ -409,3 +506,51 @@ Server test result
|
|||||||
- 1
|
- 1
|
||||||
- bool
|
- bool
|
||||||
- ``true`` if the check passed.
|
- ``true`` if the check passed.
|
||||||
|
|
||||||
|
.. _sec-api-util-datamodel-resolutiontestresult:
|
||||||
|
|
||||||
|
Resolution test result
|
||||||
|
----------------------
|
||||||
|
|
||||||
|
.. list-table::
|
||||||
|
:widths: 15 5 10 30
|
||||||
|
:header-rows: 1
|
||||||
|
|
||||||
|
* - Name
|
||||||
|
- Multiplicity
|
||||||
|
- Type
|
||||||
|
- Description
|
||||||
|
* - ``name``
|
||||||
|
- 1
|
||||||
|
- string
|
||||||
|
- The host name that was tested.
|
||||||
|
* - ``result``
|
||||||
|
- 1
|
||||||
|
- bool
|
||||||
|
- ``true`` if the check passed.
|
||||||
|
|
||||||
|
.. _sec-api-util-datamodel-addresstestresult:
|
||||||
|
|
||||||
|
Address test result
|
||||||
|
-------------------
|
||||||
|
|
||||||
|
.. list-table::
|
||||||
|
:widths: 15 5 10 30
|
||||||
|
:header-rows: 1
|
||||||
|
|
||||||
|
* - Name
|
||||||
|
- Multiplicity
|
||||||
|
- Type
|
||||||
|
- Description
|
||||||
|
* - ``address``
|
||||||
|
- 1
|
||||||
|
- string
|
||||||
|
- The address that was tested.
|
||||||
|
* - ``is_lan_address``
|
||||||
|
- 1
|
||||||
|
- bool
|
||||||
|
- ``true`` if the address is a LAN address, false otherwise.
|
||||||
|
* - ``subnet``
|
||||||
|
- 0..1
|
||||||
|
- string
|
||||||
|
- The detected subnet, if address is a LAN address.
|
||||||
@@ -6,9 +6,9 @@ Version information
|
|||||||
|
|
||||||
.. http:get:: /api/version
|
.. http:get:: /api/version
|
||||||
|
|
||||||
Retrieve information regarding server and API version. Returns a JSON object with two keys, ``api`` containing
|
Retrieve information regarding server and API version. Returns a JSON object with three keys, ``api`` containing
|
||||||
the API version, ``server`` containing the server version, ``text`` containing the server version including
|
the API version, ``server`` containing the server version, ``text`` containing the server version including
|
||||||
the prefix ``OctoPrint `` (to determine that this is indeed a genuine OctoPrint instance).
|
the prefix ``OctoPrint`` (to determine that this is indeed a genuine OctoPrint instance).
|
||||||
|
|
||||||
**Example Request**
|
**Example Request**
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -6,7 +6,7 @@ Wizard
|
|||||||
|
|
||||||
.. note::
|
.. note::
|
||||||
|
|
||||||
All wizard operations require either admin rights or the ``firstRun`` flag to be ``true``.
|
All wizard operations require either the ``ADMIN`` permission or the ``firstRun`` flag to be ``true``.
|
||||||
|
|
||||||
.. contents::
|
.. contents::
|
||||||
|
|
||||||
|
|||||||
@@ -0,0 +1,61 @@
|
|||||||
|
.. _sec-bundledplugins-action_command_notification:
|
||||||
|
|
||||||
|
Action Command Notification support
|
||||||
|
===================================
|
||||||
|
|
||||||
|
.. versionadded:: 1.4.1
|
||||||
|
|
||||||
|
The OctoPrint Action Command Notification Support Plugin comes bundled with OctoPrint.
|
||||||
|
|
||||||
|
It allows firmware to trigger notifications users with the ``PLUGIN_ACTION_COMMAND_NOTIFICATION_SHOW`` permission
|
||||||
|
using :ref:`action commands <sec-features-action_commands>` about relevant events. These notifications will be shown
|
||||||
|
in the sidebar and if configured also as popup messages. The notifications in the sidebar panel can also be cleared
|
||||||
|
by users with the ``PLUGIN_ACTION_COMMAND_NOTIFICATION_CLEAR`` permission.
|
||||||
|
|
||||||
|
.. _fig-bundledplugins-action_command_notification-example:
|
||||||
|
.. figure:: ../images/bundledplugins-action_command_notification-example.png
|
||||||
|
:align: center
|
||||||
|
:alt: Simple notification example
|
||||||
|
|
||||||
|
A simple notification example triggered by the firmware
|
||||||
|
|
||||||
|
.. _sec-bundledplugins-action_command_notification-configuration:
|
||||||
|
|
||||||
|
Configuring the plugin
|
||||||
|
----------------------
|
||||||
|
|
||||||
|
The plugin supports the following configuration keys:
|
||||||
|
|
||||||
|
* ``enable``: Whether to enable the support of notifications (enabled by default).
|
||||||
|
* ``enable_popup``: Whether to enable the additional display of notifications as popups in the UI (disabled by default).
|
||||||
|
|
||||||
|
You can modify them either through the plugin's configuration dialog under Settings, or by directly editing ``config.yaml``.
|
||||||
|
|
||||||
|
.. _sec-bundledplugins-action_command_notification-action_commands:
|
||||||
|
|
||||||
|
Supported action commands
|
||||||
|
-------------------------
|
||||||
|
|
||||||
|
notification <message>
|
||||||
|
Displays the notification ``<message>``
|
||||||
|
|
||||||
|
.. _sec-bundledplugins-action_command_notification-example:
|
||||||
|
|
||||||
|
Example communication with the firmware
|
||||||
|
---------------------------------------
|
||||||
|
|
||||||
|
To display the :ref:`above notification <fig-bundledplugins-action_command_notification-example>` the firmware sent this action command:
|
||||||
|
|
||||||
|
.. code-block:: none
|
||||||
|
|
||||||
|
//action:notification Hello World!
|
||||||
|
|
||||||
|
|
||||||
|
.. _sec-bundledplugins-action_command_notification-sourcecode:
|
||||||
|
|
||||||
|
|
||||||
|
Source code
|
||||||
|
-----------
|
||||||
|
|
||||||
|
The source of the Action Command Prompt Notification plugin is bundled with OctoPrint and can be found in
|
||||||
|
its source repository under ``src/octoprint/plugins/action_command_notification``.
|
||||||
@@ -3,7 +3,9 @@
|
|||||||
Action Command Prompt support
|
Action Command Prompt support
|
||||||
=============================
|
=============================
|
||||||
|
|
||||||
The OctoPrint Action Command Prompt Support Plugin comes bundled with OctoPrint (starting with 1.3.9).
|
.. versionadded:: 1.3.9
|
||||||
|
|
||||||
|
The OctoPrint Action Command Prompt Support Plugin comes bundled with OctoPrint.
|
||||||
|
|
||||||
It allows firmware to trigger dialog prompts for logged in users using :ref:`action commands <sec-features-action_commands>`, e.g. to wait
|
It allows firmware to trigger dialog prompts for logged in users using :ref:`action commands <sec-features-action_commands>`, e.g. to wait
|
||||||
for user acknowledgement or allow the user to choose between options, and also to close the dialog again
|
for user acknowledgement or allow the user to choose between options, and also to close the dialog again
|
||||||
@@ -19,17 +21,6 @@ placeholder for the selected option's index.
|
|||||||
|
|
||||||
A simple dialog example triggered by the firmware
|
A simple dialog example triggered by the firmware
|
||||||
|
|
||||||
.. _sec-bundledplugins-action_command_prompt-firststeps:
|
|
||||||
|
|
||||||
First Steps
|
|
||||||
-----------
|
|
||||||
|
|
||||||
In order for this plugin to work, you'll need to configure it with the command your firmware uses to accept
|
|
||||||
dialog selections. You can do that in the settings dialog.
|
|
||||||
|
|
||||||
Currently there is no agreed upon command for this since no firmware has yet made use of this feature, so OctoPrint
|
|
||||||
ships with an empty value here.
|
|
||||||
|
|
||||||
.. _sec-bundledplugins-action_command_prompt-configuration:
|
.. _sec-bundledplugins-action_command_prompt-configuration:
|
||||||
|
|
||||||
Configuring the plugin
|
Configuring the plugin
|
||||||
@@ -37,7 +28,13 @@ Configuring the plugin
|
|||||||
|
|
||||||
The plugin supports the following configuration keys:
|
The plugin supports the following configuration keys:
|
||||||
|
|
||||||
* ``selection_command``: The command to send to the firmware on choice, including the ``{choice}`` placeholder, e.g. ``M876 S{choice}``.
|
* ``enable``: Whether to always enable (``always``), disable (``never``) or ``detect`` support.
|
||||||
|
* ``enable_emergency_sending``: Will make the selection command be sent as an emergency command to jump the internal
|
||||||
|
send queue and even be sent to the printer if it's not signaling to be able to received. Only done if this is true
|
||||||
|
and the printer signals support for emergency command processing. Defaults to ``true``.
|
||||||
|
* ``enable_signaling``: If enabled, will send the configured command with the ``P1`` parameter to the printer to
|
||||||
|
signal prompt support of the host. Defaults to ``true``.
|
||||||
|
* ``command``: The command to send to the firmware on choice, defaults to ``M876``.
|
||||||
|
|
||||||
You can modify them either through the plugin's configuration dialog under Settings, or by directly editing ``config.yaml``.
|
You can modify them either through the plugin's configuration dialog under Settings, or by directly editing ``config.yaml``.
|
||||||
|
|
||||||
@@ -69,8 +66,6 @@ prompt_end
|
|||||||
Example communication with the firmware
|
Example communication with the firmware
|
||||||
---------------------------------------
|
---------------------------------------
|
||||||
|
|
||||||
.. _sec-bundledplugins-action_command_prompt-sourcecode:
|
|
||||||
|
|
||||||
To display the :ref:`above dialog <fig-bundledplugins-action_command_prompt-example>` the firmware sent these action commands:
|
To display the :ref:`above dialog <fig-bundledplugins-action_command_prompt-example>` the firmware sent these action commands:
|
||||||
|
|
||||||
.. code-block:: none
|
.. code-block:: none
|
||||||
@@ -79,8 +74,7 @@ To display the :ref:`above dialog <fig-bundledplugins-action_command_prompt-exam
|
|||||||
//action:prompt_choice Filament swapped
|
//action:prompt_choice Filament swapped
|
||||||
//action:prompt_show
|
//action:prompt_show
|
||||||
|
|
||||||
If the user clicks the button, assuming a ``selection_command`` of ``M876 S{choice}`` is configured, OctoPrint
|
If the user clicks the button, OctoPrint will send back ``M876 S0`` (0-based index).
|
||||||
will send back ``M876 S0`` (0-based index).
|
|
||||||
|
|
||||||
A more complicated example with three options would be the following:
|
A more complicated example with three options would be the following:
|
||||||
|
|
||||||
@@ -103,6 +97,8 @@ This would produce the following output:
|
|||||||
|
|
||||||
If the user selects "Abort print", OctoPrint will send ``2`` as selected choice.
|
If the user selects "Abort print", OctoPrint will send ``2`` as selected choice.
|
||||||
|
|
||||||
|
.. _sec-bundledplugins-action_command_prompt-sourcecode:
|
||||||
|
|
||||||
Source code
|
Source code
|
||||||
-----------
|
-----------
|
||||||
|
|
||||||
|
|||||||
@@ -3,7 +3,9 @@
|
|||||||
Announcement Plugin
|
Announcement Plugin
|
||||||
===================
|
===================
|
||||||
|
|
||||||
The OctoPrint Announcement Plugin comes bundled with OctoPrint (starting with 1.2.11).
|
.. versionadded:: 1.2.11
|
||||||
|
|
||||||
|
The OctoPrint Announcement Plugin comes bundled with OctoPrint.
|
||||||
|
|
||||||
It displays announcements fetched from OctoPrint's websites, such as important updates, release announcements, new
|
It displays announcements fetched from OctoPrint's websites, such as important updates, release announcements, new
|
||||||
plugins and similar. Through some manual configuration via ``config.yaml`` it also allows adding additional channels
|
plugins and similar. Through some manual configuration via ``config.yaml`` it also allows adding additional channels
|
||||||
|
|||||||
@@ -3,7 +3,9 @@
|
|||||||
Application Keys Plugin
|
Application Keys Plugin
|
||||||
=======================
|
=======================
|
||||||
|
|
||||||
The OctoPrint Application Keys Plugin comes bundled with OctoPrint (starting with version 1.3.10).
|
.. versionadded:: 1.3.10
|
||||||
|
|
||||||
|
The OctoPrint Application Keys Plugin comes bundled with OctoPrint.
|
||||||
|
|
||||||
It implements a workflow for third party apps or clients to obtain an application specific API key from OctoPrint to interact with it
|
It implements a workflow for third party apps or clients to obtain an application specific API key from OctoPrint to interact with it
|
||||||
on a user's behalf, via confirmation of the user through OctoPrint's web interface. Existing keys can be managed
|
on a user's behalf, via confirmation of the user through OctoPrint's web interface. Existing keys can be managed
|
||||||
@@ -320,7 +322,7 @@ Key response
|
|||||||
- Multiplicity
|
- Multiplicity
|
||||||
- Type
|
- Type
|
||||||
- Description
|
- Description
|
||||||
* - ``apikey``
|
* - ``api_key``
|
||||||
- 1
|
- 1
|
||||||
- str
|
- str
|
||||||
- the API key generated for the application
|
- the API key generated for the application
|
||||||
|
|||||||
@@ -3,9 +3,11 @@
|
|||||||
Backup Plugin
|
Backup Plugin
|
||||||
=============
|
=============
|
||||||
|
|
||||||
|
.. versionadded:: 1.3.10
|
||||||
|
|
||||||
The OctoPrint Backup Plugin comes bundled with OctoPrint (starting with 1.3.10).
|
The OctoPrint Backup Plugin comes bundled with OctoPrint (starting with 1.3.10).
|
||||||
|
|
||||||
It allows the creation and restoration of backups of OctoPrint's settings, data and installed plugins [#]_.
|
It allows the creation and restoration [#1]_ of backups of OctoPrint's settings, data and installed plugins [#2]_.
|
||||||
|
|
||||||
This allows easy migration
|
This allows easy migration
|
||||||
to newly setup instances as well as making regular backups to prevent data loss.
|
to newly setup instances as well as making regular backups to prevent data loss.
|
||||||
@@ -21,13 +23,26 @@ As long as plugins adhere to the standard of storing their data and settings in
|
|||||||
data will be part of the backup. Note that the backups made by the Backup Plugin will *not* be part of any backups -
|
data will be part of the backup. Note that the backups made by the Backup Plugin will *not* be part of any backups -
|
||||||
you'll need to persist the resulting zip files yourself!
|
you'll need to persist the resulting zip files yourself!
|
||||||
|
|
||||||
|
.. _sec-bundledplugins-backup-configuration:
|
||||||
|
|
||||||
|
Configuring the plugin
|
||||||
|
----------------------
|
||||||
|
|
||||||
|
The plugin supports the following configuration keys:
|
||||||
|
|
||||||
|
* ``restore_unsupported``: If the system you are installing OctoPrint on doesn't support restoring backups or you
|
||||||
|
want to disable that feature for other reasons, set this to `true`. Alternatively you can also set the
|
||||||
|
environment variable `OCTOPRINT_BACKUP_RESTORE_UNSUPPORTED` to `true`. OctoPrint will then disable the restore
|
||||||
|
functionality. Under normal circumstances you should not have to touch this setting (OctoPrint will do its
|
||||||
|
best to autodetect whether it's able to perform restores), thus it is not exposed in the Settings dialog.
|
||||||
|
|
||||||
.. _sec-bundledplugins-backup-cli:
|
.. _sec-bundledplugins-backup-cli:
|
||||||
|
|
||||||
Command line usage
|
Command line usage
|
||||||
------------------
|
------------------
|
||||||
|
|
||||||
The Backup Plugin implements a command line interface that allows creation and restoration of backups.
|
The Backup Plugin implements a command line interface that allows creation and restoration of backups.
|
||||||
It adds two new commands, ``backup:backup`` and ``backup_restore``.
|
It adds two new commands, ``backup:backup`` and ``backup:restore``.
|
||||||
|
|
||||||
.. code-block:: none
|
.. code-block:: none
|
||||||
|
|
||||||
@@ -57,6 +72,129 @@ It adds two new commands, ``backup:backup`` and ``backup_restore``.
|
|||||||
|
|
||||||
The ``backup:backup`` command can be useful in combination with a cronjob to create backups in regular intervals.
|
The ``backup:backup`` command can be useful in combination with a cronjob to create backups in regular intervals.
|
||||||
|
|
||||||
|
.. _sec-bundledplugins-backup-events:
|
||||||
|
|
||||||
|
Events
|
||||||
|
------
|
||||||
|
|
||||||
|
*Events will not be triggered by CLI operations.*
|
||||||
|
|
||||||
|
plugin_backup_backup_created
|
||||||
|
A new backup was created. On the push socket only available with a valid login session with ``Backup Access``
|
||||||
|
permission.
|
||||||
|
|
||||||
|
Payload:
|
||||||
|
|
||||||
|
* ``name``: the name of the backup
|
||||||
|
* ``path``: the path to the backup
|
||||||
|
* ``excludes``: the list of parts excluded from the backup
|
||||||
|
|
||||||
|
.. versionadded:: 1.5.0
|
||||||
|
|
||||||
|
.. _sec-bundledplugins-backup-hooks:
|
||||||
|
|
||||||
|
Hooks
|
||||||
|
-----
|
||||||
|
|
||||||
|
.. _sec-bundledplugins-backup-hooks-excludes:
|
||||||
|
|
||||||
|
octoprint.plugin.backup.additional_excludes
|
||||||
|
+++++++++++++++++++++++++++++++++++++++++++
|
||||||
|
|
||||||
|
.. py:function:: additional_excludes_hook(excludes, *args, **kwargs)
|
||||||
|
|
||||||
|
.. versionadded:: 1.5.0
|
||||||
|
|
||||||
|
Use this to provide additional paths on your plugin's data folder to exclude from the backup. Your handler also
|
||||||
|
get a list of currently excluded sub paths in the base folder, so you can react to them. E.g. exclude things
|
||||||
|
in your data folder that relate to uploaded GCODE files if `uploads` is excluded, or exclude things that relate
|
||||||
|
to timelapses if `timelapse` is excluded.
|
||||||
|
|
||||||
|
Expects a list of additional paths relative to your plugin's data folder. If you return a single `.`, your whole
|
||||||
|
plugin's data folder will be excluded from the backup.
|
||||||
|
|
||||||
|
**Example 1**
|
||||||
|
|
||||||
|
The following example plugin will create two files ``foo.txt`` and ``bar.txt`` in its data folder, but flag
|
||||||
|
``foo.txt`` as not to be backed up.
|
||||||
|
|
||||||
|
.. code-block:: python
|
||||||
|
|
||||||
|
import octoprint.plugin
|
||||||
|
|
||||||
|
import os
|
||||||
|
import io
|
||||||
|
|
||||||
|
class BackupExcludeTestPlugin(octoprint.plugin.OctoPrintPlugin):
|
||||||
|
def initialize(self):
|
||||||
|
with io.open(os.path.join(self.get_plugin_data_folder(), "foo.txt"), "w", encoding="utf-8") as f:
|
||||||
|
f.write("Hello\n")
|
||||||
|
with io.open(os.path.join(self.get_plugin_data_folder(), "bar.txt"), "w", encoding="utf-8") as f:
|
||||||
|
f.write("Hello\n")
|
||||||
|
|
||||||
|
def additional_excludes_hook(self, excludes, *args, **kwargs):
|
||||||
|
return ["foo.txt"]
|
||||||
|
|
||||||
|
__plugin_implementation__ = BackupExcludeTestPlugin()
|
||||||
|
__plugin_hooks__ = {
|
||||||
|
"octoprint.plugin.backup.additional_excludes": __plugin_implementation__.additional_excludes_hook
|
||||||
|
}
|
||||||
|
|
||||||
|
**Example 2**
|
||||||
|
|
||||||
|
In this example the plugin will create a file ``foo.txt`` in its data folder and flag its whole data folder as excluded from the
|
||||||
|
backup if uploaded GCODE files are also excluded:
|
||||||
|
|
||||||
|
.. code-block:: python
|
||||||
|
|
||||||
|
import octoprint.plugin
|
||||||
|
|
||||||
|
import os
|
||||||
|
import io
|
||||||
|
|
||||||
|
class BackupExcludeTestPlugin(octoprint.plugin.OctoPrintPlugin):
|
||||||
|
def initialize(self):
|
||||||
|
with io.open(os.path.join(self.get_plugin_data_folder(), "foo.txt"), "w", encoding="utf-8") as f:
|
||||||
|
f.write("Hello\n")
|
||||||
|
|
||||||
|
def additional_excludes_hook(self, excludes, *args, **kwargs):
|
||||||
|
if "uploads" in excludes:
|
||||||
|
return ["."]
|
||||||
|
return []
|
||||||
|
|
||||||
|
__plugin_implementation__ = BackupExcludeTestPlugin()
|
||||||
|
__plugin_hooks__ = {
|
||||||
|
"octoprint.plugin.backup.additional_excludes": __plugin_implementation__.additional_excludes_hook
|
||||||
|
}
|
||||||
|
|
||||||
|
:param excludes list: A list of paths already flagged as excluded in the backup
|
||||||
|
:return: A list of paths to exclude, relative to your plugin's data folder
|
||||||
|
:rtype: list
|
||||||
|
|
||||||
|
Helpers
|
||||||
|
-------
|
||||||
|
|
||||||
|
.. _sec-bundledplugins-backup-helpers:
|
||||||
|
|
||||||
|
The Backup plugin exports two helpers that can be used by other plugins or internal methods
|
||||||
|
from within OctoPrint, without going via the API.
|
||||||
|
|
||||||
|
.. _sec-bundledplugins-backup-helpers-create_backup:
|
||||||
|
|
||||||
|
create_backup
|
||||||
|
+++++++++++++
|
||||||
|
|
||||||
|
.. autofunction:: octoprint.plugins.backup.BackupPlugin.create_backup_helper
|
||||||
|
|
||||||
|
|
||||||
|
.. _sec-bundledplugins-backup-helpers-delete_backup:
|
||||||
|
|
||||||
|
delete_backup
|
||||||
|
+++++++++++++
|
||||||
|
|
||||||
|
.. autofunction:: octoprint.plugins.backup.BackupPlugin.delete_backup_helper
|
||||||
|
|
||||||
|
|
||||||
.. _sec-bundledplugins-backup-sourcecode:
|
.. _sec-bundledplugins-backup-sourcecode:
|
||||||
|
|
||||||
Source code
|
Source code
|
||||||
@@ -65,6 +203,8 @@ Source code
|
|||||||
The source of the Backup plugin is bundled with OctoPrint and can be found in
|
The source of the Backup plugin is bundled with OctoPrint and can be found in
|
||||||
its source repository under ``src/octoprint/plugins/backup``.
|
its source repository under ``src/octoprint/plugins/backup``.
|
||||||
|
|
||||||
.. [#] Note that only those plugins that are available on `OctoPrint's official plugin repository <https://plugins.octoprint.org>`_
|
.. [#1] Note that restore is currently unavailable on OctoPrint servers running on Windows. Additionally they may be
|
||||||
can be automatically restored. If you have plugins installed that are not available on there you'll get their
|
disabled through a config flag or an environment variable as documented :ref:`here <sec-bundledplugins-backup-configuration>`.
|
||||||
names and - if available - homepage URL displayed after restore in order to be able to manually reinstall them.
|
.. [#2] Note that only those plugins that are available on `OctoPrint's official plugin repository <https://plugins.octoprint.org>`_
|
||||||
|
can be automatically restored. If you have plugins installed that are not available on there you'll get their
|
||||||
|
names and - if available - homepage URL displayed after restore in order to be able to manually reinstall them.
|
||||||
@@ -3,18 +3,19 @@
|
|||||||
Discovery Plugin
|
Discovery Plugin
|
||||||
================
|
================
|
||||||
|
|
||||||
The OctoPrint Discovery Plugin comes bundled with OctoPrint (starting with 1.2.0).
|
.. versionadded:: 1.2.0
|
||||||
|
|
||||||
It allows discovery of the OctoPrint instances via SSDP/UPNP. If
|
The OctoPrint Discovery Plugin comes bundled with OctoPrint.
|
||||||
`pybonjour <https://pypi.python.org/pypi/pybonjour>`_ is installed OctoPrint
|
|
||||||
will additionally support discovery via ZeroConf, also known as Bonjour or Avahi.
|
It allows discovery of the OctoPrint instances via SSDP/UPNP and ZeroConf
|
||||||
|
(also known as Bonjour or Avahi).
|
||||||
|
|
||||||
The SSDP/UPNP support allows OctoPrint to announce itself to machines on the same
|
The SSDP/UPNP support allows OctoPrint to announce itself to machines on the same
|
||||||
network running Microsoft Windows. You will be able to just double click on the
|
network running Microsoft Windows. You will be able to just double click on the
|
||||||
OctoPrint instance icon in "Networks > Other Devices" in your Windows Explorer,
|
OctoPrint instance icon in "Networks > Other Devices" in your Windows Explorer,
|
||||||
which will take you directly to the web frontend.
|
which will take you directly to the web frontend.
|
||||||
|
|
||||||
The ZeroConf support allows OctoPrint to announce itself to Safari on MacOS X
|
The ZeroConf support allows OctoPrint to announce itself to Safari on macOS
|
||||||
on the same network.
|
on the same network.
|
||||||
|
|
||||||
Linux users should install `Avahi <http://avahi.org>`_ and can then use one
|
Linux users should install `Avahi <http://avahi.org>`_ and can then use one
|
||||||
@@ -28,45 +29,6 @@ line) to scan for available instances.
|
|||||||
|
|
||||||
Various discovered OctoPrint instances in Windows Explorer
|
Various discovered OctoPrint instances in Windows Explorer
|
||||||
|
|
||||||
.. _sec-bundledplugins-discovery-firststeps:
|
|
||||||
|
|
||||||
First Steps
|
|
||||||
-----------
|
|
||||||
|
|
||||||
.. _sec-bundledplugins-discovery-firststeps-pybonjour:
|
|
||||||
|
|
||||||
Installing pybonjour
|
|
||||||
++++++++++++++++++++
|
|
||||||
|
|
||||||
.. note::
|
|
||||||
|
|
||||||
OctoPi versions 0.12.0 and later already come with pybonjour installed and ready to go,
|
|
||||||
you don't need to perform these steps there.
|
|
||||||
|
|
||||||
.. note::
|
|
||||||
|
|
||||||
Currently there are no releases for pybonjour available on the Python Package Index PyPI. The latest pybonjour
|
|
||||||
release is still available in the `Google Code Archive <https://storage.googleapis.com/google-code-archive-downloads/v2/code.google.com/pybonjour/pybonjour-1.1.1.tar.gz>`_.
|
|
||||||
Since that URL is hilariously long though, a shortened version is provided with https://goo.gl/SxQZ06 and
|
|
||||||
used in the installation instructions below.
|
|
||||||
|
|
||||||
In order for the Zeroconf discovery to work, the
|
|
||||||
`pybonjour package <https://pypi.python.org/pypi/pybonjour>`_ needs to be available
|
|
||||||
to the Python installation running OctoPrint.
|
|
||||||
|
|
||||||
It can be installed via ``pip``. Let's assume you installed OctoPrint manually
|
|
||||||
into some folder ``~/OctoPrint``. You executed ``python setup.py install`` within a
|
|
||||||
virtualenv in the same folder called ``venv``. In order to install ``pybonjour``
|
|
||||||
so it will be available to OctoPrint you'll need to do the following::
|
|
||||||
|
|
||||||
venv/bin/pip install https://goo.gl/SxQZ06
|
|
||||||
|
|
||||||
**Linux users:** You'll need to install an additional dependency for this to work, the
|
|
||||||
libdnssd compatibility layer for libavahi. On Debian/Ubuntu that can be achieved with::
|
|
||||||
|
|
||||||
sudo apt-get install libavahi-compat-libdnssd-dev
|
|
||||||
|
|
||||||
|
|
||||||
.. _sec-bundledplugins-discovery-configuration:
|
.. _sec-bundledplugins-discovery-configuration:
|
||||||
|
|
||||||
Configuring the plugin
|
Configuring the plugin
|
||||||
@@ -74,6 +36,10 @@ Configuring the plugin
|
|||||||
|
|
||||||
The plugin supports the following configuration keys:
|
The plugin supports the following configuration keys:
|
||||||
|
|
||||||
|
* ``addresses``: List of IP addresses for which to enable discovery, if unset all
|
||||||
|
addresses available on the host will be used
|
||||||
|
* ``interfaces``: List of network interfaces for which to enable discovery, if unset
|
||||||
|
all interfaces on the host will be used
|
||||||
* ``publicPort``: Public port number OctoPrint is reachable under,
|
* ``publicPort``: Public port number OctoPrint is reachable under,
|
||||||
optional, if not set the port OctoPrint itself was started under will be used
|
optional, if not set the port OctoPrint itself was started under will be used
|
||||||
* ``pathPrefix``: Path prefix OctoPrint is running under, optional, if not
|
* ``pathPrefix``: Path prefix OctoPrint is running under, optional, if not
|
||||||
@@ -128,6 +94,8 @@ The following snippet is a valid configuration example for the discovery plugin
|
|||||||
|
|
||||||
plugins:
|
plugins:
|
||||||
discovery:
|
discovery:
|
||||||
|
interfaces:
|
||||||
|
- eth0
|
||||||
publicPort: 443
|
publicPort: 443
|
||||||
useSsl: true
|
useSsl: true
|
||||||
zeroConf:
|
zeroConf:
|
||||||
@@ -150,8 +118,7 @@ Announced Services
|
|||||||
ZeroConf Service ``_http._tcp``
|
ZeroConf Service ``_http._tcp``
|
||||||
+++++++++++++++++++++++++++++++
|
+++++++++++++++++++++++++++++++
|
||||||
|
|
||||||
If :ref:`pybonjour <sec-bundledplugins-discovery-firststeps-pybonjour>` is
|
OctoPrint will announce itself on the network via ZeroConf
|
||||||
correctly installed, OctoPrint will announce itself on the network via ZeroConf
|
|
||||||
as service ``_http._tcp``, with the TXT record containing the standard fields.
|
as service ``_http._tcp``, with the TXT record containing the standard fields.
|
||||||
|
|
||||||
See also `this documentation of _http._tcp TXT records <http://www.dns-sd.org/txtrecords.html>`_
|
See also `this documentation of _http._tcp TXT records <http://www.dns-sd.org/txtrecords.html>`_
|
||||||
@@ -162,8 +129,7 @@ for more information.
|
|||||||
ZeroConf Service ``_octoprint._tcp``
|
ZeroConf Service ``_octoprint._tcp``
|
||||||
++++++++++++++++++++++++++++++++++++
|
++++++++++++++++++++++++++++++++++++
|
||||||
|
|
||||||
If :ref:`pybonjour <sec-bundledplugins-discovery-firststeps-pybonjour>` is
|
OctoPrint will announce itself on the network via ZeroConf
|
||||||
correctly installed, OctoPrint will announce itself on the network via ZeroConf
|
|
||||||
as service ``_octoprint._tcp``. The TXT record may contain the following fields:
|
as service ``_octoprint._tcp``. The TXT record may contain the following fields:
|
||||||
|
|
||||||
* ``path``: path prefix to actual OctoPrint instance, inherited from ``_http._tcp``
|
* ``path``: path prefix to actual OctoPrint instance, inherited from ``_http._tcp``
|
||||||
|
|||||||
@@ -3,6 +3,8 @@
|
|||||||
Error Tracking Plugin
|
Error Tracking Plugin
|
||||||
=====================
|
=====================
|
||||||
|
|
||||||
|
.. versionadded:: 1.3.11
|
||||||
|
|
||||||
The Error Tracking plugin will cause any logged exceptions in the server and the browser interface to be sent to
|
The Error Tracking plugin will cause any logged exceptions in the server and the browser interface to be sent to
|
||||||
OctoPrint's `Sentry instance <https://sentry.io/>`_.
|
OctoPrint's `Sentry instance <https://sentry.io/>`_.
|
||||||
|
|
||||||
|
|||||||
@@ -0,0 +1,9 @@
|
|||||||
|
.. _sec-bundledplugins-file_check:
|
||||||
|
|
||||||
|
File Check
|
||||||
|
==========
|
||||||
|
|
||||||
|
.. versionadded:: 1.4.1
|
||||||
|
|
||||||
|
The file check plugin - while considered bundled with OctoPrint - is a separate project on its own release
|
||||||
|
cycle and documented on `its Github repository <https://github.com/OctoPrint/OctoPrint-FileCheck>`_.
|
||||||
@@ -0,0 +1,11 @@
|
|||||||
|
.. _sec-bundledplugins-firmware_check:
|
||||||
|
|
||||||
|
Firmware Check
|
||||||
|
==============
|
||||||
|
|
||||||
|
.. versionadded:: 1.3.7
|
||||||
|
|
||||||
|
The firmware check plugin - while considered bundled with OctoPrint - is a separate project on its own release
|
||||||
|
cycle and documented on `its Github repository <https://github.com/OctoPrint/OctoPrint-FirmwareCheck>`_.
|
||||||
|
|
||||||
|
It was formerly called "Printer Safety Check" and directly bundled with OctoPrint.
|
||||||
@@ -1,35 +0,0 @@
|
|||||||
.. _sec-bundledplugins-forcelogin:
|
|
||||||
|
|
||||||
ForceLogin Plugin
|
|
||||||
=================
|
|
||||||
|
|
||||||
The ForceLogin Plugin comes bundled with OctoPrint (starting with version 1.3.10). It removes the anonymous
|
|
||||||
read-only access that up until 1.3.10 was standard when accessing OctoPrint instances without being logged in and
|
|
||||||
instead forces users to log in if they want to get any kind of information from OctoPrint.
|
|
||||||
|
|
||||||
.. _fig-bundledplugins-forcelogin:
|
|
||||||
.. figure:: ../images/bundledplugins-forcelogin-dialog.png
|
|
||||||
:align: center
|
|
||||||
:alt: Forced login dialog
|
|
||||||
|
|
||||||
OctoPrint's new forced login dialog.
|
|
||||||
|
|
||||||
.. warning::
|
|
||||||
|
|
||||||
Keep in mind that **OctoPrint does not manage your webcam**, it merely embeds it. If you have a webcam,
|
|
||||||
it will still be accessible to users who are not logged in under its (guessable) URL. If you need to restrict
|
|
||||||
access to your webcam, you'll need to find a way to do so directly on the webcam server which - again -
|
|
||||||
is not OctoPrint itself.
|
|
||||||
|
|
||||||
.. note::
|
|
||||||
|
|
||||||
If you want back the old behaviour of allowing anonymous read-only access to your OctoPrint instance, disable
|
|
||||||
the ForceLogin Plugin in OctoPrint's plugin manager.
|
|
||||||
|
|
||||||
.. _sec-bundledplugins-forcelogin-sourcecode:
|
|
||||||
|
|
||||||
Source code
|
|
||||||
-----------
|
|
||||||
|
|
||||||
The source of the ForceLogin plugin is bundled with OctoPrint and can be found in
|
|
||||||
its source repository under ``src/octoprint/plugins/forcelogin``.
|
|
||||||
@@ -0,0 +1,38 @@
|
|||||||
|
.. _sec-bundledplugins-gcodeviewer:
|
||||||
|
|
||||||
|
GCode Viewer Plugin
|
||||||
|
===================
|
||||||
|
|
||||||
|
.. versionchanged:: 1.4.1
|
||||||
|
|
||||||
|
The GCode Viewer plugin provides a GCode viewer based on `Alex Ustyantsev's work <https://github.com/hudbrog/gCodeViewer>`_.
|
||||||
|
|
||||||
|
.. _fig-bundledplugins-gcodeviewer-example:
|
||||||
|
.. figure:: ../images/bundledplugins-gcodeviewer-example.png
|
||||||
|
:align: center
|
||||||
|
:alt: OctoPrint GCode Viewer Plugin
|
||||||
|
|
||||||
|
An example of the GCode Viewer in action.
|
||||||
|
|
||||||
|
The viewer has been included in OctoPrint ever since the first releases back in 2013, however as of
|
||||||
|
OctoPrint 1.4.1 it has been extracted into its own bundled plugin.
|
||||||
|
|
||||||
|
.. _sec-bundledplugins-gcodeviewer-configuration:
|
||||||
|
|
||||||
|
Configuring the plugin
|
||||||
|
----------------------
|
||||||
|
|
||||||
|
The plugin supports the following configuration keys:
|
||||||
|
|
||||||
|
* ``mobileSizeThreshold``: Whether to also enable tracking on unreleased OctoPrint versions (anything not stable releases
|
||||||
|
or release candidates). Defaults to ``false``.
|
||||||
|
* ``sizeThreshold``: Unique instance identifier, auto generated on first activation
|
||||||
|
* ``skipUntilThis``: If this string is provided the GCode Viewer will search for this string, and if found, skip all gcode up until this string. This can be used to skip prime nozzle gcode in the preview
|
||||||
|
|
||||||
|
.. _sec-bundledplugins-gcodeviewer-sourcecode:
|
||||||
|
|
||||||
|
Source Code
|
||||||
|
-----------
|
||||||
|
|
||||||
|
The source of the GCode Viewer plugin is bundled with OctoPrint and can be
|
||||||
|
found in its source repository under ``src/octoprint/plugins/gcodeviewer``.
|
||||||
@@ -7,6 +7,7 @@ Bundled Plugins
|
|||||||
.. toctree::
|
.. toctree::
|
||||||
:maxdepth: 2
|
:maxdepth: 2
|
||||||
|
|
||||||
|
action_command_notification.rst
|
||||||
action_command_prompt.rst
|
action_command_prompt.rst
|
||||||
announcements.rst
|
announcements.rst
|
||||||
tracking.rst
|
tracking.rst
|
||||||
@@ -14,8 +15,10 @@ Bundled Plugins
|
|||||||
backup.rst
|
backup.rst
|
||||||
discovery.rst
|
discovery.rst
|
||||||
errortracking.rst
|
errortracking.rst
|
||||||
forcelogin.rst
|
file_check.rst
|
||||||
|
firmware_check.rst
|
||||||
|
gcodeviewer.rst
|
||||||
logging.rst
|
logging.rst
|
||||||
pluginmanager.rst
|
pluginmanager.rst
|
||||||
printer_safety_check.rst
|
|
||||||
softwareupdate.rst
|
softwareupdate.rst
|
||||||
|
virtual_printer.rst
|
||||||
@@ -3,9 +3,9 @@
|
|||||||
Logging
|
Logging
|
||||||
=======
|
=======
|
||||||
|
|
||||||
The OctoPrint Logging plugin comes bundled with OctoPrint starting with version 1.3.7.
|
.. versionadded:: 1.3.7
|
||||||
|
|
||||||
It implements the log management functionality that was formerly part of the core application and adds features to
|
The OctoPrint Logging plugin implements the log management functionality that was formerly part of the core application and adds features to
|
||||||
configure logging levels for sub modules through the included settings dialog.
|
configure logging levels for sub modules through the included settings dialog.
|
||||||
|
|
||||||
.. _fig-bundledplugins-logging-settings:
|
.. _fig-bundledplugins-logging-settings:
|
||||||
|
|||||||
@@ -0,0 +1,6 @@
|
|||||||
|
.. _sec-bundledplugins-loginui:
|
||||||
|
|
||||||
|
Login UI
|
||||||
|
========
|
||||||
|
|
||||||
|
The Login UI plugin's functionality has been merged into OctoPrint's core as of OctoPrint 1.4.2.
|
||||||
@@ -3,8 +3,9 @@
|
|||||||
Plugin Manager
|
Plugin Manager
|
||||||
==============
|
==============
|
||||||
|
|
||||||
The OctoPrint Plugin Manager comes bundled with OctoPrint starting with
|
.. versionadded:: 1.2.0
|
||||||
version 1.2.0.
|
|
||||||
|
The OctoPrint Plugin Manager comes bundled with OctoPrint.
|
||||||
|
|
||||||
It allows management of installed plugins (listing, enabling, disabling
|
It allows management of installed plugins (listing, enabling, disabling
|
||||||
and uninstalling) and installing new plugins from the official
|
and uninstalling) and installing new plugins from the official
|
||||||
|
|||||||
@@ -1,52 +0,0 @@
|
|||||||
.. _sec-bundledplugins-printer_safety_check:
|
|
||||||
|
|
||||||
Printer Safety Check
|
|
||||||
====================
|
|
||||||
|
|
||||||
The Printer Safety Check plugin comes bundled with OctoPrint starting with version 1.3.7.
|
|
||||||
|
|
||||||
It tries to identify printers or rather printer firmwares with known safety issues, such as
|
|
||||||
disabled thermal runaway protection, and displays a warning box to logged in users on
|
|
||||||
such identification.
|
|
||||||
|
|
||||||
.. _fig-bundledplugins-printer_safety_check-example:
|
|
||||||
.. figure:: ../images/bundledplugins-printer_safety_check-example.png
|
|
||||||
:align: center
|
|
||||||
:alt: Printer Safety Check warning example
|
|
||||||
|
|
||||||
An example of a warning generated by the Printer Safety Check
|
|
||||||
|
|
||||||
Please refer to the `entry on the "unsafe firmware" warning in OctoPrint's FAQ <https://faq.octoprint.org/warning-firmware-unsafe>`_
|
|
||||||
for a list of currently identified printers.
|
|
||||||
|
|
||||||
If you know of further printers/printer firmwares that need to be added here, please
|
|
||||||
`get in touch on the forum and provide their response to an M115 <https://faq.octoprint.org/warning-firmware-unsafe>`_.
|
|
||||||
|
|
||||||
.. note::
|
|
||||||
|
|
||||||
Feel free to disable the plugin in OctoPrint's Plugin Manager if you feel like it is unnecessary. Be advised though
|
|
||||||
that even if your printer might be running totally fine with a known unsafe configuration, that might change
|
|
||||||
unexpectedly and with `catastrophic <https://www.thissmarthouse.net/dont-burn-your-house-down-3d-printing-a-cautionary-tale/>`_
|
|
||||||
`results <https://www.reddit.com/r/3Dprinting/comments/6cekgk/house_fire_thanks_to_cheap_printer_from_china/>`_.
|
|
||||||
|
|
||||||
.. _sec-bundledplugins-printer_safety_check-events:
|
|
||||||
|
|
||||||
Events
|
|
||||||
------
|
|
||||||
|
|
||||||
warning
|
|
||||||
A printer safety warning was triggered.
|
|
||||||
|
|
||||||
Payload:
|
|
||||||
|
|
||||||
* ``check_type``: type of check that was triggered (e.g. ``m115``, ``received`` or ``cap``)
|
|
||||||
* ``check_name``: name of check that was triggered (e.g. ``aneta8``)
|
|
||||||
* ``warning_type``: type of warning that was triggered (e.g. ``firmware-unsafe``)
|
|
||||||
|
|
||||||
.. _sec-bundledplugins-printer_safety_check-source:
|
|
||||||
|
|
||||||
Source Code
|
|
||||||
-----------
|
|
||||||
|
|
||||||
The source of the Printer Safety Check plugin is bundled with OctoPrint and can be
|
|
||||||
found in its source repository under ``src/octoprint/plugins/printer_safety_check``.
|
|
||||||
@@ -3,10 +3,14 @@
|
|||||||
Software Update Plugin
|
Software Update Plugin
|
||||||
======================
|
======================
|
||||||
|
|
||||||
|
.. versionadded:: 1.2.0
|
||||||
|
|
||||||
The Software Update Plugin allows receiving notifications about new releases
|
The Software Update Plugin allows receiving notifications about new releases
|
||||||
of OctoPrint or installed plugins which registered with it and -- if properly
|
of OctoPrint or installed plugins which registered with it and -- if properly
|
||||||
configured -- also applying the found updates.
|
configured -- also applying the found updates.
|
||||||
|
|
||||||
|
It comes bundled with OctoPrint.
|
||||||
|
|
||||||
.. _sec-bundledplugins-softwareupdate-firststeps:
|
.. _sec-bundledplugins-softwareupdate-firststeps:
|
||||||
|
|
||||||
First Steps
|
First Steps
|
||||||
@@ -24,7 +28,7 @@ Settings Dialog, navigate to the Software Update section therein and once you ar
|
|||||||
wrench icon in the upper right corner.
|
wrench icon in the upper right corner.
|
||||||
|
|
||||||
.. _fig-bundledplugins-softwareupdate-plugin-configuration:
|
.. _fig-bundledplugins-softwareupdate-plugin-configuration:
|
||||||
.. figure:: ../images/bundledplugins-softwareupdate-plugin-configuration.png
|
.. figure:: ../images/bundledplugins-softwareupdate-configuration.png
|
||||||
:align: center
|
:align: center
|
||||||
:alt: Software Update plugin configuration dialog
|
:alt: Software Update plugin configuration dialog
|
||||||
|
|
||||||
@@ -34,21 +38,25 @@ There you can adjust the following settings:
|
|||||||
|
|
||||||
* **OctoPrint version tracking**: Whether you want to track OctoPrint *releases* or every *commit*. Usually you want to
|
* **OctoPrint version tracking**: Whether you want to track OctoPrint *releases* or every *commit*. Usually you want to
|
||||||
select "Release" here which is also the default, unless you are a developer.
|
select "Release" here which is also the default, unless you are a developer.
|
||||||
* **OctoPrint Release Channel** (if tracking releases): The release channel of OctoPrint to track for updates. If you only want stable versions,
|
* **Tracked branch** (if tracking is set to "Github Commit"): The branch that will be tracked if you set version tracking to "Github Commit".
|
||||||
select "Stable" here which is also the default. "Maintenance RCs" will also allow you to update to maintenance release
|
* **OctoPrint ``pip`` target** (if tracking is set to "Release" or "Github Commit"): The argument that will be provided to ``pip`` when updating OctoPrint.
|
||||||
candidates, "Devel RCs" will also allow you to update to development release candidates. If in doubt, leave it at
|
Usually you don't want to change this from its default value of ``https://github.com/OctoPrint/OctoPrint/archive/{target_version}.zip``.
|
||||||
"Stable". `Read more about Release Channels here <https://github.com/foosel/OctoPrint/wiki/Using-Release-Channels>`_.
|
* **OctoPrint checkout folder** (if tracking is set to "Local checkout"): This must be the path to OctoPrint's git checkout folder
|
||||||
* **OctoPrint checkout folder** (if tracking git commits): This must be the path to OctoPrint's git checkout folder
|
(``/home/pi/OctoPrint`` for OctoPi or `manual installs following the Raspberry Pi setup guide <https://community.octoprint.org/t/setting-up-octoprint-on-a-raspberry-pi-running-raspbian/2337/>`_).
|
||||||
(``/home/pi/OctoPrint`` for OctoPi or `manual installs following the Raspberry Pi setup guide <https://github.com/foosel/OctoPrint/wiki/Setup-on-a-Raspberry-Pi-running-Raspbian>`_).
|
|
||||||
Note that since OctoPrint 1.3.6 you will no longer need to set this to be able to update to releases, only if you
|
Note that since OctoPrint 1.3.6 you will no longer need to set this to be able to update to releases, only if you
|
||||||
want to be able to update against some bleeding edge git branch.
|
want to be able to update against some bleeding edge git branch.
|
||||||
|
* **Enable ``pip`` update checks**: Whether to have OctoPrint automatically check for updates of
|
||||||
|
the ``pip`` tool that is used for updating most components.
|
||||||
* **Version cache TTL**: The "time to live" of the cache OctoPrint will use to temporarily persist the version information
|
* **Version cache TTL**: The "time to live" of the cache OctoPrint will use to temporarily persist the version information
|
||||||
for the various components registered with the plugin, so that they don't have to be queried from the internet every time
|
for the various components registered with the plugin, so that they don't have to be queried from the internet every time
|
||||||
you load the page. Defaults to 24h, you usually shouldn't need to change that value.
|
you load the page. Defaults to 24h, you usually shouldn't need to change that value.
|
||||||
|
* **Show notifications to users**: Whether to display update notifications (without "Update now" button) to users that cannot
|
||||||
|
apply updates.
|
||||||
|
* **Minimum free disk space**: The minimum amount of free disk space needed in order to allow software updates to be run.
|
||||||
|
|
||||||
More settings are available by :ref:`editing the corresponding section in config.yaml <sec-bundledplugins-softwareupdate-configuration>`.
|
More settings are available by :ref:`editing the corresponding section in config.yaml <sec-bundledplugins-softwareupdate-configuration>`.
|
||||||
|
|
||||||
That restart commands for OctoPrint and the whole server can be configured under Settings > Server.
|
Restart commands for OctoPrint and the whole server can be configured under Settings > Server.
|
||||||
|
|
||||||
.. _sec-bundledplugins-softwareupdate-cli:
|
.. _sec-bundledplugins-softwareupdate-cli:
|
||||||
|
|
||||||
@@ -119,9 +127,6 @@ Configuring the Plugin
|
|||||||
|
|
||||||
plugins:
|
plugins:
|
||||||
softwareupdate:
|
softwareupdate:
|
||||||
# the time-to-live of the version cache, in minutes
|
|
||||||
cache_ttl: 60
|
|
||||||
|
|
||||||
# configured version check and update methods
|
# configured version check and update methods
|
||||||
checks:
|
checks:
|
||||||
# "octoprint" is reserved for OctoPrint
|
# "octoprint" is reserved for OctoPrint
|
||||||
@@ -133,7 +138,7 @@ Configuring the Plugin
|
|||||||
user: foosel
|
user: foosel
|
||||||
repo: OctoPrint
|
repo: OctoPrint
|
||||||
method: pip
|
method: pip
|
||||||
pip: 'https://github.com/foosel/OctoPrint/archive/{target_version}.zip'
|
pip: 'https://github.com/OctoPrint/OctoPrint/archive/{target_version}.zip'
|
||||||
|
|
||||||
# further checks may be defined here
|
# further checks may be defined here
|
||||||
|
|
||||||
@@ -141,11 +146,49 @@ Configuring the Plugin
|
|||||||
# used - should normally NOT be necessary and hence set
|
# used - should normally NOT be necessary and hence set
|
||||||
pip_command: /path/to/pip
|
pip_command: /path/to/pip
|
||||||
|
|
||||||
|
# the time-to-live of the version cache, in minutes, defaults to 24h
|
||||||
|
cache_ttl: 1440
|
||||||
|
|
||||||
|
# whether to show update notifications to users that cannot apply updates
|
||||||
|
notify_users: true
|
||||||
|
|
||||||
|
# whether to ignore the system throttled state reported by the pisupport plugin and
|
||||||
|
# allow updating even when the system is not running stable - really not recommended
|
||||||
|
ignore_throttled: false
|
||||||
|
|
||||||
|
# minimum free storage in MB for updates to be enabled
|
||||||
|
minimum_free_storage: 150
|
||||||
|
|
||||||
|
# URL from which to fetch check overlays
|
||||||
|
check_overlay_url: https://plugins.octoprint.org/update_check_overlay.json
|
||||||
|
|
||||||
|
# time to live of the overlay cache, defaults to 6h
|
||||||
|
check_overlay_ttl: 360
|
||||||
|
|
||||||
|
# global credentials to provide to version checks
|
||||||
|
credentials:
|
||||||
|
|
||||||
|
# GitHub API token to use for the github_release and github_commit version checks.
|
||||||
|
# Helpful if you regularly run into rate limit issues with the GitHub API using
|
||||||
|
# the default anonymous access. Use a personal access token:
|
||||||
|
# https://docs.github.com/en/free-pro-team@latest/github/authenticating-to-github/creating-a-personal-access-token
|
||||||
|
# Unset by default
|
||||||
|
github:
|
||||||
|
|
||||||
|
# Bitbucket user name and password, used by the bitbucket_commit version check if
|
||||||
|
# provided, but only if the check doesn't specify credentials on its own.
|
||||||
|
# Unset by default
|
||||||
|
bitbucket_user:
|
||||||
|
bitbucket_password:
|
||||||
|
|
||||||
.. _sec-bundledplugins-softwareupdate-configuration-versionchecks:
|
.. _sec-bundledplugins-softwareupdate-configuration-versionchecks:
|
||||||
|
|
||||||
Version checks
|
Version checks
|
||||||
++++++++++++++
|
++++++++++++++
|
||||||
|
|
||||||
|
Version check types are configured through the ``type`` parameter. The following
|
||||||
|
types are currently recognized:
|
||||||
|
|
||||||
* ``github_release``: Checks against releases published on Github. Additional
|
* ``github_release``: Checks against releases published on Github. Additional
|
||||||
config parameters:
|
config parameters:
|
||||||
|
|
||||||
@@ -153,10 +196,33 @@ Version checks
|
|||||||
* ``repo``: (mandatory) Github repository to check
|
* ``repo``: (mandatory) Github repository to check
|
||||||
* ``prerelease``: ``True`` or ``False``, default ``False``, set to
|
* ``prerelease``: ``True`` or ``False``, default ``False``, set to
|
||||||
``True`` to also include releases on Github marked as prerelease.
|
``True`` to also include releases on Github marked as prerelease.
|
||||||
* ``release_branch``: Branch name to check against ``target_comittish``
|
* ``prerelease_branches``: Prerelease channel definitions, optional. List of:
|
||||||
field in Github release data - release will only be included if the
|
|
||||||
values match. Defaults to being unset, in which case no match will
|
* ``branch``: Branch associated with the channel, acts as ID
|
||||||
be performed.
|
* ``name``: Human readable name of the release channel
|
||||||
|
* ``commitish``: List of values to check against ``target_commitish``
|
||||||
|
field in Github release data - release will only be included if the
|
||||||
|
values match. Defaults to being unset, in which case the ``branch``
|
||||||
|
will be matched.
|
||||||
|
|
||||||
|
.. versionadded:: 1.2.16
|
||||||
|
* ``stable_branch``: Stable channel definition, optional. Structure:
|
||||||
|
|
||||||
|
* ``branch``: Branch associated with the channel, acts as ID
|
||||||
|
* ``name``: Human readable name of the release channel
|
||||||
|
* ``commitish``: List of values to check against ``target_commitish``
|
||||||
|
field in Github release data - release will only be included if the
|
||||||
|
values match. Defaults to being unset, in which case the ``branch``
|
||||||
|
will be matched.
|
||||||
|
|
||||||
|
.. versionadded:: 1.2.16
|
||||||
|
* ``prerelease_channel``: Release channel to limit updates to. If set only
|
||||||
|
those releases will be included if their ``target_commitish`` matches
|
||||||
|
the ones associated with the release channel identified by this, either
|
||||||
|
included in ``prerelease_channels`` or the ``stable_channel``. Only
|
||||||
|
taken into account if ``prerelease`` is ``true``.
|
||||||
|
.. versionadded:: 1.2.16
|
||||||
|
|
||||||
* ``release_compare``: Method to use to compare between current version
|
* ``release_compare``: Method to use to compare between current version
|
||||||
information and release versions on Github. One of ``python`` (version
|
information and release versions on Github. One of ``python`` (version
|
||||||
comparison using ``pkg_resources.parse_version``, newer version detected
|
comparison using ``pkg_resources.parse_version``, newer version detected
|
||||||
@@ -190,12 +256,42 @@ Version checks
|
|||||||
``api_user`` to be set. **Important**: Never use your actual Bitbucket login password. Generate
|
``api_user`` to be set. **Important**: Never use your actual Bitbucket login password. Generate
|
||||||
a new app password. App passwords are user specific on Bitbucket.
|
a new app password. App passwords are user specific on Bitbucket.
|
||||||
|
|
||||||
|
.. versionadded:: 1.3.5
|
||||||
|
|
||||||
* ``git_commit``: Checks a local git repository for new commits on its
|
* ``git_commit``: Checks a local git repository for new commits on its
|
||||||
configured remote. Additional config parameters:
|
configured remote. Additional config parameters:
|
||||||
|
|
||||||
* ``checkout_folder``: (mandatory) The full path to the folder with a valid git
|
* ``checkout_folder``: (mandatory) The full path to the folder with a valid git
|
||||||
repository to check.
|
repository to check.
|
||||||
|
|
||||||
|
* ``pypi_release``: Checks `pypi.org <https://pypi.org>`_ for new releases of a specified package. Additional
|
||||||
|
config parameters:
|
||||||
|
|
||||||
|
* ``package``: (mandatory) Name of the package which to check.
|
||||||
|
|
||||||
|
.. versionadded:: 1.4.0
|
||||||
|
|
||||||
|
* ``httpheader``: Checks an HTTP header on a defined URL for changes. This can be used for easy checks
|
||||||
|
against things like ``ETag`` or ``Last-Modified`` headers. Additional
|
||||||
|
config parameters:
|
||||||
|
|
||||||
|
* ``header_url`` or ``url``: (mandatory) URL to check. ``url`` can be used to avoid duplication in case of updater
|
||||||
|
methods such as ``single_file_plugin``.
|
||||||
|
* ``header_name``: (mandatory) HTTP header to check, case-insensitive, e.g. ``ETag`` or ``Last-Modified``.
|
||||||
|
* ``header_method``: HTTP request method to use for the check, defaults to ``HEAD``.
|
||||||
|
* ``header_prefix``: Prefix to use for the obtained value in the version display. If not provided ``header_name``
|
||||||
|
will be used. If set to an empty string, no prefix will be added.
|
||||||
|
|
||||||
|
.. versionadded:: 1.4.1
|
||||||
|
|
||||||
|
* ``jsondata``: Checks the provided JSON endpoint for changes. The JSON endpoint must return an object with the
|
||||||
|
property ``version``, which should contain the latest version, e.g. ``{"version":"1.2.3"}``. Additional
|
||||||
|
config parameters:
|
||||||
|
|
||||||
|
* ``jsondata``: (mandatory) URL from which to fetch the JSON data
|
||||||
|
|
||||||
|
.. versionadded:: 1.4.1
|
||||||
|
|
||||||
* ``command_line``: Uses a provided script to determine whether an update
|
* ``command_line``: Uses a provided script to determine whether an update
|
||||||
is available. Additional config parameters:
|
is available. Additional config parameters:
|
||||||
|
|
||||||
@@ -218,35 +314,63 @@ Version checks
|
|||||||
|
|
||||||
* ``current_version``: Version to report for both local and remote version.
|
* ``current_version``: Version to report for both local and remote version.
|
||||||
|
|
||||||
|
.. versionadded:: 1.3.7
|
||||||
|
|
||||||
* ``never_current``: Always reports that an update is necessary. Useful for debugging
|
* ``never_current``: Always reports that an update is necessary. Useful for debugging
|
||||||
software update mechanisms during development. Additional config parameters:
|
software update mechanisms during development. Additional config parameters:
|
||||||
|
|
||||||
* ``local_version``: Current local version. Defaults to ``1.0.0``.
|
* ``local_version``: Current local version. Defaults to ``1.0.0``.
|
||||||
* ``remote_version``: Remote version to offer update to. Defaults to ``1.0.1``.
|
* ``remote_version``: Remote version to offer update to. Defaults to ``1.0.1``.
|
||||||
|
|
||||||
|
.. versionadded:: 1.3.7
|
||||||
|
|
||||||
.. _sec-bundledplugins-softwareupdate-configuration-updatemethods:
|
.. _sec-bundledplugins-softwareupdate-configuration-updatemethods:
|
||||||
|
|
||||||
Update methods
|
Update methods
|
||||||
++++++++++++++
|
++++++++++++++
|
||||||
|
|
||||||
* ``pip``: An URL to provide to ``pip install`` in order to perform the
|
Update methods are specified via the ``method`` parameter. Some update methods are assigned implicitly
|
||||||
update. May contain a placeholder ``{target}`` which will be the most
|
through the presence of their mandatory configuration parameters. The following methods are currently
|
||||||
recent version specifier as retrieved from the update check.
|
supported:
|
||||||
* ``update_script``: A script to execute in order to perform the update. May
|
|
||||||
contain placeholders ``{target}`` (for the most recent version specified
|
* ``pip``: Update by ``pip install``ing the supplied URL. May contain a
|
||||||
as retrieved from the update check), ``{branch}`` for the branch to switch
|
placeholder ``{target}`` which will be the most recent version specifier as retrieved from the update check.
|
||||||
to to access the release, ``{folder}`` for the working directory
|
Additional config parameters:
|
||||||
of the script and ``{python}`` for the python executable OctoPrint is
|
|
||||||
running under. The working directory must be specified either by an
|
* ``pip``: The URL to use for installing. Presence implies ``method: pip``.
|
||||||
``update_folder`` setting or if the ``git_commit`` check is used its
|
|
||||||
``checkout_folder`` setting.
|
* ``single_file_plugin``: Update a single file plugin by re-downloading it from a configured URL.
|
||||||
* ``python_updater``: Can only be specified by plugins through the
|
Additional config parameters:
|
||||||
:ref:`hook <sec-bundledplugins-softwareupdate-hooks>`. A Python callable
|
|
||||||
which performs the update, see below for details.
|
* ``url``: (mandatory) The URL from which to install the single file plugin. Must be a single self contained
|
||||||
|
python file.
|
||||||
|
|
||||||
|
* ``update_script``: Update by executing a script.
|
||||||
|
Additional config parameters:
|
||||||
|
|
||||||
|
* ``update_script``: (mandatory) The path of the script to run. May
|
||||||
|
contain placeholders ``{target}`` (for the most recent version specified
|
||||||
|
as retrieved from the update check), ``{branch}`` for the branch to switch
|
||||||
|
to to access the release, ``{folder}`` for the working directory
|
||||||
|
of the script and ``{python}`` for the python executable OctoPrint is
|
||||||
|
running under. Presence implies ``method: update_script``.
|
||||||
|
* ``update_folder`` or ``checkout_folder``: (mandatory) The working directory.
|
||||||
|
``checkout_folder`` can be used to avoid duplication in case of check
|
||||||
|
types such as ``git_commit``.
|
||||||
|
|
||||||
|
* ``python_updater``: Update by executing a custom python callable.
|
||||||
|
Additional config parameters:
|
||||||
|
|
||||||
|
* ``python_updater``: (mandatory) Can only be specified by plugins through the
|
||||||
|
:ref:`hook <sec-bundledplugins-softwareupdate-hooks>`. A Python callable
|
||||||
|
which performs the update, see below for details. Presence implies ``method: python_updater``.
|
||||||
|
|
||||||
* ``sleep_a_bit``: Does nothing but block for a configurable ``duration`` and log
|
* ``sleep_a_bit``: Does nothing but block for a configurable ``duration`` and log
|
||||||
a countdown in the meantime. Useful for debugging software update mechanisms
|
a countdown in the meantime. Useful for debugging software update mechanisms
|
||||||
during development.
|
during development.
|
||||||
|
|
||||||
|
.. versionadded:: 1.3.7
|
||||||
|
|
||||||
.. note::
|
.. note::
|
||||||
|
|
||||||
To allow default configurations for multiple update methods, if more than one of
|
To allow default configurations for multiple update methods, if more than one of
|
||||||
@@ -269,7 +393,7 @@ Update methods
|
|||||||
user: foosel
|
user: foosel
|
||||||
repo: OctoPrint
|
repo: OctoPrint
|
||||||
method: pip
|
method: pip
|
||||||
pip: 'https://github.com/foosel/OctoPrint/archive/{target_version}.zip'
|
pip: 'https://github.com/OctoPrint/OctoPrint/archive/{target_version}.zip'
|
||||||
update_script: '{python} "/path/to/octoprint-update.py" --python="{python}" "{folder}" "{target}"'
|
update_script: '{python} "/path/to/octoprint-update.py" --python="{python}" "{folder}" "{target}"'
|
||||||
checkout_folder: /path/to/octoprint/checkout/folder
|
checkout_folder: /path/to/octoprint/checkout/folder
|
||||||
|
|
||||||
@@ -310,7 +434,71 @@ tracked:
|
|||||||
repo: OctoPrint-SomePlugin
|
repo: OctoPrint-SomePlugin
|
||||||
pip: 'https://github.com/someUser/OctoPrint-SomePlugin/archive/{target}.zip'
|
pip: 'https://github.com/someUser/OctoPrint-SomePlugin/archive/{target}.zip'
|
||||||
|
|
||||||
The same, but tracking all commits pushed to branch ``devel`` (thus allowing
|
The same, but declaring three release channels "Stable", "Maintenance RCs" (tagged on ``rc/maintenance`` or ``master``,
|
||||||
|
id ``rc/maintenance``) and "Devel RCs" (tagged on ``rc/maintenance``, ``rc/devel`` or ``master``, id ``rc/devel``),
|
||||||
|
but with "Stable" active:
|
||||||
|
|
||||||
|
.. code-block:: yaml
|
||||||
|
|
||||||
|
plugins:
|
||||||
|
softwareupdate:
|
||||||
|
checks:
|
||||||
|
some_plugin:
|
||||||
|
type: github_release
|
||||||
|
user: someUser
|
||||||
|
repo: OctoPrint-SomePlugin
|
||||||
|
stable_branch:
|
||||||
|
name: Stable
|
||||||
|
branch: master
|
||||||
|
commitish:
|
||||||
|
- master
|
||||||
|
prerelease_branches:
|
||||||
|
- name: Maintenance RCs
|
||||||
|
branch: rc/maintenance
|
||||||
|
commitish:
|
||||||
|
- rc/maintenance
|
||||||
|
- master
|
||||||
|
- name: Devel RCs
|
||||||
|
branch: rc/devel
|
||||||
|
commitish:
|
||||||
|
- rc/devel
|
||||||
|
- rc/maintenance
|
||||||
|
- master
|
||||||
|
pip: 'https://github.com/someUser/OctoPrint-SomePlugin/archive/{target}.zip'
|
||||||
|
|
||||||
|
And now with "Maintenance RCs" active (note the ``prerelease`` and ``prerelease_channel`` settings):
|
||||||
|
|
||||||
|
.. code-block:: yaml
|
||||||
|
|
||||||
|
plugins:
|
||||||
|
softwareupdate:
|
||||||
|
checks:
|
||||||
|
some_plugin:
|
||||||
|
type: github_release
|
||||||
|
user: someUser
|
||||||
|
repo: OctoPrint-SomePlugin
|
||||||
|
stable_branch:
|
||||||
|
name: Stable
|
||||||
|
branch: master
|
||||||
|
commitish:
|
||||||
|
- master
|
||||||
|
prerelease_branches:
|
||||||
|
- name: Maintenance RCs
|
||||||
|
branch: rc/maintenance
|
||||||
|
commitish:
|
||||||
|
- rc/maintenance
|
||||||
|
- master
|
||||||
|
- name: Devel RCs
|
||||||
|
branch: rc/devel
|
||||||
|
commitish:
|
||||||
|
- rc/devel
|
||||||
|
- rc/maintenance
|
||||||
|
- master
|
||||||
|
prerelease: True
|
||||||
|
prerelease_channel: rc/maintenance
|
||||||
|
pip: 'https://github.com/someUser/OctoPrint-SomePlugin/archive/{target}.zip'
|
||||||
|
|
||||||
|
The same plugin again, but tracking all commits pushed to branch ``devel`` (thus allowing
|
||||||
"bleeding edge" updates):
|
"bleeding edge" updates):
|
||||||
|
|
||||||
.. code-block:: yaml
|
.. code-block:: yaml
|
||||||
@@ -325,6 +513,59 @@ The same, but tracking all commits pushed to branch ``devel`` (thus allowing
|
|||||||
branch: devel
|
branch: devel
|
||||||
pip: 'https://github.com/someUser/OctoPrint-SomePlugin/archive/{target}.zip'
|
pip: 'https://github.com/someUser/OctoPrint-SomePlugin/archive/{target}.zip'
|
||||||
|
|
||||||
|
Single file plugin hosted in a gist ``https://gist.github.com/someUser/somegist`` and updated whenever there are changes:
|
||||||
|
|
||||||
|
.. code-block:: yaml
|
||||||
|
|
||||||
|
plugins:
|
||||||
|
softwareupdate:
|
||||||
|
checks:
|
||||||
|
some_plugin:
|
||||||
|
type: httpheader
|
||||||
|
header_name: ETag
|
||||||
|
url: 'https://gist.github.com/someUser/somegist/raw/some_plugin.py'
|
||||||
|
method: single_file_plugin
|
||||||
|
|
||||||
|
The same but updated when a ``version.json`` hosted alongside gets updated with a new version can be found at
|
||||||
|
|
||||||
|
.. code-block:: yaml
|
||||||
|
|
||||||
|
plugins:
|
||||||
|
softwareupdate:
|
||||||
|
checks:
|
||||||
|
some_plugin:
|
||||||
|
type: jsondata
|
||||||
|
jsondata: 'https://gist.github.com/someUser/somegist/raw/version.json'
|
||||||
|
url: 'https://gist.github.com/someUser/somegist/raw/some_plugin.py'
|
||||||
|
method: single_file_plugin
|
||||||
|
|
||||||
|
Note that for gist hosted single file plugins, you need to use the "Raw" install link but should remove the
|
||||||
|
commit identifier. E.g. ``https://gist.githubusercontent.com/<user>/<gistid>/raw/my_plugin.py`` instead of
|
||||||
|
``https://gist.githubusercontent.com/<user>/<gistid>/raw/<commit>/my_plugin.py``. Note that these URLs will
|
||||||
|
be cached by Github for a bit, so an update will not be immediately picked up.
|
||||||
|
|
||||||
|
.. _sec-bundledplugins-softwareupdate-configuration-credentials:
|
||||||
|
|
||||||
|
Global credentials
|
||||||
|
++++++++++++++++++
|
||||||
|
|
||||||
|
.. versionadded:: 1.5.0
|
||||||
|
|
||||||
|
Starting with OctoPrint 1.5.0, the Software Update Plugin supports supplyting a GitHub
|
||||||
|
API token to use for the ``github_release`` and ``github_commit`` version check types,
|
||||||
|
to work around possible rate limit problems if a lot of checks are to be made from a single
|
||||||
|
external IP. You may create a `personal access token <https://docs.github.com/en/free-pro-team@latest/github/authenticating-to-github/creating-a-personal-access-token>`_
|
||||||
|
and configure that as ``plugins.softwareupdate.credentials.github`` via
|
||||||
|
:ref:`config.yaml <sec-configuration-config_yaml>` in order to get a higher rate limit than with purely anonymous access.
|
||||||
|
|
||||||
|
Additionally, the username and password to use with the ``bitbucket_commit`` version check
|
||||||
|
type may also be configured via ``plugins.softwareupdate.credentials.bitbucket_user`` and
|
||||||
|
``plugins.softwareupdate.credentials.bitbucket_password`` respectively.
|
||||||
|
|
||||||
|
None of these configuration options are currently exposed on the UI and can only be used
|
||||||
|
via :ref:`config.yaml <sec-configuration-config_yaml>` or the
|
||||||
|
:ref:`config command line interface <sec-configuration-cli>`.
|
||||||
|
|
||||||
.. _sec-bundledplugins-softwareupdate-events:
|
.. _sec-bundledplugins-softwareupdate-events:
|
||||||
|
|
||||||
Events
|
Events
|
||||||
@@ -385,9 +626,6 @@ octoprint.plugin.softwareupdate.check_config
|
|||||||
|
|
||||||
.. code-block:: python
|
.. code-block:: python
|
||||||
|
|
||||||
# -*- coding: utf-8 -*-
|
|
||||||
from __future__ import absolute_import, unicode_literals
|
|
||||||
|
|
||||||
def get_update_information(*args, **kwargs):
|
def get_update_information(*args, **kwargs):
|
||||||
return dict(
|
return dict(
|
||||||
updateplugindemo=dict(
|
updateplugindemo=dict(
|
||||||
|
|||||||
@@ -3,6 +3,8 @@
|
|||||||
Anonymous Usage Tracking Plugin
|
Anonymous Usage Tracking Plugin
|
||||||
===============================
|
===============================
|
||||||
|
|
||||||
|
.. versionadded:: 1.3.10
|
||||||
|
|
||||||
The Anonymous Usage Tracking plugin provides valuable insights into how many instances running what versions of
|
The Anonymous Usage Tracking plugin provides valuable insights into how many instances running what versions of
|
||||||
OctoPrint are out there, whether they are successfully completing print jobs and various other metrics.
|
OctoPrint are out there, whether they are successfully completing print jobs and various other metrics.
|
||||||
|
|
||||||
@@ -33,7 +35,7 @@ The plugin supports the following configuration keys:
|
|||||||
* ``plugin``: Whether to track plugin related events (install, uninstall, ...)
|
* ``plugin``: Whether to track plugin related events (install, uninstall, ...)
|
||||||
* ``update``: Whether to track update related events (update successful or not, ...)
|
* ``update``: Whether to track update related events (update successful or not, ...)
|
||||||
* ``printer``: Whether to track printer related events (connected, firmware, ...)
|
* ``printer``: Whether to track printer related events (connected, firmware, ...)
|
||||||
* ``printer_safety_check``: Whether to track warnings of the :ref:`Printer Safety Check <sec-bundledplugins-printer_safety_check>`
|
* ``printer_safety_check``: Whether to track warnings of the Printer Safety Check plugin
|
||||||
* ``throttled``: Whether to track throttle events detected on the underlying system
|
* ``throttled``: Whether to track throttle events detected on the underlying system
|
||||||
|
|
||||||
.. _sec-bundledplugins-tracking-sourcecode:
|
.. _sec-bundledplugins-tracking-sourcecode:
|
||||||
|
|||||||
@@ -0,0 +1,28 @@
|
|||||||
|
.. _sec-bundledplugins-virtual_printer:
|
||||||
|
|
||||||
|
Virtual Printer
|
||||||
|
===============
|
||||||
|
|
||||||
|
.. versionchanged:: 1.4.1
|
||||||
|
|
||||||
|
The Virtual Printer plugin provides a virtual printer to connect to during development. It is able to simulate various
|
||||||
|
firmware quirks, communication issues and can be heavily configured through ``config.yaml``. See
|
||||||
|
:ref:`the development documentation on details and usage <sec-development-virtual-printer>`.
|
||||||
|
|
||||||
|
The virtual printer has been included in OctoPrint ever since the first releases back in 2013, however as of
|
||||||
|
OctoPrint 1.4.1 it has finally been fully extracted into its own bundled plugin.
|
||||||
|
|
||||||
|
.. _sec-bundledplugins-virtual_printer-configuration:
|
||||||
|
|
||||||
|
Configuring the plugin
|
||||||
|
----------------------
|
||||||
|
|
||||||
|
Please refer to :ref:`the development documentation <sec-development-virtual-printer-config>`.
|
||||||
|
|
||||||
|
.. _sec-bundledplugins-virtual_printer-sourcecode:
|
||||||
|
|
||||||
|
Source Code
|
||||||
|
-----------
|
||||||
|
|
||||||
|
The source of the Virtual Printer plugin is bundled with OctoPrint and can be
|
||||||
|
found in its source repository under ``src/octoprint/plugins/virtual_printer``.
|
||||||
+91
-76
@@ -1,7 +1,3 @@
|
|||||||
# -*- coding: utf-8 -*-
|
|
||||||
from __future__ import absolute_import, division, print_function, unicode_literals
|
|
||||||
|
|
||||||
#
|
|
||||||
# OctoPrint documentation build configuration file, created by
|
# OctoPrint documentation build configuration file, created by
|
||||||
# sphinx-quickstart on Mon Dec 02 17:08:50 2013.
|
# sphinx-quickstart on Mon Dec 02 17:08:50 2013.
|
||||||
#
|
#
|
||||||
@@ -18,8 +14,8 @@ import sys, os
|
|||||||
# If extensions (or modules to document with autodoc) are in another directory,
|
# If extensions (or modules to document with autodoc) are in another directory,
|
||||||
# add these directories to sys.path here. If the directory is relative to the
|
# add these directories to sys.path here. If the directory is relative to the
|
||||||
# documentation root, use os.path.abspath to make it absolute, like shown here.
|
# documentation root, use os.path.abspath to make it absolute, like shown here.
|
||||||
sys.path.insert(0, os.path.abspath('../src/'))
|
sys.path.insert(0, os.path.abspath("../src/"))
|
||||||
sys.path.append(os.path.abspath('sphinxext'))
|
sys.path.append(os.path.abspath("sphinxext"))
|
||||||
|
|
||||||
import octoprint._version
|
import octoprint._version
|
||||||
from datetime import date
|
from datetime import date
|
||||||
@@ -30,29 +26,43 @@ year_current = date.today().year
|
|||||||
# -- General configuration -----------------------------------------------------
|
# -- General configuration -----------------------------------------------------
|
||||||
|
|
||||||
# If your documentation needs a minimal Sphinx version, state it here.
|
# If your documentation needs a minimal Sphinx version, state it here.
|
||||||
needs_sphinx = '1.3'
|
needs_sphinx = "1.3"
|
||||||
|
|
||||||
# Add any Sphinx extension module names here, as strings. They can be extensions
|
# Add any Sphinx extension module names here, as strings. They can be extensions
|
||||||
# coming with Sphinx (named 'sphinx.ext.*') or your custom ones.
|
# coming with Sphinx (named 'sphinx.ext.*') or your custom ones.
|
||||||
extensions = ['codeblockext', 'onlineinclude', 'sphinx.ext.todo', 'sphinx.ext.autodoc', 'sphinxcontrib.httpdomain',
|
extensions = [
|
||||||
'sphinx.ext.napoleon', 'sphinxcontrib.mermaid']
|
"codeblockext",
|
||||||
|
"onlineinclude",
|
||||||
|
"sphinx.ext.todo",
|
||||||
|
"sphinx.ext.autodoc",
|
||||||
|
"sphinxcontrib.httpdomain",
|
||||||
|
"sphinx.ext.napoleon",
|
||||||
|
"sphinxcontrib.mermaid",
|
||||||
|
"sphinx.ext.intersphinx",
|
||||||
|
]
|
||||||
todo_include_todos = True
|
todo_include_todos = True
|
||||||
|
intersphinx_mapping = {'python': ('https://docs.python.org/3', None),
|
||||||
|
'pyserial': ('https://pythonhosted.org/pyserial', None)}
|
||||||
|
|
||||||
# Add any paths that contain templates here, relative to this directory.
|
# Add any paths that contain templates here, relative to this directory.
|
||||||
templates_path = ['_templates']
|
templates_path = ["_templates"]
|
||||||
|
|
||||||
# The suffix of source filenames.
|
# The suffix of source filenames.
|
||||||
source_suffix = '.rst'
|
source_suffix = ".rst"
|
||||||
|
|
||||||
# The encoding of source files.
|
# The encoding of source files.
|
||||||
#source_encoding = 'utf-8-sig'
|
# source_encoding = 'utf-8-sig'
|
||||||
|
|
||||||
# The master toctree document.
|
# The master toctree document.
|
||||||
master_doc = 'index'
|
master_doc = "index"
|
||||||
|
|
||||||
# General information about the project.
|
# General information about the project.
|
||||||
project = 'OctoPrint'
|
project = "OctoPrint"
|
||||||
copyright = '%d-%d, Gina Häußge' % (year_since, year_current) if year_current > year_since else '%d, Gina Häußge' % year_since
|
copyright = (
|
||||||
|
"%d-%d, Gina Häußge" % (year_since, year_current)
|
||||||
|
if year_current > year_since
|
||||||
|
else "%d, Gina Häußge" % year_since
|
||||||
|
)
|
||||||
|
|
||||||
# The version info for the project you're documenting, acts as replacement for
|
# The version info for the project you're documenting, acts as replacement for
|
||||||
# |version| and |release|, also used in various other places throughout the
|
# |version| and |release|, also used in various other places throughout the
|
||||||
@@ -65,137 +75,139 @@ release = version
|
|||||||
|
|
||||||
# The language for content autogenerated by Sphinx. Refer to documentation
|
# The language for content autogenerated by Sphinx. Refer to documentation
|
||||||
# for a list of supported languages.
|
# for a list of supported languages.
|
||||||
#language = None
|
# language = None
|
||||||
|
|
||||||
# There are two options for replacing |today|: either, you set today to some
|
# There are two options for replacing |today|: either, you set today to some
|
||||||
# non-false value, then it is used:
|
# non-false value, then it is used:
|
||||||
#today = ''
|
# today = ''
|
||||||
# Else, today_fmt is used as the format for a strftime call.
|
# Else, today_fmt is used as the format for a strftime call.
|
||||||
#today_fmt = '%B %d, %Y'
|
# today_fmt = '%B %d, %Y'
|
||||||
|
|
||||||
# List of patterns, relative to source directory, that match files and
|
# List of patterns, relative to source directory, that match files and
|
||||||
# directories to ignore when looking for source files.
|
# directories to ignore when looking for source files.
|
||||||
exclude_patterns = ['_build']
|
exclude_patterns = ["_build"]
|
||||||
|
|
||||||
# The reST default role (used for this markup: `text`) to use for all documents.
|
# The reST default role (used for this markup: `text`) to use for all documents.
|
||||||
#default_role = None
|
# default_role = None
|
||||||
|
|
||||||
# If true, '()' will be appended to :func: etc. cross-reference text.
|
# If true, '()' will be appended to :func: etc. cross-reference text.
|
||||||
#add_function_parentheses = True
|
# add_function_parentheses = True
|
||||||
|
|
||||||
# If true, the current module name will be prepended to all description
|
# If true, the current module name will be prepended to all description
|
||||||
# unit titles (such as .. function::).
|
# unit titles (such as .. function::).
|
||||||
#add_module_names = True
|
# add_module_names = True
|
||||||
|
|
||||||
# If true, sectionauthor and moduleauthor directives will be shown in the
|
# If true, sectionauthor and moduleauthor directives will be shown in the
|
||||||
# output. They are ignored by default.
|
# output. They are ignored by default.
|
||||||
#show_authors = False
|
# show_authors = False
|
||||||
|
|
||||||
# The name of the Pygments (syntax highlighting) style to use.
|
# The name of the Pygments (syntax highlighting) style to use.
|
||||||
pygments_style = 'sphinx'
|
pygments_style = "sphinx"
|
||||||
|
|
||||||
# A list of ignored prefixes for module index sorting.
|
# A list of ignored prefixes for module index sorting.
|
||||||
#modindex_common_prefix = []
|
# modindex_common_prefix = []
|
||||||
|
|
||||||
# If true, keep warnings as "system message" paragraphs in the built documents.
|
# If true, keep warnings as "system message" paragraphs in the built documents.
|
||||||
#keep_warnings = False
|
# keep_warnings = False
|
||||||
|
|
||||||
numfig = True
|
numfig = True
|
||||||
|
|
||||||
|
mermaid_version = ""
|
||||||
|
|
||||||
# -- Options for HTML output ---------------------------------------------------
|
# -- Options for HTML output ---------------------------------------------------
|
||||||
|
|
||||||
# on_rtd is whether we are on readthedocs.org, this line of code grabbed from docs.readthedocs.org
|
import sphinx_rtd_theme
|
||||||
on_rtd = os.environ.get('READTHEDOCS', None) == 'True'
|
|
||||||
|
|
||||||
if not on_rtd: # only import and set the theme if we're building docs locally
|
html_theme = "sphinx_rtd_theme"
|
||||||
import sphinx_rtd_theme
|
html_theme_path = [sphinx_rtd_theme.get_html_theme_path()]
|
||||||
html_theme = 'sphinx_rtd_theme'
|
|
||||||
html_theme_path = [sphinx_rtd_theme.get_html_theme_path()]
|
|
||||||
|
|
||||||
# The theme to use for HTML and HTML Help pages. See the documentation for
|
# The theme to use for HTML and HTML Help pages. See the documentation for
|
||||||
# a list of built-in themes.
|
# a list of built-in themes.
|
||||||
#html_theme = "sphinx_rtd_theme"
|
# html_theme = "sphinx_rtd_theme"
|
||||||
|
|
||||||
# Theme options are theme-specific and customize the look and feel of a theme
|
# Theme options are theme-specific and customize the look and feel of a theme
|
||||||
# further. For a list of options available for each theme, see the
|
# further. For a list of options available for each theme, see the
|
||||||
# documentation.
|
# documentation.
|
||||||
#html_theme_options = {}
|
# html_theme_options = {}
|
||||||
|
|
||||||
# Add any paths that contain custom themes here, relative to this directory.
|
# Add any paths that contain custom themes here, relative to this directory.
|
||||||
#html_theme_path = [sphinx_rtd_theme.get_html_theme_path()]
|
# html_theme_path = [sphinx_rtd_theme.get_html_theme_path()]
|
||||||
|
|
||||||
# The name for this set of Sphinx documents. If None, it defaults to
|
# The name for this set of Sphinx documents. If None, it defaults to
|
||||||
# "<project> v<release> documentation".
|
# "<project> v<release> documentation".
|
||||||
#html_title = None
|
# html_title = None
|
||||||
|
|
||||||
# A shorter title for the navigation bar. Default is the same as html_title.
|
# A shorter title for the navigation bar. Default is the same as html_title.
|
||||||
#html_short_title = None
|
# html_short_title = None
|
||||||
|
|
||||||
# The name of an image file (relative to this directory) to place at the top
|
# The name of an image file (relative to this directory) to place at the top
|
||||||
# of the sidebar.
|
# of the sidebar.
|
||||||
#html_logo = None
|
# html_logo = None
|
||||||
|
|
||||||
# The name of an image file (within the static path) to use as favicon of the
|
# The name of an image file (within the static path) to use as favicon of the
|
||||||
# docs. This file should be a Windows icon file (.ico) being 16x16 or 32x32
|
# docs. This file should be a Windows icon file (.ico) being 16x16 or 32x32
|
||||||
# pixels large.
|
# pixels large.
|
||||||
#html_favicon = None
|
# html_favicon = None
|
||||||
|
|
||||||
# Add any paths that contain custom static files (such as style sheets) here,
|
# Add any paths that contain custom static files (such as style sheets) here,
|
||||||
# relative to this directory. They are copied after the built-in static files,
|
# relative to this directory. They are copied after the built-in static files,
|
||||||
# so a file named "default.css" will overwrite the built-in "default.css".
|
# so a file named "default.css" will overwrite the built-in "default.css".
|
||||||
html_static_path = ['_static']
|
html_static_path = ["_static"]
|
||||||
|
|
||||||
|
|
||||||
def setup(app):
|
def setup(app):
|
||||||
app.add_stylesheet("theme_overrides.css")
|
app.add_css_file("theme_overrides.css")
|
||||||
|
app.add_js_file("mermaid.min.js")
|
||||||
|
|
||||||
|
|
||||||
# If not '', a 'Last updated on:' timestamp is inserted at every page bottom,
|
# If not '', a 'Last updated on:' timestamp is inserted at every page bottom,
|
||||||
# using the given strftime format.
|
# using the given strftime format.
|
||||||
#html_last_updated_fmt = '%b %d, %Y'
|
# html_last_updated_fmt = '%b %d, %Y'
|
||||||
|
|
||||||
# If true, SmartyPants will be used to convert quotes and dashes to
|
# If true, SmartyPants will be used to convert quotes and dashes to
|
||||||
# typographically correct entities.
|
# typographically correct entities.
|
||||||
#html_use_smartypants = True
|
# html_use_smartypants = True
|
||||||
|
|
||||||
# Custom sidebar templates, maps document names to template names.
|
# Custom sidebar templates, maps document names to template names.
|
||||||
#html_sidebars = {}
|
# html_sidebars = {}
|
||||||
|
|
||||||
# Additional templates that should be rendered to pages, maps page names to
|
# Additional templates that should be rendered to pages, maps page names to
|
||||||
# template names.
|
# template names.
|
||||||
#html_additional_pages = {}
|
# html_additional_pages = {}
|
||||||
|
|
||||||
# If false, no module index is generated.
|
# If false, no module index is generated.
|
||||||
#html_domain_indices = True
|
# html_domain_indices = True
|
||||||
|
|
||||||
# If false, no index is generated.
|
# If false, no index is generated.
|
||||||
#html_use_index = True
|
# html_use_index = True
|
||||||
|
|
||||||
# If true, the index is split into individual pages for each letter.
|
# If true, the index is split into individual pages for each letter.
|
||||||
#html_split_index = False
|
# html_split_index = False
|
||||||
|
|
||||||
# If true, links to the reST sources are added to the pages.
|
# If true, links to the reST sources are added to the pages.
|
||||||
#html_show_sourcelink = True
|
# html_show_sourcelink = True
|
||||||
|
|
||||||
# If true, "Created using Sphinx" is shown in the HTML footer. Default is True.
|
# If true, "Created using Sphinx" is shown in the HTML footer. Default is True.
|
||||||
#html_show_sphinx = True
|
# html_show_sphinx = True
|
||||||
|
|
||||||
# If true, "(C) Copyright ..." is shown in the HTML footer. Default is True.
|
# If true, "(C) Copyright ..." is shown in the HTML footer. Default is True.
|
||||||
#html_show_copyright = True
|
# html_show_copyright = True
|
||||||
|
|
||||||
# If true, an OpenSearch description file will be output, and all pages will
|
# If true, an OpenSearch description file will be output, and all pages will
|
||||||
# contain a <link> tag referring to it. The value of this option must be the
|
# contain a <link> tag referring to it. The value of this option must be the
|
||||||
# base URL from which the finished HTML is served.
|
# base URL from which the finished HTML is served.
|
||||||
#html_use_opensearch = ''
|
# html_use_opensearch = ''
|
||||||
|
|
||||||
# This is the file name suffix for HTML files (e.g. ".xhtml").
|
# This is the file name suffix for HTML files (e.g. ".xhtml").
|
||||||
#html_file_suffix = None
|
# html_file_suffix = None
|
||||||
|
|
||||||
# Output file base name for HTML help builder.
|
# Output file base name for HTML help builder.
|
||||||
htmlhelp_basename = 'OctoPrintdoc'
|
htmlhelp_basename = "OctoPrintDoc"
|
||||||
|
|
||||||
|
|
||||||
# -- Options for LaTeX output --------------------------------------------------
|
# -- Options for LaTeX output --------------------------------------------------
|
||||||
|
|
||||||
#latex_elements = {
|
# latex_elements = {
|
||||||
# The paper size ('letterpaper' or 'a4paper').
|
# The paper size ('letterpaper' or 'a4paper').
|
||||||
#'papersize': 'letterpaper',
|
#'papersize': 'letterpaper',
|
||||||
|
|
||||||
@@ -204,47 +216,44 @@ htmlhelp_basename = 'OctoPrintdoc'
|
|||||||
|
|
||||||
# Additional stuff for the LaTeX preamble.
|
# Additional stuff for the LaTeX preamble.
|
||||||
#'preamble': '',
|
#'preamble': '',
|
||||||
#}
|
# }
|
||||||
|
|
||||||
# Grouping the document tree into LaTeX files. List of tuples
|
# Grouping the document tree into LaTeX files. List of tuples
|
||||||
# (source start file, target name, title, author, documentclass [howto/manual]).
|
# (source start file, target name, title, author, documentclass [howto/manual]).
|
||||||
#latex_documents = [
|
# latex_documents = [
|
||||||
# ('index', 'OctoPrint.tex', 'OctoPrint Documentation',
|
# ('index', 'OctoPrint.tex', 'OctoPrint Documentation',
|
||||||
# 'Gina Häußge', 'manual'),
|
# 'Gina Häußge', 'manual'),
|
||||||
#]
|
# ]
|
||||||
|
|
||||||
# The name of an image file (relative to this directory) to place at the top of
|
# The name of an image file (relative to this directory) to place at the top of
|
||||||
# the title page.
|
# the title page.
|
||||||
#latex_logo = None
|
# latex_logo = None
|
||||||
|
|
||||||
# For "manual" documents, if this is true, then top-level headings are parts,
|
# For "manual" documents, if this is true, then top-level headings are parts,
|
||||||
# not chapters.
|
# not chapters.
|
||||||
#latex_use_parts = False
|
# latex_use_parts = False
|
||||||
|
|
||||||
# If true, show page references after internal links.
|
# If true, show page references after internal links.
|
||||||
#latex_show_pagerefs = False
|
# latex_show_pagerefs = False
|
||||||
|
|
||||||
# If true, show URL addresses after external links.
|
# If true, show URL addresses after external links.
|
||||||
#latex_show_urls = False
|
# latex_show_urls = False
|
||||||
|
|
||||||
# Documents to append as an appendix to all manuals.
|
# Documents to append as an appendix to all manuals.
|
||||||
#latex_appendices = []
|
# latex_appendices = []
|
||||||
|
|
||||||
# If false, no module index is generated.
|
# If false, no module index is generated.
|
||||||
#latex_domain_indices = True
|
# latex_domain_indices = True
|
||||||
|
|
||||||
|
|
||||||
# -- Options for manual page output --------------------------------------------
|
# -- Options for manual page output --------------------------------------------
|
||||||
|
|
||||||
# One entry per manual page. List of tuples
|
# One entry per manual page. List of tuples
|
||||||
# (source start file, name, description, authors, manual section).
|
# (source start file, name, description, authors, manual section).
|
||||||
man_pages = [
|
man_pages = [("index", "octoprint", "OctoPrint Documentation", ["Gina Häußge"], 1)]
|
||||||
('index', 'octoprint', 'OctoPrint Documentation',
|
|
||||||
['Gina Häußge'], 1)
|
|
||||||
]
|
|
||||||
|
|
||||||
# If true, show URL addresses after external links.
|
# If true, show URL addresses after external links.
|
||||||
#man_show_urls = False
|
# man_show_urls = False
|
||||||
|
|
||||||
|
|
||||||
# -- Options for Texinfo output ------------------------------------------------
|
# -- Options for Texinfo output ------------------------------------------------
|
||||||
@@ -253,19 +262,25 @@ man_pages = [
|
|||||||
# (source start file, target name, title, author,
|
# (source start file, target name, title, author,
|
||||||
# dir menu entry, description, category)
|
# dir menu entry, description, category)
|
||||||
texinfo_documents = [
|
texinfo_documents = [
|
||||||
('index', 'OctoPrint', 'OctoPrint Documentation',
|
(
|
||||||
'Gina Häußge', 'OctoPrint', 'One line description of project.',
|
"index",
|
||||||
'Miscellaneous'),
|
"OctoPrint",
|
||||||
|
"OctoPrint Documentation",
|
||||||
|
"Gina Häußge",
|
||||||
|
"OctoPrint",
|
||||||
|
"One line description of project.",
|
||||||
|
"Miscellaneous",
|
||||||
|
),
|
||||||
]
|
]
|
||||||
|
|
||||||
# Documents to append as an appendix to all manuals.
|
# Documents to append as an appendix to all manuals.
|
||||||
#texinfo_appendices = []
|
# texinfo_appendices = []
|
||||||
|
|
||||||
# If false, no module index is generated.
|
# If false, no module index is generated.
|
||||||
#texinfo_domain_indices = True
|
# texinfo_domain_indices = True
|
||||||
|
|
||||||
# How to display URL addresses: 'footnote', 'no', or 'inline'.
|
# How to display URL addresses: 'footnote', 'no', or 'inline'.
|
||||||
#texinfo_show_urls = 'footnote'
|
# texinfo_show_urls = 'footnote'
|
||||||
|
|
||||||
# If true, do not generate a @detailmenu in the "Top" node's menu.
|
# If true, do not generate a @detailmenu in the "Top" node's menu.
|
||||||
#texinfo_no_detailmenu = False
|
# texinfo_no_detailmenu = False
|
||||||
@@ -0,0 +1,110 @@
|
|||||||
|
.. _sec-configuration-cli:
|
||||||
|
|
||||||
|
CLI
|
||||||
|
===
|
||||||
|
|
||||||
|
.. versionadded:: 1.3.0
|
||||||
|
|
||||||
|
OctoPrint provides a basic command line interface for manipulation of :ref:`config.yaml <sec-configuration-config_yaml>`:
|
||||||
|
|
||||||
|
.. code-block::
|
||||||
|
|
||||||
|
$ octoprint config --help
|
||||||
|
Usage: octoprint config [OPTIONS] COMMAND [ARGS]...
|
||||||
|
|
||||||
|
Basic config manipulation.
|
||||||
|
|
||||||
|
Options:
|
||||||
|
--help Show this message and exit.
|
||||||
|
|
||||||
|
Commands:
|
||||||
|
append_value Appends value to list behind config path.
|
||||||
|
effective Retrieves the full effective config.
|
||||||
|
get Retrieves value from config path.
|
||||||
|
insert_value Inserts value at index of list behind config key.
|
||||||
|
remove Removes a config path.
|
||||||
|
remove_value Removes value from list at config path.
|
||||||
|
set Sets a config path to the provided value.
|
||||||
|
|
||||||
|
.. code-block::
|
||||||
|
|
||||||
|
$ octoprint config append_value --help
|
||||||
|
Usage: octoprint config append_value [OPTIONS] PATH VALUE
|
||||||
|
|
||||||
|
Appends value to list behind config path.
|
||||||
|
|
||||||
|
Options:
|
||||||
|
--json
|
||||||
|
--help Show this message and exit.
|
||||||
|
|
||||||
|
.. code-block::
|
||||||
|
|
||||||
|
$ octoprint config effective --help
|
||||||
|
Usage: octoprint config effective [OPTIONS]
|
||||||
|
|
||||||
|
Retrieves the full effective config.
|
||||||
|
|
||||||
|
Options:
|
||||||
|
--json Output value formatted as JSON
|
||||||
|
--yaml Output value formatted as YAML
|
||||||
|
--raw Output value as raw string representation
|
||||||
|
--help Show this message and exit.
|
||||||
|
|
||||||
|
.. code-block::
|
||||||
|
|
||||||
|
$ octoprint config get --help
|
||||||
|
Usage: octoprint config get [OPTIONS] PATH
|
||||||
|
|
||||||
|
Retrieves value from config path.
|
||||||
|
|
||||||
|
Options:
|
||||||
|
--json Output value formatted as JSON
|
||||||
|
--yaml Output value formatted as YAML
|
||||||
|
--raw Output value as raw string representation
|
||||||
|
--help Show this message and exit.
|
||||||
|
|
||||||
|
.. code-block::
|
||||||
|
|
||||||
|
$ octoprint config insert_value --help
|
||||||
|
Usage: octoprint config insert_value [OPTIONS] PATH INDEX VALUE
|
||||||
|
|
||||||
|
Inserts value at index of list behind config key.
|
||||||
|
|
||||||
|
Options:
|
||||||
|
--json
|
||||||
|
--help Show this message and exit.
|
||||||
|
|
||||||
|
.. code-block::
|
||||||
|
|
||||||
|
$ octoprint config remove --help
|
||||||
|
Usage: octoprint config remove [OPTIONS] PATH
|
||||||
|
|
||||||
|
Removes a config path.
|
||||||
|
|
||||||
|
Options:
|
||||||
|
--help Show this message and exit.
|
||||||
|
|
||||||
|
.. code-block::
|
||||||
|
|
||||||
|
$ octoprint config remove_value --help
|
||||||
|
Usage: octoprint config remove_value [OPTIONS] PATH VALUE
|
||||||
|
|
||||||
|
Removes value from list at config path.
|
||||||
|
|
||||||
|
Options:
|
||||||
|
--json
|
||||||
|
--help Show this message and exit.
|
||||||
|
|
||||||
|
.. code-block::
|
||||||
|
|
||||||
|
$ octoprint config set --help
|
||||||
|
Usage: octoprint config set [OPTIONS] PATH VALUE
|
||||||
|
|
||||||
|
Sets a config path to the provided value.
|
||||||
|
|
||||||
|
Options:
|
||||||
|
--bool Interpret value as bool
|
||||||
|
--float Interpret value as float
|
||||||
|
--int Interpret value as int
|
||||||
|
--json Parse value from json
|
||||||
|
--help Show this message and exit.
|
||||||
+101
-180
@@ -5,11 +5,12 @@ config.yaml
|
|||||||
|
|
||||||
If not specified via the command line, the main configuration file ``config.yaml`` for OctoPrint is expected in its
|
If not specified via the command line, the main configuration file ``config.yaml`` for OctoPrint is expected in its
|
||||||
settings folder, which unless defined differently via the command line is located at ``~/.octoprint`` on Linux, at
|
settings folder, which unless defined differently via the command line is located at ``~/.octoprint`` on Linux, at
|
||||||
``%APPDATA%/OctoPrint`` on Windows and at ``~/Library/Application Support/OctoPrint`` on MacOS. If the file is not there,
|
``%APPDATA%/OctoPrint`` on Windows and at ``~/Library/Application Support/OctoPrint`` on macOS. If the file is not there,
|
||||||
you can just create it - it will only get created by OctoPrint once you save settings that deviate from the default
|
you can just create it - it will only get created by OctoPrint once you save settings that deviate from the default
|
||||||
settings.
|
settings.
|
||||||
|
|
||||||
Note that many of these settings are available from the "Settings" menu in OctoPrint itself.
|
Note that many of these settings are available from the "Settings" menu in OctoPrint itself.
|
||||||
|
They can also be configured via :ref:`config command line interface <sec-configuration-cli>`.
|
||||||
|
|
||||||
.. contents::
|
.. contents::
|
||||||
|
|
||||||
@@ -23,16 +24,13 @@ Use the following settings to enable access control:
|
|||||||
.. code-block:: yaml
|
.. code-block:: yaml
|
||||||
|
|
||||||
accessControl:
|
accessControl:
|
||||||
# whether to enable access control or not. Defaults to true
|
|
||||||
enabled: true
|
|
||||||
|
|
||||||
# The user manager implementation to use for accessing user information. Currently only a filebased
|
# The user manager implementation to use for accessing user information. Currently only a filebased
|
||||||
# user manager is implemented which stores configured accounts in a YAML file (Default: users.yaml
|
# user manager is implemented which stores configured accounts in a YAML file (Default: users.yaml
|
||||||
# in the default configuration folder, see below)
|
# in the default configuration folder, see below)
|
||||||
userManager: octoprint.access.users.FilebasedUserManager
|
userManager: octoprint.access.users.FilebasedUserManager
|
||||||
|
|
||||||
# The YAML user file to use. If left out defaults to users.yaml in the default configuration folder.
|
# The YAML user file to use. If left out defaults to users.yaml in the default configuration folder.
|
||||||
userFile: /path/to/users.yaml
|
userfile: /path/to/users.yaml
|
||||||
|
|
||||||
# If set to true, will automatically log on clients originating from any of the networks defined in
|
# If set to true, will automatically log on clients originating from any of the networks defined in
|
||||||
# "localNetworks" as the user defined in "autologinAs". Defaults to false.
|
# "localNetworks" as the user defined in "autologinAs". Defaults to false.
|
||||||
@@ -74,6 +72,10 @@ Use the following settings to enable access control:
|
|||||||
# If a remote user is not found, add them. Use this only if all users from the remote system can use OctoPrint.
|
# If a remote user is not found, add them. Use this only if all users from the remote system can use OctoPrint.
|
||||||
addRemoteUsers: false
|
addRemoteUsers: false
|
||||||
|
|
||||||
|
# Secret salt used for password hashing, DO NOT TOUCH. If changed you will no longer be able to log in with your
|
||||||
|
# existing accounts.
|
||||||
|
salt: someSecretSalt
|
||||||
|
|
||||||
.. _sec-configuration-config_yaml-api:
|
.. _sec-configuration-config_yaml-api:
|
||||||
|
|
||||||
API
|
API
|
||||||
@@ -123,6 +125,10 @@ appearance or to modify the order and presence of the various UI components:
|
|||||||
# acrylic for its frame ;)
|
# acrylic for its frame ;)
|
||||||
colorTransparent: false
|
colorTransparent: false
|
||||||
|
|
||||||
|
# Show the internal filename in the files sidebar, if necessary
|
||||||
|
# UI change only
|
||||||
|
showInternalFilename: true
|
||||||
|
|
||||||
# Configures the order and availability of the UI components
|
# Configures the order and availability of the UI components
|
||||||
components:
|
components:
|
||||||
|
|
||||||
@@ -146,10 +152,14 @@ appearance or to modify the order and presence of the various UI components:
|
|||||||
navbar:
|
navbar:
|
||||||
- settings
|
- settings
|
||||||
- systemmenu
|
- systemmenu
|
||||||
|
- plugin_announcements
|
||||||
|
- plugin_logging
|
||||||
|
- plugin_pi_support
|
||||||
- login
|
- login
|
||||||
|
|
||||||
# order of sidebar items
|
# order of sidebar items
|
||||||
sidebar:
|
sidebar:
|
||||||
|
- plugin_firmware_check
|
||||||
- connection
|
- connection
|
||||||
- state
|
- state
|
||||||
- files
|
- files
|
||||||
@@ -158,7 +168,7 @@ appearance or to modify the order and presence of the various UI components:
|
|||||||
tab:
|
tab:
|
||||||
- temperature
|
- temperature
|
||||||
- control
|
- control
|
||||||
- gcodeviewer
|
- plugin_gcodeviewer
|
||||||
- terminal
|
- terminal
|
||||||
- timelapse
|
- timelapse
|
||||||
|
|
||||||
@@ -175,17 +185,40 @@ appearance or to modify the order and presence of the various UI components:
|
|||||||
- features
|
- features
|
||||||
- webcam
|
- webcam
|
||||||
- accesscontrol
|
- accesscontrol
|
||||||
|
- plugin_gcodeviewer
|
||||||
- api
|
- api
|
||||||
|
- plugin_appkeys
|
||||||
- section_octoprint
|
- section_octoprint
|
||||||
- folders
|
- folders
|
||||||
- appearance
|
- appearance
|
||||||
- logs
|
- plugin_logging
|
||||||
|
- plugin_pluginmanager
|
||||||
|
- plugin_softwareupdate
|
||||||
|
- plugin_announcements
|
||||||
|
- plugin_backup
|
||||||
|
- plugin_tracking
|
||||||
|
- plugin_errortracking
|
||||||
|
|
||||||
# order of user settings
|
# order of user settings
|
||||||
usersettings:
|
usersettings:
|
||||||
- access
|
- access
|
||||||
- interface
|
- interface
|
||||||
|
|
||||||
|
# order of wizards
|
||||||
|
wizard:
|
||||||
|
- plugin_backup
|
||||||
|
- plugin_corewizard_acl
|
||||||
|
|
||||||
|
# order of about dialog entries
|
||||||
|
about:
|
||||||
|
- about
|
||||||
|
- plugin_pi_support
|
||||||
|
- supporters
|
||||||
|
- authors
|
||||||
|
- license
|
||||||
|
- thirdparty
|
||||||
|
- plugin_pluginmanager
|
||||||
|
|
||||||
# order of generic templates
|
# order of generic templates
|
||||||
generic: []
|
generic: []
|
||||||
|
|
||||||
@@ -222,7 +255,7 @@ appearance or to modify the order and presence of the various UI components:
|
|||||||
tab:
|
tab:
|
||||||
- plugin_helloworld
|
- plugin_helloworld
|
||||||
|
|
||||||
OctoPrint will then display the tabs in the order ``plugin_helloworld``, ``temperature``, ``control``, ``gcodeviewer``,
|
OctoPrint will then display the tabs in the order ``plugin_helloworld``, ``temperature``, ``control``, ``plugin_gcodeviewer``,
|
||||||
``terminal``, ``timelapse`` plus any other plugins.
|
``terminal``, ``timelapse`` plus any other plugins.
|
||||||
|
|
||||||
|
|
||||||
@@ -283,181 +316,19 @@ The following settings are only relevant to you if you want to do OctoPrint deve
|
|||||||
# false, no minification will take place regardless of the minify setting below.
|
# false, no minification will take place regardless of the minify setting below.
|
||||||
bundle: true
|
bundle: true
|
||||||
|
|
||||||
# If set to true, OctoPrint will minify its viewmodels (that includes those of plugins). Note: if bundle is
|
# If set to true, OctoPrint will the core and library javascript assets. Note: if bundle is
|
||||||
# set to false, no minification will take place either.
|
# set to false, no minification will take place either.
|
||||||
minify: true
|
minify: true
|
||||||
|
|
||||||
|
# If set to true, OctoPrint will also minify the third party plugin javascript assets. Note: if bundle or
|
||||||
|
# minify are set to false, no minification of the plugin assets will take place either.
|
||||||
|
minify_plugins: false
|
||||||
|
|
||||||
# Whether to delete generated web assets on server startup (forcing a regeneration)
|
# Whether to delete generated web assets on server startup (forcing a regeneration)
|
||||||
clean_on_startup: true
|
clean_on_startup: true
|
||||||
|
|
||||||
# Settings for the virtual printer
|
# enable or disable the loading animation
|
||||||
virtualPrinter:
|
showLoadingAnimation: true
|
||||||
|
|
||||||
# Whether to enable the virtual printer and include it in the list of available serial connections.
|
|
||||||
# Defaults to false.
|
|
||||||
enabled: true
|
|
||||||
|
|
||||||
# Whether to send an additional "ok" after a resend request (like Repetier)
|
|
||||||
okAfterResend: false
|
|
||||||
|
|
||||||
# Whether to force checksums and line number in the communication (like Repetier), if set to true
|
|
||||||
# printer will only accept commands that come with linenumber and checksum and throw an error for
|
|
||||||
# lines that don't. Defaults to false
|
|
||||||
forceChecksum: false
|
|
||||||
|
|
||||||
# Whether to send "ok" responses with the line number that gets acknowledged by the "ok". Defaults
|
|
||||||
# to false.
|
|
||||||
okWithLinenumber: false
|
|
||||||
|
|
||||||
# Number of extruders to simulate on the virtual printer. Map from tool id (0, 1, ...) to temperature
|
|
||||||
# in °C
|
|
||||||
numExtruders: 1
|
|
||||||
|
|
||||||
# Allows pinning certain hotends to a fixed temperature
|
|
||||||
pinnedExtruders: null
|
|
||||||
|
|
||||||
# Whether to include the current tool temperature in the M105 output as separate T segment or not.
|
|
||||||
#
|
|
||||||
# True: > M105
|
|
||||||
# < ok T:23.5/0.0 T0:34.3/0.0 T1:23.5/0.0 B:43.2/0.0
|
|
||||||
# False: > M105
|
|
||||||
# < ok T0:34.3/0.0 T1:23.5/0.0 B:43.2/0.0
|
|
||||||
includeCurrentToolInTemps: true
|
|
||||||
|
|
||||||
# Whether to include the selected filename in the M23 File opened response.
|
|
||||||
#
|
|
||||||
# True: > M23 filename.gcode
|
|
||||||
# < File opened: filename.gcode Size: 27
|
|
||||||
# False: > M23 filename.gcode
|
|
||||||
# > File opened
|
|
||||||
includeFilenameInOpened: true
|
|
||||||
|
|
||||||
# Whether the simulated printer should also simulate a heated bed or not
|
|
||||||
hasBed: true
|
|
||||||
|
|
||||||
# Whether the simulated printer should also simulate a heated chamber or not
|
|
||||||
hasChamber: false
|
|
||||||
|
|
||||||
# If enabled, reports the set target temperatures as separate messages from the firmware
|
|
||||||
#
|
|
||||||
# True: > M109 S220.0
|
|
||||||
# < TargetExtr0:220.0
|
|
||||||
# < ok
|
|
||||||
# > M105
|
|
||||||
# < ok T0:34.3 T1:23.5 B:43.2
|
|
||||||
# False: > M109 S220.0
|
|
||||||
# < ok
|
|
||||||
# > M105
|
|
||||||
# < ok T0:34.3/220.0 T1:23.5/0.0 B:43.2/0.0
|
|
||||||
repetierStyleTargetTemperature: false
|
|
||||||
|
|
||||||
# If enabled, uses repetier style resends, sending multiple resends for the same line
|
|
||||||
# to make sure nothing gets lost on the line
|
|
||||||
repetierStyleResends: false
|
|
||||||
|
|
||||||
# If enabled, ok will be sent before a commands output, otherwise after or inline (M105)
|
|
||||||
#
|
|
||||||
# True: > M20
|
|
||||||
# < ok
|
|
||||||
# < Begin file list
|
|
||||||
# < End file list
|
|
||||||
# False: > M20
|
|
||||||
# < Begin file list
|
|
||||||
# < End file list
|
|
||||||
# < ok
|
|
||||||
okBeforeCommandOutput: false
|
|
||||||
|
|
||||||
# If enabled, reports the first extruder in M105 responses as T instead of T0
|
|
||||||
#
|
|
||||||
# True: > M105
|
|
||||||
# < ok T:34.3/0.0 T1:23.5/0.0 B:43.2/0.0
|
|
||||||
# False: > M105
|
|
||||||
# < ok T0:34.3/0.0 T1:23.5/0.0 B:43.2/0.0
|
|
||||||
smoothieTemperatureReporting: false
|
|
||||||
|
|
||||||
# Whether M20 responses will include filesize or not
|
|
||||||
#
|
|
||||||
# True: <filename> <filesize in bytes>
|
|
||||||
# False: <filename>
|
|
||||||
extendedSdFileList: false
|
|
||||||
|
|
||||||
# Forced pause for retrieving from the outgoing buffer
|
|
||||||
throttle: 0.01
|
|
||||||
|
|
||||||
# Whether to send "wait" responses every "waitInterval" seconds when serial rx buffer is empty
|
|
||||||
sendWait: false
|
|
||||||
|
|
||||||
# Interval in which to send "wait" lines when rx buffer is empty
|
|
||||||
waitInterval: 1
|
|
||||||
|
|
||||||
# Size of the simulated RX buffer in bytes, when it's full a send from OctoPrint's
|
|
||||||
# side will block
|
|
||||||
rxBuffer: 64
|
|
||||||
|
|
||||||
# Size of simulated command buffer, number of commands. If full, buffered commands will block
|
|
||||||
# until a slot frees up
|
|
||||||
commandBuffer: 4
|
|
||||||
|
|
||||||
# Whether to support the M112 command with simulated kill
|
|
||||||
supportM112: true
|
|
||||||
|
|
||||||
# Whether to send messages received via M117 back as "echo:" lines
|
|
||||||
echoOnM117: true
|
|
||||||
|
|
||||||
# Whether to simulate broken M29 behaviour (missing ok after response)
|
|
||||||
brokenM29: true
|
|
||||||
|
|
||||||
# Whether F is supported as individual command
|
|
||||||
supportF: false
|
|
||||||
|
|
||||||
# Firmware name to report (useful for testing firmware detection)
|
|
||||||
firmwareName: Virtual Marlin 1.0
|
|
||||||
|
|
||||||
# Simulate a shared nozzle
|
|
||||||
sharedNozzle: false
|
|
||||||
|
|
||||||
# Send "busy" messages if busy processing something
|
|
||||||
sendBusy: false
|
|
||||||
|
|
||||||
# Simulate a reset on connect
|
|
||||||
simulateReset: true
|
|
||||||
|
|
||||||
# Lines to send on simulated reset
|
|
||||||
resetLines:
|
|
||||||
- start
|
|
||||||
- Marlin: Virtual Marlin!
|
|
||||||
- "\x80"
|
|
||||||
- "SD card ok"
|
|
||||||
|
|
||||||
# Initial set of prepared oks to use instead of regular ok (e.g. to simulate
|
|
||||||
# mis-sent oks). Can also be filled at runtime via the debug command prepare_ok
|
|
||||||
preparedOks: []
|
|
||||||
|
|
||||||
# Format string for ok response.
|
|
||||||
#
|
|
||||||
# Placeholders:
|
|
||||||
# - lastN: last acknowledged line number
|
|
||||||
# - buffer: empty slots in internal command buffer
|
|
||||||
#
|
|
||||||
# Example format string for "extended" ok format:
|
|
||||||
# ok N{lastN} P{buffer}
|
|
||||||
okFormatString: ok
|
|
||||||
|
|
||||||
# Format string for M115 output.
|
|
||||||
#
|
|
||||||
# Placeholders:
|
|
||||||
# - firmare_name: The firmware name as defined in firmwareName
|
|
||||||
m115FormatString: "FIRMWARE_NAME: {firmware_name} PROTOCOL_VERSION:1.0"
|
|
||||||
|
|
||||||
# Whether to include capability report in M115 output
|
|
||||||
m115ReportCapabilites: false
|
|
||||||
|
|
||||||
# Capabilities to report if capability report is enabled
|
|
||||||
capabilities:
|
|
||||||
AUTOREPORT_TEMP: true
|
|
||||||
|
|
||||||
# Simulated ambient temperature in °C
|
|
||||||
ambientTemperature: 21.3
|
|
||||||
|
|
||||||
.. _sec-configuration-config_yaml-estimation:
|
.. _sec-configuration-config_yaml-estimation:
|
||||||
|
|
||||||
@@ -837,6 +708,11 @@ Use the following settings to configure the serial connection to the printer:
|
|||||||
- M0
|
- M0
|
||||||
- M1
|
- M1
|
||||||
|
|
||||||
|
# Commands which should not be sent to the printer and just silently ignored.
|
||||||
|
# An example of when you may wish to use this could be useful if you wish to manually change a filament on M600,
|
||||||
|
# by using that as a Pausing command (below)
|
||||||
|
ignoredCommands:
|
||||||
|
|
||||||
# Commands which should cause OctoPrint to pause any ongoing prints.
|
# Commands which should cause OctoPrint to pause any ongoing prints.
|
||||||
pausingCommands:
|
pausingCommands:
|
||||||
- M0
|
- M0
|
||||||
@@ -936,6 +812,9 @@ Use the following settings to configure the serial connection to the printer:
|
|||||||
# the response skips on the ok)
|
# the response skips on the ok)
|
||||||
triggerOkForM29: true
|
triggerOkForM29: true
|
||||||
|
|
||||||
|
# Percentage of resend requests among all sent lines that should be considered critical
|
||||||
|
resendRatioThreshold: 10
|
||||||
|
|
||||||
capabilities:
|
capabilities:
|
||||||
|
|
||||||
# Whether to enable temperature autoreport in the firmware if its support is detected
|
# Whether to enable temperature autoreport in the firmware if its support is detected
|
||||||
@@ -1023,6 +902,25 @@ Use the following settings to configure the server:
|
|||||||
- 192.168.1.254
|
- 192.168.1.254
|
||||||
- 192.168.23.42
|
- 192.168.23.42
|
||||||
|
|
||||||
|
# Whether to allow OctoPrint to be embedded in a frame or not. Note that depending on your setup you might
|
||||||
|
# have to set SameSite to None, Secure to true and serve OctoPrint through a reverse proxy that enables https
|
||||||
|
# for cookies and thus logging in to work
|
||||||
|
allowFraming: true
|
||||||
|
|
||||||
|
# Settings for further configuration of the cookies that OctoPrint sets (login, remember me, ...)
|
||||||
|
cookies:
|
||||||
|
# SameSite setting to use on the cookies. Possible values are None, Lax and Strict. Defaults to not set but
|
||||||
|
# be advised that many browsers now default to Lax unless set as Secure, explicitly setting the cookie type
|
||||||
|
# here and served over https, which causes issues with embedding OctoPrint in frames.
|
||||||
|
#
|
||||||
|
# See also https://www.chromestatus.com/feature/5088147346030592,
|
||||||
|
# https://www.chromestatus.com/feature/5633521622188032 and issue #3482
|
||||||
|
samesite: lax
|
||||||
|
|
||||||
|
# Whether to set the Secure flag to true on cookies. Defaults to false. Only set to true if you are running
|
||||||
|
# OctoPrint behind a reverse proxy taking care of SSL termination.
|
||||||
|
secure: false
|
||||||
|
|
||||||
# Settings for file uploads to OctoPrint, such as maximum allowed file size and
|
# Settings for file uploads to OctoPrint, such as maximum allowed file size and
|
||||||
# header suffixes to use for streaming uploads. OctoPrint does some nifty things internally in
|
# header suffixes to use for streaming uploads. OctoPrint does some nifty things internally in
|
||||||
# order to allow streaming of large file uploads to the application rather than just storing
|
# order to allow streaming of large file uploads to the application rather than just storing
|
||||||
@@ -1056,6 +954,12 @@ Use the following settings to configure the server:
|
|||||||
# Command to shut down the system OctoPrint is running on, defaults to being unset
|
# Command to shut down the system OctoPrint is running on, defaults to being unset
|
||||||
systemShutdownCommand: sudo shutdown -h now
|
systemShutdownCommand: sudo shutdown -h now
|
||||||
|
|
||||||
|
# pip command associated with OctoPrint, used for installing plugins and updates,
|
||||||
|
# if unset (default) the command will be autodetected based on the current python
|
||||||
|
# executable - unless you have a really special setup this is the right way to do
|
||||||
|
# it and there should be no need to ever even touch this setting
|
||||||
|
localPipCommand: None
|
||||||
|
|
||||||
# Configuration of the regular online connectivity check
|
# Configuration of the regular online connectivity check
|
||||||
onlineCheck:
|
onlineCheck:
|
||||||
# whether the online check is enabled, defaults to false due to valid privacy concerns
|
# whether the online check is enabled, defaults to false due to valid privacy concerns
|
||||||
@@ -1124,9 +1028,24 @@ Use the following settings to configure the server:
|
|||||||
* ``X-Scheme``: should contain your custom URL scheme to use (if different from ``http``), e.g. ``https``
|
* ``X-Scheme``: should contain your custom URL scheme to use (if different from ``http``), e.g. ``https``
|
||||||
|
|
||||||
If you use these headers OctoPrint will work both via the reverse proxy as well as when called directly. Take a look
|
If you use these headers OctoPrint will work both via the reverse proxy as well as when called directly. Take a look
|
||||||
`into OctoPrint's wiki <https://github.com/foosel/OctoPrint/wiki/Reverse-proxy-configuration-examples>`_ for some
|
`into OctoPrint's wiki <https://community.octoprint.org/t/reverse-proxy-configuration-examples/1107>`_ for some
|
||||||
examples on how to configure this.
|
examples on how to configure this.
|
||||||
|
|
||||||
|
.. note::
|
||||||
|
|
||||||
|
If you want to embed OctoPrint in a frame, you'll need to set ``allowFraming`` to ``true`` or your browser will
|
||||||
|
prevent this.
|
||||||
|
|
||||||
|
In future browser builds you will also have to make sure you frame is on the same domain as OctoPrint or that
|
||||||
|
OctoPrint is served via https through a reverse proxy and has set ``cookies.secure`` to ``true`` or your browser
|
||||||
|
will refuse to persist cookies and logging in will not work.
|
||||||
|
|
||||||
|
See also `Cookies default to SameSite=Lax <https://www.chromestatus.com/feature/5088147346030592>`_ and
|
||||||
|
`Reject insecure SameSite=None cookies <https://www.chromestatus.com/feature/5633521622188032>`_ as well as
|
||||||
|
`this ticket <https://github.com/OctoPrint/OctoPrint/issues/3482>`_,
|
||||||
|
and `this twitter thread <https://twitter.com/foosel/status/1022030752349913088>`_ on why OctoPrint cannot
|
||||||
|
solve this on its own/ship with https that doesn't cause scary warnings in your browser.
|
||||||
|
|
||||||
.. _sec-configuration-config_yaml-slicing:
|
.. _sec-configuration-config_yaml-slicing:
|
||||||
|
|
||||||
Slicing
|
Slicing
|
||||||
@@ -1218,11 +1137,13 @@ Use `Javascript regular expressions <https://developer.mozilla.org/en/docs/Web/J
|
|||||||
# A list of filters to display in the terminal tab. Defaults to the filters shown below
|
# A list of filters to display in the terminal tab. Defaults to the filters shown below
|
||||||
terminalFilters:
|
terminalFilters:
|
||||||
- name: Suppress temperature messages
|
- name: Suppress temperature messages
|
||||||
regex: '(Send: (N\d+\s+)?M105)|(Recv:\s+(ok\s+)?.*(B|T\d*):\d+)'
|
regex: '(Send: (N\d+\s+)?M105)|(Recv:\s+(ok\s+([PBN]\d+\s+)*)?([BCLPR]|T\d*):-?\d+)'
|
||||||
- name: Suppress SD status messages
|
- name: Suppress SD status messages
|
||||||
regex: '(Send: (N\d+\s+)?M27)|(Recv: SD printing byte)'
|
regex: '(Send: (N\d+\s+)?M27)|(Recv: SD printing byte)|(Recv: Not SD printing)'
|
||||||
- name: Suppress wait responses
|
- name: Suppress wait responses
|
||||||
regex: 'Recv: wait'
|
regex: 'Recv: wait'
|
||||||
|
- name: Suppress processing responses
|
||||||
|
regex: 'Recv: (echo:\s*)?busy:\s*processing'
|
||||||
|
|
||||||
.. _sec-configuration-config_yaml-webcam:
|
.. _sec-configuration-config_yaml-webcam:
|
||||||
|
|
||||||
|
|||||||
@@ -10,3 +10,4 @@ Configuration
|
|||||||
yaml.rst
|
yaml.rst
|
||||||
config_yaml.rst
|
config_yaml.rst
|
||||||
logging_yaml.rst
|
logging_yaml.rst
|
||||||
|
cli.rst
|
||||||
@@ -5,7 +5,7 @@ logging.yaml
|
|||||||
|
|
||||||
The logging configuration file ``logging.yaml`` for OctoPrint is expected in its settings folder, which unless defined
|
The logging configuration file ``logging.yaml`` for OctoPrint is expected in its settings folder, which unless defined
|
||||||
differently on the command line is located at ``~/.octoprint`` on Linux, at ``%APPDATA%/OctoPrint`` on Windows and at
|
differently on the command line is located at ``~/.octoprint`` on Linux, at ``%APPDATA%/OctoPrint`` on Windows and at
|
||||||
``~/Library/Application Support/OctoPrint`` on MacOS.
|
``~/Library/Application Support/OctoPrint`` on macOS.
|
||||||
|
|
||||||
You can use it to change the log levels of the individual components within OctoPrint, which might be necessary to help
|
You can use it to change the log levels of the individual components within OctoPrint, which might be necessary to help
|
||||||
in debugging issues you are experiencing, or to change the configuration of the logging handlers themselves, e.g. in
|
in debugging issues you are experiencing, or to change the configuration of the logging handlers themselves, e.g. in
|
||||||
@@ -81,8 +81,8 @@ used for the ``serial.log`` and the ``console`` handler used for the output to s
|
|||||||
maxBytes: 2097152 # 2 * 1024 * 1024 = 2 MB in bytes
|
maxBytes: 2097152 # 2 * 1024 * 1024 = 2 MB in bytes
|
||||||
filename: /path/to/octoprints/logs/serial.log
|
filename: /path/to/octoprints/logs/serial.log
|
||||||
|
|
||||||
You can find more information on the used logging handlers in the
|
You can find more information on the used logging handlers in the Python documentation on
|
||||||
`Python documentation on logging handlers <https://docs.python.org/2/library/logging.handlers.html>`_.
|
:py:mod:`logging.handlers`.
|
||||||
|
|
||||||
Changing logging formatters
|
Changing logging formatters
|
||||||
---------------------------
|
---------------------------
|
||||||
@@ -97,4 +97,4 @@ expressed in YAML as follows:
|
|||||||
format: "%(asctime)s - %(name)s - %(levelname)s - %(message)s"
|
format: "%(asctime)s - %(name)s - %(levelname)s - %(message)s"
|
||||||
|
|
||||||
The possible keys for the logging format can be found in the
|
The possible keys for the logging format can be found in the
|
||||||
`Python documentation on LogRecord attributes <https://docs.python.org/2/library/logging.html#logrecord-attributes>`_.
|
:ref:`Python documentation on LogRecord attributes <logrecord-attributes>`.
|
||||||
@@ -0,0 +1,75 @@
|
|||||||
|
.. _sec-development-branches:
|
||||||
|
|
||||||
|
OctoPrint's branching model
|
||||||
|
===========================
|
||||||
|
|
||||||
|
There are three main branches in OctoPrint:
|
||||||
|
|
||||||
|
``master``
|
||||||
|
The master branch always contains the current stable release plus any changes
|
||||||
|
since made to *documentation*, *CI related tests* or *Github meta files*. OctoPrint's actual
|
||||||
|
code will only be modified on new releases. Will have a version number following
|
||||||
|
the scheme ``<x>.<y>.<z>`` (e.g. ``1.5.1``).
|
||||||
|
``maintenance``
|
||||||
|
Improvements and fixes of the current release that make up
|
||||||
|
the next release go here. More or less continuously updated. You can consider
|
||||||
|
this a preview of the next release version. It should be very stable at all
|
||||||
|
times. Anything you spot in here helps tremendously with getting a rock solid
|
||||||
|
next stable release, so if you want to help out development, running the
|
||||||
|
``maintenance`` branch and reporting back anything you find is a very good way
|
||||||
|
to do that. Will usually have a version number following the scheme
|
||||||
|
``<x>.<y+1>.<0>.dev<commits since increase of y>`` for an OctoPrint version of ``<x>.<y>.<z>``
|
||||||
|
(e.g. ``1.5.0.dev114``).
|
||||||
|
``devel``
|
||||||
|
Ongoing development of what will go into the next big
|
||||||
|
release (MAJOR version number increases) will happen on this branch. Usually
|
||||||
|
kept stable, sometimes stuff can break though. Backwards incompatible changes will
|
||||||
|
be encountered here. Can be considered the "bleeding edge". Will usually have a version
|
||||||
|
number following the scheme ``<x+1>.<0>.0.dev<commits since increase of y>`` for a current
|
||||||
|
OctoPrint version of ``<x>.<y>.<z>`` (e.g. ``2.0.0.dev123``).
|
||||||
|
|
||||||
|
There are couple more RC and staging branches that see regular use:
|
||||||
|
|
||||||
|
``staging/bugfix``
|
||||||
|
Any preparation for potential bugfix releases takes place here.
|
||||||
|
Version number follows the scheme ``<x>.<y>.<z+1>`` (e.g. ``1.5.1``) for a current release
|
||||||
|
of ``<x>.<y>.<z>``.
|
||||||
|
``rc/maintenance``
|
||||||
|
This branch is reserved for future releases that have graduated from
|
||||||
|
the ``maintenance`` branch and are now being pushed on the "Maintenance"
|
||||||
|
pre release channel for further testing. Version number follows the scheme
|
||||||
|
``<x>.<y>.<z>rc<n>`` (e.g. ``1.5.0rc1``).
|
||||||
|
``staging/maintenance``
|
||||||
|
Any preparation for potential follow-up RCs takes place here.
|
||||||
|
Version number follows the scheme ``<x>.<y>.<z>rc<n+1>.dev<commits since increase of n>`` (e.g.
|
||||||
|
``1.5.0rc2.dev3``) for a current Maintenance RC of ``<x>.<y>.<z>``.
|
||||||
|
``rc/devel``
|
||||||
|
This branch is reserved for future releases that have graduated from
|
||||||
|
the ``devel`` branch and are now being pushed on the "Devel" pre release channel
|
||||||
|
for further testing. Version number follows the scheme ``<x+1>.0.0rc<n>`` (e.g. ``2.0.0rc1``)
|
||||||
|
for a current stable OctoPrint version of ``<x>.<y>.<z>``.
|
||||||
|
``staging/devel``
|
||||||
|
Any preparation for potential follow-up Devel RCs takes place
|
||||||
|
here. Version number follows the scheme ``<x>.0.0rc<n+1>.dev<commits since increase of n>`` (e.g.
|
||||||
|
``2.0.0rc2.dev12``) for a current Devel RC of ``<x>.0.0rc<n>``.
|
||||||
|
|
||||||
|
Additionally, from time to time you might see other branches pop up in the repository.
|
||||||
|
Those usually have one of the following prefixes:
|
||||||
|
|
||||||
|
``bug/...``
|
||||||
|
Fixes under development that are to be merged into the ``staging/bugfix``
|
||||||
|
and later the ``master`` branch.
|
||||||
|
``fix/...``
|
||||||
|
Fixes under development that are to be merged into the ``maintenance``
|
||||||
|
and ``devel`` branches.
|
||||||
|
``improve/...``
|
||||||
|
Improvements under development that are to be merged into the
|
||||||
|
``maintenance`` and ``devel`` branches.
|
||||||
|
``dev/...`` or ``feature/...``
|
||||||
|
New functionality under development that is to be merged
|
||||||
|
into the ``devel`` branch.
|
||||||
|
|
||||||
|
There are also a few older development branches that are slowly being migrated or deleted.
|
||||||
|
|
||||||
|
All these branches and branch patterns are set up to automatically get a correct :ref:`version number <sec-development-versions>`
|
||||||
|
generated through versioneer and thus should also be adhered to during development.
|
||||||
@@ -1,83 +1,89 @@
|
|||||||
.. _sec-development-environment:
|
.. _sec-development-environment:
|
||||||
|
|
||||||
|
************************************
|
||||||
Setting up a Development environment
|
Setting up a Development environment
|
||||||
====================================
|
************************************
|
||||||
|
|
||||||
.. _sec-development-environment-source:
|
.. _sec-development-environment-source:
|
||||||
|
|
||||||
Obtaining, building and running the source
|
Obtaining, building and running the source
|
||||||
------------------------------------------
|
==========================================
|
||||||
|
|
||||||
This describes the general steps in obtaining, building and running. OS specific instructions can be found
|
This describes the **general, platform agnostic** steps in obtaining, building and running. OS specific instructions can be found
|
||||||
below.
|
below.
|
||||||
|
|
||||||
* Prerequisites:
|
* Prerequisites:
|
||||||
|
|
||||||
* `Python 2.7 <https://python.org>`_ including ``pip``, ``setuptools`` and ``virtualenv``
|
* `Python 3.8 <https://python.org>`_ including ``pip``, ``setuptools`` and ``virtualenv``
|
||||||
* `Python 3.7 <https://python.org>`_ including ``pip``, ``setuptools`` and ``virtualenv``
|
|
||||||
* `Git <https://git-scm.com>`_
|
* `Git <https://git-scm.com>`_
|
||||||
|
|
||||||
* Checkout the OctoPrint sources from their Git repository:
|
* Checkout the OctoPrint sources from their Git repository:
|
||||||
* ``git clone -b devel https://github.com/foosel/OctoPrint.git``
|
|
||||||
|
* ``git clone https://github.com/OctoPrint/OctoPrint.git``
|
||||||
|
|
||||||
* Enter the checked out source folder: ``cd OctoPrint``
|
* Enter the checked out source folder: ``cd OctoPrint``
|
||||||
* Create virtual environments in the checked out source folder for both Python 2.7 and Python 3.7 to use for
|
* Create a virtual environment in the checked out source folder to use for
|
||||||
installing and running OctoPrint and its dependencies (this avoids potential versioning issues for the dependencies
|
installing and running OctoPrint and its dependencies. Creating virtual environments avoids potential versioning
|
||||||
with system wide installed instances):
|
issues for the dependencies with system wide installed instances:
|
||||||
* PY2: ``virtualenv --python=python2 venv2``
|
|
||||||
* PY3: ``virtualenv --python=python3 venv3``
|
* ``virtualenv --python=python3 venv``
|
||||||
* Activate one of the virtual environments:
|
|
||||||
* PY2: ``source venv2/bin/activate`` (Linux, MacOS) or ``source venv2/Scripts/activate`` (Git Bash under Windows, see below)
|
.. note::
|
||||||
* PY3: ``source venv3/bin/activate`` (Linux, MacOS) or ``source venv3/Scripts/activate`` (Git Bash under Windows, see below)
|
|
||||||
|
This assumes that `python3` is a binary available directly on your ``PATH``. If your Python 3
|
||||||
|
binary cannot be found on your ``PATH`` like this you'll need to specify the full path to it here,
|
||||||
|
e.g. ``virtualenv --python=/path/to/python3/bin/python venv``
|
||||||
|
|
||||||
|
* Activate the virtual environment: ``source venv/bin/activate`` (Linux, macOS) or ``source venv/Scripts/activate`` (Git Bash under Windows, see below)
|
||||||
|
|
||||||
* Update ``pip`` in the virtual environment:
|
* Update ``pip`` in the virtual environment:
|
||||||
|
|
||||||
* ``pip install --upgrade pip``
|
* ``pip install --upgrade pip``
|
||||||
|
|
||||||
* Install OctoPrint in `"editable" mode <https://pip.pypa.io/en/stable/reference/pip_install/#editable-installs>`_,
|
* Install OctoPrint in `"editable" mode <https://pip.pypa.io/en/stable/reference/pip_install/#editable-installs>`_,
|
||||||
including its regular *and* development and plugin development dependencies:
|
including its regular *and* development and plugin development dependencies:
|
||||||
* ``pip install -e .[develop,plugins]``
|
|
||||||
|
* ``pip install -e '.[develop,plugins,docs]'``
|
||||||
|
|
||||||
|
* Set up the pre-commit hooks that make sure any changes you do adhere to the styling rules:
|
||||||
|
|
||||||
|
* ``pre-commit install``
|
||||||
|
|
||||||
|
* Tell ``git`` where to find the file with revisions to exclude for ``git blame``:
|
||||||
|
|
||||||
|
* ``git config blame.ignoreRevsFile .git-blame-ignore-revs``
|
||||||
|
|
||||||
When the virtual environment is activated you can then:
|
When the virtual environment is activated you can then:
|
||||||
|
|
||||||
* run the OctoPrint server via ``octoprint serve``
|
* run the OctoPrint server via ``octoprint serve``
|
||||||
* run the test suite from the checked out source folder via ``nosetests --with-doctest``
|
* run the test suite from the checked out source folder via ``pytest``
|
||||||
* build the documentation from the ``docs`` sub folder of the checked out sources via ``sphinx-build -b html . _build``
|
* trigger the pre-commit check suite manually from the checked out source folder via
|
||||||
|
``pre-commit run --hook-stage manual --all-files``
|
||||||
To switch the activated virtual environment, simply activate the new environment as described above.
|
* build the documentation running ``sphinx-build -b html . _build`` in the ``docs``
|
||||||
|
folder -- the documentation will be available in the newly created ``_build``
|
||||||
To deactivate the virtual environment and return to the system's default Python: ``deactivate``.
|
directory. You can simply browse it locally by opening ``index.html``
|
||||||
|
|
||||||
.. _sec-development-environment-source-linux:
|
.. _sec-development-environment-source-linux:
|
||||||
|
|
||||||
Linux
|
Linux
|
||||||
.....
|
-----
|
||||||
|
|
||||||
.. todo::
|
|
||||||
|
|
||||||
This guide is not yet adapted to the concurrent use of Python 2.7 and 3.7 environments during development.
|
|
||||||
|
|
||||||
This assumes you'll host your OctoPrint development checkout at ``~/devel/OctoPrint``. If you want to use a different
|
This assumes you'll host your OctoPrint development checkout at ``~/devel/OctoPrint``. If you want to use a different
|
||||||
location, please substitute accordingly.
|
location, please substitute accordingly.
|
||||||
|
|
||||||
First make sure you have python including its header files, pip, setuptools, virtualenv, git and some build requirements
|
First make sure you have python 2 and 3 including their header files, pip, setuptools, virtualenv, git and some build requirements
|
||||||
installed:
|
installed:
|
||||||
|
|
||||||
* On apt based distributions (e.g. Debian, Ubuntu, ...):
|
* On apt based distributions (e.g. Debian, Ubuntu, ...):
|
||||||
|
|
||||||
.. code-block:: none
|
.. code-block:: none
|
||||||
|
|
||||||
sudo apt-get install python python-pip python-dev python-setuptools python-virtualenv git libyaml-dev build-essential
|
sudo apt-get install python3 python3-pip python3-dev python3-setuptools python3-virtualenv git libyaml-dev build-essential
|
||||||
|
|
||||||
* On zypper based distributions (example below for SLES 12 SP2):
|
|
||||||
|
|
||||||
.. code-block:: none
|
|
||||||
|
|
||||||
sudo zypper ar https://download.opensuse.org/repositories/devel:/languages:/python/SLE_12_SP2/ python_devel
|
|
||||||
sudo zypper ref
|
|
||||||
sudo zypper in python python-pip python-devel python-setuptools python-virtualenv git libyaml-devel
|
|
||||||
sudo zypper in -t pattern Basis-Devel
|
|
||||||
|
|
||||||
.. todo::
|
.. todo::
|
||||||
|
|
||||||
Using a Linux distribution that doesn't use ``apt`` or ``zypper``? Please send a
|
Using a Linux distribution that doesn't use ``apt``? Please send a
|
||||||
`Pull Request <https://github.com/foosel/OctoPrint/blob/master/CONTRIBUTING.md#pull-requests>`_ to get the necessary
|
`Pull Request <https://github.com/OctoPrint/OctoPrint/blob/master/CONTRIBUTING.md#pull-requests>`_ to get the necessary
|
||||||
steps into this guide!
|
steps into this guide!
|
||||||
|
|
||||||
Then:
|
Then:
|
||||||
@@ -85,36 +91,40 @@ Then:
|
|||||||
.. code-block:: none
|
.. code-block:: none
|
||||||
|
|
||||||
cd ~/devel
|
cd ~/devel
|
||||||
git clone -b devel https://github.com/foosel/OctoPrint.git
|
git clone https://github.com/OctoPrint/OctoPrint.git
|
||||||
cd OctoPrint
|
cd OctoPrint
|
||||||
virtualenv venv
|
virtualenv --python=python3 venv
|
||||||
source ./venv/bin/activate
|
source ./venv/bin/activate
|
||||||
pip install --upgrade pip
|
pip install --upgrade pip
|
||||||
pip install -e .[develop,plugins]
|
pip install -e '.[develop,plugins,docs]'
|
||||||
|
pre-commit install
|
||||||
|
git config blame.ignoreRevsFile .git-blame-ignore-revs
|
||||||
|
|
||||||
You can then start OctoPrint via ``~/devel/OctoPrint/venv/bin/octoprint`` or just ``octoprint`` if you activated the virtual
|
You can then start OctoPrint via ``octoprint`` after activating one of the two virtual environments.
|
||||||
environment.
|
|
||||||
|
|
||||||
.. _sec-development-environment-windows:
|
.. _sec-development-environment-windows:
|
||||||
|
|
||||||
Windows
|
Windows
|
||||||
.......
|
-------
|
||||||
|
|
||||||
.. todo::
|
|
||||||
|
|
||||||
This guide is not yet adapted to the concurrent use of Python 2.7 and 3.7 environments during development.
|
|
||||||
|
|
||||||
This assumes you'll host your OctoPrint development checkout at ``C:\Devel\OctoPrint``. If you want to use a different
|
This assumes you'll host your OctoPrint development checkout at ``C:\Devel\OctoPrint``. If you want to use a different
|
||||||
location, please substitute accordingly.
|
location, please substitute accordingly.
|
||||||
|
|
||||||
First download & install:
|
First download & install:
|
||||||
|
|
||||||
* `Python 2.7.15 Windows x86 MSI installer <https://www.python.org/downloads/release/python-2715/>`_
|
* `The current Python 3.8 Windows x86 executable installer <https://www.python.org/downloads/windows/>`_
|
||||||
|
|
||||||
* make sure to have the installer add Python to the ``PATH`` and have it install ``pip`` too
|
* make sure to have the installer add Python to the ``PATH`` and have it install ``pip`` too
|
||||||
|
* it's recommended to install Python 3 into ``C:\Python3`` - if you select
|
||||||
|
different install locations please substitute accordingly
|
||||||
|
* it's also recommended to install for all users
|
||||||
|
|
||||||
* `Microsoft Visual C++ Compiler for Python 2.7 <http://www.microsoft.com/en-us/download/details.aspx?id=44266>`_
|
* `Build Tools for Visual Studio 2019 <https://visualstudio.microsoft.com/downloads/#build-tools-for-visual-studio-2019>`_
|
||||||
* `Git for Windows <https://git-for-windows.github.io/>`_
|
|
||||||
|
* install "C++ build tools" and ensure the latest versions of "MSVCv142 - VS 2019 C++ x64/x86 build tools" and
|
||||||
|
"Windows 10 SDK" are checked.
|
||||||
|
|
||||||
|
* `Git for Windows <https://git-scm.com/downloads>`_
|
||||||
|
|
||||||
Open the Git Bash you just installed and in that:
|
Open the Git Bash you just installed and in that:
|
||||||
|
|
||||||
@@ -122,26 +132,55 @@ Open the Git Bash you just installed and in that:
|
|||||||
|
|
||||||
pip install virtualenv
|
pip install virtualenv
|
||||||
cd /c/Devel
|
cd /c/Devel
|
||||||
git clone https://github.com/foosel/OctoPrint.git
|
git clone https://github.com/OctoPrint/OctoPrint.git
|
||||||
cd OctoPrint
|
cd OctoPrint
|
||||||
virtualenv venv
|
virtualenv --python=C:/Python3/python.exe venv3
|
||||||
source ./venv/Scripts/activate
|
source ./venv/Scripts/activate
|
||||||
pip install --upgrade pip
|
python -m pip install --upgrade pip
|
||||||
pip install -e .[develop,plugins]
|
python -m pip install -e '.[develop,plugins,docs]'
|
||||||
|
pre-commit install
|
||||||
|
git config blame.ignoreRevsFile .git-blame-ignore-revs
|
||||||
|
|
||||||
|
.. _sec-development-environment-windows-optional:
|
||||||
|
|
||||||
|
Optional but recommended tools
|
||||||
|
..............................
|
||||||
|
|
||||||
|
These are some tools that are recommended but not required to have on hand:
|
||||||
|
|
||||||
|
* `Visual Studio Code <https://code.visualstudio.com/download>`_
|
||||||
|
* `Windows Terminal <https://github.com/microsoft/terminal>`_
|
||||||
|
|
||||||
|
Add the following profile to ``profiles.list`` in the settings, that will allow you to
|
||||||
|
easily start Git Bash from the terminal:
|
||||||
|
|
||||||
|
.. code-block:: js
|
||||||
|
|
||||||
|
{
|
||||||
|
"guid": "{3df4550c-eebd-496c-a189-e55f2f8b01ce}",
|
||||||
|
"hidden": false,
|
||||||
|
"name": "Git Bash",
|
||||||
|
"commandline": "C:\\Program Files\\Git\\bin\\bash.exe --login -i",
|
||||||
|
"startingDirectory": "C:\\Devel",
|
||||||
|
"tabTitle": "Git Bash",
|
||||||
|
"suppressApplicationTitle": true
|
||||||
|
},
|
||||||
|
|
||||||
.. _sec-development-environment-mac:
|
.. _sec-development-environment-mac:
|
||||||
|
|
||||||
Mac OS X
|
Mac OS X
|
||||||
........
|
--------
|
||||||
|
|
||||||
.. note::
|
.. note::
|
||||||
|
|
||||||
This guide is based on the `Setup Guide for Mac OS X on OctoPrint's wiki <https://github.com/foosel/OctoPrint/wiki/Setup-on-Mac/>`_.
|
This guide is based on the `Setup Guide for Mac OS X on OctoPrint's Community Forum <https://community.octoprint.org/t/setting-up-octoprint-on-macos/13425>`_.
|
||||||
Please report back if it works for you, due to lack of access to a Mac I cannot test it myself. Thanks.
|
Please report back if it works for you, due to lack of access to a Mac I cannot test it myself. Thanks.
|
||||||
|
|
||||||
.. todo::
|
.. todo::
|
||||||
|
|
||||||
This guide is not yet adapted to the concurrent use of Python 2.7 and 3.7 environments during development.
|
This guide is not yet adapted to the concurrent use of Python 2 and 3 environments during development. Please send a
|
||||||
|
`Pull Request <https://github.com/OctoPrint/OctoPrint/blob/master/CONTRIBUTING.md#pull-requests>`_ to get the necessary
|
||||||
|
steps into this guide!
|
||||||
|
|
||||||
This assumes you'll host your OctoPrint development checkout at ``~/devel/OctoPrint``. If you want to use a different
|
This assumes you'll host your OctoPrint development checkout at ``~/devel/OctoPrint``. If you want to use a different
|
||||||
location, please substitute accordingly.
|
location, please substitute accordingly.
|
||||||
@@ -160,6 +199,10 @@ You'll need a user account with administrator privileges.
|
|||||||
* ``ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"``
|
* ``ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"``
|
||||||
* ``brew install python``
|
* ``brew install python``
|
||||||
|
|
||||||
|
* Install `pip <https://pip.pypa.io/en/stable/installation/#supported-methods>`_
|
||||||
|
|
||||||
|
* ``python -m ensurepip --upgrade``
|
||||||
|
|
||||||
* Install `virtualenv <https://virtualenv.pypa.io/>`_
|
* Install `virtualenv <https://virtualenv.pypa.io/>`_
|
||||||
|
|
||||||
* ``pip install virtualenv``
|
* ``pip install virtualenv``
|
||||||
@@ -169,77 +212,209 @@ You'll need a user account with administrator privileges.
|
|||||||
.. code-block:: none
|
.. code-block:: none
|
||||||
|
|
||||||
cd ~/devel
|
cd ~/devel
|
||||||
git clone https://github.com/foosel/OctoPrint.git
|
git clone https://github.com/OctoPrint/OctoPrint.git
|
||||||
cd OctoPrint
|
cd OctoPrint
|
||||||
virtualenv venv
|
virtualenv venv
|
||||||
source venv/bin/activate
|
source venv/bin/activate
|
||||||
pip install --upgrade pip
|
pip install --upgrade pip
|
||||||
pip install -e .[develop,plugins]
|
pip install -e '.[develop,plugins]'
|
||||||
|
pre-commit install
|
||||||
|
git config blame.ignoreRevsFile .git-blame-ignore-revs
|
||||||
|
|
||||||
.. _sec-development-environment-ides:
|
.. _sec-development-environment-ides:
|
||||||
|
|
||||||
IDE Setup
|
IDE Setup
|
||||||
---------
|
=========
|
||||||
|
|
||||||
.. todo::
|
|
||||||
|
|
||||||
This guide is not yet adapted to the concurrent use of Python 2.7 and 3.7 environments during development.
|
|
||||||
|
|
||||||
.. todo::
|
.. todo::
|
||||||
|
|
||||||
Using another IDE than the ones below? Please send a
|
Using another IDE than the ones below? Please send a
|
||||||
`Pull Request <https://github.com/foosel/OctoPrint/blob/master/CONTRIBUTING.md#pull-requests>`_ to get the necessary
|
`Pull Request <https://github.com/OctoPrint/OctoPrint/blob/master/CONTRIBUTING.md#pull-requests>`_ to get the necessary
|
||||||
steps into this guide!
|
steps into this guide!
|
||||||
|
|
||||||
.. _sec-development-environment-ides-pycharm:
|
.. _sec-development-environment-ides-pycharm:
|
||||||
|
|
||||||
PyCharm
|
PyCharm
|
||||||
.......
|
-------
|
||||||
|
|
||||||
- "File" > "Open ...", select OctoPrint checkout folder (e.g. ``~/devel/OctoPrint`` or ``C:\Devel\OctoPrint``)
|
- "File" > "Open ...", select OctoPrint checkout folder (e.g. ``~/devel/OctoPrint`` or ``C:\Devel\OctoPrint``)
|
||||||
- "File" > "Settings ..." > "Project: OctoPrint" > "Project Interpreter" > "Add local ...", select OctoPrint venv
|
- Register virtual environments:
|
||||||
folder (e.g. ``~/devel/OctoPrint/venv`` or ``C:\Devel\OctoPrint\venv``)
|
|
||||||
|
- **(Linux, Windows)** "File" > "Settings ..." > "Project: OctoPrint" > "Project Interpreter" > "Add local ...",
|
||||||
|
select OctoPrint ``venv`` folder (e.g. ``~/devel/OctoPrint/venv`` or ``C:\Devel\OctoPrint\venv``).
|
||||||
|
- **(macOS)** "PyCharm" > "Preferences ..." > "Project: OctoPrint" > "Project Interpreter" > "Add ..." >
|
||||||
|
"Virtualenv Environment > "Existing Environment", select OctoPrint ``venv`` folder (e.g. ``~/devel/OctoPrint/venv``).
|
||||||
|
|
||||||
|
If desired, repeat for any other additional Python venvs (e.g. different versions).
|
||||||
|
|
||||||
- Right click "src" in project tree, mark as source folder
|
- Right click "src" in project tree, mark as source folder
|
||||||
- Add Run/Debug Configuration, select "Python":
|
- Add Run/Debug Configuration, select "Python":
|
||||||
|
|
||||||
* Name: OctoPrint server
|
* Name: OctoPrint server
|
||||||
* Script: path to ``run`` in the OctoPrint checkout folder (e.g. ``~/devel/OctoPrint/run`` or ``C:\Devel\OctoPrint\run``)
|
* Module name: ``octoprint``
|
||||||
* Script parameters: ``serve --debug``
|
* Parameters: ``serve --debug``
|
||||||
* Project: ``OctoPrint``
|
* Project: ``OctoPrint``
|
||||||
* Python interpreter: the ``venv`` local virtual environment
|
* Python interpreter: Project Default
|
||||||
* Working directory: the OctoPrint checkout folder (e.g. ``~/devel/OctoPrint`` or ``C:\Devel\OctoPrint``)
|
* Working directory: the OctoPrint checkout folder (e.g. ``~/devel/OctoPrint`` or ``C:\Devel\OctoPrint``)
|
||||||
* If you want dependencies to auto-update on run if necessary: "Before Launch" > "+" > "Run external tool" > "+"
|
* If you want build artifacts to be cleaned up on run (recommended): "Before Launch" > "+" > "Run external tool" > "+"
|
||||||
|
|
||||||
* Name: Update OctoPrint dependencies
|
* Name: Clean build directory
|
||||||
* Program: ``$PyInterpreterDirectory$/pip`` (or ``$PyInterpreterDirectory$/pip.exe`` on Windows)
|
* Program: ``$ModuleSdkPath$``
|
||||||
* Parameters: ``install -e .[develop,plugins]``
|
* Parameters: ``setup.py clean``
|
||||||
* Working directory: ``$ProjectFileDir$``
|
* Working directory: ``$ProjectFileDir$``
|
||||||
|
|
||||||
- Add Run/Debug Configuration, select "Python tests" and therein "Nosetests":
|
* If you want dependencies to auto-update on run if necessary (recommended): "Before Launch" > "+" > "Run external tool" > "+"
|
||||||
|
|
||||||
* Name: OctoPrint nosetests
|
* Name: Update OctoPrint dependencies
|
||||||
* Target: Path, ``.``
|
* Program: ``$ModuleSdkPath$``
|
||||||
|
* Parameters: ``-m pip install -e '.[develop,plugins]'``
|
||||||
|
* Working directory: ``$ProjectFileDir$``
|
||||||
|
|
||||||
|
Note that sadly that seems to cause some hiccups on current PyCharm versions due to ``$PyInterpreterDirectory$``
|
||||||
|
being empty sometimes, so if this fails to run on your installation, you should update your dependencies manually
|
||||||
|
for now.
|
||||||
|
|
||||||
|
- Add Run/Debug Configuration, select "Python tests" and therein "pytest":
|
||||||
|
|
||||||
|
* Name: OctoPrint tests
|
||||||
|
* Target: Custom
|
||||||
* Project: ``OctoPrint``
|
* Project: ``OctoPrint``
|
||||||
* Python interpreter: the ``venv`` local virtual environment
|
* Python interpreter: Project Default
|
||||||
* Working directory: the OctoPrint checkout folder (e.g. ``~/devel/OctoPrint`` or ``C:\Devel\OctoPrint``)
|
* Working directory: the OctoPrint checkout folder (e.g. ``~/devel/OctoPrint`` or ``C:\Devel\OctoPrint``)
|
||||||
* Just like with the run configuration for the server you can also have the dependencies auto-update on run of
|
* Just like with the run configuration for the server you can also have the dependencies auto-update on run of
|
||||||
the tests, see above on how to set this up.
|
the tests, see above on how to set this up.
|
||||||
|
|
||||||
- Add Run/Debug Configuration, select "Python docs" and therein "Sphinx task"
|
- Add Run/Debug Configuration, select "Python":
|
||||||
|
|
||||||
* Name: OctoPrint docs
|
* Name: OctoPrint docs
|
||||||
* Command: ``html``
|
* Module name: ``sphinx.cmd.build``
|
||||||
* Input: the ``docs`` folder in the OctoPrint checkout folder (e.g. ``~/devel/OctoPrint/docs`` or
|
* Parameters: ``-v -T -E ./docs ./docs/_build -b html``
|
||||||
``C:\Devel\OctoPrint\docs``)
|
|
||||||
* Output: the ``docs/_build`` folder in the OctoPrint checkout folder (e.g. ``~/devel/OctoPrint/docs/_build`` or
|
|
||||||
``C:\Devel\OctoPrint\docs\_build``)
|
|
||||||
* Project: ``OctoPrint``
|
* Project: ``OctoPrint``
|
||||||
* Python interpreter: the ``venv`` local virtual environment
|
* Python interpreter: ``venv`` environment
|
||||||
|
* Working directory: the OctoPrint checkout folder (e.g. ``~/devel/OctoPrint`` or ``C:\Devel\OctoPrint``)
|
||||||
* Just like with the run configuration for the server you can also have the dependencies auto-update when building
|
* Just like with the run configuration for the server you can also have the dependencies auto-update when building
|
||||||
the documentation, see above on how to set this up.
|
the documentation, see above on how to set this up.
|
||||||
|
|
||||||
|
Note that this requires you to also have installed the additional ``docs`` dependencies into the Python 3 venv as
|
||||||
|
described above via ``pip install -e '.[develop,plugins,docs]'``.
|
||||||
|
|
||||||
|
- Settings > Tools > File Watchers (you might have to enable this, it's a bundled plugin), add new:
|
||||||
|
|
||||||
|
* Name: pre-commit
|
||||||
|
* File type: Python
|
||||||
|
* Scope: Module 'OctoPrint'
|
||||||
|
* Program: ``$PyInterpreterDirectory$/bin/pre-commit`` (Linux) or ``$PyInterpreterDirectory$/Scripts/pre-commit`` (Windows)
|
||||||
|
* Arguments: ``run --hook-stage manual --files $FilePath$``
|
||||||
|
* Output paths to refresh: ``$FilePath$``
|
||||||
|
* Working directory: ``$ProjectFileDir$``
|
||||||
|
* disable "Auto-save edited files to trigger the watched"
|
||||||
|
* enable "Trigger the watched on external changes"
|
||||||
|
|
||||||
|
To switch between virtual environments (e.g. various Python 3 versions), all you need to do now is change the Project Default Interpreter and restart
|
||||||
|
OctoPrint. On current PyCharm versions you can do that right from a small selection field in the footer of the IDE.
|
||||||
|
Otherwise go through Settings.
|
||||||
|
|
||||||
.. note::
|
.. note::
|
||||||
|
|
||||||
Make sure you are running a PyCharm version of 2016.1 or later, or manually fix
|
Make sure you are running a PyCharm version of 2016.1 or later, or manually fix
|
||||||
`a debugger bug contained in earlier versions <https://youtrack.jetbrains.com/issue/PY-18365>`_ or plugin management
|
`a debugger bug contained in earlier versions <https://youtrack.jetbrains.com/issue/PY-18365>`_ or plugin management
|
||||||
will not work in your developer install when running OctoPrint from PyCharm in debug mode.
|
will not work in your developer install when running OctoPrint from PyCharm in debug mode.
|
||||||
|
|
||||||
|
Visual Studio Code (vscode)
|
||||||
|
---------------------------
|
||||||
|
|
||||||
|
- Install Visual Studio Code from `code.visualstudio.com <https://code.visualstudio.com/Download>`_
|
||||||
|
- Open folder select OctoPrint checkout folder (e.g. ``~/devel/OctoPrint`` or ``C:\Devel\OctoPrint``)
|
||||||
|
|
||||||
|
- Create a directory ``.vscode`` if not already present in the root of the project
|
||||||
|
|
||||||
|
- Create the following files inside the ``.vscode`` directory
|
||||||
|
|
||||||
|
settings.json
|
||||||
|
.. code-block:: json
|
||||||
|
|
||||||
|
{
|
||||||
|
"python.defaultInterpreterPath": "venv3/bin/python",
|
||||||
|
"python.formatting.provider": "black",
|
||||||
|
"python.formatting.blackArgs": [
|
||||||
|
"--config",
|
||||||
|
"black.toml"
|
||||||
|
],
|
||||||
|
"editor.formatOnSave": true,
|
||||||
|
"python.sortImports.args": [
|
||||||
|
"--profile=black",
|
||||||
|
],
|
||||||
|
"[python]": {
|
||||||
|
"editor.codeActionsOnSave": {
|
||||||
|
"source.organizeImports": true
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"python.linting.pylintEnabled": false,
|
||||||
|
"python.linting.flake8Enabled": true,
|
||||||
|
"python.linting.enabled": true
|
||||||
|
}
|
||||||
|
|
||||||
|
tasks.json
|
||||||
|
.. code-block:: json
|
||||||
|
|
||||||
|
{
|
||||||
|
"version": "2.0.0",
|
||||||
|
"tasks": [
|
||||||
|
{
|
||||||
|
"label": "clean build artifacts",
|
||||||
|
"type": "shell",
|
||||||
|
"command": "python ./setup.py clean"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"label": "build docs",
|
||||||
|
"type": "shell",
|
||||||
|
"command": "sphinx-build -b html ./docs ./docs/_build"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
launch.json
|
||||||
|
.. code-block:: json
|
||||||
|
|
||||||
|
{
|
||||||
|
"version": "0.2.0",
|
||||||
|
"configurations": [
|
||||||
|
{
|
||||||
|
"name": "OctoPrint",
|
||||||
|
"type": "python",
|
||||||
|
"request": "launch",
|
||||||
|
"module": "octoprint",
|
||||||
|
"args": [
|
||||||
|
"serve",
|
||||||
|
"--debug"
|
||||||
|
],
|
||||||
|
"cwd": "${workspaceFolder}/src",
|
||||||
|
"preLaunchTask": "clean build artifacts"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
|
||||||
|
In the terminal install the python extension by running this command:
|
||||||
|
|
||||||
|
.. code-block:: bash
|
||||||
|
|
||||||
|
code --install-extension ms-python.python
|
||||||
|
|
||||||
|
In vscode terminal, or with venv active install code formatter black and linter flake8 by running:
|
||||||
|
|
||||||
|
.. code-block:: bash
|
||||||
|
|
||||||
|
python -m pip install -U black flake8 flake8-bugbear
|
||||||
|
|
||||||
|
Summary of vscode config:
|
||||||
|
|
||||||
|
* Pressing ``F5`` will now start OctoPrint in debug mode
|
||||||
|
|
||||||
|
* Your terminal inside vscode uses the virtual python environment
|
||||||
|
|
||||||
|
* Saving a file will run an auto formatter and import sort
|
||||||
|
|
||||||
|
* ``Ctrl+Shift+B`` can be used to run the ``build docs`` task to rebuild the documentation
|
||||||
|
|
||||||
|
|
||||||
@@ -7,5 +7,11 @@ Development
|
|||||||
.. toctree::
|
.. toctree::
|
||||||
:maxdepth: 3
|
:maxdepth: 3
|
||||||
|
|
||||||
|
versioning.rst
|
||||||
|
branches.rst
|
||||||
environment.rst
|
environment.rst
|
||||||
virtual_printer.rst
|
virtual_printer.rst
|
||||||
|
request-profiling.rst
|
||||||
|
|
||||||
|
If you are interested in contributing code to OctoPrint, first of all: Thank you! Please make sure to read the
|
||||||
|
`Contribution Guidelines <https://github.com/OctoPrint/OctoPrint/blob/master/CONTRIBUTING.md>`_!
|
||||||
@@ -0,0 +1,20 @@
|
|||||||
|
.. _sec-request-profiling:
|
||||||
|
|
||||||
|
Profiling requests
|
||||||
|
==================
|
||||||
|
|
||||||
|
Once you have a development environment set up, you will need to launch
|
||||||
|
OctoPrint using ``serve --debug`` as parameters.
|
||||||
|
|
||||||
|
At this point, you are able to make the exact same requests as before. To
|
||||||
|
profile a specific request, just add ``?perfprofile`` or ``&perfprofile`` to the
|
||||||
|
request parameters. The request will be rendered as usual, but you will receive
|
||||||
|
an html document with the profiling results instead of the contents of the
|
||||||
|
response.
|
||||||
|
|
||||||
|
Errors
|
||||||
|
------
|
||||||
|
|
||||||
|
If you receive a ``500: Internal Server Error`` and a ``ModuleNotFoundError: No
|
||||||
|
module named 'pyinstrument'`` in the console, you didn't install development
|
||||||
|
dependencies. Do that now using ``pip install -e '.[develop]'``.
|
||||||
@@ -0,0 +1,31 @@
|
|||||||
|
.. _sec-development-versions:
|
||||||
|
|
||||||
|
OctoPrint's versioning strategy
|
||||||
|
===============================
|
||||||
|
|
||||||
|
OctoPrint's version numbers follow `PEP440 <https://www.python.org/dev/peps/pep-0440/>`_, with a version format of
|
||||||
|
**MAJOR.MINOR.PATCH** following the contract of `semantic versioning <http://semver.org/>`_.
|
||||||
|
|
||||||
|
The **PATCH** version number will increase in case of hotfix releases [#f1]_.
|
||||||
|
Releases that only change the patch number indicate that they only contain bug fixes, and usually
|
||||||
|
only hotfixes at that. Example: ``1.5.0`` to ``1.5.1``.
|
||||||
|
|
||||||
|
The **MINOR** version number increases with releases that add new functionality while maintaining
|
||||||
|
backwards compatibility on the documented APIs (both internal and external). Example: ``1.4.x`` to ``1.5.0``.
|
||||||
|
|
||||||
|
Finally, the **MAJOR** version number increases if there are breaking API changes that concern any of the
|
||||||
|
documented interfaces (REST API, plugin interfaces, ...). Example: ``1.x.y`` to ``2.0.0``.
|
||||||
|
|
||||||
|
OctoPrint's version numbers are automatically generated using a customized version of
|
||||||
|
`versioneer <https://github.com/warner/python-versioneer>`_ and depend on the selected git branch, nearest
|
||||||
|
git tag and commits. Unless a git tag is used for version number determination, the version number will
|
||||||
|
also contain the git hash within the local version identifier to allow for an exact determination of the
|
||||||
|
active code base (e.g. ``1.2.9.dev68+g46c7a9c``). Additionally, instances with active uncommitted changes
|
||||||
|
will contain ``.dirty`` in the local version identifier.
|
||||||
|
|
||||||
|
.. rubric:: Footnotes
|
||||||
|
|
||||||
|
.. [#f1] Up until 1.4.2, the PATCH version segment was the one increasing most often
|
||||||
|
due to OctoPrint's maintenance releases but with 1.5.0 this will *fully* adhere
|
||||||
|
to the concepts in semantic versioning mandating only bug fixes in patch releases.
|
||||||
|
Maintenance releases will henceforth increase the MINOR segment.
|
||||||
@@ -3,7 +3,7 @@
|
|||||||
Setting up the virtual printer for debugging
|
Setting up the virtual printer for debugging
|
||||||
============================================
|
============================================
|
||||||
|
|
||||||
OctoPrint includes, by default, a virtual printer plugin. This plugin allows you to debug OctoPrint's serial
|
OctoPrint includes, by default, a :ref:`virtual printer plugin <sec-bundledplugins-virtual_printer>`. This plugin allows you to debug OctoPrint's serial
|
||||||
communication without connecting to an actual printer. Furthermore, it is possible to create certain edge conditions
|
communication without connecting to an actual printer. Furthermore, it is possible to create certain edge conditions
|
||||||
that may be hard to reproduce with a real printer.
|
that may be hard to reproduce with a real printer.
|
||||||
|
|
||||||
@@ -12,33 +12,219 @@ that may be hard to reproduce with a real printer.
|
|||||||
Enabling the virtual printer
|
Enabling the virtual printer
|
||||||
----------------------------
|
----------------------------
|
||||||
|
|
||||||
The virtual printer is enabled by editing OctoPrint's config.yaml file. Details on the configuration file can
|
The virtual printer can be enabled through its Settings pane.
|
||||||
be found in the full :ref:`config.yaml documentation <sec-configuration-config_yaml>`.
|
|
||||||
|
|
||||||
The steps to take are as follows:
|
|
||||||
|
|
||||||
* Find config.yaml in the OctoPrint settings folder. Usually in ``~/.octoprint`` on Linux, in ``%APPDATA%/OctoPrint`` on Windows and in ``~/Library/Application Support/OctoPrint`` on MacOS.
|
|
||||||
* Add or extend the ``devel`` section with:
|
|
||||||
|
|
||||||
.. code-block:: yaml
|
|
||||||
|
|
||||||
devel:
|
|
||||||
virtualPrinter:
|
|
||||||
enabled: true
|
|
||||||
|
|
||||||
* Restart OctoPrint.
|
|
||||||
* In the connection panel, a new option will appear in the Serial Port dropdown labeled ``VIRTUAL``.
|
|
||||||
* Select this option and click ``connect``.
|
|
||||||
* The virtual printer is now active.
|
|
||||||
|
|
||||||
.. _sec-development-virtual-printer-config:
|
.. _sec-development-virtual-printer-config:
|
||||||
|
|
||||||
Virtual printer configuration options
|
Virtual printer configuration options
|
||||||
-------------------------------------
|
-------------------------------------
|
||||||
|
|
||||||
The config.yaml file has many configuration options for the virtual printer that allow you to fine-tune its behavior.
|
There many configuration options via ``config.yaml`` for the virtual printer that allow you to fine-tune its behavior:
|
||||||
|
|
||||||
Please see the relevant :ref:`config.yaml section <sec-configuration-config_yaml-devel>` for the full details.
|
.. code-block:: yaml
|
||||||
|
|
||||||
|
plugins:
|
||||||
|
|
||||||
|
# Settings for the virtual printer
|
||||||
|
virtual_printer:
|
||||||
|
|
||||||
|
# Whether to enable the virtual printer and include it in the list of available serial connections.
|
||||||
|
# Defaults to false.
|
||||||
|
enabled: true
|
||||||
|
|
||||||
|
# Whether to send an additional "ok" after a resend request (like Repetier)
|
||||||
|
okAfterResend: false
|
||||||
|
|
||||||
|
# Whether to force checksums and line number in the communication (like Repetier), if set to true
|
||||||
|
# printer will only accept commands that come with linenumber and checksum and throw an error for
|
||||||
|
# lines that don't. Defaults to false
|
||||||
|
forceChecksum: false
|
||||||
|
|
||||||
|
# Whether to send "ok" responses with the line number that gets acknowledged by the "ok". Defaults
|
||||||
|
# to false.
|
||||||
|
okWithLinenumber: false
|
||||||
|
|
||||||
|
# Number of extruders to simulate on the virtual printer. Map from tool id (0, 1, ...) to temperature
|
||||||
|
# in °C
|
||||||
|
numExtruders: 1
|
||||||
|
|
||||||
|
# Allows pinning certain hotends to a fixed temperature
|
||||||
|
pinnedExtruders: null
|
||||||
|
|
||||||
|
# Whether to include the current tool temperature in the M105 output as separate T segment or not.
|
||||||
|
#
|
||||||
|
# True: > M105
|
||||||
|
# < ok T:23.5/0.0 T0:34.3/0.0 T1:23.5/0.0 B:43.2/0.0
|
||||||
|
# False: > M105
|
||||||
|
# < ok T0:34.3/0.0 T1:23.5/0.0 B:43.2/0.0
|
||||||
|
includeCurrentToolInTemps: true
|
||||||
|
|
||||||
|
# Whether to include the selected filename in the M23 File opened response.
|
||||||
|
#
|
||||||
|
# True: > M23 filename.gcode
|
||||||
|
# < File opened: filename.gcode Size: 27
|
||||||
|
# False: > M23 filename.gcode
|
||||||
|
# > File opened
|
||||||
|
includeFilenameInOpened: true
|
||||||
|
|
||||||
|
# Whether the simulated printer should also simulate a heated bed or not
|
||||||
|
hasBed: true
|
||||||
|
|
||||||
|
# Whether the simulated printer should also simulate a heated chamber or not
|
||||||
|
hasChamber: false
|
||||||
|
|
||||||
|
# If enabled, reports the set target temperatures as separate messages from the firmware
|
||||||
|
#
|
||||||
|
# True: > M109 S220.0
|
||||||
|
# < TargetExtr0:220.0
|
||||||
|
# < ok
|
||||||
|
# > M105
|
||||||
|
# < ok T0:34.3 T1:23.5 B:43.2
|
||||||
|
# False: > M109 S220.0
|
||||||
|
# < ok
|
||||||
|
# > M105
|
||||||
|
# < ok T0:34.3/220.0 T1:23.5/0.0 B:43.2/0.0
|
||||||
|
repetierStyleTargetTemperature: false
|
||||||
|
|
||||||
|
# If enabled, uses repetier style resends, sending multiple resends for the same line
|
||||||
|
# to make sure nothing gets lost on the line
|
||||||
|
repetierStyleResends: false
|
||||||
|
|
||||||
|
# If enabled, ok will be sent before a commands output, otherwise after or inline (M105)
|
||||||
|
#
|
||||||
|
# True: > M20
|
||||||
|
# < ok
|
||||||
|
# < Begin file list
|
||||||
|
# < End file list
|
||||||
|
# False: > M20
|
||||||
|
# < Begin file list
|
||||||
|
# < End file list
|
||||||
|
# < ok
|
||||||
|
okBeforeCommandOutput: false
|
||||||
|
|
||||||
|
# If enabled, reports the first extruder in M105 responses as T instead of T0
|
||||||
|
#
|
||||||
|
# True: > M105
|
||||||
|
# < ok T:34.3/0.0 T1:23.5/0.0 B:43.2/0.0
|
||||||
|
# False: > M105
|
||||||
|
# < ok T0:34.3/0.0 T1:23.5/0.0 B:43.2/0.0
|
||||||
|
smoothieTemperatureReporting: false
|
||||||
|
|
||||||
|
# Settings related to the SD file list output
|
||||||
|
sdFiles:
|
||||||
|
# Whether M20 responses will include filesize or not
|
||||||
|
#
|
||||||
|
# True: <filename> <filesize in bytes>
|
||||||
|
# False: <filename>
|
||||||
|
size: true
|
||||||
|
|
||||||
|
# Whether M20 responses will include longname or not (only if size = true as well)
|
||||||
|
#
|
||||||
|
# True: <filename> <filesize in bytes> <longname>
|
||||||
|
# False: <filename> <filesize in bytes>
|
||||||
|
longname: false
|
||||||
|
|
||||||
|
# Forced pause for retrieving from the outgoing buffer
|
||||||
|
throttle: 0.01
|
||||||
|
|
||||||
|
# Whether to send "wait" responses every "waitInterval" seconds when serial rx buffer is empty
|
||||||
|
sendWait: false
|
||||||
|
|
||||||
|
# Interval in which to send "wait" lines when rx buffer is empty
|
||||||
|
waitInterval: 1
|
||||||
|
|
||||||
|
# Size of the simulated RX buffer in bytes, when it's full a send from OctoPrint's
|
||||||
|
# side will block
|
||||||
|
rxBuffer: 64
|
||||||
|
|
||||||
|
# Size of simulated command buffer, number of commands. If full, buffered commands will block
|
||||||
|
# until a slot frees up
|
||||||
|
commandBuffer: 4
|
||||||
|
|
||||||
|
# Whether to support the M112 command with simulated kill
|
||||||
|
supportM112: true
|
||||||
|
|
||||||
|
# Whether to send messages received via M117 back as "echo:" lines
|
||||||
|
echoOnM117: true
|
||||||
|
|
||||||
|
# Whether to simulate broken M29 behaviour (missing ok after response)
|
||||||
|
brokenM29: true
|
||||||
|
|
||||||
|
# Whether F is supported as individual command
|
||||||
|
supportF: false
|
||||||
|
|
||||||
|
# Firmware name to report (useful for testing firmware detection)
|
||||||
|
firmwareName: Virtual Marlin 1.0
|
||||||
|
|
||||||
|
# Simulate a shared nozzle
|
||||||
|
sharedNozzle: false
|
||||||
|
|
||||||
|
# Send "busy" messages if busy processing something
|
||||||
|
sendBusy: false
|
||||||
|
|
||||||
|
# Simulate a reset on connect
|
||||||
|
simulateReset: true
|
||||||
|
|
||||||
|
# Lines to send on simulated reset
|
||||||
|
resetLines:
|
||||||
|
- start
|
||||||
|
- "Marlin: Virtual Marlin!"
|
||||||
|
- "SD card ok"
|
||||||
|
|
||||||
|
# Initial set of prepared oks to use instead of regular ok (e.g. to simulate
|
||||||
|
# mis-sent oks). Can also be filled at runtime via the debug command prepare_ok
|
||||||
|
preparedOks: []
|
||||||
|
|
||||||
|
# Format string for ok response.
|
||||||
|
#
|
||||||
|
# Placeholders:
|
||||||
|
# - lastN: last acknowledged line number
|
||||||
|
# - buffer: empty slots in internal command buffer
|
||||||
|
#
|
||||||
|
# Example format string for "extended" ok format:
|
||||||
|
# ok N{lastN} P{buffer}
|
||||||
|
okFormatString: ok
|
||||||
|
|
||||||
|
# Format string for M115 output.
|
||||||
|
#
|
||||||
|
# Placeholders:
|
||||||
|
# - firmare_name: The firmware name as defined in firmwareName
|
||||||
|
m115FormatString: "FIRMWARE_NAME: {firmware_name} PROTOCOL_VERSION:1.0"
|
||||||
|
|
||||||
|
# Whether to include capability report in M115 output
|
||||||
|
m115ReportCapabilites: false
|
||||||
|
|
||||||
|
# Capabilities to report if capability report is enabled
|
||||||
|
capabilities:
|
||||||
|
AUTOREPORT_TEMP: true
|
||||||
|
|
||||||
|
# Simulated ambient temperature in °C
|
||||||
|
ambientTemperature: 21.3
|
||||||
|
|
||||||
|
# Response to M105 when there is a target
|
||||||
|
# Placeholders:
|
||||||
|
# - heater: The heater id (eg. T0, T1, B)
|
||||||
|
# - actual: The actual temperature of the heater
|
||||||
|
# - target: The target temperature of heater
|
||||||
|
m105TargetFormatString: {heater}:{actual:.2f}/ {target:.2f}
|
||||||
|
|
||||||
|
# Response to M105 when there is no target
|
||||||
|
# Placeholders:
|
||||||
|
# - heater: The heater id (eg. T0, T1, B)
|
||||||
|
# - actual: The actual temperature of the heater
|
||||||
|
m105NoTargetFormatString: {heater}:{actual:.2f}
|
||||||
|
|
||||||
|
# Enable virtual EEPROM
|
||||||
|
# If enabled, a file `eeprom.json` will be created in the plugin data folder
|
||||||
|
# to enable settings persistence across connections. Enables M500/1/2/4 commmands
|
||||||
|
# And a selection of other settings commands. Responses modeled on Marlin 2.0
|
||||||
|
enable_eeprom: true
|
||||||
|
|
||||||
|
# Support M503
|
||||||
|
support_m503: true
|
||||||
|
|
||||||
|
# Resend ratio to simulate noise on the line
|
||||||
|
resend_ratio: 0
|
||||||
|
|
||||||
.. _sec-development-virtual-printer-log:
|
.. _sec-development-virtual-printer-log:
|
||||||
|
|
||||||
@@ -46,7 +232,7 @@ Log file
|
|||||||
--------
|
--------
|
||||||
|
|
||||||
Once activated, the virtual printer will log all serial communication in the ``plugin_virtual_printer_serial.log`` file
|
Once activated, the virtual printer will log all serial communication in the ``plugin_virtual_printer_serial.log`` file
|
||||||
that can be found in the OctoPrint settings folder.
|
that can be found in the OctoPrint logs folder.
|
||||||
|
|
||||||
.. _sec-development-virtual-printer-debug:
|
.. _sec-development-virtual-printer-debug:
|
||||||
|
|
||||||
|
|||||||
+179
-7
@@ -100,20 +100,53 @@ Shutdown
|
|||||||
The server is shutting down.
|
The server is shutting down.
|
||||||
|
|
||||||
ClientOpened
|
ClientOpened
|
||||||
A client has connected to the web server.
|
A client has connected to the push socket.
|
||||||
|
|
||||||
Payload:
|
Payload:
|
||||||
|
|
||||||
* ``remoteAddress``: the remote address (IP) of the client that connected
|
* ``remoteAddress``: the remote address (IP) of the client that connected. On the push socket only available with
|
||||||
|
a valid login session.
|
||||||
|
|
||||||
**Note:** Name changed in version 1.1.0
|
**Note:** Name changed in version 1.1.0
|
||||||
|
|
||||||
ClientClosed
|
.. versionchanged:: 1.1.0
|
||||||
A client has disconnected from the webserver
|
.. versionchanged:: 1.4.0
|
||||||
|
|
||||||
|
ClientAuthed
|
||||||
|
A client has authenticated a user session on the push socket.
|
||||||
|
|
||||||
Payload:
|
Payload:
|
||||||
|
|
||||||
* ``remoteAddress``: the remote address (IP) of the client that disconnected
|
* ``remoteAddress``: the remote address (IP) of the client that authed. On the push socket only available with a
|
||||||
|
valid login session.
|
||||||
|
* ``username``: the name of the user who authed. On the push socket only available with a valid login session.
|
||||||
|
|
||||||
|
.. versionadded:: 1.4.0
|
||||||
|
|
||||||
|
ClientClosed
|
||||||
|
A client has disconnected from the push socket.
|
||||||
|
|
||||||
|
Payload:
|
||||||
|
|
||||||
|
* ``remoteAddress``: the remote address (IP) of the client that disconnected. On the push socket only available
|
||||||
|
with a valid login session.
|
||||||
|
|
||||||
|
UserLoggedIn
|
||||||
|
A user logged in. On the push socket only available with a valid login session with admin rights.
|
||||||
|
|
||||||
|
Payload:
|
||||||
|
|
||||||
|
* ``username``: the name of the user who logged in
|
||||||
|
|
||||||
|
.. versionadded:: 1.4.0
|
||||||
|
|
||||||
|
UserLoggedOut
|
||||||
|
A user logged out. On the push socket only available with a valid login session with admin rights.
|
||||||
|
|
||||||
|
Payload:
|
||||||
|
* ``username``: the name of the user who logged out
|
||||||
|
|
||||||
|
.. versionadded:: 1.4.0
|
||||||
|
|
||||||
ConnectivityChanged
|
ConnectivityChanged
|
||||||
The server's internet connectivity changed
|
The server's internet connectivity changed
|
||||||
@@ -123,6 +156,8 @@ ConnectivityChanged
|
|||||||
* ``old``: Old connectivity value (true for online, false for offline)
|
* ``old``: Old connectivity value (true for online, false for offline)
|
||||||
* ``new``: New connectivity value (true for online, false for offline)
|
* ``new``: New connectivity value (true for online, false for offline)
|
||||||
|
|
||||||
|
.. versionadded:: 1.3.5
|
||||||
|
|
||||||
.. _sec-events-available_events-printer_commmunication:
|
.. _sec-events-available_events-printer_commmunication:
|
||||||
|
|
||||||
Printer communication
|
Printer communication
|
||||||
@@ -131,6 +166,8 @@ Printer communication
|
|||||||
Connecting
|
Connecting
|
||||||
The server is attempting to connect to the printer.
|
The server is attempting to connect to the printer.
|
||||||
|
|
||||||
|
.. versionadded:: 1.3.0
|
||||||
|
|
||||||
Connected
|
Connected
|
||||||
The server has connected to the printer.
|
The server has connected to the printer.
|
||||||
|
|
||||||
@@ -144,6 +181,8 @@ Disconnecting
|
|||||||
event might not always be sent when the server and printer get disconnected
|
event might not always be sent when the server and printer get disconnected
|
||||||
from each other. Do not depend on this for critical life cycle management.
|
from each other. Do not depend on this for critical life cycle management.
|
||||||
|
|
||||||
|
.. versionadded:: 1.3.0
|
||||||
|
|
||||||
Disconnected
|
Disconnected
|
||||||
The server has disconnected from the printer
|
The server has disconnected from the printer
|
||||||
|
|
||||||
@@ -151,6 +190,9 @@ Error
|
|||||||
An unrecoverable error has been encountered, either as reported by the firmware (e.g. a thermal runaway) or
|
An unrecoverable error has been encountered, either as reported by the firmware (e.g. a thermal runaway) or
|
||||||
on the connection.
|
on the connection.
|
||||||
|
|
||||||
|
Note that this event will not fire for error messages from the firmware that are handled (and as such recovered from)
|
||||||
|
either by OctoPrint or a plugin.
|
||||||
|
|
||||||
Payload:
|
Payload:
|
||||||
|
|
||||||
* ``error``: the error string
|
* ``error``: the error string
|
||||||
@@ -164,23 +206,30 @@ PrinterStateChanged
|
|||||||
:func:`~octoprint.printer.PrinterInterface.get_state_id` for possible values.
|
:func:`~octoprint.printer.PrinterInterface.get_state_id` for possible values.
|
||||||
* ``state_string``: Text representation of the new state.
|
* ``state_string``: Text representation of the new state.
|
||||||
|
|
||||||
|
.. versionadded:: 1.3.0
|
||||||
|
|
||||||
.. _sec-events-available_events-file_handling:
|
.. _sec-events-available_events-file_handling:
|
||||||
|
|
||||||
File handling
|
File handling
|
||||||
-------------
|
-------------
|
||||||
|
|
||||||
Upload
|
Upload
|
||||||
A file has been uploaded through the web interface.
|
A file has been uploaded through the :ref:`REST API <sec-api-fileops-uploadfile>`.
|
||||||
|
|
||||||
Payload:
|
Payload:
|
||||||
* ``name``: the file's name
|
* ``name``: the file's name
|
||||||
* ``path``: the file's path within its storage location
|
* ``path``: the file's path within its storage location
|
||||||
* ``target``: the target storage location to which the file was uploaded, either ``local`` or ``sdcard``
|
* ``target``: the target storage location to which the file was uploaded, either ``local`` or ``sdcard``
|
||||||
|
* ``select``: whether the file will immediately be selected, as requested on the API by the corresponding parameter
|
||||||
|
* ``print``: whether the file will immediately start printing, as requested on the API by the corresponding parameter
|
||||||
|
* ``userdata``: optional ``userdata`` if provided on the API, will only be present if supplied in the upload request
|
||||||
|
|
||||||
.. deprecated:: 1.3.0
|
.. deprecated:: 1.3.0
|
||||||
|
|
||||||
* ``file``: the file's path within its storage location. To be removed in 1.4.0.
|
* ``file``: the file's path within its storage location. To be removed in 1.4.0.
|
||||||
|
|
||||||
|
.. versionchanged:: 1.4.0
|
||||||
|
|
||||||
FileAdded
|
FileAdded
|
||||||
A file has been added to a storage.
|
A file has been added to a storage.
|
||||||
|
|
||||||
@@ -196,6 +245,8 @@ FileAdded
|
|||||||
A copied file triggers this for its new path. A moved file first triggers ``FileRemoved`` for its original
|
A copied file triggers this for its new path. A moved file first triggers ``FileRemoved`` for its original
|
||||||
path and then ``FileAdded`` for the new one.
|
path and then ``FileAdded`` for the new one.
|
||||||
|
|
||||||
|
.. versionadded:: 1.3.3
|
||||||
|
|
||||||
FileRemoved
|
FileRemoved
|
||||||
A file has been removed from a storage.
|
A file has been removed from a storage.
|
||||||
|
|
||||||
@@ -210,6 +261,8 @@ FileRemoved
|
|||||||
|
|
||||||
A moved file first triggers ``FileRemoved`` for its original path and then ``FileAdded`` for the new one.
|
A moved file first triggers ``FileRemoved`` for its original path and then ``FileAdded`` for the new one.
|
||||||
|
|
||||||
|
.. versionadded:: 1.3.3
|
||||||
|
|
||||||
FolderAdded
|
FolderAdded
|
||||||
A folder has been added to a storage.
|
A folder has been added to a storage.
|
||||||
|
|
||||||
@@ -223,6 +276,8 @@ FolderAdded
|
|||||||
A copied folder triggers this for its new path. A moved folder first triggers ``FolderRemoved`` for its original
|
A copied folder triggers this for its new path. A moved folder first triggers ``FolderRemoved`` for its original
|
||||||
path and then ``FolderAdded`` for the new one.
|
path and then ``FolderAdded`` for the new one.
|
||||||
|
|
||||||
|
.. versionadded:: 1.3.3
|
||||||
|
|
||||||
FolderRemoved
|
FolderRemoved
|
||||||
A folder has been removed from a storage.
|
A folder has been removed from a storage.
|
||||||
|
|
||||||
@@ -235,6 +290,8 @@ FolderRemoved
|
|||||||
|
|
||||||
A moved folder first triggers ``FolderRemoved`` for its original path and then ``FolderAdded`` for the new one.
|
A moved folder first triggers ``FolderRemoved`` for its original path and then ``FolderAdded`` for the new one.
|
||||||
|
|
||||||
|
.. versionadded:: 1.3.3
|
||||||
|
|
||||||
UpdatedFiles
|
UpdatedFiles
|
||||||
A file list was modified.
|
A file list was modified.
|
||||||
|
|
||||||
@@ -249,6 +306,7 @@ UpdatedFiles
|
|||||||
reasons of backwards compatibility and will also be sent on modification of ``printables``. It will however
|
reasons of backwards compatibility and will also be sent on modification of ``printables``. It will however
|
||||||
be removed with 1.4.0.
|
be removed with 1.4.0.
|
||||||
|
|
||||||
|
.. versionchanged:: 1.4.0
|
||||||
|
|
||||||
MetadataAnalysisStarted
|
MetadataAnalysisStarted
|
||||||
The metadata analysis of a file has started.
|
The metadata analysis of a file has started.
|
||||||
@@ -263,6 +321,8 @@ MetadataAnalysisStarted
|
|||||||
|
|
||||||
* ``file``: the file's path within its storage location. To be removed in 1.4.0.
|
* ``file``: the file's path within its storage location. To be removed in 1.4.0.
|
||||||
|
|
||||||
|
.. versionchanged:: 1.4.0
|
||||||
|
|
||||||
MetadataAnalysisFinished
|
MetadataAnalysisFinished
|
||||||
The metadata analysis of a file has finished.
|
The metadata analysis of a file has finished.
|
||||||
|
|
||||||
@@ -277,6 +337,8 @@ MetadataAnalysisFinished
|
|||||||
|
|
||||||
* ``file``: the file's path within its storage location. To be removed in 1.4.0.
|
* ``file``: the file's path within its storage location. To be removed in 1.4.0.
|
||||||
|
|
||||||
|
.. versionchanged:: 1.4.0
|
||||||
|
|
||||||
FileSelected
|
FileSelected
|
||||||
A file has been selected for printing.
|
A file has been selected for printing.
|
||||||
|
|
||||||
@@ -291,6 +353,8 @@ FileSelected
|
|||||||
* ``file``: the file's full path on disk (``local``) or within its storage (``sdcard``). To be removed in 1.4.0.
|
* ``file``: the file's full path on disk (``local``) or within its storage (``sdcard``). To be removed in 1.4.0.
|
||||||
* ``filename``: the file's name. To be removed in 1.4.0.
|
* ``filename``: the file's name. To be removed in 1.4.0.
|
||||||
|
|
||||||
|
.. versionchanged:: 1.4.0
|
||||||
|
|
||||||
FileDeselected
|
FileDeselected
|
||||||
No file is selected any more for printing.
|
No file is selected any more for printing.
|
||||||
|
|
||||||
@@ -304,6 +368,8 @@ TransferStarted
|
|||||||
|
|
||||||
**Note:** Name changed in version 1.1.0
|
**Note:** Name changed in version 1.1.0
|
||||||
|
|
||||||
|
.. versionchanged:: 1.1.0
|
||||||
|
|
||||||
TransferDone
|
TransferDone
|
||||||
A file transfer to the printer's SD has finished.
|
A file transfer to the printer's SD has finished.
|
||||||
|
|
||||||
@@ -335,6 +401,8 @@ PrintStarted
|
|||||||
* ``file``: the file's full path on disk (``local``) or within its storage (``sdcard``). To be removed in 1.4.0.
|
* ``file``: the file's full path on disk (``local``) or within its storage (``sdcard``). To be removed in 1.4.0.
|
||||||
* ``filename``: the file's name. To be removed in 1.4.0.
|
* ``filename``: the file's name. To be removed in 1.4.0.
|
||||||
|
|
||||||
|
.. versionchanged:: 1.4.0
|
||||||
|
|
||||||
PrintFailed
|
PrintFailed
|
||||||
A print failed.
|
A print failed.
|
||||||
|
|
||||||
@@ -353,6 +421,8 @@ PrintFailed
|
|||||||
* ``file``: the file's full path on disk (``local``) or within its storage (``sdcard``). To be removed in 1.4.0.
|
* ``file``: the file's full path on disk (``local``) or within its storage (``sdcard``). To be removed in 1.4.0.
|
||||||
* ``filename``: the file's name. To be removed in 1.4.0.
|
* ``filename``: the file's name. To be removed in 1.4.0.
|
||||||
|
|
||||||
|
.. versionchanged:: 1.4.0
|
||||||
|
|
||||||
PrintDone
|
PrintDone
|
||||||
A print completed successfully.
|
A print completed successfully.
|
||||||
|
|
||||||
@@ -370,6 +440,8 @@ PrintDone
|
|||||||
* ``file``: the file's full path on disk (``local``) or within its storage (``sdcard``). To be removed in 1.4.0.
|
* ``file``: the file's full path on disk (``local``) or within its storage (``sdcard``). To be removed in 1.4.0.
|
||||||
* ``filename``: the file's name. To be removed in 1.4.0.
|
* ``filename``: the file's name. To be removed in 1.4.0.
|
||||||
|
|
||||||
|
.. versionchanged:: 1.4.0
|
||||||
|
|
||||||
PrintCancelling
|
PrintCancelling
|
||||||
The print is about to be cancelled.
|
The print is about to be cancelled.
|
||||||
|
|
||||||
@@ -383,6 +455,8 @@ PrintCancelling
|
|||||||
* ``user``: the user who cancelled the print job (if available)
|
* ``user``: the user who cancelled the print job (if available)
|
||||||
* ``firmwareError``: the firmware error that caused cancelling the print job, if any
|
* ``firmwareError``: the firmware error that caused cancelling the print job, if any
|
||||||
|
|
||||||
|
.. versionadded:: 1.3.7
|
||||||
|
|
||||||
PrintCancelled
|
PrintCancelled
|
||||||
The print has been cancelled.
|
The print has been cancelled.
|
||||||
|
|
||||||
@@ -413,6 +487,8 @@ PrintCancelled
|
|||||||
* ``file``: the file's full path on disk (``local``) or within its storage (``sdcard``). To be removed in 1.4.0.
|
* ``file``: the file's full path on disk (``local``) or within its storage (``sdcard``). To be removed in 1.4.0.
|
||||||
* ``filename``: the file's name. To be removed in 1.4.0.
|
* ``filename``: the file's name. To be removed in 1.4.0.
|
||||||
|
|
||||||
|
.. versionchanged:: 1.4.0
|
||||||
|
|
||||||
PrintPaused
|
PrintPaused
|
||||||
The print has been paused.
|
The print has been paused.
|
||||||
|
|
||||||
@@ -442,6 +518,8 @@ PrintPaused
|
|||||||
* ``file``: the file's full path on disk (``local``) or within its storage (``sdcard``). To be removed in 1.4.0.
|
* ``file``: the file's full path on disk (``local``) or within its storage (``sdcard``). To be removed in 1.4.0.
|
||||||
* ``filename``: the file's name. To be removed in 1.4.0.
|
* ``filename``: the file's name. To be removed in 1.4.0.
|
||||||
|
|
||||||
|
.. versionchanged:: 1.4.0
|
||||||
|
|
||||||
PrintResumed
|
PrintResumed
|
||||||
The print has been resumed.
|
The print has been resumed.
|
||||||
|
|
||||||
@@ -459,6 +537,36 @@ PrintResumed
|
|||||||
* ``file``: the file's full path on disk (``local``) or within its storage (``sdcard``). To be removed in 1.4.0.
|
* ``file``: the file's full path on disk (``local``) or within its storage (``sdcard``). To be removed in 1.4.0.
|
||||||
* ``filename``: the file's name. To be removed in 1.4.0.
|
* ``filename``: the file's name. To be removed in 1.4.0.
|
||||||
|
|
||||||
|
.. versionchanged:: 1.4.0
|
||||||
|
|
||||||
|
GcodeScript${ScriptName}Running
|
||||||
|
A custom :ref:`GCODE script <sec-features-gcode_scripts>` has started running.
|
||||||
|
|
||||||
|
Payload:
|
||||||
|
|
||||||
|
* ``name``: the file's name
|
||||||
|
* ``path``: the file's path within its storage location
|
||||||
|
* ``origin``: the origin storage location of the file, either ``local`` or ``sdcard``
|
||||||
|
* ``size``: the file's size in bytes (if available)
|
||||||
|
* ``owner``: the user who started the print job (if available)
|
||||||
|
* ``time``: the time needed for the print, in seconds (float)
|
||||||
|
|
||||||
|
.. versionadded:: 1.6.0
|
||||||
|
|
||||||
|
GcodeScript${ScriptName}Finished
|
||||||
|
A custom :ref:`GCODE script <sec-features-gcode_scripts>` has finished running.
|
||||||
|
|
||||||
|
Payload:
|
||||||
|
|
||||||
|
* ``name``: the file's name
|
||||||
|
* ``path``: the file's path within its storage location
|
||||||
|
* ``origin``: the origin storage location of the file, either ``local`` or ``sdcard``
|
||||||
|
* ``size``: the file's size in bytes (if available)
|
||||||
|
* ``owner``: the user who started the print job (if available)
|
||||||
|
* ``time``: the time needed for the print, in seconds (float)
|
||||||
|
|
||||||
|
.. versionadded:: 1.6.0
|
||||||
|
|
||||||
.. _sec-events-available_events-gcode_processing:
|
.. _sec-events-available_events-gcode_processing:
|
||||||
|
|
||||||
GCODE processing
|
GCODE processing
|
||||||
@@ -499,6 +607,11 @@ Eject
|
|||||||
EStop
|
EStop
|
||||||
An ``M112`` was sent to the printer through OctoPrint (not triggered when printing from SD!)
|
An ``M112`` was sent to the printer through OctoPrint (not triggered when printing from SD!)
|
||||||
|
|
||||||
|
FilamentChange
|
||||||
|
An ``M600``, ``M701`` or ``M702`` was sent to the printer through OctoPrint (not triggered when printing from SD!)
|
||||||
|
|
||||||
|
.. versionadded:: 1.7.0
|
||||||
|
|
||||||
PositionUpdate
|
PositionUpdate
|
||||||
The response to an ``M114`` was received by OctoPrint. The payload contains the current position information
|
The response to an ``M114`` was received by OctoPrint. The payload contains the current position information
|
||||||
parsed from the response and (in the case of the selected tool ``t`` and the current feedrate ``f``) tracked
|
parsed from the response and (in the case of the selected tool ``t`` and the current feedrate ``f``) tracked
|
||||||
@@ -513,6 +626,8 @@ PositionUpdate
|
|||||||
* ``t``: last tool selected *through OctoPrint*
|
* ``t``: last tool selected *through OctoPrint*
|
||||||
* ``f``: last feedrate for move commands ``G0``, ``G1`` or ``G28`` sent *through OctoPrint*
|
* ``f``: last feedrate for move commands ``G0``, ``G1`` or ``G28`` sent *through OctoPrint*
|
||||||
|
|
||||||
|
.. versionadded:: 1.3.0
|
||||||
|
|
||||||
ToolChange
|
ToolChange
|
||||||
A tool change command was sent to the printer. The payload contains the former current tool index and the
|
A tool change command was sent to the printer. The payload contains the former current tool index and the
|
||||||
new current tool index.
|
new current tool index.
|
||||||
@@ -522,6 +637,34 @@ ToolChange
|
|||||||
* ``old``: old tool index
|
* ``old``: old tool index
|
||||||
* ``new``: new tool index
|
* ``new``: new tool index
|
||||||
|
|
||||||
|
.. versionadded:: 1.3.5
|
||||||
|
|
||||||
|
CommandSuppressed
|
||||||
|
A command was suppressed by OctoPrint due to according configuration and will not be
|
||||||
|
sent to the printer.
|
||||||
|
|
||||||
|
Payload:
|
||||||
|
|
||||||
|
* ``command``: the command that was suppressed
|
||||||
|
* ``message``: a message containing an explanation of the command suppression
|
||||||
|
* ``severity``: a severity level, either ``warn`` or ``info`` - ``warn`` indicates
|
||||||
|
that the command was suppressed probably due to a misconfiguration either inside
|
||||||
|
OctoPrint or the firmware and that it should be investigated by the user
|
||||||
|
|
||||||
|
.. versionadded:: 1.5.0
|
||||||
|
|
||||||
|
InvalidToolReported
|
||||||
|
The firmware reported a tool as invalid upon trying to select it. It has thus been marked
|
||||||
|
as invalid and further attempts to select said tool will result in the tool command
|
||||||
|
to get suppressed (and ``SuppressedCommand`` to be generated).
|
||||||
|
|
||||||
|
Payload:
|
||||||
|
|
||||||
|
* ``tool``: the tool number that was reported as invalid by the firmware
|
||||||
|
* ``fallback``: the tool number that OctoPrint will revert to
|
||||||
|
|
||||||
|
.. versionadded:: 1.5.0
|
||||||
|
|
||||||
.. _sec-events-available_events-timelapses:
|
.. _sec-events-available_events-timelapses:
|
||||||
|
|
||||||
Timelapses
|
Timelapses
|
||||||
@@ -547,6 +690,8 @@ CaptureFailed
|
|||||||
* ``file``: the name of the image file that should have been saved
|
* ``file``: the name of the image file that should have been saved
|
||||||
* ``error``: the error that was caught
|
* ``error``: the error that was caught
|
||||||
|
|
||||||
|
.. versionadded:: 1.3.0
|
||||||
|
|
||||||
MovieRendering
|
MovieRendering
|
||||||
The timelapse movie has started rendering.
|
The timelapse movie has started rendering.
|
||||||
|
|
||||||
@@ -588,6 +733,7 @@ SlicingStarted
|
|||||||
|
|
||||||
Payload:
|
Payload:
|
||||||
|
|
||||||
|
* ``slicer``: the used slicer
|
||||||
* ``stl``: the STL's filename
|
* ``stl``: the STL's filename
|
||||||
* ``stl_location``: the STL's location
|
* ``stl_location``: the STL's location
|
||||||
* ``gcode``: the sliced GCODE's filename
|
* ``gcode``: the sliced GCODE's filename
|
||||||
@@ -599,6 +745,7 @@ SlicingDone
|
|||||||
|
|
||||||
Payload:
|
Payload:
|
||||||
|
|
||||||
|
* ``slicer``: the used slicer
|
||||||
* ``stl``: the STL's filename
|
* ``stl``: the STL's filename
|
||||||
* ``stl_location``: the STL's location
|
* ``stl_location``: the STL's location
|
||||||
* ``gcode``: the sliced GCODE's filename
|
* ``gcode``: the sliced GCODE's filename
|
||||||
@@ -611,6 +758,7 @@ SlicingCancelled
|
|||||||
|
|
||||||
Payload:
|
Payload:
|
||||||
|
|
||||||
|
* ``slicer``: the used slicer
|
||||||
* ``stl``: the STL's filename
|
* ``stl``: the STL's filename
|
||||||
* ``stl_location``: the STL's location
|
* ``stl_location``: the STL's location
|
||||||
* ``gcode``: the sliced GCODE's filename
|
* ``gcode``: the sliced GCODE's filename
|
||||||
@@ -621,6 +769,7 @@ SlicingFailed
|
|||||||
|
|
||||||
Payload:
|
Payload:
|
||||||
|
|
||||||
|
* ``slicer``: the used slicer
|
||||||
* ``stl``: the STL's filename
|
* ``stl``: the STL's filename
|
||||||
* ``stl_location``: the STL's location
|
* ``stl_location``: the STL's location
|
||||||
* ``gcode``: the sliced GCODE's filename
|
* ``gcode``: the sliced GCODE's filename
|
||||||
@@ -635,14 +784,18 @@ SlicingProfileAdded
|
|||||||
* ``slicer``: the slicer for which the profile was added
|
* ``slicer``: the slicer for which the profile was added
|
||||||
* ``profile``: the profile that was added
|
* ``profile``: the profile that was added
|
||||||
|
|
||||||
|
.. versionadded:: 1.2.12
|
||||||
|
|
||||||
SlicingProfileModified
|
SlicingProfileModified
|
||||||
A new slicing profile was modified.
|
A slicing profile was modified.
|
||||||
|
|
||||||
Payload:
|
Payload:
|
||||||
|
|
||||||
* ``slicer``: the slicer for which the profile was modified
|
* ``slicer``: the slicer for which the profile was modified
|
||||||
* ``profile``: the profile that was modified
|
* ``profile``: the profile that was modified
|
||||||
|
|
||||||
|
.. versionadded:: 1.2.12
|
||||||
|
|
||||||
SlicingProfileDeleted
|
SlicingProfileDeleted
|
||||||
A slicing profile was deleted.
|
A slicing profile was deleted.
|
||||||
|
|
||||||
@@ -651,6 +804,8 @@ SlicingProfileDeleted
|
|||||||
* ``slicer``: the slicer for which the profile was deleted
|
* ``slicer``: the slicer for which the profile was deleted
|
||||||
* ``profile``: the profile that was deleted
|
* ``profile``: the profile that was deleted
|
||||||
|
|
||||||
|
.. versionadded:: 1.2.12
|
||||||
|
|
||||||
.. _sec-events-available_events-settings:
|
.. _sec-events-available_events-settings:
|
||||||
|
|
||||||
Settings
|
Settings
|
||||||
@@ -661,3 +816,20 @@ SettingsUpdated
|
|||||||
|
|
||||||
This event may also be triggered if calling code of :py:class:`octoprint.settings.Settings.save` or
|
This event may also be triggered if calling code of :py:class:`octoprint.settings.Settings.save` or
|
||||||
:py:class:`octoprint.plugin.PluginSettings.save` sets the ``trigger_event`` parameter to ``True``.
|
:py:class:`octoprint.plugin.PluginSettings.save` sets the ``trigger_event`` parameter to ``True``.
|
||||||
|
|
||||||
|
.. versionadded:: 1.2.0
|
||||||
|
|
||||||
|
.. _sec-events-available_events-printer_profile:
|
||||||
|
|
||||||
|
Printer Profile
|
||||||
|
---------------
|
||||||
|
|
||||||
|
PrinterProfileModified
|
||||||
|
A printer profile was modified.
|
||||||
|
|
||||||
|
Payload:
|
||||||
|
|
||||||
|
* ``identifier``: the identifier of the modified printer profile
|
||||||
|
|
||||||
|
.. versionadded:: 1.3.12
|
||||||
|
|
||||||
+218
-39
@@ -3,8 +3,31 @@
|
|||||||
Access Control
|
Access Control
|
||||||
==============
|
==============
|
||||||
|
|
||||||
When Access Control is enabled, anonymous users (not logged in) will only see
|
.. versionchanged:: 1.5.0
|
||||||
the read-only parts of the UI which are the following:
|
|
||||||
|
OctoPrint's bundled access control feature allows granular permission control
|
||||||
|
over which users or user groups are allowed to access which parts of OctoPrint.
|
||||||
|
|
||||||
|
The default permissions will deny any kind of access to anonymous (not logged in)
|
||||||
|
users out of the box.
|
||||||
|
|
||||||
|
.. warning::
|
||||||
|
|
||||||
|
Please note that OctoPrint does *not* control the webcam and merely embeds it, and
|
||||||
|
thus also cannot limit access to it. If an anonymous user correctly guesses the
|
||||||
|
webcam URL, they will thus be able to see it.
|
||||||
|
|
||||||
|
Upon first start a configuration wizard is provided which allows configuration
|
||||||
|
of the first administrator account to be used for OctoPrint. After initial setup,
|
||||||
|
you can then create more users and groups under Settings > Access Control for
|
||||||
|
customisation of the granular permission system.
|
||||||
|
|
||||||
|
The predefined "Guests" group can be used to configure default permissions of anonymous
|
||||||
|
users, that is those who have not logged in. By default, no permissions are granted to
|
||||||
|
these users.
|
||||||
|
|
||||||
|
A predefined "Read-only Access" group with no users is configured which by default grants
|
||||||
|
read-only access to the following parts of the UI to any users assigned to this group:
|
||||||
|
|
||||||
* printer state
|
* printer state
|
||||||
* available gcode files and stats (upload is disabled)
|
* available gcode files and stats (upload is disabled)
|
||||||
@@ -16,60 +39,216 @@ the read-only parts of the UI which are the following:
|
|||||||
* any components provided through plugins which are enabled for anonymous
|
* any components provided through plugins which are enabled for anonymous
|
||||||
users
|
users
|
||||||
|
|
||||||
Logged in users will get access to everything besides the Settings and System
|
Another predefined "Operator" group is the default group for newly created users and
|
||||||
Commands, which are admin-only.
|
by default gives access to all aspects of OctoPrint that involve regular printer
|
||||||
|
operation. It matches the old "user" role from OctoPrint prior to 1.4.0.
|
||||||
|
|
||||||
If Access Control is disabled, everything is directly accessible. **That also
|
Finally, the predefined "Admins" group gives full admin access to the platform. You should
|
||||||
includes all administrative functionality as well as full control over the
|
be careful of who you put into that. It matches the old "admin" role from OctoPrint prior
|
||||||
printer**, and without the need for an :ref:`API key <sec-api-general-authorization>`!
|
to 1.4.0.
|
||||||
|
|
||||||
Upon first start a configuration wizard is provided which allows configuration
|
|
||||||
of the first administrator account or alternatively disabling Access Control
|
|
||||||
(which is **NOT** recommended for systems that are directly accessible via the
|
|
||||||
internet or other untrusted networks!).
|
|
||||||
|
|
||||||
.. hint::
|
.. hint::
|
||||||
|
|
||||||
If you plan to have your OctoPrint instance accessible over the internet,
|
If you plan to have your OctoPrint instance accessible over the internet,
|
||||||
**always enable Access Control** and ideally **don't make it accessible to
|
**please use additional security measures** and ideally **don't make it accessible to
|
||||||
everyone over the internet but instead use a VPN** or at the very least
|
everyone over the internet but instead use a VPN** or at the very least
|
||||||
HTTP basic authentication on a layer above OctoPrint.
|
HTTP basic authentication on a layer above OctoPrint. Unless you are using a VPN
|
||||||
|
**please do not** enable any permissions for the Guest group or the auto-login feature
|
||||||
|
described below.
|
||||||
|
|
||||||
A physical device that includes heaters and stepper motors really should not be
|
A physical device that includes heaters and stepper motors really should not be
|
||||||
publicly reachable by everyone with an internet connection, even with access
|
publicly reachable by everyone with an internet connection, even with access
|
||||||
control enabled.
|
control enabled.
|
||||||
|
|
||||||
.. _sec-features-access_control-rerunning_wizard:
|
.. _sec-features-access_control-autologin:
|
||||||
|
|
||||||
Rerunning the wizard
|
Autologin
|
||||||
--------------------
|
---------
|
||||||
|
|
||||||
In case Access Control was disabled in the configuration wizard, it is
|
While access control cannot be disabled as of OctoPrint 1.5+, the Autologin feature can
|
||||||
possible to re-run it by editing ``config.yaml`` [#f1]_ and setting ``firstRun``
|
be used to bypass authentication for hosts on the network(s) that you trust.
|
||||||
in the ``server`` section and ``enabled`` in the ``accessControl`` section to
|
|
||||||
``true``:
|
|
||||||
|
|
||||||
.. code-block-ext:: yaml
|
Starting with OctoPrint 1.5.0, OctoPrint makes enabled access control mandatory. This
|
||||||
|
might be an inconvience for some who run OctoPrint in an isolated setup where a login is
|
||||||
|
not required to ensure security, at a benefit for a huge number of users out there who
|
||||||
|
continue to underestimate or simply ignore the risk of keeping their OctoPrint instance
|
||||||
|
unsecured and then happily exposing it on the public internet.
|
||||||
|
|
||||||
accessControl:
|
That being said, even as far back as OctoPrint 1.0.0 (released in 2013) there has existed
|
||||||
enabled: true
|
a way to have OctoPrint automatically log you in, if you connect from a trusted local
|
||||||
# ...
|
network address. This functionality has not been exposed on the UI, and for now also won't
|
||||||
server:
|
be (to make it a bit harder to once again create an insecure setup for those who simply
|
||||||
firstRun: true
|
won't listen to common sense), but it's easy to set up with a bit of configuration
|
||||||
|
editing.
|
||||||
|
|
||||||
Then restart the server and connect to the web interface - the wizard should
|
When set up properly, it will make sure to automatically log you in as a configured user
|
||||||
be shown again.
|
whenever you connect from a device on your local network. To get back pretty much the same
|
||||||
|
behaviour as with disabled access control, you'll only need to create a single (admin)
|
||||||
|
account and then set up autologin for it.
|
||||||
|
|
||||||
.. note::
|
|
||||||
|
|
||||||
If user accounts were created prior to disabling Access Control and those
|
.. warning::
|
||||||
user accounts are not to be used any more, remove ``.octoprint/users.yaml``.
|
|
||||||
If you don't remove this file, the above changes won't lead to the
|
|
||||||
configuration being shown again, instead Access Control will just be
|
|
||||||
enabled using the already existing login data. This is to prevent you from
|
|
||||||
resetting access control by accident.
|
|
||||||
|
|
||||||
.. rubric:: Footnotes
|
**Do not do this if you cannot trust EVERYONE on your local network.** And that really
|
||||||
|
means mean everyone. If you ignore this and then someone takes over your OctoPrint
|
||||||
|
instance, installs malware on it and makes your printer print an endless stream of
|
||||||
|
benchies, that's on you.
|
||||||
|
|
||||||
.. [#f1] For Linux that will be ``~/.octoprint/config.yaml``, for Windows it will be ``%APPDATA%/OctoPrint/config.yaml`` and for
|
.. _sec-features-access_control-autologin-gather_config_info:
|
||||||
Mac ``~/Library/Application Support/OctoPrint/config.yaml``
|
|
||||||
|
Gather configuration information
|
||||||
|
................................
|
||||||
|
|
||||||
|
You can configure Autologin via a plugin (the easy way), or manually (the hard way), but
|
||||||
|
in either case you will need to specify which user should be automatically logged in, and
|
||||||
|
which hosts are permitted access this way.
|
||||||
|
|
||||||
|
**Improperly setting this subnet option can lead to the compromise of your system, or even
|
||||||
|
your entire network. Proceed with extreme caution.**
|
||||||
|
|
||||||
|
The subnet to use is usually the IP address range of your LAN, which sounds scary but
|
||||||
|
actually isn't. Just `figure out your PC's IP address and subnet mask <https://lifehacker.com/how-to-find-your-local-and-external-ip-address-5833108>`_
|
||||||
|
and then combine both with a / in between.
|
||||||
|
|
||||||
|
On OctoPi (or another Linux distribution) you can use the follwing command:
|
||||||
|
|
||||||
|
.. code-block::
|
||||||
|
|
||||||
|
ip route | grep -P 'eth0|wlan0' | awk '{print $1}'
|
||||||
|
|
||||||
|
Or, for IPv6, use this:
|
||||||
|
|
||||||
|
.. code-block::
|
||||||
|
|
||||||
|
ip -6 route | grep -P 'eth0|wlan0' | awk '{print $1}'
|
||||||
|
|
||||||
|
This will be what you set as the subnet in the plugin, or where it says
|
||||||
|
``<yourAddressRange>`` below on the manual configuration instructions.
|
||||||
|
|
||||||
|
Example: Your PC has an IP address of ``192.168.23.42`` and a subnet mask of
|
||||||
|
``255.255.255.0``. Your address range is ``192.168.23.42/255.255.255.0``.
|
||||||
|
|
||||||
|
.. _sec-features-access_control-autologin-plugin:
|
||||||
|
|
||||||
|
The easy way: Using the OctoPrint-AutoLoginConfig plugin
|
||||||
|
........................................................
|
||||||
|
|
||||||
|
The easist way to configure AutoLogin is to install the
|
||||||
|
`OctoPrint-AutoLoginConfig plugin <https://plugins.octoprint.org/plugins/autologin_config/>`_
|
||||||
|
via the plugin manager.
|
||||||
|
|
||||||
|
Open its settings and follow the instructions on the screen.
|
||||||
|
|
||||||
|
.. _sec-features-access_control-autologin-manual:
|
||||||
|
|
||||||
|
The hard way: Manual editing of config.yaml
|
||||||
|
...........................................
|
||||||
|
|
||||||
|
Preparation
|
||||||
|
***********
|
||||||
|
|
||||||
|
First of all, read :ref:`the YAML primer <sec-configuration-yaml>`. You
|
||||||
|
will have to edit OctoPrint's main configuration file, and thus should make sure
|
||||||
|
you understand at least roughly how things work and that you should keep your
|
||||||
|
hands off the Tab key. If you don't, you might break your config file, and
|
||||||
|
while the steps include making a backup, this still can be easily avoided by
|
||||||
|
learning about the DOs and DONTs first.
|
||||||
|
|
||||||
|
Then, take a look at :ref:`the docs on config.yaml <sec-configuration-config_yaml>`
|
||||||
|
on where to find that central configuration file of OctoPrint.
|
||||||
|
|
||||||
|
Configuration
|
||||||
|
*************
|
||||||
|
|
||||||
|
Ready? Let's do some editing then. I'll outline what to do and where first, and then
|
||||||
|
further down there's also a dedicated list of steps for OctoPi specifically.
|
||||||
|
|
||||||
|
1. Shutdown OctoPrint
|
||||||
|
2. Make a backup of your config.yaml
|
||||||
|
3. Open it in a text editor (e.g. nano). Right at the very top it'll say something like
|
||||||
|
this:
|
||||||
|
|
||||||
|
.. code-block:: yaml
|
||||||
|
|
||||||
|
accessControl:
|
||||||
|
salt: aabbccddee1234523452345
|
||||||
|
|
||||||
|
Edit this, adding lines so it looks like this (making absolutely sure not to touch the
|
||||||
|
salt line):
|
||||||
|
|
||||||
|
.. code-block:: yaml
|
||||||
|
|
||||||
|
accessControl:
|
||||||
|
salt: aabbccddee1234523452345
|
||||||
|
autologinLocal: true
|
||||||
|
autologinAs: "<yourUsername>"
|
||||||
|
localNetworks:
|
||||||
|
- "127.0.0.0/8"
|
||||||
|
- "::1/128"
|
||||||
|
- "<yourAddressRange>"
|
||||||
|
|
||||||
|
4. Restart OctoPrint, check that everything works.
|
||||||
|
|
||||||
|
This will automatically log you in as the user you specified whenver you connect to
|
||||||
|
OctoPrint from an address in the address range (e.g. a device on your local network).
|
||||||
|
|
||||||
|
OctoPi specific steps
|
||||||
|
*********************
|
||||||
|
|
||||||
|
If you are running OctoPi you will have to SSH into your Raspberry Pi. Then issue
|
||||||
|
the following commands:
|
||||||
|
|
||||||
|
1. ``sudo service octoprint stop``
|
||||||
|
2. ``cp ~/.octoprint/config.yaml ~/.octoprint/config.yaml.back``
|
||||||
|
3. ``nano ~/.octoprint/config.yaml, make the edits as described above``
|
||||||
|
4. ``sudo service octoprint start``
|
||||||
|
|
||||||
|
If something went wrong, you can restore the config backup with
|
||||||
|
|
||||||
|
.. code-block::
|
||||||
|
|
||||||
|
cp ~/.octoprint/config.yaml.back ~/.octoprint/config.yaml
|
||||||
|
|
||||||
|
|
||||||
|
If you are using a VPN and your setup ABSOLUTELY REQUIRES disabling internal OctoPrint access controls
|
||||||
|
......................................................................................................
|
||||||
|
|
||||||
|
.. warning::
|
||||||
|
|
||||||
|
You probably shouldn't do this, EVER. There are usually other options. Don't even
|
||||||
|
THINK about it, unless you have a VPN layer for security. Only consider proceeding
|
||||||
|
with this configuration after exhausting ALL other possibilities, and even then, you
|
||||||
|
should think long and hard about whether this is a good idea. You almost certainly
|
||||||
|
don't need or want to do this.
|
||||||
|
|
||||||
|
While access controls can no longer be disabled in OctoPrint 1.5+, this can be
|
||||||
|
approximated by an Autologin configuration that automatically logs in all users, that is
|
||||||
|
by using subnets that match all possible IP addresses. By specifying the ``0.0.0.0/0``
|
||||||
|
subnet (for IPv4) and ``::/0`` for IPv6 in the AutoLogin configuration, you can achieve
|
||||||
|
this. This configuration is permitted, but highly, highly discouraged.
|
||||||
|
|
||||||
|
Please don't do this. You will almost certainly regret it. You alone are responsible for
|
||||||
|
your actions.
|
||||||
|
|
||||||
|
.. _sec-features-access_control-hooks:
|
||||||
|
|
||||||
|
Available Extension Hooks
|
||||||
|
-------------------------
|
||||||
|
|
||||||
|
There are two hooks for plugins to utilize in order to
|
||||||
|
add new configurable permissions into the system and/or adjust the styling of the
|
||||||
|
login dialog.
|
||||||
|
|
||||||
|
.. _sec-features-access_control-hooks-permissions:
|
||||||
|
|
||||||
|
octoprint.access.permissions
|
||||||
|
............................
|
||||||
|
|
||||||
|
See :ref:`here <sec-plugins-hook-permissions>`.
|
||||||
|
|
||||||
|
.. _sec-features-access_control-hooks-loginui:
|
||||||
|
|
||||||
|
octoprint.theming.login
|
||||||
|
.......................
|
||||||
|
|
||||||
|
See :ref:`here <sec-plugins-hook-theming-dialog>`.
|
||||||
@@ -21,8 +21,14 @@ Action commands are a feature defined for the GCODE based RepRap communication p
|
|||||||
|
|
||||||
OctoPrint out of the box supports handling of the above mentioned commands:
|
OctoPrint out of the box supports handling of the above mentioned commands:
|
||||||
|
|
||||||
|
start
|
||||||
|
When this command is received from the printer, a job is currently selected and *not* active, OctoPrint
|
||||||
|
will start it just like if the "Start"/"Restart" button had been clicked.
|
||||||
|
|
||||||
|
.. versionadded:: 1.5.0
|
||||||
|
|
||||||
cancel
|
cancel
|
||||||
When this command is received from the printer, OctoPrint will cancel a current print job like if the
|
When this command is received from the printer, OctoPrint will cancel a current print job just like if the
|
||||||
"Cancel" button had been clicked.
|
"Cancel" button had been clicked.
|
||||||
|
|
||||||
pause
|
pause
|
||||||
@@ -48,6 +54,27 @@ resumed
|
|||||||
disconnect
|
disconnect
|
||||||
When this command is received from the printer, OctoPrint will immediately disconnect from it.
|
When this command is received from the printer, OctoPrint will immediately disconnect from it.
|
||||||
|
|
||||||
|
sd_inserted
|
||||||
|
When this command is received from the printer, OctoPrint will assume an SD card is present in the printer,
|
||||||
|
set the corresponding internal state flags and send a file list request. This command is only recognized
|
||||||
|
if SD support is enabled in OctoPrint.
|
||||||
|
|
||||||
|
.. versionadded:: 1.6.0
|
||||||
|
|
||||||
|
sd_ejected
|
||||||
|
When this command is received from the printer, OctoPrint will assume the SD card has been removed from
|
||||||
|
the printer and clear the corresponding internal state flags. This command is only recognized
|
||||||
|
if SD support is enabled in OctoPrint.
|
||||||
|
|
||||||
|
.. versionadded:: 1.6.0
|
||||||
|
|
||||||
|
sd_updated
|
||||||
|
When this command is received from the printer, OctoPrint will assume something on the SD card in the
|
||||||
|
printer has changed and trigger a file list request. This command is only recognized
|
||||||
|
if SD support is enabled in OctoPrint.
|
||||||
|
|
||||||
|
.. versionadded:: 1.6.0
|
||||||
|
|
||||||
If the bundled :ref:`Action Command Prompt Support Plugin <sec-bundledplugins-action_command_prompt>` is enabled (which
|
If the bundled :ref:`Action Command Prompt Support Plugin <sec-bundledplugins-action_command_prompt>` is enabled (which
|
||||||
should be the case by default), OctoPrint will also interactive dialog creation through its :ref:`supported commands <sec-bundledplugins-action_command_prompt-action_commands>`.
|
should be the case by default), OctoPrint will also interactive dialog creation through its :ref:`supported commands <sec-bundledplugins-action_command_prompt-action_commands>`.
|
||||||
|
|
||||||
|
|||||||
@@ -3,6 +3,8 @@
|
|||||||
@ Commands
|
@ Commands
|
||||||
==========
|
==========
|
||||||
|
|
||||||
|
.. versionadded:: 1.3.7
|
||||||
|
|
||||||
@ commands (also known as host commands elsewhere) are special commands you may include in GCODE files streamed
|
@ commands (also known as host commands elsewhere) are special commands you may include in GCODE files streamed
|
||||||
through OctoPrint to your printer or send as part of GCODE scripts, through the Terminal Tab, the API or plugins.
|
through OctoPrint to your printer or send as part of GCODE scripts, through the Terminal Tab, the API or plugins.
|
||||||
Contrary to other commands they will never be sent to the printer but instead trigger functions inside OctoPrint.
|
Contrary to other commands they will never be sent to the printer but instead trigger functions inside OctoPrint.
|
||||||
|
|||||||
@@ -24,7 +24,7 @@ The following example defines a control for enabling the cooling fan with a vari
|
|||||||
feedback evaluation for the result of the M114 "Get Position" gcode inside a section named "Reporting" and finally
|
feedback evaluation for the result of the M114 "Get Position" gcode inside a section named "Reporting" and finally
|
||||||
a GCODE script including user input.
|
a GCODE script including user input.
|
||||||
|
|
||||||
.. code-block-ext:: yaml
|
.. code-block:: yaml
|
||||||
|
|
||||||
controls:
|
controls:
|
||||||
- name: Fan
|
- name: Fan
|
||||||
@@ -172,15 +172,16 @@ Controls
|
|||||||
turn the button red.
|
turn the button red.
|
||||||
* - ``enabled``
|
* - ``enabled``
|
||||||
- (Optional) A JavaScript snippet returning either ``true`` or ``false`` determining whether the control
|
- (Optional) A JavaScript snippet returning either ``true`` or ``false`` determining whether the control
|
||||||
should be enabled or not. This allow to override the default logic for this (disabled if printer is offline
|
should be enabled or not. This allows to override the default logic for the enable state
|
||||||
or currently printing). The JavaScript snippet is ``eval``'d and processed in a context where the control
|
of the control (disabled if printer is offline). The JavaScript snippet is ``eval``'d and processed
|
||||||
it is part of is provided as local variable ``data`` and the ``ControlViewModel`` is available as ``self``.
|
in a context where the control it is part of is provided as local variable ``data`` and the
|
||||||
|
``ControlViewModel`` is available as ``self``.
|
||||||
* - ``input``
|
* - ``input``
|
||||||
- (Optional) A list of definitions of input parameters for a ``command`` or ``commands``, to be rendered as
|
- (Optional) A list of definitions of input parameters for a ``command`` or ``commands``, to be rendered as
|
||||||
additional input fields. ``command``/``commands`` may contain placeholders to be replaced by the values obtained
|
additional input fields. ``command``/``commands`` may contain placeholders to be replaced by the values obtained
|
||||||
from the user for the defined input fields:
|
from the user for the defined input fields:
|
||||||
|
|
||||||
.. code-block-ext:: yaml
|
.. code-block:: yaml
|
||||||
|
|
||||||
name: Enable Fan
|
name: Enable Fan
|
||||||
command: M106 S%(speed)s
|
command: M106 S%(speed)s
|
||||||
@@ -210,20 +211,31 @@ Controls
|
|||||||
* - ``input.slider.step``
|
* - ``input.slider.step``
|
||||||
- (Optional) Step size per slider "tick", defaults to 1.
|
- (Optional) Step size per slider "tick", defaults to 1.
|
||||||
* - ``regex``
|
* - ``regex``
|
||||||
- (Optional) A `regular expression <https://docs.python.org/2/library/re.html#regular-expression-syntax>`_ to
|
- (Optional) A :ref:`regular expression <re-syntax>` to
|
||||||
match against lines received from the printer to retrieve information from it (e.g. specific output). Together
|
match against lines received from the printer to retrieve information from it (e.g. specific output). Together
|
||||||
with ``template`` this allows rendition of received data from the printer within the UI.
|
with ``template`` this allows rendition of received data from the printer within the UI.
|
||||||
|
|
||||||
|
**Please also read the note below**.
|
||||||
* - ``template``
|
* - ``template``
|
||||||
- (Optional) A template to use for rendering the match of ``regex``. May contain placeholders in
|
- (Optional) A template to use for rendering the match of ``regex``. May contain placeholders in
|
||||||
`Python Format String Syntax <https://docs.python.org/2/library/string.html#format-string-syntax>`_ for either named
|
:ref:`Python Format String Syntax <formatstrings>` for either named
|
||||||
groups within the regex (e.g. ``Temperature: {temperature}`` for a regex ``T:\s*(?P<temperature>\d+(\.\d*)``)
|
groups within the regex (e.g. ``Temperature: {temperature}`` for a regex ``T:\s*(?P<temperature>\d+(\.\d*)``)
|
||||||
or positional groups within the regex (e.g. ``Position: X={0}, Y={1}, Z={2}, E={3}`` for a regex
|
or positional groups within the regex (e.g. ``Position: X={0}, Y={1}, Z={2}, E={3}`` for a regex
|
||||||
``X:([0-9.]+) Y:([0-9.]+) Z:([0-9.]+) E:([0-9.]+)``).
|
``X:([0-9.]+) Y:([0-9.]+) Z:([0-9.]+) E:([0-9.]+)``).
|
||||||
|
|
||||||
|
**Please also read the note below**.
|
||||||
* - ``confirm``
|
* - ``confirm``
|
||||||
- (Optional) A text to display to the user to confirm his button press. Can be used with sensitive custom controls
|
- (Optional) A text to display to the user to confirm his button press. Can be used with sensitive custom controls
|
||||||
like changing EEPROM values in order to prevent accidental clicks. The text will be displayed in a confirmation
|
like changing EEPROM values in order to prevent accidental clicks. The text will be displayed in a confirmation
|
||||||
dialog like in :numref:`fig-configuration-customcontrols-confirm`.
|
dialog like in :numref:`fig-configuration-customcontrols-confirm`.
|
||||||
|
|
||||||
|
.. note::
|
||||||
|
|
||||||
|
``regex`` and ``template`` are only supported for controls that are defined through
|
||||||
|
``config.yaml``. These control properties aren't supported for controls added only in
|
||||||
|
the frontend by the :ref:`getAdditionalControls <sec-plugins-viewmodels-callbacks>`
|
||||||
|
view model callback.
|
||||||
|
|
||||||
.. _fig-configuration-customcontrols-confirm:
|
.. _fig-configuration-customcontrols-confirm:
|
||||||
.. figure:: ../images/features-custom_controls-confirm.png
|
.. figure:: ../images/features-custom_controls-confirm.png
|
||||||
:align: center
|
:align: center
|
||||||
@@ -241,7 +253,7 @@ Examples
|
|||||||
Parameterized GCODE Script
|
Parameterized GCODE Script
|
||||||
..........................
|
..........................
|
||||||
|
|
||||||
.. code-block-ext:: yaml
|
.. code-block:: yaml
|
||||||
:caption: Control definition in ~/.octoprint/config.yaml
|
:caption: Control definition in ~/.octoprint/config.yaml
|
||||||
:name: code-features-custom_controls-example-gcode_script-config_yaml
|
:name: code-features-custom_controls-example-gcode_script-config_yaml
|
||||||
|
|
||||||
@@ -256,7 +268,7 @@ Parameterized GCODE Script
|
|||||||
min: 1
|
min: 1
|
||||||
step: 1
|
step: 1
|
||||||
|
|
||||||
.. code-block-ext:: jinja
|
.. code-block:: jinja
|
||||||
:caption: ~/.octoprint/scripts/gcode/custom/dance.gco
|
:caption: ~/.octoprint/scripts/gcode/custom/dance.gco
|
||||||
:name: code-features-custom_controls-example-gcode_script-dance_gco
|
:name: code-features-custom_controls-example-gcode_script-dance_gco
|
||||||
|
|
||||||
|
|||||||
Loaded 100 of 812 files, more files were not shown because too many files have changed in this diff.
Show more
Reference in new issue
Block a user