78
•
Execution buttons
: script execution and stop buttons. The START button runs the
script
immediately, without the need for the programmed stimulus to occur. The
script
must be saved
before you click on this button in order for the changes to be applied. This is useful for testing.
The STOP button stops the running of the
script
. These functions are especially useful during
script
programming, as they allow you to check the actions executed by each
script
and debug
the code.
Figure 68: script execution buttons
•
Status
: shows the status of the
script
: RUNNING (flashing) the
script
is running, or STOPPED
(steady), the
script
has finished or stopped.
•
Script output
: output/return value of the
script
. You can write output messages that will appear
on this screen. This is useful for debugging scripts.
Figure 69: example of a script return value
•
Documentation for programmers:
links (blue) available on the device for consultation (Internet
connection required):
•
LUA
: LUA programming language manual
•
Device
: PLAYER ONE/PLAYER ZERO LUA library (programmer's annex). Details the
objects, functions, and parameters of the library. Interface between LUA and the firmware
of the device using the JSON protocol.
•
LuaSocket
: LuaSocket library documentation.
•
cjson
: LUA CJSON module documentation. Provides JSON support for LUA.
The following chapters show a number of examples of simple
scripts
. Keep in mind that this PLAYER
ONE/PLAYER ZERO programming and customization tool is very powerful, as the same
script
can
execute several tasks which can be linked together, depending on various circumstances, and thus
implement an entire logic and intelligence in the way it works.
The only limit is your imagination!
Summary of Contents for PLAYER ONE
Page 54: ...54 Figure 32 The action of loading and playing the specified stream is configured Figure 33 ...
Page 85: ...85 Figure 76 accessing the network configuration Figure 77 editing network parameters ...
Page 90: ...90 Figure 83 editing WiFi password ...
Page 95: ...95 A wireless connection to your WiFi network will be established Figure 88 ...
Page 112: ...112 In this example su hotels Figura 107 ...
Page 114: ...114 Figura 109 Copy from here To here ...
Page 118: ...118 THIRD PARTY CONTROL PROTOCOL PLAYER ONE JSON Commands USUER MANUAL ...
Page 153: ...HOW TO IDENTIFY INTERNET RADIO URL STREAMS 153 ...