Please login or register.

Login with username, password and session length
Pages: 1 ... 5 6 [7]

Author Topic: text2x10, Text messaging to operate your X10 devices.  (Read 82028 times)

bkenobi

  • PI Expert
  • Hero Member
  • ******
  • Helpful Post Rating: 24
  • Posts: 2081
Re: text2x10, Text messaging to operate your X10 devices.
« Reply #90 on: July 15, 2012, 04:35:04 AM »

It looks like this isn't an issue with google voice.  It turns out that my file server is having networking issues.  I don't use that system to surf the web or run any files, but it appears that it may have been infected by some form of the DNS Changer malware.  I can ping google, but I can't navigate there.  FTP is also dead.

I'll run a thorough search of the system tonight, but from what I've read...I may get to format and setup the file server again.   B:(

shuggins

  • Full Member
  • ***
  • Helpful Post Rating: 0
  • Posts: 51
Re: text2x10, Text messaging to operate your X10 devices.
« Reply #91 on: July 15, 2012, 03:07:35 PM »

Fired it up for the first time in 3 months. Works great.  I was able to turn devices on / off many times.  I think you likely have an outdated version of the .php code.  Somewhere in this thread, a fine X10 forum member posted the code he fixed.  You might have to go get that.  

PM me if you need more help.  
« Last Edit: July 15, 2012, 03:09:08 PM by shuggins »
Logged

bkenobi

  • PI Expert
  • Hero Member
  • ******
  • Helpful Post Rating: 24
  • Posts: 2081
Re: text2x10, Text messaging to operate your X10 devices.
« Reply #92 on: August 14, 2012, 11:43:41 AM »

I've had this script running for ages now and it works great...when it's running.  I've noticed that it sometimes crashes for some unknown reason.  This is running on a headless server, so I don't know it isn't working until I expect it to respond to a command and it does not.  I'm not sure why it's crashing, so I don't know what to fix (this isn't one of the languages I'm familiar with).

bkenobi

  • PI Expert
  • Hero Member
  • ******
  • Helpful Post Rating: 24
  • Posts: 2081
Re: text2x10, Text messaging to operate your X10 devices.
« Reply #93 on: September 29, 2012, 09:37:41 PM »

I tried to send a text to my google voice account so I could turn on the kennel lights for my dogs.  I just checked, and the code had crashed again.  This time I have a crash log to post though.  Anyone know how to implement try/catch in PHP?

Code: [Select]
PHP Fatal error:  Allowed memory size of 134217728 bytes exhausted (tried to all
ocate 81377 bytes) in D:\Array1\Misc\X10 Software\text2x10\text2x10\includes\Goo
gleVoice.class.php on line 47

Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate
 81377 bytes) in D:\Array1\Misc\X10 Software\text2x10\text2x10\includes\GoogleVo
ice.class.php on line 47

bkenobi

  • PI Expert
  • Hero Member
  • ******
  • Helpful Post Rating: 24
  • Posts: 2081
Re: text2x10, Text messaging to operate your X10 devices.
« Reply #94 on: October 05, 2012, 11:22:17 AM »

I've been seeing this message a bunch lately.  This is on the same machine that I have a peer blocker installed and it seems to break the internet periodically.  I wonder if the reason this script is breaking is due to the network not being available.  I need to address the network outage before I blame text2x10.  However, it would be a good thing to use a try/catch approach such that if it does encounter an error, it will simply try again later rather than crashing the tool.

bkenobi

  • PI Expert
  • Hero Member
  • ******
  • Helpful Post Rating: 24
  • Posts: 2081
Re: text2x10, Text messaging to operate your X10 devices.
« Reply #95 on: May 08, 2013, 10:05:17 PM »

I'm probably talking to myself here at this point, but I removed the peer blocking software months ago and I'm still experiencing very unstable code.  It seems like it runs for a week or two before crashing.  I'm pretty sure this is related to the PHP code not liking a response (or lack of response) from Google, but I don't know PHP enough to figure out exactly what the problem is.  I'll probably try to give it a go when I get a chance.  The only alternative I see is to schedule something in Windows to kill the task every x days and relaunch it.  I'm sure that would be something I could easily do, but it seems rather silly to fix the symptom rather than the problem.

For anyone who is following this thread, this is the error message that was in the command prompt today.
Code: [Select]
D:\Array1\Misc\X10 Software\text2x10\text2x10>text2x10.bat

Google Voice text message to X10 translator

Using the following credentials:
GV Username: **********@gmail.com
GV Password: *************

Listening
PHP Notice:  Trying to get property of non-object in D:\Array1\Misc\X10 Software
\text2x10\text2x10\includes\GoogleVoice.class.php on line 151

