HomeGenie Forum

General Category => General Discussion => Topic started by: chas on May 22, 2014, 08:29:32 PM

Title: Password problem on windows
Post by: chas on May 22, 2014, 08:29:32 PM
Just getting started, so I'll probably be here a lot.  But I have one problem that just stops me.  I'm trying to set a password from Maintenance -> password protected.  I'm running on windows until I get configuration going, then will probably go to a Raspberry pi. 

Whenever I try to set a password, the browser (chome, accessing localhost) will ask for a username and password in a security popup.  Whatever password I have tried to set is useless.  I haven't set a username (or maybe no password, the input box is truncated). But regardless, the password, the username, whatever, nothing works.  It is fortunate that I found the tip on editing systemconfig.xml to remove the password, but I'd really like to be able to set one before opening up the port outside my lan.  I just upgraded to beta R372, no joy.

Am I missing something really simple?
Title: Re: Password problem on windows
Post by: Gene on May 22, 2014, 08:50:06 PM
Enter "admin" as username and the password you choosed.

g.
Title: Re: Password problem on windows
Post by: chas on May 23, 2014, 12:22:17 AM
Thanks,  thought it would be simple, why didn't "admin" come to mind?

chas

I'll press my luck,  got a pointer to an easy step by step on setting lights by timer and dusk-to-dawn?

thanks again.
Title: Re: Password problem on windows
Post by: mvdarend on May 23, 2014, 07:23:00 AM
I'll press my luck,  got a pointer to an easy step by step on setting lights by timer and dusk-to-dawn?


The easiest way is to open up the light properties and set the 'Control device on a given schedule', like so:

(http://www.homegenie.it/docs/images/hg_scheduler_03.jpg) (http://www.homegenie.it/docs/images/hg_scheduler_03.jpg)

You can also use scripting for more control, eg:
Trigger at sunset:
Code: [Select]
// Put your trigger code logic here.
// Call 'hg.SetConditionTrue()' when you want
// the 'Code To Run' to be executed.
hg.SetConditionFalse();

var sunsetStart = hg.Scheduler.WithName("SolarAltitude.Evening.Sunset.Start");

if (sunsetStart.IsScheduling())
{
  hg.SetConditionTrue();
}

Trigger at 08:00:
Code: [Select]
// Put your trigger code logic here.
// Call 'hg.SetConditionTrue()' when you want
// the 'Code To Run' to be executed.
hg.SetConditionFalse();

if (hg.Scheduler.IsScheduling("00 8 * * *"))
{
    hg.SetConditionTrue()
}

Here is more info on scheduling:
http://www.homegenie.it/docs/scheduler.php (http://www.homegenie.it/docs/scheduler.php)

Title: Re: Password problem on windows
Post by: dani on March 22, 2015, 04:34:43 PM
Hi mdvarend,

I don't undesstand in which parameter or screen do you put ttat C# code !
Can you explain ?

Cheers
Dani
Title: Re: Password problem on windows
Post by: mvdarend on March 22, 2015, 07:14:03 PM
Hi Danny,

I probably didn't explain it too well in my post. :) Well, it was almost a year ago and I was very new to HG.

What I meant was that you could use a program (scripting) instead of the built in 'Control device on a given schedule' to have a little more control. The code examples would go under the 'Trigger Code' tab.