commands.json 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650
  1. {
  2. "commands": [{
  3. "help": "Squeezelite Options",
  4. "hascb": true,
  5. "argtable": [{
  6. "datatype": "<server>[:<port>]",
  7. "glossary": "Connect to specified server, otherwise uses autodiscovery to find server",
  8. "longopts": "server",
  9. "shortopts": "s",
  10. "checkbox": false,
  11. "hasvalue": true,
  12. "mincount": 0,
  13. "maxcount": 1
  14. }, {
  15. "datatype": "<stream>:<output>",
  16. "glossary": "Internal Stream and Output buffer sizes in Kbytes",
  17. "longopts": "buffers",
  18. "shortopts": "b",
  19. "checkbox": false,
  20. "hasvalue": true,
  21. "mincount": 0,
  22. "maxcount": 1
  23. }, {
  24. "datatype": "<codec1>,<codec2>",
  25. "glossary": "Restrict codecs to those specified, otherwise load all available codecs; known codecs",
  26. "longopts": "codecs",
  27. "shortopts": "c",
  28. "checkbox": false,
  29. "hasvalue": true,
  30. "mincount": 0,
  31. "maxcount": 20
  32. }, {
  33. "datatype": "<n>",
  34. "glossary": "Close output device when idle after timeout seconds, default is to keep it open while player is 'on",
  35. "longopts": "timeout",
  36. "shortopts": "C",
  37. "checkbox": false,
  38. "hasvalue": true,
  39. "mincount": 0,
  40. "maxcount": 1
  41. }, {
  42. "datatype": "log=level",
  43. "glossary": "Set logging level, logs: all|slimproto|stream|decode|output|ir, level: info|debug|sdebug",
  44. "longopts": "loglevel",
  45. "shortopts": "d",
  46. "checkbox": false,
  47. "hasvalue": true,
  48. "mincount": 0,
  49. "maxcount": 1
  50. }, {
  51. "datatype": "<string>",
  52. "glossary": "Output device",
  53. "longopts": "output_device",
  54. "shortopts": "o",
  55. "checkbox": false,
  56. "hasvalue": true,
  57. "mincount": 0,
  58. "maxcount": 1
  59. }, {
  60. "datatype": "<string>",
  61. "glossary": "Mac address, format: ab:cd:ef:12:34:56",
  62. "longopts": "mac_addr",
  63. "shortopts": "m",
  64. "checkbox": false,
  65. "hasvalue": true,
  66. "mincount": 0,
  67. "maxcount": 1
  68. }, {
  69. "datatype": "<string>",
  70. "glossary": "Squeezelite player model name sent to the server",
  71. "longopts": "modelname",
  72. "shortopts": "M",
  73. "checkbox": false,
  74. "hasvalue": true,
  75. "mincount": 0,
  76. "maxcount": 1
  77. }, {
  78. "datatype": "<string>",
  79. "glossary": "Player name",
  80. "longopts": "name",
  81. "shortopts": "n",
  82. "checkbox": false,
  83. "hasvalue": true,
  84. "mincount": 0,
  85. "maxcount": 1
  86. }, {
  87. "glossary": "Read wave and aiff format from header, ignore server parameters",
  88. "longopts": "header_format",
  89. "shortopts": "W",
  90. "checkbox": true,
  91. "hasvalue": false,
  92. "mincount": 0,
  93. "maxcount": 1
  94. }, {
  95. "datatype": "<rates>[:<delay>]",
  96. "glossary": "Sample rates supported, allows output to be off when squeezelite is started; rates = <maxrate>|<minrate>-<maxrate>|<rate1>,<rate2>,<rate3>; delay = optional delay switching rates in ms\n",
  97. "longopts": "rates",
  98. "shortopts": "r",
  99. "checkbox": false,
  100. "hasvalue": true,
  101. "mincount": 0,
  102. "maxcount": 1
  103. }, {
  104. "datatype": "<n>",
  105. "glossary": "Report rate to server in helo as the maximum sample rate we can support",
  106. "longopts": "max_rate",
  107. "shortopts": "Z",
  108. "checkbox": false,
  109. "hasvalue": true,
  110. "mincount": 0,
  111. "maxcount": 1
  112. }],
  113. "hint": " [-W] [-s <server>[:<port>]] [-b <stream>:<output>] [-c <codec1>,<codec2>]... [-C <n>] [-d log=level] [-o <string>] [-m <string>] [-M <string>] [-n <string>] [-r <rates>[:<delay>]] [-Z <n>]",
  114. "name": "cfg-syst-squeezelite"
  115. }, {
  116. "help": "DAC Options",
  117. "hascb": true,
  118. "argtable": [{
  119. "datatype": "TAS57xx|TAS5713|AC101|I2S",
  120. "glossary": "DAC Model Name",
  121. "longopts": "model_name",
  122. "checkbox": false,
  123. "hasvalue": true,
  124. "mincount": 1,
  125. "maxcount": 1
  126. }, {
  127. "datatype": "<n>",
  128. "glossary": "Clock GPIO. e.g. 33",
  129. "longopts": "clock",
  130. "checkbox": false,
  131. "hasvalue": true,
  132. "mincount": 1,
  133. "maxcount": 1
  134. }, {
  135. "datatype": "<n>",
  136. "glossary": "Word Select GPIO. e.g. 25",
  137. "longopts": "wordselect",
  138. "checkbox": false,
  139. "hasvalue": true,
  140. "mincount": 1,
  141. "maxcount": 1
  142. }, {
  143. "datatype": "<n>",
  144. "glossary": "Data GPIO. e.g. 32",
  145. "longopts": "data",
  146. "checkbox": false,
  147. "hasvalue": true,
  148. "mincount": 1,
  149. "maxcount": 1
  150. }, {
  151. "datatype": "<n>",
  152. "glossary": "Mute GPIO. e.g. 14",
  153. "longopts": "mute_gpio",
  154. "checkbox": false,
  155. "hasvalue": true,
  156. "mincount": 0,
  157. "maxcount": 1
  158. }, {
  159. "glossary": "Mute active GPIO level",
  160. "longopts": "mute_level",
  161. "checkbox": true,
  162. "hasvalue": false,
  163. "mincount": 0,
  164. "maxcount": 1
  165. }, {
  166. "datatype": "<n>",
  167. "glossary": "SDA GPIO. e.g. 27",
  168. "longopts": "dac_sda",
  169. "checkbox": false,
  170. "hasvalue": true,
  171. "mincount": 0,
  172. "maxcount": 1
  173. }, {
  174. "datatype": "<n>",
  175. "glossary": "SCL GPIO. e.g. 26",
  176. "longopts": "dac_scl",
  177. "checkbox": false,
  178. "hasvalue": true,
  179. "mincount": 0,
  180. "maxcount": 1
  181. }, {
  182. "datatype": "<n>",
  183. "glossary": "I2C device address. e.g. 106",
  184. "longopts": "dac_i2c",
  185. "checkbox": false,
  186. "hasvalue": true,
  187. "mincount": 0,
  188. "maxcount": 1
  189. }, {
  190. "glossary": "Clear configuration",
  191. "longopts": "clear",
  192. "checkbox": true,
  193. "hasvalue": false,
  194. "mincount": 0,
  195. "maxcount": 1
  196. }],
  197. "hint": " --model_name=TAS57xx|TAS5713|AC101|I2S --clock=<n> --wordselect=<n> --data=<n> [--mute_gpio=<n>] [--mute_level] [--dac_sda=<n>] [--dac_scl=<n>] [--dac_i2c=<n>] [--clear]",
  198. "name": "cfg-hw-dac"
  199. }, {
  200. "help": "Get the current size of free heap memory",
  201. "hascb": false,
  202. "name": "free"
  203. }, {
  204. "help": "Services",
  205. "hascb": true,
  206. "argtable": [{
  207. "glossary": "Bluetooth Speaker",
  208. "longopts": "BT_Speaker",
  209. "checkbox": true,
  210. "hasvalue": false,
  211. "mincount": 0,
  212. "maxcount": 1
  213. }, {
  214. "glossary": "AirPlay",
  215. "longopts": "AirPlay",
  216. "checkbox": true,
  217. "hasvalue": false,
  218. "mincount": 0,
  219. "maxcount": 1
  220. }, {
  221. "datatype": "Disabled|Telnet Only|Telnet and Serial",
  222. "glossary": "Telnet server. Use only for troubleshooting",
  223. "longopts": "telnet",
  224. "shortopts": "t",
  225. "checkbox": false,
  226. "hasvalue": true,
  227. "mincount": 0,
  228. "maxcount": 1
  229. }, {
  230. "glossary": "System Statistics. Use only for troubleshooting",
  231. "longopts": "stats",
  232. "checkbox": true,
  233. "hasvalue": false,
  234. "mincount": 0,
  235. "maxcount": 1
  236. }],
  237. "hint": " [--BT_Speaker] [--AirPlay] [-t Disabled|Telnet Only|Telnet and Serial] [--stats]",
  238. "name": "cfg-syst-services"
  239. }, {
  240. "help": "Get minimum size of free heap memory found during execution",
  241. "hascb": false,
  242. "name": "heap"
  243. }, {
  244. "help": "Device Name",
  245. "hascb": true,
  246. "argtable": [{
  247. "datatype": "\"squeezelite-test3\"",
  248. "glossary": "New Name",
  249. "longopts": "name",
  250. "shortopts": "n",
  251. "checkbox": false,
  252. "hasvalue": true,
  253. "mincount": 0,
  254. "maxcount": 1
  255. }],
  256. "hint": " [-n \"squeezelite-test3\"]",
  257. "name": "cfg-syst-name"
  258. }, {
  259. "help": "Get version of chip and SDK",
  260. "hascb": false,
  261. "name": "version"
  262. }, {
  263. "help": "Software reset of the chip",
  264. "hascb": false,
  265. "name": "restart"
  266. }, {
  267. "help": "Resets and boot to recovery (if available)",
  268. "hascb": false,
  269. "name": "recovery"
  270. }, {
  271. "help": "Selects the ota app partition to boot from and performa a software reset of the chip",
  272. "hascb": false,
  273. "name": "restart_ota"
  274. }, {
  275. "help": "I2C Bus Parameters",
  276. "hascb": true,
  277. "argtable": [{
  278. "datatype": "0|1",
  279. "glossary": "Port",
  280. "longopts": "port",
  281. "shortopts": "p",
  282. "checkbox": false,
  283. "hasvalue": true,
  284. "mincount": 0,
  285. "maxcount": 1
  286. }, {
  287. "datatype": "int",
  288. "glossary": "Frequency (Hz) e.g. 100000",
  289. "longopts": "speed",
  290. "shortopts": "f",
  291. "checkbox": false,
  292. "hasvalue": true,
  293. "mincount": 0,
  294. "maxcount": 1
  295. }, {
  296. "datatype": "<n>",
  297. "glossary": "SDA GPIO. e.g. 19",
  298. "longopts": "sda",
  299. "shortopts": "d",
  300. "checkbox": false,
  301. "hasvalue": true,
  302. "mincount": 0,
  303. "maxcount": 1
  304. }, {
  305. "datatype": "<n>",
  306. "glossary": "SCL GPIO. e.g. 18",
  307. "longopts": "scl",
  308. "shortopts": "c",
  309. "checkbox": false,
  310. "hasvalue": true,
  311. "mincount": 0,
  312. "maxcount": 1
  313. }, {
  314. "glossary": "Load Existing Configuration",
  315. "longopts": "load",
  316. "shortopts": "l",
  317. "checkbox": true,
  318. "hasvalue": false,
  319. "mincount": 0,
  320. "maxcount": 1
  321. }, {
  322. "glossary": "Clear configuration",
  323. "longopts": "clear",
  324. "checkbox": true,
  325. "hasvalue": false,
  326. "mincount": 0,
  327. "maxcount": 1
  328. }],
  329. "hint": " [-l] [-p 0|1] [-f int] [-d <n>] [-c <n>] [--clear]",
  330. "name": "cfg-hw-i2c"
  331. }, {
  332. "help": "SPI Bus Parameters",
  333. "hascb": true,
  334. "argtable": [{
  335. "datatype": "<n>",
  336. "glossary": "Data GPIO",
  337. "longopts": "data",
  338. "shortopts": "d",
  339. "checkbox": false,
  340. "hasvalue": true,
  341. "mincount": 0,
  342. "maxcount": 1
  343. }, {
  344. "datatype": "<n>",
  345. "glossary": "Clock GPIO",
  346. "longopts": "clk",
  347. "shortopts": "k",
  348. "checkbox": false,
  349. "hasvalue": true,
  350. "mincount": 0,
  351. "maxcount": 1
  352. }, {
  353. "datatype": "<n>",
  354. "glossary": "DC GPIO",
  355. "longopts": "dc",
  356. "shortopts": "c",
  357. "checkbox": false,
  358. "hasvalue": true,
  359. "mincount": 0,
  360. "maxcount": 1
  361. }, {
  362. "datatype": "int",
  363. "glossary": "SPI Host Number",
  364. "longopts": "host",
  365. "shortopts": "h",
  366. "checkbox": false,
  367. "hasvalue": true,
  368. "mincount": 0,
  369. "maxcount": 1
  370. }, {
  371. "glossary": "Clear configuration",
  372. "longopts": "clear",
  373. "checkbox": true,
  374. "hasvalue": false,
  375. "mincount": 0,
  376. "maxcount": 1
  377. }],
  378. "hint": " [-d <n>] [-k <n>] [-c <n>] [-h int] [--clear]",
  379. "name": "cfg-hw-spi"
  380. }, {
  381. "help": "Scan I2C bus for devices",
  382. "hascb": false,
  383. "name": "i2cdetect"
  384. }, {
  385. "help": "Read registers visible through the I2C bus",
  386. "hascb": false,
  387. "argtable": [{
  388. "datatype": "<chip_addr>",
  389. "glossary": "Specify the address of the chip on that bus",
  390. "longopts": "chip",
  391. "shortopts": "c",
  392. "checkbox": false,
  393. "hasvalue": true,
  394. "mincount": 1,
  395. "maxcount": 1
  396. }, {
  397. "datatype": "<register_addr>",
  398. "glossary": "Specify the address on that chip to read from",
  399. "longopts": "register",
  400. "shortopts": "r",
  401. "checkbox": false,
  402. "hasvalue": true,
  403. "mincount": 0,
  404. "maxcount": 1
  405. }, {
  406. "datatype": "<length>",
  407. "glossary": "Specify the length to read from that data address",
  408. "longopts": "length",
  409. "shortopts": "l",
  410. "checkbox": false,
  411. "hasvalue": true,
  412. "mincount": 0,
  413. "maxcount": 1
  414. }],
  415. "hint": " -c <chip_addr> [-r <register_addr>] [-l <length>]",
  416. "name": "i2cget"
  417. }, {
  418. "help": "Set registers visible through the I2C bus",
  419. "hascb": false,
  420. "argtable": [{
  421. "datatype": "<chip_addr>",
  422. "glossary": "Specify the address of the chip on that bus",
  423. "longopts": "chip",
  424. "shortopts": "c",
  425. "checkbox": false,
  426. "hasvalue": true,
  427. "mincount": 1,
  428. "maxcount": 1
  429. }, {
  430. "datatype": "<n>",
  431. "glossary": "Specify the i2c port (0|2)",
  432. "longopts": "port",
  433. "shortopts": "p",
  434. "checkbox": false,
  435. "hasvalue": true,
  436. "mincount": 0,
  437. "maxcount": 1
  438. }, {
  439. "datatype": "<register_addr>",
  440. "glossary": "Specify the address on that chip to read from",
  441. "longopts": "register",
  442. "shortopts": "r",
  443. "checkbox": false,
  444. "hasvalue": true,
  445. "mincount": 0,
  446. "maxcount": 1
  447. }, {
  448. "datatype": "<data>",
  449. "glossary": "Specify the data to write to that data address",
  450. "checkbox": false,
  451. "hasvalue": true,
  452. "mincount": 0,
  453. "maxcount": 256
  454. }],
  455. "hint": " -c <chip_addr> [-p <n>] [-r <register_addr>] [<data>]...",
  456. "name": "i2cset"
  457. }, {
  458. "help": "Examine registers visible through the I2C bus",
  459. "hascb": false,
  460. "argtable": [{
  461. "datatype": "<chip_addr>",
  462. "glossary": "Specify the address of the chip on that bus",
  463. "longopts": "chip",
  464. "shortopts": "c",
  465. "checkbox": false,
  466. "hasvalue": true,
  467. "mincount": 1,
  468. "maxcount": 1
  469. }, {
  470. "datatype": "<size>",
  471. "glossary": "Specify the size of each read",
  472. "longopts": "size",
  473. "shortopts": "s",
  474. "checkbox": false,
  475. "hasvalue": true,
  476. "mincount": 0,
  477. "maxcount": 1
  478. }],
  479. "hint": " -c <chip_addr> [-s <size>]",
  480. "name": "i2cdump"
  481. }, {
  482. "help": "Display",
  483. "hascb": true,
  484. "argtable": [{
  485. "datatype": "<I2C|SPI>",
  486. "glossary": "Interface (default I2C)",
  487. "longopts": "type",
  488. "shortopts": "t",
  489. "checkbox": false,
  490. "hasvalue": true,
  491. "mincount": 0,
  492. "maxcount": 1
  493. }, {
  494. "datatype": "<SH1106|SSD1306|SSD1322|SSD1326|SSD1327|SSD1675|SSD1351|ST77xx|ILI9341|>",
  495. "glossary": "Driver (default SSD1306)",
  496. "longopts": "driver",
  497. "shortopts": "d",
  498. "checkbox": false,
  499. "hasvalue": true,
  500. "mincount": 0,
  501. "maxcount": 1
  502. }, {
  503. "datatype": "<n>",
  504. "glossary": "I2C address (default 60)",
  505. "longopts": "address",
  506. "shortopts": "a",
  507. "checkbox": false,
  508. "hasvalue": true,
  509. "mincount": 0,
  510. "maxcount": 1
  511. }, {
  512. "datatype": "<n>",
  513. "glossary": "Width",
  514. "longopts": "width",
  515. "shortopts": "w",
  516. "checkbox": false,
  517. "hasvalue": true,
  518. "mincount": 0,
  519. "maxcount": 1
  520. }, {
  521. "datatype": "<n>",
  522. "glossary": "Height",
  523. "longopts": "height",
  524. "shortopts": "h",
  525. "checkbox": false,
  526. "hasvalue": true,
  527. "mincount": 0,
  528. "maxcount": 1
  529. }, {
  530. "glossary": "Rotate 180 degrees",
  531. "longopts": "rotate",
  532. "shortopts": "r",
  533. "checkbox": true,
  534. "hasvalue": false,
  535. "mincount": 0,
  536. "maxcount": 1
  537. }, {
  538. "glossary": "Flip horizontally",
  539. "longopts": "hf",
  540. "checkbox": true,
  541. "hasvalue": false,
  542. "mincount": 0,
  543. "maxcount": 1
  544. }, {
  545. "glossary": "Flip vertically",
  546. "longopts": "vf",
  547. "checkbox": true,
  548. "hasvalue": false,
  549. "mincount": 0,
  550. "maxcount": 1
  551. }, {
  552. "datatype": "<n>",
  553. "glossary": "Bus Speed (Default 8000000 for SPI, 250000 for I2C). SPI interface can work up to 26MHz~40MHz",
  554. "longopts": "speed",
  555. "shortopts": "s",
  556. "checkbox": false,
  557. "hasvalue": true,
  558. "mincount": 0,
  559. "maxcount": 1
  560. }, {
  561. "datatype": "<n>",
  562. "glossary": "Backlight GPIO (if applicable)",
  563. "longopts": "back",
  564. "shortopts": "b",
  565. "checkbox": false,
  566. "hasvalue": true,
  567. "mincount": 0,
  568. "maxcount": 1
  569. }, {
  570. "glossary": "clear configuration and return",
  571. "longopts": "clear",
  572. "checkbox": true,
  573. "hasvalue": false,
  574. "mincount": 0,
  575. "maxcount": 1
  576. }],
  577. "hint": " [-r] [-t <I2C|SPI>] [-d <SH1106|SSD1306|SSD1322|SSD1326|SSD1327|SSD1675|SSD1351|ST77xx|ILI9341|>] [-a <n>] [-w <n>] [-h <n>] [--hf] [--vf] [-s <n>] [-b <n>] [--clear]",
  578. "name": "cfg-hw-display"
  579. }, {
  580. "help": "Shows display options and global i2c configuration",
  581. "hascb": false,
  582. "name": "getdisplay"
  583. }, {
  584. "help": "Stop the I2C bus",
  585. "hascb": false,
  586. "argtable": [{
  587. "datatype": "<0|1>",
  588. "glossary": "I2C bus port number",
  589. "longopts": "port",
  590. "shortopts": "p",
  591. "checkbox": false,
  592. "hasvalue": true,
  593. "mincount": 0,
  594. "maxcount": 1
  595. }],
  596. "hint": " [-p <0|1>]",
  597. "name": "i2cstop"
  598. }, {
  599. "help": "Check if the I2C bus is installed",
  600. "hascb": false,
  601. "argtable": [{
  602. "datatype": "<0|1>",
  603. "glossary": "Set the I2C bus port number",
  604. "longopts": "port",
  605. "shortopts": "p",
  606. "checkbox": false,
  607. "hasvalue": true,
  608. "mincount": 0,
  609. "maxcount": 1
  610. }],
  611. "hint": " [-p <0|1>]",
  612. "name": "i2ccheck"
  613. }],
  614. "values": {
  615. "cfg-syst-squeezelite": {
  616. "buffers": "500:2000",
  617. "header_format": true,
  618. "loglevel": "all=info",
  619. "output_device": "I2S",
  620. "name": "squeezelite",
  621. "timeout": 30
  622. },
  623. "cfg-hw-dac": {
  624. "model_name": "i2s"
  625. },
  626. "cfg-syst-services": {
  627. "BT_Speaker": false,
  628. "AirPlay": false,
  629. "telnet": "Telnet and Serial",
  630. "stats": true
  631. },
  632. "cfg-syst-name": {
  633. "name": "\"squeezelite-test3\""
  634. },
  635. "cfg-hw-i2c": {
  636. "freq": 400000
  637. },
  638. "cfg-hw-spi": {
  639. },
  640. "cfg-hw-display": {
  641. "address": 0,
  642. "width": 0,
  643. "height": 0,
  644. "driver": "SSD1306",
  645. "hf": false,
  646. "vf": false,
  647. "rotate": false
  648. }
  649. }
  650. }