Skip to content
This repository was archived by the owner on Nov 16, 2025. It is now read-only.

Commit 25cf65a

Browse files
committed
Added API Key Field
1 parent 53d90ae commit 25cf65a

24 files changed

+226
-19
lines changed

OmniRig_VB_DEMO/App.config

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@
1313
<setting name="CloudlogURL" serializeAs="String">
1414
<value />
1515
</setting>
16+
<setting name="CloudlogAPIKey" serializeAs="String">
17+
<value />
18+
</setting>
1619
</CloudlogCAT.My.MySettings>
1720
</userSettings>
1821
</configuration>

OmniRig_VB_DEMO/CloudlogCAT.vbproj

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
<TargetFrameworkVersion>v4.5.2</TargetFrameworkVersion>
1515
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
1616
<IsWebBootstrapper>false</IsWebBootstrapper>
17-
<PublishUrl>publish\</PublishUrl>
17+
<PublishUrl>publish-1\</PublishUrl>
1818
<Install>true</Install>
1919
<InstallFrom>Disk</InstallFrom>
2020
<UpdateEnabled>false</UpdateEnabled>
@@ -29,7 +29,7 @@
2929
<ProductName>CloudlogCAT</ProductName>
3030
<PublisherName>Magicbug</PublisherName>
3131
<SuiteName>Cloudlog</SuiteName>
32-
<ApplicationRevision>0</ApplicationRevision>
32+
<ApplicationRevision>2</ApplicationRevision>
3333
<ApplicationVersion>1.0.0.%2a</ApplicationVersion>
3434
<UseApplicationTrust>false</UseApplicationTrust>
3535
<CreateDesktopShortcut>true</CreateDesktopShortcut>
@@ -169,7 +169,9 @@
169169
</ItemGroup>
170170
<ItemGroup>
171171
<None Include="CloudlogCAT_TemporaryKey.pfx" />
172-
<None Include="My Project\app.manifest" />
172+
<None Include="My Project\app.manifest">
173+
<SubType>Designer</SubType>
174+
</None>
173175
<None Include="My Project\Application.myapp">
174176
<Generator>MyApplicationCodeGenerator</Generator>
175177
<LastGenOutput>Application.Designer.vb</LastGenOutput>
Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
33
<PropertyGroup>
4-
<PublishUrlHistory>publish\</PublishUrlHistory>
4+
<PublishUrlHistory>publish-1\|publish\</PublishUrlHistory>
55
<InstallUrlHistory />
66
<SupportUrlHistory>http://www.magicbug.co.uk</SupportUrlHistory>
77
<UpdateUrlHistory />
@@ -10,4 +10,7 @@
1010
<FallbackCulture>en-US</FallbackCulture>
1111
<VerifyUploadedFiles>false</VerifyUploadedFiles>
1212
</PropertyGroup>
13+
<PropertyGroup>
14+
<EnableSecurityDebugging>false</EnableSecurityDebugging>
15+
</PropertyGroup>
1316
</Project>

OmniRig_VB_DEMO/Form1.vb

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -118,15 +118,14 @@
118118
RadioName = "OmniRig 2"
119119
End If
120120

121-
Dim myString As String = "{""radio"": """ + RadioName + """, ""frequency"": """ + Rig.GetRxFrequency.ToString + """, ""mode"": """ + Label6.Text + """}"
121+
Dim myString As String = "{""radio"": """ + RadioName + """, ""frequency"": """ + Rig.GetRxFrequency.ToString + """, ""mode"": """ + Label6.Text + """, ""key"": """ + My.Settings.CloudlogAPIKey + """}"
122122

123123
Dim responsebytes = client.UploadString(My.Settings.CloudlogURL + "/index.php/api/radio", myString)
124124

125125
ToolStripStatusLabel1.Text = "Cloudlog Synced: " + DateTime.UtcNow
126126

127-
128127
End Using
129-
Catch ex As Exception
128+
Catch ex As System.Net.WebException
130129
ToolStripStatusLabel1.Text = "Cloudlog Synced: Failed"
131130
End Try
132131
End If

OmniRig_VB_DEMO/Form2.Designer.vb

Lines changed: 28 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

OmniRig_VB_DEMO/Form2.vb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
11
Public Class CloudlogSettingsForm
22
Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
33
My.Settings.CloudlogURL = TextBox1.Text
4+
My.Settings.CloudlogAPIKey = TextBox2.Text
45
Me.Close()
56
End Sub
67

78
Private Sub CloudlogSettingsForm_Load(sender As Object, e As EventArgs) Handles MyBase.Load
89
TextBox1.Text = My.Settings.CloudlogURL
10+
TextBox2.Text = My.Settings.CloudlogAPIKey
911
End Sub
1012
End Class

OmniRig_VB_DEMO/My Project/Settings.Designer.vb

Lines changed: 12 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

OmniRig_VB_DEMO/My Project/Settings.settings

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,8 @@
55
<Setting Name="CloudlogURL" Type="System.String" Scope="User">
66
<Value Profile="(Default)" />
77
</Setting>
8+
<Setting Name="CloudlogAPIKey" Type="System.String" Scope="User">
9+
<Value Profile="(Default)" />
10+
</Setting>
811
</Settings>
912
</SettingsFile>
1 KB
Binary file not shown.

OmniRig_VB_DEMO/bin/Debug/CloudlogCAT.exe.config

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@
1313
<setting name="CloudlogURL" serializeAs="String">
1414
<value />
1515
</setting>
16+
<setting name="CloudlogAPIKey" serializeAs="String">
17+
<value />
18+
</setting>
1619
</CloudlogCAT.My.MySettings>
1720
</userSettings>
1821
</configuration>

0 commit comments

Comments
 (0)