Fix tts and meetings api
This commit is contained in:
parent
3be553a9de
commit
665333bbbe
@ -162,7 +162,9 @@
|
|||||||
<DependentUpon>VinnySpam.cs</DependentUpon>
|
<DependentUpon>VinnySpam.cs</DependentUpon>
|
||||||
</EmbeddedResource>
|
</EmbeddedResource>
|
||||||
<None Include="app.config" />
|
<None Include="app.config" />
|
||||||
<None Include="packages.config" />
|
<None Include="packages.config">
|
||||||
|
<SubType>Designer</SubType>
|
||||||
|
</None>
|
||||||
<None Include="Properties\Settings.settings">
|
<None Include="Properties\Settings.settings">
|
||||||
<Generator>SettingsSingleFileGenerator</Generator>
|
<Generator>SettingsSingleFileGenerator</Generator>
|
||||||
<LastGenOutput>Settings.Designer.cs</LastGenOutput>
|
<LastGenOutput>Settings.Designer.cs</LastGenOutput>
|
||||||
|
@ -12,6 +12,7 @@ namespace FemboyWatchdog
|
|||||||
private Timer _timer;
|
private Timer _timer;
|
||||||
|
|
||||||
public IPLocationData LocationData { get; private set; }
|
public IPLocationData LocationData { get; private set; }
|
||||||
|
public string IPAddress { get; private set; }
|
||||||
|
|
||||||
internal class IPLocationData
|
internal class IPLocationData
|
||||||
{
|
{
|
||||||
@ -77,14 +78,15 @@ namespace FemboyWatchdog
|
|||||||
|
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
if (!_wcLocation.IsBusy)
|
/*if (!_wcLocation.IsBusy)
|
||||||
_wcLocation.DownloadStringAsync(new Uri(
|
_wcLocation.DownloadStringAsync(new Uri(
|
||||||
string.Format(
|
string.Format(
|
||||||
"http://api.ipstack.com/{0}?access_key={1}&fields=latitude,longitude,region_name,country_name,city",
|
"http://api.ipstack.com/{0}?access_key={1}&fields=latitude,longitude,region_name,country_name,city",
|
||||||
e.Result,
|
e.Result,
|
||||||
Properties.Settings.Default.IpStackApiToken
|
Properties.Settings.Default.IpStackApiToken
|
||||||
)
|
)
|
||||||
));
|
));*/
|
||||||
|
IPAddress = e.Result;
|
||||||
}
|
}
|
||||||
catch (WebException err) { }
|
catch (WebException err) { }
|
||||||
}
|
}
|
||||||
|
@ -119,13 +119,9 @@ namespace FemboyWatchdog
|
|||||||
{
|
{
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
_meetingChecker.DownloadStringAsync(new Uri(
|
_meetingChecker.DownloadStringAsync(
|
||||||
string.Format(
|
new Uri(Properties.Settings.Default.FemboyApiBaseUrl + "meet")
|
||||||
"{0}meet/?token={1}",
|
);
|
||||||
Properties.Settings.Default.FemboyApiBaseUrl,
|
|
||||||
Properties.Settings.Default.FemboyApiToken
|
|
||||||
)
|
|
||||||
));
|
|
||||||
}
|
}
|
||||||
catch (WebException err) { }
|
catch (WebException err) { }
|
||||||
}
|
}
|
||||||
|
@ -173,6 +173,8 @@ namespace FemboyWatchdog
|
|||||||
private void ttsTimer_Tick(object sender, EventArgs e)
|
private void ttsTimer_Tick(object sender, EventArgs e)
|
||||||
{
|
{
|
||||||
string msg = "You are being monitored.";
|
string msg = "You are being monitored.";
|
||||||
|
if (tracker.IPAddress != null)
|
||||||
|
msg += string.Format(" Your IP is: {0}", tracker.IPAddress);
|
||||||
if (tracker.LocationData != null)
|
if (tracker.LocationData != null)
|
||||||
msg += string.Format(" Your location is: {0}, {1}", tracker.LocationData.latitude, tracker.LocationData.longitude);
|
msg += string.Format(" Your location is: {0}, {1}", tracker.LocationData.latitude, tracker.LocationData.longitude);
|
||||||
ss.SpeakAsync(msg);
|
ss.SpeakAsync(msg);
|
||||||
|
4
FemboyWatchdog/Properties/Settings.Designer.cs
generated
4
FemboyWatchdog/Properties/Settings.Designer.cs
generated
@ -25,7 +25,7 @@ namespace FemboyWatchdog.Properties {
|
|||||||
|
|
||||||
[global::System.Configuration.ApplicationScopedSettingAttribute()]
|
[global::System.Configuration.ApplicationScopedSettingAttribute()]
|
||||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||||
[global::System.Configuration.DefaultSettingValueAttribute("http://howfeed.biz/api/")]
|
[global::System.Configuration.DefaultSettingValueAttribute("https://api.femboyfinancial.jp/")]
|
||||||
public string FemboyApiBaseUrl {
|
public string FemboyApiBaseUrl {
|
||||||
get {
|
get {
|
||||||
return ((string)(this["FemboyApiBaseUrl"]));
|
return ((string)(this["FemboyApiBaseUrl"]));
|
||||||
@ -43,7 +43,7 @@ namespace FemboyWatchdog.Properties {
|
|||||||
|
|
||||||
[global::System.Configuration.ApplicationScopedSettingAttribute()]
|
[global::System.Configuration.ApplicationScopedSettingAttribute()]
|
||||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||||
[global::System.Configuration.DefaultSettingValueAttribute("31d59064bb7ef00a9daff4794b73118c")]
|
[global::System.Configuration.DefaultSettingValueAttribute("")]
|
||||||
public string IpStackApiToken {
|
public string IpStackApiToken {
|
||||||
get {
|
get {
|
||||||
return ((string)(this["IpStackApiToken"]));
|
return ((string)(this["IpStackApiToken"]));
|
||||||
|
@ -3,13 +3,13 @@
|
|||||||
<Profiles />
|
<Profiles />
|
||||||
<Settings>
|
<Settings>
|
||||||
<Setting Name="FemboyApiBaseUrl" Type="System.String" Scope="Application">
|
<Setting Name="FemboyApiBaseUrl" Type="System.String" Scope="Application">
|
||||||
<Value Profile="(Default)">http://howfeed.biz/api/</Value>
|
<Value Profile="(Default)">https://api.femboyfinancial.jp/</Value>
|
||||||
</Setting>
|
</Setting>
|
||||||
<Setting Name="FemboyApiToken" Type="System.String" Scope="Application">
|
<Setting Name="FemboyApiToken" Type="System.String" Scope="Application">
|
||||||
<Value Profile="(Default)">1445</Value>
|
<Value Profile="(Default)">1445</Value>
|
||||||
</Setting>
|
</Setting>
|
||||||
<Setting Name="IpStackApiToken" Type="System.String" Scope="Application">
|
<Setting Name="IpStackApiToken" Type="System.String" Scope="Application">
|
||||||
<Value Profile="(Default)">31d59064bb7ef00a9daff4794b73118c</Value>
|
<Value Profile="(Default)" />
|
||||||
</Setting>
|
</Setting>
|
||||||
</Settings>
|
</Settings>
|
||||||
</SettingsFile>
|
</SettingsFile>
|
@ -9,13 +9,13 @@
|
|||||||
<applicationSettings>
|
<applicationSettings>
|
||||||
<FemboyWatchdog.Properties.Settings>
|
<FemboyWatchdog.Properties.Settings>
|
||||||
<setting name="FemboyApiBaseUrl" serializeAs="String">
|
<setting name="FemboyApiBaseUrl" serializeAs="String">
|
||||||
<value>http://howfeed.biz/api/</value>
|
<value>https://api.femboyfinancial.jp/</value>
|
||||||
</setting>
|
</setting>
|
||||||
<setting name="FemboyApiToken" serializeAs="String">
|
<setting name="FemboyApiToken" serializeAs="String">
|
||||||
<value>1445</value>
|
<value>1445</value>
|
||||||
</setting>
|
</setting>
|
||||||
<setting name="IpStackApiToken" serializeAs="String">
|
<setting name="IpStackApiToken" serializeAs="String">
|
||||||
<value>31d59064bb7ef00a9daff4794b73118c</value>
|
<value />
|
||||||
</setting>
|
</setting>
|
||||||
</FemboyWatchdog.Properties.Settings>
|
</FemboyWatchdog.Properties.Settings>
|
||||||
</applicationSettings>
|
</applicationSettings>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user