- @Model.Name:@Model.Number
上传数据
+@{ HtmlTitle = "设备";
+ var index = 0; }
+
+ @Model.Name:@Model.Number
上传数据
@@ -18,32 +16,28 @@
@foreach (var item in Model.Devices)
{
-
- @(++index) |
- @item.Product.Number:@item.Product.Name |
- @item.Number:@item.Name |
- @item.DisplayName |
- @Html.DisplayFor(o => item.IsOnline) |
-
- @if (item.Product.Number.Contains("fbee") && !item.Product.Number.Contains("gateway"))
- {
- var values = item.Number.Split('-');
- var gateway = values[0];
- var number = values[1];
- 从网关移除
- }
- else if (item.Product.Name == "摄像头")
- {
- 开始推流
- 停止推流
- }
- else if (item.Product.Number.Contains("gateway"))
- {
- 查询网关设备
- }
- |
-
- }
+
+ @(++index) |
+ @item.Product.Number:@item.Product.Name |
+ @item.Number:@item.Name |
+ @item.DisplayName |
+ @Html.DisplayFor(o => item.IsOnline) |
+
+ @if (item.Product.Number.Contains("fbee") && !item.Product.Number.Contains("gateway"))
+ {
+ var values = item.Number.Split('-');
+ var gateway = values[0];
+ var number = values[1];
+从网关移除 }
+ else if (item.Product.Name == "摄像头")
+ {
+开始推流
+ 停止推流 }
+ else if (item.Product.Number.Contains("gateway"))
+ {
+ 查询网关设备}
+ |
+
}
@section scripts{
diff --git a/projects/Version.cs b/projects/Version.cs
index 70945843..e5aaa5db 100644
--- a/projects/Version.cs
+++ b/projects/Version.cs
@@ -1,4 +1,4 @@
using System.Reflection;
[assembly: AssemblyVersion("1.0.0.0")]
-[assembly: AssemblyInformationalVersion("1.0.0.20092902")]
\ No newline at end of file
+[assembly: AssemblyInformationalVersion("1.0.0.20101601")]
\ No newline at end of file
diff --git a/projects/WebMVC/wwwroot/js/config.js b/projects/WebMVC/wwwroot/js/config.js
index 2b2830b4..d616d022 100644
--- a/projects/WebMVC/wwwroot/js/config.js
+++ b/projects/WebMVC/wwwroot/js/config.js
@@ -1,5 +1,5 @@
var config = {
- version: '1.0.0.20093001',
+ version: '1.0.0.20101901',
debug: window.location.search.indexOf('debug') > -1,
baseUrl: window.location.protocol + '//' + window.location.host,
uploadUrl: window.location.protocol + '//' + window.location.host + '/IoTCenter/File/Upload',
diff --git a/projects/WebMVC/wwwroot/routes/iot/device.html b/projects/WebMVC/wwwroot/routes/iot/device.html
index 953aa409..b33f8ce2 100644
--- a/projects/WebMVC/wwwroot/routes/iot/device.html
+++ b/projects/WebMVC/wwwroot/routes/iot/device.html
@@ -49,7 +49,8 @@
url: '/IoTCenter/api/v1/device/getDevice?number=' + this.$route.query.number,
device: null,
events: ['DeviceEntityInserted', 'DeviceEntityUpdated', 'DeviceEntityInserted',
- 'DataEntityInserted', 'DataEntityUpdated', 'DataEntityInserted']
+ 'DataEntityInserted', 'DataEntityUpdated', 'DataEntityInserted'],
+ time: '1d'
}
},
mounted: function () {
@@ -79,10 +80,11 @@
return o.type === 10 || o.type === 20;
}).toArray();
for (var i = 0; i < dataList.length; i++) {
- this.changeTime(dataList[i].key, '1d', dataList[i].name);
+ this.changeTime(dataList[i].key, this.time, dataList[i].name);
}
},
tabClick: function (event, key, time, title) {
+ this.time = time;
this.changeTime(key, time, title);
var link = $(event.currentTarget);
if (!link.hasClass('active')) {
diff --git a/publish/src/linux-arm64/publish/50-cloud-init.yaml b/publish/src/linux-arm64/publish/50-cloud-init.yaml
index 01a9527d..78f0b42b 100644
--- a/publish/src/linux-arm64/publish/50-cloud-init.yaml
+++ b/publish/src/linux-arm64/publish/50-cloud-init.yaml
@@ -8,7 +8,7 @@ network:
addresses: [192.168.1.4/24]
gateway4: 192.168.1.1
nameservers:
- addresses: [8.8.8.8,223.5.5.5,119.29.29.29,180.76.76.76]
+ addresses: [223.5.5.5,119.29.29.29,180.76.76.76]
search: []
optional: true
version: 2
diff --git a/publish/src/linux-arm64/publish/install.sh b/publish/src/linux-arm64/publish/install.sh
index 7406cda6..857c764e 100644
--- a/publish/src/linux-arm64/publish/install.sh
+++ b/publish/src/linux-arm64/publish/install.sh
@@ -54,6 +54,9 @@ fi
if uname -a | grep -q "NanoPC-T4"
then
echo "nanopc-t4"
+# sed -i "s/managed=true/managed=false/g" /etc/NetworkManager/NetworkManager.conf
+# cp -f /etc/network/interfaces /etc/network/interfaces.bk
+# cp ~/publish/interfaces /etc/network/interfaces
nmcli connection modify 'Wired connection 1' connection.autoconnect yes ipv4.method manual ipv4.address 192.168.1.3/24 ipv4.gateway 192.168.1.1 ipv4.dns "223.5.5.5 119.29.29.29 180.76.76.76"
nmcli c up 'Wired connection 1'
fi
\ No newline at end of file