Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Voice-activated HA via tasker
#31
I'm trying:

http://myhost:9999/Test?1=50&2=50

Set the Value parameter to:
%(LVar:CQCActParm_1) still nothing

or

%(LVar:CQCActParm_2) still nothing

If I manually set the Value parameter to 50 it works fine. What should I change?
My Other web server is Dropbox.
Reply
#32
The name of the query parameters doesn't really matter, i.e. 1=, 2= all the same, they just need to have names for legal URL syntax.

Update your action to log the first two action parameters and see what you are getting.
Dean Roddey
Explorans limites defectum
Reply
#33
Dean Roddey Wrote:Update your action to log the first two action parameters and see what you are getting.

LOL. If I knew how to do that, I could probably figure out this problem.

I'm just trying to do the simplest possible version of passing one parameter to the HTTP trigger. Let's say my command is:

http://myhost:9999/Test?1=50

What would need to go into the value parameter? If I right click and choose Insert Action Parameter, I can choose 1 or 2 etc. You said the values go into 2. So I choose 2 and it inserts: %(LVar:CQCActParm_2). But that doesn't work. So is it inserting the wrong information, or is this a variable typing issue or ???.
My Other web server is Dropbox.
Reply
#34
There's an action command to log a message. Just insert one of those and pass it the %(LVar:CQCActParm_1) and %(LVar:CQCActParm_2) values as the message text to log.

You can remove or just disable the command when you don't need it anymore.
Dean Roddey
Explorans limites defectum
Reply
#35
Anything informative popping out of that?
Dean Roddey
Explorans limites defectum
Reply
#36
When HTTP Trigger Driver receives this:

http://myhost:9999/Test?1=50

%(LVar:CQCActParm_1) = Test
%(LVar:CQCActParm_2) = (blank)

(I set them both to String variables to confirm)

Are we sure the http command is properly formatted?
My Other web server is Dropbox.
Reply
#37
I also sent it directly to my computers local IP address to see if somehow my ddns service was stripping out the parameters. Same result.
My Other web server is Dropbox.
Reply
#38
Are you on the latest beta? Some of the older versions of CQC don't pick up the attributes after the question mark. But I think that was fixed. I am on a version with that issue right now (4.3.925)...
Wuench
My Home Theater/Automation Website

[THREAD=5957]BlueGlass CQC Config[/THREAD]
[THREAD=10624]Wuench's CQC Drivers[/THREAD]
Reply
#39
Thanks wuench. I'm on 4.4.0. Maybe that behavior has resurfaced.

I also tried writing %(LVar:CQCActParm_2) to an integer variable and it gave me 0.
My Other web server is Dropbox.
Reply
#40
I presume he's on 4.4 since I got a license upgrade request from him today. It should be working in 4.4. What it does is set # as the separator value, and it rewrites the URL into a string like:

Test#50

and queues that up. Since the driver has # set as a separator, it should split them up as it does with the other trigger drivers.

I'll take another look at it.
Dean Roddey
Explorans limites defectum
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  CQC Voice - What are you doing? gReatAutomation 2 1,468 07-17-2019, 04:28 AM
Last Post: gReatAutomation
  CQC Voice Use cases IVB 20 8,567 06-02-2018, 02:26 PM
Last Post: IVB
  CQC Voice Mics other than Kinect/Acoustic Magic IVB 2 2,049 05-28-2018, 10:52 AM
Last Post: Dean Roddey
  your sched/triggered/tasker/IFTTT events IVB 17 9,278 01-18-2018, 07:41 AM
Last Post: RichardU
  Mic for CQC Voice and other misc Q's znelbok 15 8,192 12-12-2017, 02:48 PM
Last Post: IVB
  CQC Voice zane 3 3,258 10-16-2017, 09:20 AM
Last Post: Dean Roddey
  anyone tasker scene <--> CQC? IVB 7 3,848 08-31-2016, 04:24 PM
Last Post: wuench
  how deep is your (echo voice control) love? IVB 197 51,140 05-23-2016, 08:47 AM
Last Post: Dean Roddey
  Tasker Question jbh5000 3 2,994 12-26-2013, 07:10 AM
Last Post: wuench
  Android based device Voice control of CQC How To Discussion Thread batwater 5 4,652 12-07-2013, 10:01 PM
Last Post: RichardU

Forum Jump:


Users browsing this thread: 1 Guest(s)