HomeGenie Forum
General Category => Troubleshooting and Support => Topic started by: kevinvinv on June 12, 2016, 12:56:08 AM
-
funny thing... I am now at the latest version of HG and I cant for the life of me figure out who to edit the scheduled on/off times in a module. I used to be able to click in the field and enter a cron string but now I get a pop up box that is pretty cool I must say... offering sunrise, sunset, and all sorts of pre=programed things... but I cant seem to figure out how to enter my own custom string anymore.
help?
-
I've stopped updating at 5.19 for everyday use. It's been the most stable for me so far. I wouldn't be in a hurry to update. If you find a stable version that works for you, unless an update provides something of particular interest to you, I'd hold fire until enough feedback was posted up. Alternatively I've two versions on seperate SD cards, stable for me and latest update. Latest update becomes stable when fully tested. You can see where I'm going with this.
-
Yessir, I get it. I wanted to stay on 5.12 actually but I needed to update my OS and only the more later versions support mono the comes with the latest Ubuntu...
so... I blazed the trail!! :)
-
I guess for now I am skipping cron and just wrote a program to manage all of my timed events. I still apparently am too stupid to figure out how to enter a cron string into a module...
-
So has the ability to add a scheduler expression as per the documentation been removed ? I just installed HG and it seems like a great program but there doesn't seem to be a place to enter a expression like
"00 21* * * ;@Weekdays;@SpecialDays". Am I missing something or is this a bug ?
-
Scheduled events can be created in the interface and given a name to refer to later. You can also create/update these times with a program if that makes things easier (see jkUtils Solar Altitude for an example). Once created, you can use scheduled events with a module using the scheduled ON/OFF app (needs to be enabled if it is not already). This will allow you to enter cron expressions or use the date/time dialog in the interface to schedule events. If you want to create your own code to control scheduled events, look at the Scheduled ON/OFF app to get an idea of how to make that work.
-
Well, it seems to me that things are broken with regards to cron strings on the latest release.
Maybe it is just me.
-
not just you :-\ I can't find the Scheduled ON/OFF app in rev 525
-
I haven't updated in a while. I've been busy and/or out of town a lot and haven't had time to play with my fully working system to break it. 8)
-
The following widgets have been moved to the package repository:
- Scheduled On/Off
- Turn Off delay
- Timetable
- Solar Altitude
the reason is because all features implemented by those widgets are now almost all built-in in new HG.
Please have a look at the new Scheduler page.
g.
-
HI Gene, should I still be able to insert a cron string directly into a module somehow or does that require loading one of these archived programs?
-
I'm lost on how to create a time schedule event. When I click add event it brings up the old "cron event wizard". When I hit ok nothing happens. I updated to v525. Is there something else I need to update?
-
Kevinvinv--
Where in the program did you see the pop up box offering @FromSunset etc?
I am now using r525 and I think I have navigated all over the new scheduler and cannot find out where to program some modules to go on and off from sunset to sunrise.
I am running Windows 10.
In other words What would the CRON scripting be to turn a light on @FromSunset in r525 using Weather Underground?
Thank you for your help.
Alan
-
Beats me bro, I currently have no idea how to schedule on and off times for individual modules. Sorry... I think the best answer is to go back a version or two if you can... to stay off the cutting edge a bit.
Unfortunately I can't go back because my new OS wont support the MONO needed in version 512 which worked great for me... so I am stuck trying to deal with the changes in 522 .
But... the whole thing is free... so I guess I cant complain :)
-
I can program individual modules to go on and off at a specific time in r525 I just cannot program them as I have done in the past to use Weather Underground and turn them on and off at sunset and sunrise.
Thanks for taking the time to let me know I am not alone. :)
-
;D
Do you know how to program them to go on at multiple times... say 7am and 8am and 9am and off at say 7pm and 8pm ?
I cannot figure that out.
I thought you could select sunrise and sunset from the right click in that field? I am pretty sure mine does.
Have you enabled any special packages from the package manager? Maybe that has to be done... I did that I know...
-
I may have went about it he hard way, but I created multiple schedules: Indoor lights on, indoor off, outdoor lights on, outdoor off. My outdoor lights turn on at 0530 - off at sunrise and on at sunset - off at 2200.
Also found out not to use the ">". If you do you can't turn your lights on or off manually. It checks the light status every minute and changes it's state.
-
In r525 I click on Scheduler
Then on the next screen click on "Add event"
Then go through "Occurrence"--then "Modules" then "script."
Nowhere in r525 do I find a dropdown or place to put in @Sunrise for example.
mchias13----where in r525 do you see a place to put the sunrise and sunset timing commands?
Thanks--
Alan
-
the dropdown I am referring to is on the module itself... I click scheduled on/off or something like that and then there is a field that used to accept a cron string but now just has preset options.... again... on the module settings for each individual module.
-
It sounds/looks like Gene is making a major overhaul of the timer system. IMO, this is a very good thing. I have always felt that the timers in HG are one of the less friendly aspects that probably drive many new users away. From the looks of the new system in the guide he posted a link to, the new system will be really slick. That said, it is a major change and may still require some massaging to get where he wants it.
-
bkenobi--
Would you be so kind as to let me know where Gene's scheduler info link is? I am still looking for a way to turn some lights on and off at sunrise and sunset based on Weather Underground.
Thank you.
Alan
-
http://www.homegenie.it/forum/index.php?topic=1606.msg10111#msg10111 (http://www.homegenie.it/forum/index.php?topic=1606.msg10111#msg10111)
-
you have to use a custom cron expression.
my "outdoor lights on" cron:
((30 5 * * *)
%
(* * * * 0,6))
:
(@Sunset)
"outdoor lights off":
((@Sunrise)
%
(* * * * 0,6))
:
(0 22 * * *)
hope that helps
should add, to get mine to show up under lights I named mine "Lights.Outdoor.On"
-
Where do you enter this custom string?
-
On the new scheduler screen click "add event"
when the pop up appears the middle section is labeled: "event type"
use the pull down menu and select "custom cron expression". put the cron expression in the text block. you can reference other cron expressions using the @Sunrise (for example).
You can also use the @expression as a variable. My indoor lights turn on (@Sunset - 30), so they turn on 30 minutes before sunset.
-
You can also use the @expression as a variable. My indoor lights turn on (@Sunset - 30), so they turn on 30 minutes before sunset.
Wow, that's convenient!
-
I could use a little help.
I had lights turning on and off at sunset and sunrise in r493. I just cannot get it to fire in r525.
I have tried various iterations ie.
@Sunset
@FromSunset
(@Sunset)
Would someone be so kind as to step me through turning on a light module at sunset.
Thanks...Alan
-
if you just want the lights on at sunset and off at sunrise, you can configure that on the individual lights. Click on the settings of a light, use the drop down menu to select "Scheduler" (forgot what exactly called), then use the drop down menus for On and Off to select sunset for on and sunrise for off.
-
mchias13--
Thank you for the tip however I do not see anything close to "Scheduler" in any dropdown from a light module.
When I hit the setup option on a light I see--
the internal configuration of the device--Basic info-variable ID etc. NOthing specific to HG.
I am clicking on the * located on the upper right of the module.
Is there another place you are referring to?
Alan
-
This may not be relevant but what version are you on? I know there are a LOT of things going on with scheduling and I bet you have to be on the latest to see what he is talking about...
-
I am on "HomeGenie Version 1.1 beta r525."
-
Acorlin,
Follow the images I've attached below. If you don't see the same things, then please post what you see.
-
mchhias--
Thanks for the reply. The following jpg is what I see.
I on version r525. What version are you using?
Alan
-
Go to Configure->Programs->Scheduling-> verify Scheduled On/Off is enabled (green)
That will add the Scheduled On/Off to your drop down.
-
When I look at Configure--Programs--Scheduling the attached below is what I see.
Thank you for the help. I really appreciate your time.
Alan
-
mchias13
I believe I have solved the problem with your help.
It struck me after looking at the Scheduling page that nothing was on the page.
I checked and for some reason HG was not saving the info. Probably due to my computer??
I reloaded HG saved a program and now the scheduling page is populating.
I do have one question--when in the "Select Comparison Value" screen of the light program is the following @sunset correct. I seem to remember using @FromSunset in prior versions?"
Scheduler.Time Equals @sunset
Thank you again for your help.
Alan
-
can you fix your post? it's hard to follow what you are asking since can't see the whole thing on screen.
-
Sorry about that.
Just want to confirm is the command
@Sunset
or
@FromSunset
And do I need brackets () before and after?
Thank you.
-
Not sure where you are asking to add the Sunset/Sunrise selection, but I'll try.
If you are selecting sunset or sunrise on the light setup screen I showed above, you just select an option from the drop down list.
If you are using sunset or sunrise in the custom cron window in the cron event wizard then you use @Sunset or @Sunrise there. Like I turn my indoor lights 30 minutes before sunset, so i use (@Sunset - 30).
-
I finally gave up trying to use Weather Underground to set times. I switched to JKUTILS and am now able to turn lights on and off at sunset and sunrise. I had to experiment a little but got the hang of it very quickly.
When SolarAltitude is running--and viewed from "Scheduler" page
Just click on the preset time you desire.
Then fill in Occurrence
Pick the modules you want to time control
Then pick from an array of pre-programed scripts. (Add code snippet)
For an old duffer like me it worked great. For you with programing ability it should be no problem to add your own coding.
Thank you again mchias13 for all the help and Gene for a fun and useful program.