Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add moRFeus_listener by @LamaBleu #51

Open
unixpunk opened this issue Mar 14, 2019 · 2 comments
Open

Add moRFeus_listener by @LamaBleu #51

unixpunk opened this issue Mar 14, 2019 · 2 comments
Assignees
Labels
enhancement New feature or request

Comments

@unixpunk
Copy link
Owner

unixpunk commented Mar 14, 2019

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 unixpunk added the enhancement New feature or request label Mar 14, 2019
@unixpunk unixpunk self-assigned this Mar 14, 2019
@unixpunk
Copy link
Owner Author

Done 29c29a2

@unixpunk unixpunk assigned ImDroided and unassigned unixpunk Mar 14, 2019
@ImDroided
Copy link
Collaborator

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants