OpenSprinkler Forums OpenSprinkler Mobile and Web App SOLVED: MobileApp and Sprinklers-PHP not working (max PW length)

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #37313

    Agh42
    Participant

    Hi!

    I just did a “git pull” in both my “OSPi” and “/var/www/sprinklers” folders. The OSPi interface works fine, but the sprinklers program doesn’t and neither does my OpenSprinkler-App anymore.

    I’m seeing the following messages in my apache2/error.log:

    [Sun May 03 20:53:10 2015] [error] [client 192.168.43.120] PHP Notice:  Undefine
    d offset: 1 in /var/www/sprinklers/main.php on line 615, referer: http://192.168
    .43.136/sprinklers/
    [Sun May 03 20:53:10 2015] [error] [client 192.168.43.120] PHP Notice:  Undefine
    d offset: 1 in /var/www/sprinklers/main.php on line 621, referer: http://192.168
    .43.136/sprinklers/
    [Sun May 03 20:53:10 2015] [error] [client 192.168.43.120] PHP Notice:  Undefine
    d offset: 1 in /var/www/sprinklers/main.php on line 621, referer: http://192.168
    .43.136/sprinklers/
    [Sun May 03 20:53:10 2015] [error] [client 192.168.43.120] PHP Notice:  Undefine
    d index: en in /var/www/sprinklers/main.php on line 639, referer: http://192.168
    .43.136/sprinklers/
    [Sun May 03 20:53:10 2015] [error] [client 192.168.43.120] PHP Notice:  Undefine
    d index: mm in /var/www/sprinklers/main.php on line 640, referer: http://192.168
    .43.136/sprinklers/
    [Sun May 03 20:53:10 2015] [error] [client 192.168.43.120] PHP Notice:  Undefine
    d index: ver in /var/www/sprinklers/main.php on line 641, referer: http://192.16
    8.43.136/sprinklers/
    [Sun May 03 20:53:12 2015] [error] [client 192.168.43.120] PHP Notice:  Undefine
    d offset: 1 in /var/www/sprinklers/main.php on line 615, referer: http://192.168
    .43.136/sprinklers/
    [Sun May 03 20:53:12 2015] [error] [client 192.168.43.120] PHP Notice:  Undefined offset: 1 in /var/www/sprinklers/main.php on line 621, referer: http://192.168.43.136/sprinklers/
    [Sun May 03 20:53:12 2015] [error] [client 192.168.43.120] PHP Notice:  Undefined offset: 1 in /var/www/sprinklers/main.php on line 621, referer: http://192.168.43.136/sprinklers/
    [Sun May 03 20:53:12 2015] [error] [client 192.168.43.120] PHP Notice:  Undefined offset: 1 in /var/www/sprinklers/main.php on line 348, referer: http://192.168.43.136/sprinklers/
    [Sun May 03 20:53:12 2015] [error] [client 192.168.43.120] PHP Notice:  Undefined offset: 1 in /var/www/sprinklers/main.php on line 350, referer: http://192.168.43.136/sprinklers/
    [Sun May 03 20:53:12 2015] [error] [client 192.168.43.120] PHP Notice:  Undefined offset: 1 in /var/www/sprinklers/main.php on line 359, referer: http://192.168.43.136/sprinklers/
    [Sun May 03 20:53:12 2015] [error] [client 192.168.43.120] PHP Notice:  Undefined variable: stations in /var/www/sprinklers/main.php on line 361, referer: http://192.168.43.136/sprinklers/

    I installed my OSPi board about a year ago, firmware is still the same. OSPI is at d5daf14814b91759f37d73e588fd177b16a1fca9 (May 1), sprinklers is at 5c0a39512e0a10a5bf32b5118c17a9163bf0d632 (Aug 1 2014).

    Does anyone have any pointers to where my problem might be?

    Greetings from Berlin,

    Alex

    #37316

    Agh42
    Participant

    Okay, I just solved it by running tcpdump on my Pi to figure out what was going on.

    I have a special character in my password so I thought that might be the problem. It wasn’t, but:

    My password was 9 characters long. The HTTP-GET request clearly was missing the last character.

    After changing my password to 8 characters everything is now working fine again.

    Is this a known issue with the mobile app?

    Anyway, I can happily go to bed now knowing that OSPi is taking care of my garden again! 🙂

    #37324

    Samer
    Keymaster

    Sprinklers-PHP is no longer developed. It has been almost two years since anything meaningful has occurred on that repository. With that said, now the app is truly an app (not something you install on the server and access through a web browser). It is available in almost all app stores, just search OpenSprinkler.

    Glad you got it working though and thanks for the detail!

    #37440

    Agh42
    Participant

    Thanks for the update, I thought that the native app still needed the PHP-application somehow!

    I think it’s great that I no longer need apache on my OSPi at all. And great work on the app, I really like the new interface.

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.

OpenSprinkler Forums OpenSprinkler Mobile and Web App SOLVED: MobileApp and Sprinklers-PHP not working (max PW length)