more G-Labs products

Author Topic: Garden Sprinkler System App  (Read 15066 times)

April 04, 2015, 05:11:43 PM
Reply #30

lv2roc

  • *
  • Information
  • Newbie
  • Posts: 17
I have 2 issues or bugs or whatever, not complaining just trying to figure them out.

Issue #1 - On the lasted release I do not have in the options-
02. Sprinkler Active Time (00,00,00,00,00,00) - 00 to 99 minutes for each group - 00 = Off -    (G1,G2,G3,G4,G5,G6) - Must use 2 digits for each group!!

Was this an upload oversight?

Issue #2 - Did not notice this on previous releases but when the schedule time for Schedule A is done and there is nothing for Schedule B or C. The widget will display "Switching to next group"

For testing purposes, I am only using 4 valves so in the groups I am only using 1,2,3,4 in Schedule A group and "none" in Schedule Groups B and C.

Great job on this app, enterprised!

April 05, 2015, 02:37:35 AM
Reply #31

enterprised

  • ****
  • Information
  • Sr. Member
  • Posts: 101
  • Things are only impossible until they are not
Thanks for the feedback.

Issue 1:
Could have done a better job explaining in the app config like:
02. Sprinkler Active Time (00,00,00,00,00,00) ; 00 to 99 minutes for each group ; 00 = Off ; Must use 2 digits for each group!! ; (00,00,00,00,00,00 denotes sprinkler time in minutes for group1,group2,group3,group4,group5,group6)

Issue 2:
Will fix this on next update.
Was hoping to get some help creating a widget, see post http://www.homegenie.it/forum/index.php?topic=823.0, as advanced display and controls for the sprinkler app. So far not much luck on this.
4a 75 73 74 20 61 20 70 65 72 73 6f 6e 20 68 61 76 69 6e 67 20 66 75 6e 20 77 69 74 68 20 68 6f 6d 65 20 61 75 74 6f 6d 61 74 69 6f 6e
enterprised == guytpetj

April 07, 2015, 12:51:40 AM
Reply #32

lv2roc

  • *
  • Information
  • Newbie
  • Posts: 17
Ok, I think I understand your directions now.

If I am only using 4 of the 6 valves (groups) as I only have 4 valves, with a duration time of 10 minutes each. I would enter 10,10,10,10,00,00

This would indicate I am only using 4 valves and not the 6.

So in schedule A, If am only using valves 3 and 4 for 20 minutes and 25 minutes respectively, it would look like this... 00,00,30,40,00,00. Valves 1 and 2 off, Valve 3 on for 20 min, Valve 4 on for 25, Valves 5 and 6 off as I do not have them.

Is that correct?

April 07, 2015, 02:16:30 AM
Reply #33

enterprised

  • ****
  • Information
  • Sr. Member
  • Posts: 101
  • Things are only impossible until they are not
"If I am only using 4 of the 6 valves (groups) as I only have 4 valves, with a duration time of 10 minutes each. I would enter 10,10,10,10,00,00"
This is correct.

"So in schedule A, If am only using valves 3 and 4 for 20 minutes and 25 minutes respectively, it would look like this..."
00,00,20,25,00,00

00 is used for both off and not existing
4a 75 73 74 20 61 20 70 65 72 73 6f 6e 20 68 61 76 69 6e 67 20 66 75 6e 20 77 69 74 68 20 68 6f 6d 65 20 61 75 74 6f 6d 61 74 69 6f 6e
enterprised == guytpetj

April 09, 2015, 12:42:41 AM
Reply #34

lv2roc

  • *
  • Information
  • Newbie
  • Posts: 17
That should help others seeking an explanation on how to set different duration times.

Looking forward to another update too!

April 10, 2015, 11:56:27 PM
Reply #35

lv2roc

  • *
  • Information
  • Newbie
  • Posts: 17
I am still having troubles with your latest release. Like I mentioned a couple of posts ago, I was wondering if you have the link to the wrong release??
Here is a snippet of what I am seeing on my end for duration of groups. I thought this (08. Sprinkler Active Time in Seconds (600 = 10 minutes)) was removed so each valve could have it's own duration time.

