OpenSprinkler Forums OpenSprinkler Mobile and Web App Mobile Web App with Screenshots (Updated)

  • This topic is empty.
Viewing 25 posts - 451 through 475 (of 559 total)
  • Author
    Posts
  • #24289

    guylior
    Participant

    Hi

    When I enter the settings, the operation under the System Control always off although the system is enabled (for sure…)
    Any idea ?

    Thanks
    Guy

    #24290

    Samer
    Keymaster

    Are you using the copy on Ray’s server or the installed version? Also, does the app work and just the slider is incorrect? Or, is the app also not functioning?

    Thanks!

    #24292

    kenbob
    Member

    Hi Salbahra,

    It looks like the latest version of Dan’s Interval Program from October 4th does not work with your Mobile Web App. I had the same issue and had to revert back to the September 23rd rev. It will show that the system is disabled.

    #24291

    Samer
    Keymaster

    Sorry for the unusually delayed response however I am aware of the issue as discussed in the separate thread.

    The good news, I have pushed a partial fix and should have a full fix coming soon. Sorry for the delays and thank you for your patience!

    Update: Full support is here now, I did push some code changes to OSPi that is required to complete the support. The fix is minor and hopefully Dan is able to approve it quickly. Again, sorry for the delay! When I get time, I will check support for OS 2.0.1 which was just released by Ray.

    #24293

    I think I am getting closer to getting all the functionality of the web app working on my shared server. I am hosting the app on Dreamhost, and am entering the cron job for watcher.php manually. It looks like this. https://www.dropbox.com/s/ioljuyvvjtw2uxb/Photo%20Oct%2018%2C%204%2058%2004%20PM.jpgAll functionality works except for logging and auto rain delay. When I run watcher.php in SSH it returns no result.

    SprinklerChanges.txt has one line in it even though the sprinkler has ran multiple times since 10/10/13:

    “00000000–2013-10-10 15:11:39–0–0”

    Do you have any suggestions?

    #24294

    Samer
    Keymaster

    Update: I just saw your screenshot, the problem is the “Hourly” setting at the bottom. This needs to be every minute in order to accurately detect station changes.

    Update 2: Use locking is something I would recommend checking.

    #24295

    rwp
    Participant

    Aloha I have an ospi working and the logging feature works .Bought an open sprinkler 2.0 and got it connected with 3
    Expansion boards to irrigate a nursery.The ospi is set up as its own server.Your instructions say drop the app files into
    Your server.I am using a win 7 pc.Do I have to create?,add? A server on my pc.How do I do this?I need the logging and like the app.

    #24296

    Samer
    Keymaster

    You can use the same Raspberry Pi that is controlling your sprinklers for the mobile app. Just SSH into the Pi, install a web server (ex. Apache), and clone the files into web directory.

    Those are the two steps you need to perform and are detailed in the Github install instructions (https://github.com/salbahra/OpenSprinkler-Controller).

    Let me know if this helps.

    Update: I noticed you specifically said OS 2.0. Do you mean you have an OSPi setup working and now you are trying to get an OpenSprinkler 2.0 (not the Raspberry Pi model) with logging using my app? If so, just install a web server on your Windows machine (IIS, Apache, etc.), install PHP, and clone my files to the web root.

    #24297

    Samer
    Keymaster

    A minor update to OSPi has been posted by Dan which brings compatibility back between OSPi and my mobile app.

    Looking towards the future of the mobile app and OS/OSPi, it seems possible to move the mobile app to a mobile theme. I am waiting on Jonathan and Dan’s work to conclude on OSPi to see how the theming system turns out. For OS users, firmware 2.0.1 now hosts the files on an SD card which allows easy modification. This will allow the mobile theme to simply be dropped onto the SD card (and maybe even distributed with the firmware). These are all plans for now but with time should come to realization.

    #24298

    rwp
    Participant

    this is correct. OSPi setup working and now you are trying to get an OpenSprinkler 2.0 (not the Raspberry Pi model) with logging using my app? If so, just install a web server on your Windows machine (IIS, Apache, etc.), install PHP, and clone my files to the web root.So I’ve managed to activate iis and have access to it’s management console but from there I am way beyond my pay grade.install php from who and where?what does clone mean”copy??”and where,what is the web root.
    to drop files into. Does the server automaticly make this happen or is there another process involved.On the ospi the apache server and your files installed and just worked. Thanks for any direction.

    #24299

    Samer
    Keymaster

    IIS was just a suggestion since you are on Windows. I personally have never used it and not sure what it would take to get PHP working, I am sure you can google this. There are other users who have my app working under IIS, so it is possible.

    The web root is defined in the IIS settings for HTTP server. You simply want to put the files in the folder defined in the settings. The files can be downloaded from Github using the zip link (https://github.com/salbahra/OpenSprinkler-Controller/archive/master.zip).

    Also, if you are familiar with Apache you use that instead by downloading WinLAMP mini (http://prdownloads.sourceforge.net/winlamp/WinLAMP.4.0.0-mini.exe). This will install PHP and Apache on Windows. Again, either way works just giving you options.

    Good luck.

    #24300

    revnull
    Participant

    Hardware: 1.2U DIY
    Firmware: 1.8.3
    Network: OS Controller and Web server on the same LAN/Subnet

    In the past few weeks, I’ve encountered a “new” (for me) problem. I’ve been running OS for a while now, first hosting Ray’s scripts/images on my own internal web server (ArchLinux). When you released your great frontend, I quickly installed all required components and got it up and running. In fact it ran great for months. To keep up with your frequent releases I had scheduled a ‘git pull’ via cron twice a day. It would seem that this level of automation has bitten me. I’m not sure when, but a some point, an upgrade seems to have broken compatibility with my opensprinkler. The frontend can still access the device settings and station names, but everything else just generates a spinning circle and hangs. The weather “widget” is also missing. It seems to me to be a communication issue between the fronted and the controller.

    Things I have tried:
    – Clearing browser cache/trying different browser & mobile devices
    – Re-installing the OS firmware and re-configuring from scratch (via native web frontend)
    – Deleting and re-cloning the git repo
    – Using the frontend version hosted on Ray’s site (WORKS!)

    I may just work my way back through you commits until I find a version that works again.

    In any case, thanks for your contribution to this great opensource project.

    #24301

    Samer
    Keymaster

    Let me research which files the 1.2/1.8.3 files the firmware is using and make sure the syntax matches what I am testing against. It is really weird that the hosted copy works fine since the logic should be the same.

    Just to facilitate the troubleshooting, could you give me sample “source code” of the native interface output. For example, navigate to your OS at http://192.168.1.138/, /vs, /vo, /vp, and /gp?d=0. The output should be brief (not the current DOM state) of each page (just variables and sourcing some javascript).

    Basically, my script has to parse the output from the OS and if it’s slightly different it might be causing an issue. I really don’t know which source code to look at for the code you’re 1.2U is using so the output above would be great (feel free to message me if you don’t want to attach it all here).

    I will say the regex used has recently changed so something might have broken during that change. Should be an easy fix.

    Thanks!

    #24302

    revnull
    Participant

    Thanks for looking into it!


    /:






    /vs:




    /vo:





    /vp:






    /gp?d=0:



    #24303

    djagerif
    Participant

    Just for interest, the extra ‘Zone’ at the end of this capture seems to be a bug but probably wouldn’t cause your issue:

    =;

    I remember older releases didn’t have a 17th Zone, only a delimiter character.

    Ingo

    #24304

    revnull
    Participant

    Ok, I ran an experiment. I installed my dusty RaspberryPi with a fresh version of Raspbian. Then installed apache2, libapache2-mod-php5, and php5. Cloned the latest version of your web frontend, and bingo… it works!

    Now I’m trying to figure out the differences as to why one works and the other does not.

    Working Setup:
    Hardware: RaspberryPi Model B (With Ethernet)
    OS: Raspbian (2013-09-25) with all current updates and kernel/firmware
    Software:
    os-frontend commit 2c8c7e2e3ef21e8b78b7c2f678b719eabd725a61
    apache2 2.2.22-13
    libapache2-mod-php5 5.4.4-14+deb7u5
    php5 5.4.4-14+deb7u5
    git 1.7.10.4-1+wheezy1+rpi2

    Broken Setup:
    Hardware: Pogoplug v2
    OS: Archlinux 3.1.10-28-ARCH
    Software:
    os-frontend commit 2c8c7e2e3ef21e8b78b7c2f678b719eabd725a61
    apache2 2.2.25-1
    libapache2-mod-php5 5.5.5-1
    php5 5.5.5-1
    git 1.8.4.2-1

    The only obvious outliers are the newer version of apache and PHP. When I first installed Archlinux, the versions were:
    apache2 2.2.24-3
    libapache2-mod-php5 5.4.16-1
    php5 5.4.16-1

    The jump in apache versions is minor and shouldn’t impact functionality. The upgrade to PHP and the Apache PHP library from 5.4 to 5.5 may be an issue.

    Is it possible to look into PHP 5.5 compatibility? Are there any logs from apache that may point to a possible compatibility issue?

    In the mean time, I will try downgrading PHP and the Apache lib to 5.4 to see if that “fixes” things.

    #24305

    revnull
    Participant

    Errors from the apache error_log:


    [Fri Nov 01 15:24:44 2013] [error] [client 10.10.100.239] PHP Notice: Undefined variable: data in /srv/http/sprinklers/sprinklers.php on line 115, referer: https://10.10.100.3/sprinklers/
    [Fri Nov 01 15:24:45 2013] [error] [client 10.10.100.239] PHP Notice: Undefined variable: data in /srv/http/sprinklers/sprinklers.php on line 254, referer: https://10.10.100.3/sprinklers/
    [Fri Nov 01 15:24:45 2013] [error] [client 10.10.100.239] PHP Notice: Undefined variable: data in /srv/http/sprinklers/sprinklers.php on line 261, referer: https://10.10.100.3/sprinklers/
    [Fri Nov 01 15:24:45 2013] [error] [client 10.10.100.239] PHP Notice: Undefined variable: data in /srv/http/sprinklers/sprinklers.php on line 388, referer: https://10.10.100.3/sprinklers/
    [Fri Nov 01 15:24:45 2013] [error] [client 10.10.100.239] PHP Notice: Undefined offset: 1 in /srv/http/sprinklers/main.php on line 98, referer: https://10.10.100.3/sprinklers/
    [Fri Nov 01 15:24:45 2013] [error] [client 10.10.100.239] PHP Notice: Undefined offset: 3 in /srv/http/sprinklers/main.php on line 102, referer: https://10.10.100.3/sprinklers/
    [Fri Nov 01 15:24:45 2013] [error] [client 10.10.100.239] PHP Notice: Undefined offset: 1 in /srv/http/sprinklers/main.php on line 104, referer: https://10.10.100.3/sprinklers/
    [Fri Nov 01 15:24:45 2013] [error] [client 10.10.100.239] PHP Notice: Undefined offset: 2 in /srv/http/sprinklers/main.php on line 104, referer: https://10.10.100.3/sprinklers/
    [Fri Nov 01 15:24:45 2013] [error] [client 10.10.100.239] PHP Notice: Undefined offset: 4 in /srv/http/sprinklers/main.php on line 104, referer: https://10.10.100.3/sprinklers/
    #24306

    revnull
    Participant

    Rolled ‘Broken Setup’ back to:

    apache 2.2.24-3
    php 5.4.17-1
    php-apache 5.4.17-1

    I will upgrade one component at a time to see what breaks compatibility.

    Results to follow.

    #24307

    revnull
    Participant

    Ok, this is odd… upgraded apache from 2.2.24-3 to 2.2.25-1, rebooted, everything still worked. I’m thinking, I solved it, it must be PHP that breaks compatibility. Just to confirm the theory, I upgrade PHP from 5.4.17-1 to 5.5.5-1, rebooted, it still works. WTH!?

    Oh well, next time I have an issue, I’ll just nuke and start over, that seems to have “fixed” my problems.

    Even though the web frontend works now, I’m still getting these errors in the apache error_log.


    [Fri Nov 01 17:57:35 2013] [error] [client 10.10.100.239] PHP Notice: Undefined variable: data in /srv/http/sprinklers/sprinklers.php on line 115, referer: https://10.10.100.3/sprinklers/
    [Fri Nov 01 17:57:35 2013] [error] [client 10.10.100.239] PHP Notice: Undefined variable: data in /srv/http/sprinklers/sprinklers.php on line 254, referer: https://10.10.100.3/sprinklers/
    [Fri Nov 01 17:57:35 2013] [error] [client 10.10.100.239] PHP Notice: Undefined variable: data in /srv/http/sprinklers/sprinklers.php on line 261, referer: https://10.10.100.3/sprinklers/
    [Fri Nov 01 17:57:35 2013] [error] [client 10.10.100.239] PHP Notice: Undefined variable: data in /srv/http/sprinklers/sprinklers.php on line 388, referer: https://10.10.100.3/sprinklers/

    Mods: please feel free to delete my posts if you don’t believe they add to the thread.

    #24308

    paul
    Member

    Hello,

    I’m having some difficulty getting the Mobile Web App to work properly, and wonder if you have some suggestions.

    I’ve updated both the interval program software and installed the mobile web app software today. I also enabled port fowarding for port 80 and modified the config.php to include the :8080 in the ip address for the RPi. I was able to create a login name and password, and get in to the front end software using both the external IP address and the internal LAN address. However, none of my stations are showing up in either the “edit stations” or “manual control” menus. I can veiw them and edit them if I go to the interval timer web interface, just not the mobile interface.

    I have tried removing it and re-installing it from scratch, since that seemed to help in some cases, but in this case I got the same result.

    I would be greatful for any suggestions you have.

    Thanks,
    Paul

    UPDATE: It’s fixed. Apparently a good nights sleep will do wonders. I figured out that I must have corrupted the “snames.txt” file, because when I restored an old one from a back up everything worked! Yeah. What a great program! Now I can blow out my sprinklers without have to go inside to change the station. 🙂

    #24309

    Samer
    Keymaster

    @revnull wrote:

    Errors from the apache error_log:


    [Fri Nov 01 15:24:45 2013] [error] [client 10.10.100.239] PHP Notice: Undefined offset: 1 in /srv/http/sprinklers/main.php on line 98, referer: https://10.10.100.3/sprinklers/
    [Fri Nov 01 15:24:45 2013] [error] [client 10.10.100.239] PHP Notice: Undefined offset: 3 in /srv/http/sprinklers/main.php on line 102, referer: https://10.10.100.3/sprinklers/
    [Fri Nov 01 15:24:45 2013] [error] [client 10.10.100.239] PHP Notice: Undefined offset: 1 in /srv/http/sprinklers/main.php on line 104, referer: https://10.10.100.3/sprinklers/
    [Fri Nov 01 15:24:45 2013] [error] [client 10.10.100.239] PHP Notice: Undefined offset: 2 in /srv/http/sprinklers/main.php on line 104, referer: https://10.10.100.3/sprinklers/
    [Fri Nov 01 15:24:45 2013] [error] [client 10.10.100.239] PHP Notice: Undefined offset: 4 in /srv/http/sprinklers/main.php on line 104, referer: https://10.10.100.3/sprinklers/

    These errors are the Yahoo weather API not working. Probably a temporary thing or the reply has changed (but I don’t think it has).

    @revnull wrote:


    [Fri Nov 01 15:24:44 2013] [error] [client 10.10.100.239] PHP Notice: Undefined variable: data in /srv/http/sprinklers/sprinklers.php on line 115, referer: https://10.10.100.3/sprinklers/
    [Fri Nov 01 15:24:45 2013] [error] [client 10.10.100.239] PHP Notice: Undefined variable: data in /srv/http/sprinklers/sprinklers.php on line 254, referer: https://10.10.100.3/sprinklers/
    [Fri Nov 01 15:24:45 2013] [error] [client 10.10.100.239] PHP Notice: Undefined variable: data in /srv/http/sprinklers/sprinklers.php on line 261, referer: https://10.10.100.3/sprinklers/
    [Fri Nov 01 15:24:45 2013] [error] [client 10.10.100.239] PHP Notice: Undefined variable: data in /srv/http/sprinklers/sprinklers.php on line 388, referer: https://10.10.100.3/sprinklers/

    These errors are more significant and possibly related to variable scope. I will be pushing a fix very soon.

    #24310

    Samer
    Keymaster

    @paul Glad things are working again for you. The corruption makes sense since the OSPi upgrades have been quite extensive lately.

    #24311

    revnull
    Participant

    @salbahra wrote:

    These errors are more significant and possibly related to variable scope. I will be pushing a fix very soon.


    [Sat Nov 02 12:29:11 2013] [error] [client 10.10.100.239] PHP Notice: Undefined index: data in /srv/http/sprinklers/sprinklers.php on line 115, referer: https://10.10.100.3/sprinklers/
    [Sat Nov 02 12:29:11 2013] [error] [client 10.10.100.239] PHP Notice: Undefined index: data in /srv/http/sprinklers/sprinklers.php on line 254, referer: https://10.10.100.3/sprinklers/
    [Sat Nov 02 12:29:11 2013] [error] [client 10.10.100.239] PHP Notice: Undefined index: data in /srv/http/sprinklers/sprinklers.php on line 261, referer: https://10.10.100.3/sprinklers/
    [Sat Nov 02 12:29:11 2013] [error] [client 10.10.100.239] PHP Notice: Undefined index: data in /srv/http/sprinklers/sprinklers.php on line 388, referer: https://10.10.100.3/sprinklers/

    I pulled the new commit, but I’m still seeing the errors. I should note that I only see the errors when I refresh the page. Once it’s loaded and I navigate around, I see no new errors.

    In my limited experience, it sounds like maybe the ‘data’ array is being queried before it’s populated? Should there be error reporting the in the interface when it fails a fetch from the controller?

    #24312

    COsgood
    Participant

    Does Mobile App work for Androids?
    It doesn’t seem to work for my HTC Android.

    When connected via my laptop, I checked that the expansion boards = 1 was correct.
    But only 8 stations display.

    #24313

    Samer
    Keymaster

    Yes, android is supported. The issue your having might not be related to my mobile app. Try the native interface and make sure all your stations are showing up there correctly. If they are, let me know I will try and look into it. Please supply any errors in logs, if any.

    Thanks.

Viewing 25 posts - 451 through 475 (of 559 total)
  • You must be logged in to reply to this topic.

OpenSprinkler Forums OpenSprinkler Mobile and Web App Mobile Web App with Screenshots (Updated)