-
Notifications
You must be signed in to change notification settings - Fork 0
/
variables.ps1
29 lines (22 loc) · 905 Bytes
/
variables.ps1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
$user = 'username'
$pass = 'password'
$database = 'PowerShellHue'
$MySQLHost = 'localhost'
$databasetable = 'detectphoneonwifi'
$Message = 'Hello World!'
#wait time in seconds to wait and retry and find devices.
$WaitTimeIfNoDeviceOnline = 20
$bridgeIP = "192.168.178.12"
$username = "d84f5e9696ffd7394edb2d22fa3cfb"
$ApiUrl = "http://$BridgeIP/api/$username/lights"
$logbasedirectory = "\logs\"
$loopwaitcounterSec = (Get-Random -Minimum 1600 -Maximum 2800)
$colortransitiontime = 180
#the device name, and IP of the device you want to have detected. This device must be response to ICMP (ping)
$devices = @( ("PhoneMart", "192.168.178.98"), ("PhoneSas", "192.168.178.97") )
#the id's of your HUE lights, get the ID's by calling you HUE api. See variable $ApiUrl
$huelights = @( ("1"),("3") )
$waittimeshort = 1
$script:engagedHue = 0
$waittimelong = 600
$waittime = $waittimeshort