Author Topic: connecting vox with sms service  (Read 1639 times)

0 Members and 1 Guest are viewing this topic.

JoshK

  • Jr. Member
  • **
  • Posts: 32
  • Karma: 3
    • View Profile
connecting vox with sms service
« on: September 07, 2014, 12:03:00 PM »
I'm hoping to connect vox to the following messaging service for sms integration

http://www.smsbroadcast.com.au/Advanced%20HTTP%20API.pdf

looking at their api i think this should be possible, my questions are -

It appears their api delimts payloads with a single & as opposed to vox which uses &&. I'm not a coder so not sure if this will matter?

jitterjames

  • Administrator
  • Hero Member
  • *****
  • Posts: 7713
  • Karma: 116
    • View Profile
    • VoxCommando
Re: connecting vox with sms service
« Reply #1 on: September 07, 2014, 01:07:01 PM »
Do you want to send sms messages to your phone from VoxCommando using this method?  Is email not an option?  What about prowl?

Anyway, the delimiter should not be an issue.

Haddood

  • $upporter
  • Hero Member
  • *****
  • Posts: 688
  • Karma: 22
    • View Profile
Re: connecting vox with sms service
« Reply #2 on: September 07, 2014, 11:56:43 PM »
from scanning the document it shouldn't be hard ...I think a scrape command will do the trick ....

another paying option that works in many countries is Skype paid services and Skype is well integrated with VC
When Voice command gets tough, use hand gestures

JoshK

  • Jr. Member
  • **
  • Posts: 32
  • Karma: 3
    • View Profile
Re: connecting vox with sms service
« Reply #3 on: September 09, 2014, 11:24:08 AM »
I want to use this for 2 way communication with vox from any phone.

i.e if you send a message from anyphone with an overide phrase. that phone number is then added to a list of accepted numbers.

all commands are then received through an sms event that triggers the text as if it was spoken, and then responds via sms instead of tts.

will let you know how i go, just wanted to see if the delimter would be an issue.

jitterjames

  • Administrator
  • Hero Member
  • *****
  • Posts: 7713
  • Karma: 116
    • View Profile
    • VoxCommando
Re: connecting vox with sms service
« Reply #4 on: September 09, 2014, 01:27:46 PM »
Sending from VC to SMS should be doable.  I'm not sure about receiving.

The delimiter would actually be more of a problem if you needed to send as part of the message && for some reason, because VC would interpret it as two parameters and break it up when you did not want it to.  Sending a single & is easy, you just send it like any other character.

Haddood

  • $upporter
  • Hero Member
  • *****
  • Posts: 688
  • Karma: 22
    • View Profile
Re: connecting vox with sms service
« Reply #5 on: September 09, 2014, 03:03:07 PM »
I want to use this for 2 way communication with vox from any phone.

To be able to receive SMS on PC you will need a middle man ... Either hardware (which means mobile line) or software ... In the software there are few option depending on the services ... However, if you can SMS to emails (some mobile providers give that option) then you need a gmail account (or use IFTTT to forward SMS to email, though it won't be very fast)... You can find somewhere on the forums a post by nime5ter that watches gmail inbox and take actions accordingly ...

I opted for messaging through Skype (with a bit of data on mobile or wifi you can chat with VC from anywhere and it is instant) ... I chose ## as override. here is my macro that process Skype message ... If ## is not present VC will simply reads the message aloud ... (Note due Skype api issues the first message has to be send twice, again there a thread about that in the forums)

Code: [Select]
<?xml version="1.0" encoding="utf-16"?>
<!--VoxCommando 2.0.1.0-->
<command id="141" name="Skype Message" enabled="true" alwaysOn="False" confirm="False" requiredConfidence="0" loop="False" loopDelay="0" loopMax="0" description="reads skype messages&#xD;&#xA;if message starts with ## ..it is considered a command and executed">
  <if ifBlockDisabled="False" ifNot="False">
    <ifType>(A)Contains(B)</ifType>
    <ifParams>{4}&amp;&amp;##</ifParams>
    <then>
      <action>
        <cmdType>Results.RegEx</cmdType>
        <params>
          <param>\#\#(.*)</param>
          <param />
          <param>{4}</param>
        </params>
        <cmdRepeat>1</cmdRepeat>
      </action>
      <action>
        <cmdType>Results.SetVar</cmdType>
        <params>
          <param>SkypeMSG</param>
          <param>True</param>
        </params>
        <cmdRepeat>1</cmdRepeat>
      </action>
      <action>
        <cmdType>Results.SetVar</cmdType>
        <params>
          <param>SkypeReceiver</param>
          <param>{1}</param>
        </params>
        <cmdRepeat>1</cmdRepeat>
      </action>
      <action>
        <cmdType>VC.TellVox</cmdType>
        <params>
          <param>{Match.1}</param>
        </params>
        <cmdRepeat>1</cmdRepeat>
      </action>
    </then>
    <else>
      <action>
        <cmdType>VC.TriggerEvent</cmdType>
        <params>
          <param>feedback</param>
          <param>{2} Says {4}</param>
          <param>2</param>
        </params>
        <cmdRepeat>1</cmdRepeat>
      </action>
    </else>
  </if>
  <event>Skype.Chat.cmsReceived</event>
</command>
When Voice command gets tough, use hand gestures