Minor improvements; removed Password
This commit is contained in:
@@ -25,7 +25,6 @@ namespace NightScoutAlert
|
||||
Quobject.EngineIoClientDotNet.Modules.LogManager.Enabled = true;
|
||||
|
||||
//NightscoutTestConfiguration configuration = new NightscoutTestConfiguration();
|
||||
//MonoCompatibleNightscoutAlertConfiguration configuration = new MonoCompatibleNightscoutAlertConfiguration("http://nightscout.chrispr.org:8082", "ThisIsATerribleAuthSystem");
|
||||
String nightscoutEndpoint = ConfigurationManager.AppSettings["NightscoutEndpoint"];
|
||||
String nightscoutCredentials = ConfigurationManager.AppSettings["NightscoutCredentials"];
|
||||
if (String.IsNullOrEmpty(nightscoutEndpoint) || String.IsNullOrEmpty(nightscoutCredentials))
|
||||
@@ -110,27 +109,19 @@ namespace NightScoutAlert
|
||||
//{
|
||||
// Console.WriteLine(data.ToString());
|
||||
//});
|
||||
if (args.Any(arg => arg.Equals("--test-alerts")))
|
||||
{
|
||||
Console.WriteLine("Starting alert test...");
|
||||
//RaspberryPiAudioAlert alerter = new RaspberryPiAudioAlert();
|
||||
var alerter = new MultiAlerter(new IAlerter[] { consoleAlerter, audioAlerter, buttonSource });
|
||||
alerter.StartAlert();
|
||||
Thread.Sleep(3000);
|
||||
alerter.StopAlerts();
|
||||
return;
|
||||
|
||||
}
|
||||
Console.WriteLine("Started");
|
||||
Console.ReadLine();
|
||||
}
|
||||
}
|
||||
|
||||
class NightscoutTestConfiguration : INightscoutAlertConfiguration
|
||||
{
|
||||
|
||||
public String NightscoutBaseURL
|
||||
{
|
||||
//get { return "http://straylight.chrispr.lan:8082"; }
|
||||
get { return "http://192.168.1.100:8082"; }
|
||||
set
|
||||
{throw new NotImplementedException();}
|
||||
}
|
||||
|
||||
public string APISecretKey
|
||||
{
|
||||
get { return "ThisIsATerribleAuthSystem"; }
|
||||
set
|
||||
{throw new NotImplementedException();}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user