We have moved at community.getvera.com

Author Topic: Anyway to read CLI responses and use reponses in LUUP Code  (Read 1202 times)

Offline trouty00

  • Full Member
  • ***
  • Posts: 207
  • Karma: +2/-1
Anyway to read CLI responses and use reponses in LUUP Code
« on: October 20, 2015, 06:42:47 pm »
I want to be able to send the following to my player to see if any type of random play is active and then run a bunch of nested if's to figure out the type but I cant figure out a way how i read the response into a variable to then query it.

Code: [Select]
00:04:20:22:5c:74 playlist save lounge
client:send("00:0xxxxxxxxx:74 randomplayisactive\n")
local result=client:receive()

if local = "00XXXXXXX5c%3A74 randomplayisactive" album
then
else
etc
etc

any thoughs?

Offline trouty00

  • Full Member
  • ***
  • Posts: 207
  • Karma: +2/-1
Re: Anyway to read CLI responses and use reponses in LUUP Code
« Reply #1 on: October 27, 2015, 04:51:25 pm »
little bump - I know its probably a long shot but here is hoping. I know the responses will come but how to interpret in vera