I do not see this on your latest updated post on March 22.
02. Sprinkler Active Time (00,00,00,00,00,00)

Thanks,

Lv2roc


« Last Edit: April 11, 2015, 12:03:34 AM by lv2roc »

April 11, 2015, 02:10:54 AM
Reply #36

enterprised

  • ****
  • Information
  • Sr. Member
  • Posts: 101
  • Things are only impossible until they are not
I'm currently in Dubai, 8000 miles away from home. I can't look into this until I get home again in 2 weeks.

have you tried removing the app and associated data from the HG database. I had to do this with one of the earlier versions due to HG getting confused with the program setup parameters.
4a 75 73 74 20 61 20 70 65 72 73 6f 6e 20 68 61 76 69 6e 67 20 66 75 6e 20 77 69 74 68 20 68 6f 6d 65 20 61 75 74 6f 6d 61 74 69 6f 6e
enterprised == guytpetj

April 11, 2015, 05:36:14 AM
Reply #37

lv2roc

  • *
  • Information
  • Newbie
  • Posts: 17
I tried removing the app and associated data from the HG database and still same result. As a last effort I reformatted my RPi, updated HG and fresh install of Garden Sprinkler System, again still not up to date. I could be totally wrong but I think the file for the link is wrong.
I see you are away for a couple of weeks, no big deal. We can look at it when you are settled back at home.

Maybe if others have the updated app working they can chime in.

Thanks again.

April 11, 2015, 06:35:11 AM
Reply #38

enterprised

  • ****
  • Information
  • Sr. Member
  • Posts: 101
  • Things are only impossible until they are not
Try the attached file.
I pulled this of my development RPi, should be the latest version.

It still amazes me what you can do with HG, like in this case pulling an app remotely far far away from home.
4a 75 73 74 20 61 20 70 65 72 73 6f 6e 20 68 61 76 69 6e 67 20 66 75 6e 20 77 69 74 68 20 68 6f 6d 65 20 61 75 74 6f 6d 61 74 69 6f 6e
enterprised == guytpetj

April 12, 2015, 12:00:25 AM
Reply #39

lv2roc

  • *
  • Information
  • Newbie
  • Posts: 17
Nope that did not help either. Maybe it is me?? Maybe I am reading your post incorrectly.

Should I be seeing 08. Sprinkler Active Time in Seconds (600 = 10 minutes) on your latest update?

I thought this was removed so one could enter active times for each group. Which would be 02. Sprinkler Active Time (00,00,00,00,00,00).

The one I just downloaded that you pulled today shows 02. Schedule A Groups (1,2,3,4,5,6 or none).

I figure 02. Schedule A Groups (1,2,3,4,5,6 or none) would be replaced with 02. Sprinkler Active Time (00,00,00,00,00,00).

Below are the options I have after rebuilding and downloading RPi with HG.

01. Sprinkler Schedule A (Cron) [* * * * *]
02. Schedule A Groups (1,2,3,4,5,6 or none)
03. Sprinkler Schedule B (Cron) [* * * * *]
04. Schedule B Groups (1,2,3,4,5,6 or none)
05. Sprinkler Schedule C (Cron) [* * * * *]
06. Schedule C Groups (1,2,3,4,5,6 or none)
07. Sprinkler Pause Between Groups Time in Seconds
08. Sprinkler Active Time in Seconds (600 = 10 minutes)
09. mm of Rainfall in last 24 hours to Pause Sprinklers
10. Maximum Wind Speed (m/s) to Pause Sprinklers
11. Auto Start (at HomeGenie start): ON or OFF
12. GPIO or PiFaceD

I understand if you are busy with other things right now, you have done more than I expected be miles from home. I can wait until you are ready to dive into this with me.

Lv2roc


April 12, 2015, 02:01:59 AM
Reply #40

enterprised

  • ****
  • Information
  • Sr. Member
  • Posts: 101
  • Things are only impossible until they are not
