12.07.2015 Views

Technical Documentation - Barix

Technical Documentation - Barix

Technical Documentation - Barix

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

a boolean expression can be prefixed with the exclamation mark ('!', ASCII 0x21) for the logicalNOT function.m(f,n) - n-th message in file f exists• similar to the Print Message command M(f,n) above• tests if a FLASH message file (e.g. channels.ini) contains a non-empty message on the linenumber n; the top line in the file has the number 0• is TRUE if the message exists and is non-empty, otherwise is FALSEp(s) - string is empty• accepts one string parameter• is TRUE if the string is empty, otherwise is FALSEz(i) - integer is zero• accepts one integer parameter• is TRUE if the integer is zero, otherwise is FALSEg(i1,i2) - i1>i2• accepts two integer parameters i1 and i2• is TRUE if i1 is greater than i2, otherwise is FALSEe(i1,i2) - i1=i2• accepts two integer parameters i1 and i2• is TRUE if i1 equals to i2, otherwise is FALSEt(i1,i2) - i1>=i2• accepts two integer parameters i1 and i2• is TRUE if i1 is greater or equals to i2, otherwise is FALSEVariablesVariables are indexed, a separate indexing for integer and string variables is used. Integervariables are prefixed with a small 'i' letter (ASCII 0x69) followed by the variable index (startingfrom 0). String variables are prefixed with a small 's' letter (ASCII 0x73) followed by the variableindex. E.g. 'i12' or 's4'The following string variables are defined:ID Descriptions0 Device's IP address as a string; e.g. “192.168.1.2”s1 The current song name and radio station name obtained from meta tagsThe following integer variables are defined:ID Descriptioni0 The player status: 0=idle, 1=tuning, 2=playingi1 non-zero if priority message is being played, otherwise 0i2 1 if the device is in stand-by mode, otherwise 0i3 The current volume in 1% stepsi4 The currently selected channel numberBARIX AG | 42/58

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!