- This topic is empty.
March 27, 2014 at 1:33 pm #22805
Hi salbahra. Excellent job on the app!
I have just installed Apache 2.2.25 and PHP 5.3.28 on a windows 7 machine.
I have copied all of the files from OpenSprinkler-Hosted-Controller-2.0-master into the Apache’s htdocs.
I am able to see the login page from the mobile app, but when I submit my OpenSprinkler’s address, it does not connect.
Here is the log error I get when using Chrome:
[Thu Mar 27 09:17:12 2014] [notice] Child 4416: Child process is running
[Thu Mar 27 09:17:12 2014] [notice] Child 4416: Acquired the start mutex.
[Thu Mar 27 09:17:12 2014] [notice] Child 4416: Starting 64 worker threads.
[Thu Mar 27 09:17:12 2014] [notice] Child 4416: Starting thread to listen on port 80.
[Thu Mar 27 09:17:42 2014] [error] [client 192.168.1.2] PHP Warning: file_get_contents(http://query.yahooapis.com/v1/public/yql?q=select%20woeid%20from%20geo.placefinder%20where%20text=%22Webster%2CNY%22) [function.file-get-contents]: failed to open stream: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond.rn in C:\Program Files\Apache Software Foundation\Apache2.2\htdocs\main.php on line 42, referer: http://192.168.1.2/
[Thu Mar 27 09:17:42 2014] [error] [client 192.168.1.2] PHP Fatal error: Maximum execution time of 10 seconds exceeded in C:\Program Files\Apache Software Foundation\Apache2.2\htdocs\main.php on line 42, referer: http://192.168.1.2/
I have port-forwarded 192.168.1.2 to port 80 (I’ve also tried a different port number…)
What am I doing wrong?March 27, 2014 at 1:40 pm #26310
Since your discussing port forwarding I assume you are referring to using the device outside the local network. If that’s the case you need to use the outside IP address. From within your home, you can find this out by going to http://wimi.com
With that said, I am not entirely sure that’s your issue. I also noticed you mentioned the Hosted-Controller. This distribution is for the native apps at this point (although you also mentioned main.php, which is not a part of the hosted controller).
Might need some more information to be able to assist further.March 27, 2014 at 4:00 pm #26311
Thanks for the quick reply.
Ok, as you suggested, using the external IP address from within my home network I am now able to access the OpenSprinkler board.
However, when I try to login to my Apache server from an external IP (my phone), the main login screen shows up,
but when I enter the IPaddress:port it will not let me in. it just spins and nothing happens….
Would that be related to a setting in the configuration of my Apache server that does not let outside requests in?March 28, 2014 at 12:05 am #26312
Well, after playing around for a while, I decided to try replacing the OpenSprinkler-Hosted-Controller-2.0-master files with the
OpenSprinkler-Hosted-Controller master files, and i get better results now.
In the install.php screen, after clicking SUBMIT, i get this error: “Settings have NOT been saved. Check folder permissions and file paths then try again.”.
To get out of this screen, I then re-enter the server’s IP address and port number in the address bar.,This takes me to the login screen and i am able to access the OpenSprinkler board.
Once in, it seems to work fine except it will not show me a program preview.March 28, 2014 at 2:30 am #26313
I went digging for a reason why there is confusion between the “OpenSprinkler-Hosted-Controller” and “OpenSprinkler-Controller”. I found the issue in the README.md in “OpenSprinkler-Hosted-Controller”. The zip file links to “OpenSprinkler-Controller” and I assume that is why you are getting PHP files from the hosted version.
Regardless, I have renamed things to help clear the confusion. Are you trying to run the PHP version which will give you the benefit of logging? Or are you trying to just grab the native app and get going without setting up Apache or any server?
Update: To be more complete with this answer, there is a lot of changing going on. At this very moment, there are many variants to my mobile application. The hosted version is available here: http://rayshobby.net/apps/sprinklers however this version is being phased out for the native applications (more information http://albahra.com/sprinklers). The PHP version, OpenSprinkler-Controller, is the version that was required for firmware 1.8.3-2.0.3 because no easy to parse method was available for a native mobile application. In addition, the PHP code polls the OpenSprinkler for its status every minute and lets you view the data graphically. If that is what you’re interested in let me know, otherwise the easier options are the native apps or fallback
- You must be logged in to reply to this topic.