ayatec logo
Home Store Blog Contact
unispa user guide by ayatec
Home Store Blog Contact

Topics

  1. Getting started
    1. What is unispa
    2. Hardware specification
    3. Connectivity
    4. System controls
    5. Integration options
    6. Network API - HTTP
    7. Network API - MQTT
    8. Network security
    9. Download
  2. Web Interface
    1. Process
      1. Cabin
      2. Pool
      3. Kneipp
    2. Peripheral
      1. Calibration
      2. Mapping (edit)
    3. Device
    4. Network
    5. System

In this article

  • Introduction
advert
unispa > Web interface > Processes > Output > Folder/Track

Folder/Track

The Folder number and the Track number parameters are related to the Audio driver and define the exact audio track to be played when the respective process is turned ON. These parameters are only relevant and displayed if a Play from or a Play single option is selected as the process's Primary output. Any [VALUE] between 1 and 100 can be assigned to the Track number, while any [VALUE] between 1 and 16 can be assigned to the Folder number. These values represent the ordered sequence number of the respective Folder or Track.

The Audio driver expects folders and tracks on the inserted MicroSD card to be named sequentially as "01", "02", ..., "16" (folders) or "001.mp3", "002.mp3", ..., "100.mp3" (tracks). Failure to follow this naming convention may lead to unexpected behavior.

HTTP

The device will accept HTTP requests at the following URLs related to:

  • Folder:

(POST) http://[IPv4]/var_set?param=outval1_[PROCESS ID]&val=[VALUE]
(GET) http://[IPv4]/var_request?param=outval1_[PROCESS ID]

  • Track:

(POST) http://[IPv4]/var_set?param=outval2_[PROCESS ID]&val=[VALUE]
(GET) http://[IPv4]/var_request?param=outval2_[PROCESS ID]

A combination of:

POST: http://192.168.1.255/var_set?param=outval1_16&val=3
POST: http://192.168.1.255/var_set?param=outval2_16&val=4

will ensure that the 4th track of the 3rd folder will be played once Process #16 is turned ON (assuming the relevant Primary output is selected).

Learn more in HTTP API.

Variable outval1 is shared with Mem value, Low output, and RGB speed.
Variable outval2 is shared with Duty cycle, High output, and RGB brightness.

MQTT

This parameter can also be accessed via MQTT using [PARAMETER] = outval1 and outval2. Learn more in MQTT API.

The following two messages:

Topic: johndoe5896/home/soundeffects/sub/process_16/outval1
Payload: 3

Topic: johndoe5896/home/soundeffects/sub/process_16/outval2
Payload: 4

will ensure that the 4th track of the 3rd folder will be played once Process #16 is turned ON (assuming the relevant Primary output is selected).
© 2024 ayatec.eu • Found a mistake?  Let us know!