Announcement

Collapse
No announcement yet.

SMS plugin google voice?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    #16
    Originally posted by mrhappy View Post
    Mikhael...I know I keep pushing the API idea but I honestly think thats one of the better routes to go down, I think its alot simpler and perhaps alot cheaper.
    Honestly I don't have a problem with the API rout. As I said before

    Originally posted by mikhael
    Think I found a feesible solution

    http://blog.twilio.com/2010/02/intro...wilio-sms.html

    $1 per month and $.03 per SMS not too bad as long as you dont get carried away on using it but honestly you would need to use 1000 messages to get a bill of $31 not bad.
    And honestly they accept and send commands via http POST commands. I would assume HS would have no problem sending/receiving those, (correct me if I am wrong) so I should be all set, and for about $.03 per command/notification

    Comment


      #17
      Two things if you do the HTTP Post method.

      You want an error trapping routine in case the Post didn't go through.

      PHP Code:
       if dv 1 then
             s 
      hs.URLAction(server_url"POST""PIN=5035551212&MSSG=" send_str2 "&Q1=1"headers)
             
      hs.waitsecs 5
             
      if instr(s,"content.arch.com") > and instr(s,"Cannot process") = 0 then
                    hs
      .writelog "SENT TO PAGER" send_str
             
      else
                    
      hs.writelog "ARCH PAGE ERROR" "MESSAGE: [" send_str "] WAS NOT SENT, SENDING USING EMAIL BACKUP"
                    
      hs.writelog "ARCH PAGE ERROR DEBUG" send_str2
                    hs
      .writelog "ARCH PAGE ERROR DEBUG" s
                    hs
      .SendEmail "5035551212@usamobility.net","Home","MESSAGE"send_str
                    hs
      .SendEmail "you@x..com","home@verizon.net","ARCH PAGER ERROR"send_str VBCRLF VBCRLF send_str2 VBCRLF VBCRLF s
             end 
      if
          
      end if 

      Second - when posting to some URLs if may not like if you have things like qoutes or slashes in them ( " or / ). This is a simple sunstitution routine:

      PHP Code:
      send_str2  Replace send_str2 ,  "%" "%25" ,  , -1)
       
      send_str2  Replace send_str2 ,  "+" "%2B" ,  , -1)
       
      send_str2  Replace send_str2 ,  " " "+" ,  , -1)
       
      send_str2  Replace send_str2 ,  "," "%2C" ,  , -1)
       
      send_str2  Replace send_str2 ,  "." "%2E" ,  , -1)
       
      send_str2  Replace send_str2 ,  "~" "%7E" ,  , -1)
       
      send_str2  Replace send_str2 ,  "`" "%60" ,  , -1)
       
      send_str2  Replace send_str2 ,  "<" "*" ,  , -1)
       
      send_str2  Replace send_str2 ,  ">" "*" ,  , -1)
       
      send_str2  Replace send_str2 ,  "/" "%2F" ,  , -1)
       
      send_str2  Replace send_str2 ,  "?" "%3F" ,  , -1)
       
      send_str2  Replace send_str2 ,  ";" "%3B" ,  , -1)
       
      send_str2  Replace send_str2 ,  ":" "%3A" ,  , -1)
       
      send_str2  Replace send_str2 ,  "'" "`" ,  , -1)
       
      send_str2  Replace send_str2 ,  CHR(34) , "``" ,  , -1' QUOTE MARK
       send_str2  = Replace ( send_str2 ,  CHR(13) , "+" ,  1 , -1 , 1) ' 
      Return now a space
       send_str2  
      Replace send_str2 ,  "-" "%2D" ,  , -1)
       
      send_str2  Replace send_str2 ,  "_" "%5F" ,  , -1)
       
      send_str2  Replace send_str2 ,  "=" "%3D" ,  , -1)
       
      send_str2  Replace send_str2 ,  "!" "%21" ,  , -1)
       
      send_str2  Replace send_str2 ,  "@" "%40" ,  , -1)
       
      send_str2  Replace send_str2 ,  "#" "%23" ,  , -1)
       
      send_str2  Replace send_str2 ,  "$" "%24" ,  , -1)
       
      send_str2  Replace send_str2 ,  "^" "%5E" ,  , -1)
       
      send_str2  Replace send_str2 ,  "&" "%26" ,  , -1)
       
      send_str2  Replace send_str2 ,  "*" "%2A" ,  , -1)
       
      send_str2  Replace send_str2 ,  "(" "%28" ,  , -1)
       
      send_str2  Replace send_str2 ,  ")" "%29" ,  , -1


      ~Bill

      Comment


        #18
        The code is old and probably a mess but you might get a few things out of it.
        I use this for my pager and cell phone notifications.

        http://board.homeseer.com/showthread...ighlight=pager


        ~Bill

        Comment


          #19
          You know you can do this with Twitter as well if your phone can do Tweets. Everyone knows a Tweet is so much more cool than a text message
          💁‍♂️ Support & Customer Service 🙋‍♂️ Sales Questions 🛒 Shop HomeSeer Products

          Comment


            #20
            Thanks Rupp, even though i detect your sarcasm I must interject that al a tweet is, is an SMS that is permenantly logged on a website. lol

            Also Thank you Bill that code is really helpful (and in my native php nice)

            Comment


              #21
              Originally posted by Mikhael View Post
              Thanks Rupp, even though i detect your sarcasm I must interject that al a tweet is, is an SMS that is permenantly logged on a website. lol

              Also Thank you Bill that code is really helpful (and in my native php nice)
              Yep, and you can get Tweet parsers for free and they are easy to use.
              💁‍♂️ Support & Customer Service 🙋‍♂️ Sales Questions 🛒 Shop HomeSeer Products

              Comment


                #22
                true and you can get tweet notifications sent to a phone as well (if your phone can do that). Hrm maybe a tweeting house is a good idea Still want the SMS functionality. And it would seem I can do both in a fairly easy way.

                Can HS recieve POST commands as well as send them?

                Comment


                  #23
                  I use Windows Live Messenger and Stipus' plugin for the quickest two way coms. But I don't want to leave WLM running on the phone. "Two-way" SMS would be best. I pop stuff back and forth using SMS to my HS2 email and then email back. I use Outlook. Outlook instantly sends when HS2 sends an email through it but you have up to a minute between Outlook polling and then up to another minute for HS2 to pole Outlook. If there was a way to manually trip HS2 to look at Outlook faster I would have an Outlook macro tell HS2 there is a new message and that would make things on average 50% quicker. I posted the question of manually tripping HS2 to look at Outlook but nobody knew of a way and there is nothing eluding to it in the Help documents.


                  ~Bill

                  Comment

                  Working...
                  X