@unixpunk
Edit scripts for PlutoWeb-specific path and command
Set /moRFeus_listener/morf_tcp.sh to be run at each boot in S94pluto-mods
@ImDroided
Create button and top tab to pop-out (not overlay) a new moRFeus_listener web page so that the moRFeus can be controlled independent of what is being done or changed on the main PlutoWeb UI.
Available commands :
S : display moRFeus status
F 123456789 : set frequency to 123456789 Hz
M [x] : switch to Mixer mode, power value = x
G [x] : switch to Generator mode, power value = x
P x : set Current value to x
(value [x] is optional for M and G command but not for P)
We should have a button and a textbox for each (except Status) that should be blank by default and retain the last entered value between clicks on any button.
We'll also need to see the output of each command in an auto-scrolling text box. Don't print the whole command in there, we just care about the output.
Here is what the web UI should run for each button:
Status: echo s | nc -u 127.0.0.1 7779 & pid=$! && sleep 2 && kill $pidFrequency: echo f <frequency-in-hz> | nc -u 127.0.0.1 7779 & pid=$! && sleep 2 && kill $pidMixer Mode: echo m <power-value-if-entered-otherwise-blank> | nc -u 127.0.0.1 7779 & pid=$! && sleep 2 && kill $pidGenerator Mode: echo g <power-value-if-entered-otherwise-blank> | nc -u 127.0.0.1 7779 & pid=$! && sleep 2 && kill $pidPower: echo p <power-value> | nc -u 127.0.0.1 7779 & pid=$! && sleep 2 && kill $pid
https://github.com/unixpunk/moRFeus_listener
@unixpunk Edit scripts for PlutoWeb-specific path and command Set /moRFeus_listener/morf_tcp.sh to be run at each boot in S94pluto-mods
@ImDroided Create button and top tab to pop-out (not overlay) a new moRFeus_listener web page so that the moRFeus can be controlled independent of what is being done or changed on the main PlutoWeb UI.
Available commands :
S : display moRFeus status F 123456789 : set frequency to 123456789 Hz M [x] : switch to Mixer mode, power value = x G [x] : switch to Generator mode, power value = x P x : set Current value to x (value [x] is optional for M and G command but not for P)
We should have a button and a textbox for each (except Status) that should be blank by default and retain the last entered value between clicks on any button.
We'll also need to see the output of each command in an auto-scrolling text box. Don't print the whole command in there, we just care about the output.
Here is what the web UI should run for each button: Status:
echo s | nc -u 127.0.0.1 7779 & pid=$! && sleep 2 && kill $pid
Frequency:echo f <frequency-in-hz> | nc -u 127.0.0.1 7779 & pid=$! && sleep 2 && kill $pid
Mixer Mode:echo m <power-value-if-entered-otherwise-blank> | nc -u 127.0.0.1 7779 & pid=$! && sleep 2 && kill $pid
Generator Mode:echo g <power-value-if-entered-otherwise-blank> | nc -u 127.0.0.1 7779 & pid=$! && sleep 2 && kill $pid
Power:echo p <power-value> | nc -u 127.0.0.1 7779 & pid=$! && sleep 2 && kill $pid