Looks like I pulled and uploaded the wrong file. :-[
Will try again in the next couple of days when I have a bit of time again.

Well since I'm jet lagged and don't have anything better to do a 4AM in the morning I decided to re-write the file I have on my laptop as much as possible to match the version I'm running at home.

See attachment.
Not tested on RPi, but should work. Please give this a try and let me know if it works.
If it works I can modify this file for the new widget design.

//CRON:
// * * * * * ( 1 2 3 4 5 ) command to execute
//1 =  min (0 to 59)
//2 = hour (0 to 23)
//3 = day of month (1 to 31)  (1-31/2 = odd days, 2-30/2 = even days)
//4 = month (1 to 12)
//5 =  day of week (0 to 6) (0 to 6 are Sunday to Saturday
//
//Both rainfall and wind speed require the " jkUtils-OpenWeatherData" app for input. Ensure you enable and configure this app.
//
//Program Set-up Parameters:
//01. Sprinkler Schedule A (Cron) [* * * * *]
//02. Sprinkler Active Time (00,00,00,00,00,00)
//03. Sprinkler Schedule B (Cron) [* * * * *]
//04. Sprinkler Active Time (00,00,00,00,00,00)
//05. Sprinkler Schedule C (Cron) [* * * * *]
//06. Sprinkler Active Time (00,00,00,00,00,00)
//07. Sprinkler Pause Between Groups Time in Seconds
//08. mm of Rainfall in last 24 hours to Pause Sprinklers
//09. Maximum Wind Speed (m/s) to Pause Sprinklers
//10. Auto Activate (at HomeGenie start): ON or OFF
//11. GPIO or PiFaceD
//
//
//"If I am only using 4 of the 6 valves (groups) as I only have 4 valves, with a duration time of 10 minutes each. I would enter this..."
//answer: 10,10,10,10,00,00
//
//"So in schedule A, If am only using valves 3 and 4 for 20 minutes and 25 minutes respectively, it would look like this..."
//answer: 00,00,20,25,00,00
« Last Edit: April 12, 2015, 03:03:25 AM by enterprised »
4a 75 73 74 20 61 20 70 65 72 73 6f 6e 20 68 61 76 69 6e 67 20 66 75 6e 20 77 69 74 68 20 68 6f 6d 65 20 61 75 74 6f 6d 61 74 69 6f 6e
enterprised == guytpetj

April 12, 2015, 05:27:19 AM
Reply #41

lv2roc

  • *
  • Information
  • Newbie
  • Posts: 17
Wow...I did not expect to see you working on this today/tonight/tomorrow morning. Time zones' eh!

Ok, I am almost there. However, when I loaded onto HG everything went wonky. Good technical term to describe the snafu.

I will re-image, reload, and restart HG from scratch again. Will let you know how it works soon.

Lv2roc

Just a note, this seems to be a good thread as there are 2000+ reads. People must appreciate your work!
« Last Edit: April 12, 2015, 05:29:30 AM by lv2roc »

April 12, 2015, 07:20:24 PM
Reply #42

lv2roc

  • *
  • Information
  • Newbie
  • Posts: 17
I have it working now.

Just a couple of notes for others reading this thread.

After putting on the lasted Raspian-wheezy release I tried installing the newest realease of HG (r484). That seem to create a whole lot of issues with the GPIO for RPi B+,  jkUtils - OpenWeatherData and this Sprinkler package.
I am only using HG for the Sprinkler app so other issues could be going on but I experienced issues with those as they are used by the Sprinkler app. Issues were with binding, OpenWeatherData was throwing error about blank data, and also when it did work it gave data from Berlin and not my location. (even after changing location).

What I ended up doing is putting on the lasted Raspian-wheezy release, install HG r478, configure jkUtils - OpenWeatherData. imported the GPIO Module for B+ , added Sprinkler App webpages, added Sprinkler App.
once that was done, I restarted HG.

Did a couple of test runs, all seemed to work fine then I let HG update itself to r484.

I know this is a long winded reply but someone might get some use of it, or maybe correct me on things. I am new to HG and learning as I go so any feedback is welcome.

Anyways, 2 thumbs up Enterprise! Looking forward to updates previously suggested.