Notice: Trying to get property of non-object in D:\Array1\Misc\X10 Software\text
2x10\text2x10\includes\GoogleVoice.class.php on line 151
PHP Notice:  Trying to get property of non-object in D:\Array1\Misc\X10 Software
\text2x10\text2x10\includes\GoogleVoice.class.php on line 155

Notice: Trying to get property of non-object in D:\Array1\Misc\X10 Software\text
2x10\text2x10\includes\GoogleVoice.class.php on line 155
PHP Warning:  DOMDocument::loadHTML(): Empty string supplied as input in D:\Arra
y1\Misc\X10 Software\text2x10\text2x10\includes\GoogleVoice.class.php on line 15
8

Warning: DOMDocument::loadHTML(): Empty string supplied as input in D:\Array1\Mi
sc\X10 Software\text2x10\text2x10\includes\GoogleVoice.class.php on line 158
PHP Notice:  Trying to get property of non-object in D:\Array1\Misc\X10 Software
\text2x10\text2x10\includes\GoogleVoice.class.php on line 163

Notice: Trying to get property of non-object in D:\Array1\Misc\X10 Software\text
2x10\text2x10\includes\GoogleVoice.class.php on line 163
PHP Warning:  Invalid argument supplied for foreach() in D:\Array1\Misc\X10 Soft
ware\text2x10\text2x10\includes\GoogleVoice.class.php on line 163

Warning: Invalid argument supplied for foreach() in D:\Array1\Misc\X10 Software\
text2x10\text2x10\includes\GoogleVoice.class.php on line 163
PHP Notice:  Trying to get property of non-object in D:\Array1\Misc\X10 Software
\text2x10\text2x10\includes\GoogleVoice.class.php on line 151

Notice: Trying to get property of non-object in D:\Array1\Misc\X10 Software\text
2x10\text2x10\includes\GoogleVoice.class.php on line 151
PHP Notice:  Trying to get property of non-object in D:\Array1\Misc\X10 Software
\text2x10\text2x10\includes\GoogleVoice.class.php on line 155

Notice: Trying to get property of non-object in D:\Array1\Misc\X10 Software\text
2x10\text2x10\includes\GoogleVoice.class.php on line 155
PHP Warning:  DOMDocument::loadHTML(): Empty string supplied as input in D:\Arra
y1\Misc\X10 Software\text2x10\text2x10\includes\GoogleVoice.class.php on line 15
8

Warning: DOMDocument::loadHTML(): Empty string supplied as input in D:\Array1\Mi
sc\X10 Software\text2x10\text2x10\includes\GoogleVoice.class.php on line 158
PHP Notice:  Trying to get property of non-object in D:\Array1\Misc\X10 Software
\text2x10\text2x10\includes\GoogleVoice.class.php on line 163

Notice: Trying to get property of non-object in D:\Array1\Misc\X10 Software\text
2x10\text2x10\includes\GoogleVoice.class.php on line 163
PHP Warning:  Invalid argument supplied for foreach() in D:\Array1\Misc\X10 Soft
ware\text2x10\text2x10\includes\GoogleVoice.class.php on line 163

Warning: Invalid argument supplied for foreach() in D:\Array1\Misc\X10 Software\
text2x10\text2x10\includes\GoogleVoice.class.php on line 163

bkenobi

  • PI Expert
  • Hero Member
  • ******
  • Helpful Post Rating: 24
  • Posts: 2081
Re: text2x10, Text messaging to operate your X10 devices.
« Reply #96 on: December 27, 2013, 07:03:37 PM »

I know this is a dead topic (I'm the only one looking), but I wanted to post a final note.  Google has announced a change to it's Google Voice credentials system that will effectively kill off the capability to use GV for anything other than what Google wants as of May 2014.  They have indicated that 3rd party software that has been authorized will be allowed to function with GV, but it sounds like they do not want hobbyist/hackers touching their toys any more.  Although I've read it's technically possible to get GV working right now, it will be dead in a few months so I'm moving on to something else and would recommend anyone else considering this approach to reconsider.

HA Dave

  • Hero Member
  • *****
  • Helpful Post Rating: 175
  • Posts: 7127
Re: text2x10, Text messaging to operate your X10 devices.
« Reply #97 on: December 27, 2013, 08:34:20 PM »

...... so I'm moving on to something else and would recommend anyone else considering this approach to reconsider.

Keep us informed on what you're working on..... it's interesting reading even if I can't help.
Logged
Home Automation is an always changing technology
Pages: 1 ... 5 6 [7]
 

X10.com | About X10 | X10 Security Systems | Cameras| Package Deals
© Copyright 2014-2016 X10.com All rights reserved.