Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
pi.hub
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
iot
pi.hub
Commits
4595f28b
Commit
4595f28b
authored
Jul 05, 2017
by
Artur Rachwał
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
publish works
parent
78a7858e
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
125 additions
and
4 deletions
+125
-4
Pi.Hub.Api/Controllers/DashboardController.cs
+4
-2
Pi.Hub.Api/Controllers/StatusController.cs
+1
-1
Pi.Hub.Api/Properties/PublishProfiles/iot-challange - Web Deploy.pubxml
+30
-0
UI.Web.Dashboard/Properties/PublishProfiles/iot-challange - Web Deploy.pubxml
+30
-0
UI.Web.Dashboard/Properties/PublishProfiles/iot-challange-dash - Web Deploy.pubxml
+30
-0
UI.Web.Dashboard/Properties/launchSettings.json
+23
-0
pi.hub.sln
+7
-1
No files found.
Pi.Hub.Api/Controllers/DashboardController.cs
View file @
4595f28b
...
...
@@ -7,8 +7,9 @@ namespace Pi.Hub.Api.Controllers
{
public
object
Get
()
{
string
text
=
System
.
IO
.
File
.
ReadAllText
(
"C:\\apps\\msgs.txt"
);
return
$"
{{
\
"data\":[{text}]}}"
;
//string text = System.IO.File.ReadAllText("C:\\apps\\msgs.txt");
//return $"{{\"data\":[{text}]}}";
return
new
{
};
}
}
}
\ No newline at end of file
Pi.Hub.Api/Controllers/StatusController.cs
View file @
4595f28b
...
...
@@ -25,7 +25,7 @@ namespace Pi.Hub.Api.Controllers
public
object
Write
([
FromBody
]
object
obj
)
{
string
serialized
=
JsonConvert
.
SerializeObject
(
obj
);
System
.
IO
.
File
.
AppendAllLines
(
"C:\\apps\\msgs.txt"
,
new
[]
{
$",
{{
\
"object\":{serialized},\"timestamp\":\"{DateTime.Now:F}\"}}"
});
//
System.IO.File.AppendAllLines("C:\\apps\\msgs.txt", new[] { $",{{\"object\":{serialized},\"timestamp\":\"{DateTime.Now:F}\"}}" });
var
client
=
new
MqttClient
(
"test.mosquitto.org"
);
string
[]
topic
=
{
"e1s/iot.challange"
};
...
...
Pi.Hub.Api/Properties/PublishProfiles/iot-challange - Web Deploy.pubxml
0 → 100644
View file @
4595f28b
<?xml version="1.0" encoding="utf-8"?>
<!--
This file is used by the publish/package process of your Web project. You can customize the behavior of this process
by editing this MSBuild file. In order to learn more about this please visit https://go.microsoft.com/fwlink/?LinkID=208121.
-->
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<WebPublishMethod>MSDeploy</WebPublishMethod>
<ResourceId>/subscriptions/883e655f-443e-4bfe-bcd5-fc43a928e964/resourceGroups/aaart-default/providers/Microsoft.Web/sites/iot-challange</ResourceId>
<ResourceGroup>aaart-default</ResourceGroup>
<PublishProvider>AzureWebSite</PublishProvider>
<LastUsedBuildConfiguration>Release</LastUsedBuildConfiguration>
<LastUsedPlatform>Any CPU</LastUsedPlatform>
<SiteUrlToLaunchAfterPublish>http://iot-challange.azurewebsites.net</SiteUrlToLaunchAfterPublish>
<LaunchSiteAfterPublish>True</LaunchSiteAfterPublish>
<ExcludeApp_Data>False</ExcludeApp_Data>
<PublishFramework />
<ProjectGuid>b3aacbfb-2e61-4c99-a295-4d19571634b1</ProjectGuid>
<MSDeployServiceURL>iot-challange.scm.azurewebsites.net:443</MSDeployServiceURL>
<DeployIisAppPath>iot-challange</DeployIisAppPath>
<RemoteSitePhysicalPath />
<SkipExtraFilesOnServer>True</SkipExtraFilesOnServer>
<MSDeployPublishMethod>WMSVC</MSDeployPublishMethod>
<EnableMSDeployBackup>True</EnableMSDeployBackup>
<UserName>$iot-challange</UserName>
<_SavePWD>True</_SavePWD>
<_DestinationType>AzureWebSite</_DestinationType>
</PropertyGroup>
</Project>
\ No newline at end of file
UI.Web.Dashboard/Properties/PublishProfiles/iot-challange - Web Deploy.pubxml
0 → 100644
View file @
4595f28b
<?xml version="1.0" encoding="utf-8"?>
<!--
This file is used by the publish/package process of your Web project. You can customize the behavior of this process
by editing this MSBuild file. In order to learn more about this please visit https://go.microsoft.com/fwlink/?LinkID=208121.
-->
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<WebPublishMethod>MSDeploy</WebPublishMethod>
<ResourceId>/subscriptions/883e655f-443e-4bfe-bcd5-fc43a928e964/resourceGroups/aaart-default/providers/Microsoft.Web/sites/iot-challange</ResourceId>
<ResourceGroup>aaart-default</ResourceGroup>
<PublishProvider>AzureWebSite</PublishProvider>
<LastUsedBuildConfiguration>Release</LastUsedBuildConfiguration>
<LastUsedPlatform>Any CPU</LastUsedPlatform>
<SiteUrlToLaunchAfterPublish>http://iot-challange.azurewebsites.net</SiteUrlToLaunchAfterPublish>
<LaunchSiteAfterPublish>True</LaunchSiteAfterPublish>
<ExcludeApp_Data>False</ExcludeApp_Data>
<PublishFramework />
<ProjectGuid>1b8210cd-fd0d-4037-84b3-b4d9fd1ac3a3</ProjectGuid>
<MSDeployServiceURL>iot-challange.scm.azurewebsites.net:443</MSDeployServiceURL>
<DeployIisAppPath>iot-challange</DeployIisAppPath>
<RemoteSitePhysicalPath />
<SkipExtraFilesOnServer>True</SkipExtraFilesOnServer>
<MSDeployPublishMethod>WMSVC</MSDeployPublishMethod>
<EnableMSDeployBackup>True</EnableMSDeployBackup>
<UserName>$iot-challange</UserName>
<_SavePWD>True</_SavePWD>
<_DestinationType>AzureWebSite</_DestinationType>
</PropertyGroup>
</Project>
\ No newline at end of file
UI.Web.Dashboard/Properties/PublishProfiles/iot-challange-dash - Web Deploy.pubxml
0 → 100644
View file @
4595f28b
<?xml version="1.0" encoding="utf-8"?>
<!--
This file is used by the publish/package process of your Web project. You can customize the behavior of this process
by editing this MSBuild file. In order to learn more about this please visit https://go.microsoft.com/fwlink/?LinkID=208121.
-->
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<WebPublishMethod>MSDeploy</WebPublishMethod>
<ResourceId>/subscriptions/883e655f-443e-4bfe-bcd5-fc43a928e964/resourceGroups/aaart-default/providers/Microsoft.Web/sites/iot-challange-dash</ResourceId>
<ResourceGroup>aaart-default</ResourceGroup>
<PublishProvider>AzureWebSite</PublishProvider>
<LastUsedBuildConfiguration>Release</LastUsedBuildConfiguration>
<LastUsedPlatform>Any CPU</LastUsedPlatform>
<SiteUrlToLaunchAfterPublish>http://iot-challange-dash.azurewebsites.net</SiteUrlToLaunchAfterPublish>
<LaunchSiteAfterPublish>True</LaunchSiteAfterPublish>
<ExcludeApp_Data>False</ExcludeApp_Data>
<PublishFramework />
<ProjectGuid>1b8210cd-fd0d-4037-84b3-b4d9fd1ac3a3</ProjectGuid>
<MSDeployServiceURL>iot-challange-dash.scm.azurewebsites.net:443</MSDeployServiceURL>
<DeployIisAppPath>iot-challange-dash</DeployIisAppPath>
<RemoteSitePhysicalPath />
<SkipExtraFilesOnServer>True</SkipExtraFilesOnServer>
<MSDeployPublishMethod>WMSVC</MSDeployPublishMethod>
<EnableMSDeployBackup>True</EnableMSDeployBackup>
<UserName>$iot-challange-dash</UserName>
<_SavePWD>True</_SavePWD>
<_DestinationType>AzureWebSite</_DestinationType>
</PropertyGroup>
</Project>
\ No newline at end of file
UI.Web.Dashboard/Properties/launchSettings.json
0 → 100644
View file @
4595f28b
{
"iisSettings"
:
{
"windowsAuthentication"
:
false
,
"anonymousAuthentication"
:
true
,
"iisExpress"
:
{
"applicationUrl"
:
"http://localhost:1817/"
,
"sslPort"
:
0
}
},
"profiles"
:
{
"IIS Express"
:
{
"commandName"
:
"IISExpress"
,
"launchBrowser"
:
true
,
"environmentVariables"
:
{
"ASPNETCORE_ENVIRONMENT"
:
"Development"
}
},
"UI.Web.Dashboard"
:
{
"commandName"
:
"Project"
}
}
}
\ No newline at end of file
pi.hub.sln
View file @
4595f28b
...
...
@@ -3,7 +3,9 @@ Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 15
VisualStudioVersion = 15.0.26430.12
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Pi.Hub.Api", "Pi.Hub.Api\Pi.Hub.Api.csproj", "{B3AACBFB-2E61-4C99-A295-4D19571634B1}"
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Pi.Hub.Api", "Pi.Hub.Api\Pi.Hub.Api.csproj", "{B3AACBFB-2E61-4C99-A295-4D19571634B1}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "UI.Web.Dashboard", "UI.Web.Dashboard\UI.Web.Dashboard.csproj", "{1B8210CD-FD0D-4037-84B3-B4D9FD1AC3A3}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
...
...
@@ -15,6 +17,10 @@ Global
{B3AACBFB-2E61-4C99-A295-4D19571634B1}.Debug|Any CPU.Build.0 = Debug|Any CPU
{B3AACBFB-2E61-4C99-A295-4D19571634B1}.Release|Any CPU.ActiveCfg = Release|Any CPU
{B3AACBFB-2E61-4C99-A295-4D19571634B1}.Release|Any CPU.Build.0 = Release|Any CPU
{1B8210CD-FD0D-4037-84B3-B4D9FD1AC3A3}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{1B8210CD-FD0D-4037-84B3-B4D9FD1AC3A3}.Debug|Any CPU.Build.0 = Debug|Any CPU
{1B8210CD-FD0D-4037-84B3-B4D9FD1AC3A3}.Release|Any CPU.ActiveCfg = Release|Any CPU
{1B8210CD-FD0D-4037-84B3-B4D9FD1AC3A3}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment