Cardwall / D&R Airlite

You have a question or need an advice about how to do something? Ask it here!
User avatar
radio42
Site Admin
Posts: 8350
Joined: 05 Apr 2012 16:26
Location: Hamburg, Germany
Contact:
Re: Cardwall / D&R Airlite

Post by radio42 »

It’s delayed, I’ll post it today in the evening...
franksiegers
Posts: 122
Joined: 15 Nov 2019 14:24
Re: Cardwall / D&R Airlite

Post by franksiegers »

Awesome, thanks!
User avatar
radio42
Site Admin
Posts: 8350
Joined: 05 Apr 2012 16:26
Location: Hamburg, Germany
Contact:
Re: Cardwall / D&R Airlite

Post by radio42 »

A new v4.1.5.14-Beta is available which adds the new *[TOINT] macro function parameters.
Use the "Check for Beta-Version..." menu under the blue question mark icon at the very top right to update.

In you case you can try:

Code: Select all

EXEC_SEND_DRAIRENCE_SETLED *[TOINT:{${cartid}}:{vert}:{2}:{8}]|${cartisselected}
or

Code: Select all

EXEC_SEND_DRAIRENCE_SETLED *[TOINT:{${cartid}}:{horz}:{8}:{2}]|${cartisselected}
TOINT (converts a numeric value to an integer):
Returns a new string by converting a num value.

Syntax:
*[TOINT:{num}:{conv}:{p1}:{p2}]

Parameters:
{num} the original numeric value to format
{conv} the conversion function name to apply to the num
‘round’ : rounds num to the nearest integral value
p1: not used
p2: not used (can be omitted)
‘add’ : adds a value to num
p1: the value to add (e.g. 5)
p2: not used (can be omitted)
‘multi’ : multiplies a value to num
p1: the value to multiply (e.g. 2.0)
p2: not used (can be omitted)
‘div’ : devides num by a value
p1: the divisor (e.g. 2.0)
p2: not used (can be omitted)
‘mod’ : reminder after division; num = num % p1
p1: the divisor (e.g. 2.0)
p2: not used (can be omitted)
‘odd’ : makes the num value odd; num = (num * p1) - 1
p1: the value to multiply (e.g. 2)
p2: not used (can be omitted)
‘even’ : makes the num value even; num = (num / p1) + 1
p1: the value to divide (e.g. 2)
p2: not used (can be omitted)
‘vert’ : arranges the num value vertical (in p2 columns)
p1: the number of vertical rows (e.g. 8)
p2: not used (if omitted, defaults to 2)
‘horz’ : arranges the num value horizontal (in p2 columns)
p1: the number of vertical rows (e.g. 8)
p2: not used (if omitted, defaults to 2)
‘none’ : uses num unmodified
p1: not used
{p1} see the above notes for the conv parameter
{p2} optional, can be omitted, see the above notes for the conv parameter

Example 1:
*[TOINT:{${cartid}}:{add}:{7.0}]
Will result to:
8 assuming the macro ${cartid} will resolve to 1.

Example 2:
*[TOINT:{${cartid}}:{vert}:{8}:{2}]
Will result to:
9 assuming the macro ${cartid} will resolve to 2.

Example 3:
*[TOINT:{${cartid}}:{vert}:{2}:{8}]
Will result to:
2 assuming the macro ${cartid} will resolve to 9.
User avatar
Michel67
Posts: 166
Joined: 28 Nov 2016 19:53
Re: Cardwall / D&R Airlite

Post by Michel67 »

"Check for Beta-Version failed! Could not connect te the radio42 server"

this is since a the last update
User avatar
radio42
Site Admin
Posts: 8350
Joined: 05 Apr 2012 16:26
Location: Hamburg, Germany
Contact:
Re: Cardwall / D&R Airlite

Post by radio42 »

Can you please retry - maybe a temp. server issue somewhere.
I just tried it and it seems to be working fine now again.
franksiegers
Posts: 122
Joined: 15 Nov 2019 14:24
Re: Cardwall / D&R Airlite

Post by franksiegers »

It's working here as well. I've downloaded the beta and changed the OnCartSelected.

Everything is working well now. Thank alot Bernd, great service!

Will this be added to the default release as well (can I install normal versions or should I stay on beta only?).

Cheers,

Frank
User avatar
Michel67
Posts: 166
Joined: 28 Nov 2016 19:53
Re: Cardwall / D&R Airlite

Post by Michel67 »

works again
User avatar
radio42
Site Admin
Posts: 8350
Joined: 05 Apr 2012 16:26
Location: Hamburg, Germany
Contact:
Re: Cardwall / D&R Airlite

Post by radio42 »

Yes, this be part of the next regular version, so you can safely use the BETA.
franksiegers
Posts: 122
Joined: 15 Nov 2019 14:24
Re: Cardwall / D&R Airlite

Post by franksiegers »

Hi Bernd,

Would this be possible with 2 cartwalls as well? PFOA could play from the cartwall that was last selected?
User avatar
radio42
Site Admin
Posts: 8350
Joined: 05 Apr 2012 16:26
Location: Hamburg, Germany
Contact:
Re: Cardwall / D&R Airlite

Post by radio42 »

What should be possible?

Both cartwalls exist side by side in parallel, so there is no single selected cartwall.

Post Reply