Hi,
I was wondering if it was possible to configure SDRangel to auto start sampling if it has a workspace with a valid sampling device found on load or if anyone has a suggestion of how to configure this to occur?
My issue is I am trying to use SDRangel to monitor 24/7 and have it set to auto launch on startup in the event my computer restarts. I loads the workspace automatically, however at this point in time I have to manually click the start devices button. I would like to automate this to avoid potentially losing hours of data when I don't realise that a reboot has occurred.
Thank you.
Sampling Auto start
-
- Posts: 3
- Joined: Thu Apr 27, 2023 8:15 am
Re: Sampling Auto start
If you know a little programming, you could do it via the API:
https://github.com/f4exb/sdrangel/wiki/ ... )-REST-API
https://github.com/f4exb/sdrangel/wiki/ ... )-REST-API
-
- Posts: 3
- Joined: Thu Apr 27, 2023 8:15 am
Re: Sampling Auto start
I know a little programming but it's been a few years, I'll check it out.
Thanks for the quick response and great program.
Thanks for the quick response and great program.
-
- Posts: 3
- Joined: Thu Apr 27, 2023 8:15 am
Re: Sampling Auto start
Thanks for the pointer to the API.
In the end very easy in case anyone wants to achieve the same result.
Created a 2 line batch file that waits 30 seconds to ensure SDRangel has completed loading and then calls
curl -X POST "http://127.0.0.1:8091/sdrangel/deviceset/0/device/run" -H "accept: application/json" -H "Content-Type: application/json" -d "{}"
Add a shortcut to the file in the startup folder and it's good to go.
As long as I have a device connected and a workspace loads at startup it appears to achieve the desired result.
Hope this helps someone else in the future.
In the end very easy in case anyone wants to achieve the same result.
Created a 2 line batch file that waits 30 seconds to ensure SDRangel has completed loading and then calls
curl -X POST "http://127.0.0.1:8091/sdrangel/deviceset/0/device/run" -H "accept: application/json" -H "Content-Type: application/json" -d "{}"
Add a shortcut to the file in the startup folder and it's good to go.
As long as I have a device connected and a workspace loads at startup it appears to achieve the desired result.
Hope this helps someone else in the future.