Jump to content
AT&T to end email-to-text ×

hoopty

Members
  • Posts

    53
  • Joined

  • Last visited

Everything posted by hoopty

  1. Be aware that there are some errors in his instructions. I have made the corrections below and commented on his site. I am using this setup and it works very nicely. In the example PHP script, -- it should be '+1' instead of "+1" -- it should be => "SMS" instead of =--> "SMS" When you add the telephone number to the URL, do not include the 1 as it is covered by the '+1' in the script. When setting up the network resource, set the Protocol to HTTPS. The image does show HTTPS, however the text states HTTP. Also, it should be mentioned that this method of sending texts does require the network module for the ISY-99i (which is an extra $49 if you don't already have it installed). Here is an example of the code I'm using. Code: <?php call('+1'.$number, array( "network" => "SMS")); if ($event == 1) {say ("The ".$size." garage door is now ".$status.".");} else if ($event == 2) {say ("One of the motion sensors has a low battery!");} else if ($event == "3") {say ("placeholder for next alert type");} ?> I'm using the $event variable to allow for multiple alert types and still use the same phone number assigned by tropo. If you used different apps for different events, then you will have a different number assigned to each. All of the variables get taken care of in the network resources setup. Hope this helps. ~hoopty
  2. Here is the link for the second how-to: http://cashoefman.blogspot.com/2011/05/ ... -from.html But, be aware that there are some errors in his instructions. I have made the corrections below and commented on his site. I am using this setup and it works very nicely (and is free). In the example PHP script, -- it should be '+1' instead of "+1" -- it should be => "SMS" instead of =--> "SMS" When you add the telephone number to the URL, do not include the 1 as it is covered by the '+1' in the script. When setting up the network resource, set the Protocol to HTTPS. The image does show HTTPS, however the text states HTTP. Also, it should be mentioned that this method of sending texts does require the network module for the ISY-99i (which is an extra $49 if you don't already have it installed). Here is an example of the code I'm using. <?php call('+1'.$number, array( "network" => "SMS")); if ($event == 1) {say ("The ".$size." garage door is now ".$status.".");} else if ($event == 2) {say ("One of the motion sensors has a low battery!");} else if ($event == "3") {say ("placeholder for next alert type");} ?> I'm using the $event variable to allow for multiple alert types and still use the same phone number assigned by tropo. If you used different apps for different events, then you will have a different number assigned to each. All of the variables get taken care of in the network resources setup. Hope this helps. ~hoopty
  3. Here is the link for the second how-to: http://cashoefman.blogspot.com/2011/05/ ... -from.html But, be aware that there are some errors in his instructions. I have made the corrections below and commented on his site. I am using this setup and it works very nicely (and is free). In the example PHP script, -- it should be '+1' instead of "+1" -- it should be => "SMS" instead of =--> "SMS" When you add the telephone number to the URL, do not include the 1 as it is covered by the '+1' in the script. When setting up the network resource, set the Protocol to HTTPS. The image does show HTTPS, however the text states HTTP. Also, it should be mentioned that this method of sending texts does require the network module for the ISY-99i (which is an extra $49 if you don't already have it installed). Here is an example of the code I'm using. <?php call('+1'.$number, array( "network" => "SMS")); if ($event == 1) {say ("The ".$size." garage door is now ".$status.".");} else if ($event == 2) {say ("One of the motion sensors has a low battery!");} else if ($event == "3") {say ("placeholder for next alert type");} ?> I'm using the $event variable to allow for multiple alert types and still use the same phone number assigned by tropo. If you used different apps for different events, then you will have a different number assigned to each. All of the variables get taken care of in the network resources setup. Hope this helps. ~hoopty
×
×
  • Create New...