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 a Rig Control page accessible from the Dashboard #55

Open
gbowne1 opened this issue May 4, 2023 · 1 comment
Open

Add a Rig Control page accessible from the Dashboard #55

gbowne1 opened this issue May 4, 2023 · 1 comment
Labels
bug Something isn't working documentation Improvements or additions to documentation enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed question Further information is requested test Issues related to tests

Comments

@gbowne1
Copy link
Owner

gbowne1 commented May 4, 2023

Add a Hamlib Rig Control panel using the API package. Not sure whether its a client or server side package.

  1. add the Hamlib package with npm i hamlib

use the package with const hamlib = require('hamlib');

Define a new route

// Get current frequency
app.get('/rigcontrol/freq', (req, res) => {
  const freq = hamlib.get_freq();
  res.send(`Current frequency: \${freq}`);
});

// Set frequency
app.post('/rigcontrol/freq', (req, res) => {
  const { freq } = req.body;
  hamlib.set_freq(freq);
  res.send(`Frequency set to: \${freq}`);
});
@gbowne1 gbowne1 added enhancement New feature or request help wanted Extra attention is needed labels May 4, 2023
@gbowne1 gbowne1 added bug Something isn't working documentation Improvements or additions to documentation enhancement New feature or request help wanted Extra attention is needed good first issue Good for newcomers question Further information is requested test Issues related to tests and removed enhancement New feature or request help wanted Extra attention is needed labels Jun 4, 2023
@gbowne1
Copy link
Owner Author

gbowne1 commented Jul 13, 2023

@jzunigarce I wanna work on this soon. It needs a route, controller and middleware and the package added to client and server.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working documentation Improvements or additions to documentation enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed question Further information is requested test Issues related to tests
Projects
Development

No branches or pull requests

1 participant