PlutoWeb icon indicating copy to clipboard operation
PlutoWeb copied to clipboard

Add moRFeus_listener by @LamaBleu

Open unixpunk opened this issue 6 years ago • 2 comments

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

unixpunk avatar Mar 14 '19 06:03 unixpunk

Done https://github.com/unixpunk/PlutoWeb/commit/29c29a2967f7e042ca9b36715f2dc65c3db87079

unixpunk avatar Mar 14 '19 07:03 unixpunk

Added the link on the main page to what will be the control page for this but that does not exist yet.

ImDroided avatar May 01 '19 03:05 ImDroided