html和css可以用在ssh里面么,在网站中使用SSH
嗨,我目前正在制作自己的軟件來控制一個帶有Raspberry Pi的機器人。我想知道是否可以將ssh嵌入到HTML代碼中,因此當用戶輸入Pi的IP地址時,它將通過ssh連接到pi。在網站中使用SSH
然后我想要做的是通過ssh發送命令,當他們點擊一個按鈕。例如。向后。
這意味著我可以通過python代碼控制從樹莓派的GPIO引腳,如果我可以通過數據。
我已經寫了一些控制代碼的介紹如下:
#commands{
text-align: center;
color: FF8300;
font-size: 100px;
}
.controllbox{
width: 610px;
margin: 0 auto;
}
#arrowUp{
text-align: center;
position: static;
}
#arrowRight{
text-align: right;
position: static;
margin-top: 0;
}
#arrowDown{
text-align: center;
position: static;
}
#arrowLeft{
text-align: left;
position: static;
margin-top: -200px;
}
#stop{
width: 120px;
height: auto;
margin: 0 auto;
margin-top: -65%;
margin-left: 34%;
text-align: center;
position: static;
}
Controll Me!!
document.getElementById('button1').onclick = function(){
document.getElementById('commands').innerHTML = 'Foward'
}
document.getElementById('button2').onclick = function(){
document.getElementById('commands').innerHTML = 'Right'
}
document.getElementById('button3').onclick = function(){
document.getElementById('commands').innerHTML = 'Left'
}
document.getElementById('button4').onclick = function(){
document.getElementById('commands').innerHTML = 'Backwards'
}
document.getElementById('button5').onclick = function(){
document.getElementById('commands').innerHTML = 'Stop'
}
它將如果你知道如何做到這一點還是因為我拉我的頭發類似的東西將不勝感激,試圖找出我如何做到這一點。
非常感謝您的幫助 James。
+1
https://en.wikipedia.org/wiki/Web-執行它based_SSH –
+0
https://github.com/aluzzardi/wssh –
+0
甚至https://chrome.google.com/webstore/detail/secure-shell/pnhechapfaindjhompbnflcldabbghjo?hl=en –
總結
以上是生活随笔為你收集整理的html和css可以用在ssh里面么,在网站中使用SSH的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: [Leedcode][JAVA][第10
- 下一篇: [Leedcode][JAVA][第98