Merge branch 'development' of https://github.com/dr-dolomite/quectel-rgmii-toolkit into development
This commit is contained in:
@@ -834,7 +834,7 @@ install_ttyd() {
|
|||||||
wget -O scripts/ttyd.bash "https://raw.githubusercontent.com/$GITUSER/quectel-rgmii-toolkit/$GITTREE/ttyd/scripts/ttyd.bash" && chmod +x scripts/ttyd.bash
|
wget -O scripts/ttyd.bash "https://raw.githubusercontent.com/$GITUSER/quectel-rgmii-toolkit/$GITTREE/ttyd/scripts/ttyd.bash" && chmod +x scripts/ttyd.bash
|
||||||
wget -O systemd/ttyd.service "https://raw.githubusercontent.com/$GITUSER/quectel-rgmii-toolkit/$GITTREE/ttyd/systemd/ttyd.service"
|
wget -O systemd/ttyd.service "https://raw.githubusercontent.com/$GITUSER/quectel-rgmii-toolkit/$GITTREE/ttyd/systemd/ttyd.service"
|
||||||
cp systemd/ttyd.service /lib/systemd/system/
|
cp systemd/ttyd.service /lib/systemd/system/
|
||||||
ln -sf /lib/systemd/system/ttyd.service /etc/systemd/system/multi-user.target.wants/
|
ln -sf /lib/systemd/system/ttyd.service /lib/systemd/system/multi-user.target.wants/
|
||||||
|
|
||||||
# Enabling and starting ttyd service
|
# Enabling and starting ttyd service
|
||||||
systemctl daemon-reload
|
systemctl daemon-reload
|
||||||
|
|||||||
@@ -256,28 +256,28 @@
|
|||||||
},
|
},
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
// function getSignalData() {
|
function getSignalData() {
|
||||||
// return {
|
return {
|
||||||
// csqData: {},
|
csqData: {},
|
||||||
// lastUpdate: new Date().toLocaleString(),
|
lastUpdate: new Date().toLocaleString(),
|
||||||
// getcsq() {
|
getcsq() {
|
||||||
// fetch("/cgi-bin/get_csq")
|
fetch("/cgi-bin/get_csq")
|
||||||
// .then((res) => res.json())
|
.then((res) => res.json())
|
||||||
// .then((data) => {
|
.then((data) => {
|
||||||
// this.csqData = data;
|
this.csqData = data;
|
||||||
// this.lastUpdate = new Date(
|
this.lastUpdate = new Date(
|
||||||
// data.LASTUPDATE * 1000
|
data.LASTUPDATE * 1000
|
||||||
// ).toLocaleString();
|
).toLocaleString();
|
||||||
// });
|
});
|
||||||
// },
|
},
|
||||||
// init() {
|
init() {
|
||||||
// this.getcsq();
|
this.getcsq();
|
||||||
// setInterval(() => {
|
setInterval(() => {
|
||||||
// this.getcsq();
|
this.getcsq();
|
||||||
// }, 30000);
|
}, 30000);
|
||||||
// },
|
},
|
||||||
// };
|
};
|
||||||
// }
|
}
|
||||||
</script>
|
</script>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|||||||
Reference in New Issue
Block a user