First I need to pass UN & PW, then issue the terminal command to start processing data, then read the data stream. So far I can't even log in. So instead of wasting days trying to figure it out I am hoping someone will help.
Code: Select all
put fld "fldipurl" into IPURL
put fld "fldusername" into PiUserName
Put fld "fldpassword" into PiPassword
put empty into fld"fldData"
put "ssh " && PiUserName & "@" &IPURL && return & "" into tCommand
put tCommand into fld "fldData"
put shell (tCommand)
put the result after fld "fldData"
get shell("password:")
wait for 5 seconds
put PiPassword & return &"" into tCommand
put tCommand after fld "fldData"
put shell (tCommand)
put the result after fld "fldData"
wait 3 seconds
put "sudo rtl_433 -M utc -F json -G" && return & "" into tCommand
put tCommand after fld "fldData"
get shell (tCommand)
put the result after fld "fldData"
get shell(tCommand)
put tCommand after fld "fldData"
Seems it would be simple, Pass the "ssh pi@raspberrypi.local" wait for ":" after password, then send password. Wait a few seconds then issue my command, then read results..
Know someone has done this..
Thanks for any help or hints.
~David