¿ªÔÆÌåÓý

ctrl + shift + ? for shortcuts
© 2025 Groups.io
Date

Re: FRStack Web APIs for RPi with FRStack Node Red Flows

 

Sorry about the initial drop issues. I made some last minute changes that broke radio selection and meter display.
If you have the first version installed you only need to update the FRStackWebApi.dll file from the ZIP into the /usr/local/frstack directory.

Stop the daemon, update the DLL and flow json files, start the daemon.
sudo systemctl stop FRStackWebApi
cd /usr/local/frstack
sudo rm FRStackWebApiRpi.zip sudo wget # get only the updated file, leave off DLL and json filenames to get all files
sudo?unzip?
FRStackWebApiRpi.zip FRStackWebApi.dll frstackNodeRedV101.json

sudo systemctl start FRStackWebApi






The update node red flows are named frstackNodeRedV101.json and they are in the ZIP file.

Remove the old flows and use the new ones.

73,
Mark?
W3II


Re: FRStack Web APIs for RPi with FRStack Node Red Flows

 

Hi Mark

Thanks for the help yesterday. ? Also, thanks to Andrew.

Are you looking for feedback from users?? I know RPI FRStack is "work in progress", so I give my observations, with that view.

Windows FRStack was not running during these observations.

1 - As you know, the radio selector does not show the radio

2- Using multiplex, the client selector would not change the client.? I tried to "disconnect" between client changes, but after connecting, the client selector would always return to the first client to bind.

3 - Looking at the meter web-socket output, most of the meters are not working or providing incorrect data.? The "+13.8A" and "PATEMPC", appear to be good.? FWD, REF, SWR, and PATEMPF are not working.

4 - Global Profiles would not command the selected profile to the Flex Server

Alan
WA9WUD


On Thu, Jul 23, 2020 at 10:48 PM Mark Hanson <mkcmsoftware@...> wrote:
Yes, you can run FRStack on PC at the same time but you have to make sure you do not configure the same feature there and on RPi.
You could also point stream deck to your RPi if you don't want to run FRStack on PC for Memories or Scanning, Squelch, etc.

73,
Mark
W3II


Re: FRStack Web APIs for RPi with FRStack Node Red Flows

 

¿ªÔÆÌåÓý

Very cool! I see a lot more tinkering with Node Red in my future

Dave wo2x

Sent from my waxed string and tin cans.?

On Jul 23, 2020, at 10:48 PM, Mark Hanson <mkcmsoftware@...> wrote:

?Yes, you can run FRStack on PC at the same time but you have to make sure you do not configure the same feature there and on RPi.
You could also point stream deck to your RPi if you don't want to run FRStack on PC for Memories or Scanning, Squelch, etc.

73,
Mark
W3II


Re: FRStack Web APIs for RPi with FRStack Node Red Flows

 

Yes, you can run FRStack on PC at the same time but you have to make sure you do not configure the same feature there and on RPi.
You could also point stream deck to your RPi if you don't want to run FRStack on PC for Memories or Scanning, Squelch, etc.

73,
Mark
W3II


Re: FRStack Web APIs for RPi with FRStack Node Red Flows

 

¿ªÔÆÌåÓý

I am back from a 300 mile emergency road trip. Looking forward to trying to get this running tomorrow.

Thanks Mark! It looks like the perfect addition to our various flows.
Thanks again for the hard work.

Question, is it possible to run FRStack on PC at the same time with PC version to only run Stream Deck?

73
Dave wo2x


On Jul 23, 2020, at 1:40 PM, Alan Blind <a.alan.blind@...> wrote:

?
Mark and Andrew

Making slow progress.? I downloaded the Net3.1 file and extracted it to the opt/dotnet directory.

<Screen Shot 2020-07-23 at 1.33.53 PM.png>


Now, when I run the link command, I get an error.....? What now?

pi@raspberrypi:~/Downloads $ sudo ln -s /opt/dotnet/dotnet /usr/bin

ln: failed to create symbolic link '/usr/bin/dotnet': File exists


Alan


On Thu, Jul 23, 2020 at 9:31 AM Mark Hanson <mkcmsoftware@...> wrote:

You should be in your Pi download folder:?cd ~/Downloads/

wget aspnetcore-runtime-3.1.5-linux-arm.tar.gz? is a place holder for the runtime you need for your RPi
As Andrew comment above the following website has this info.?


Here is the current one for ARM32 devices


The remainder of the instruction are executed from the Downloads folder

sudo mkdir -p /opt/dotnet
sudo tar -zxf aspnetcore-runtime-3.1.5-linux-arm.tar.gz -C /opt/dotnet
sudo ln -s /opt/dotnet/dotnet /usr/bin


Re: introductions

 

¿ªÔÆÌåÓý

Excellent! I will merge it into my FlexRadio flow so it is abailable to others.?

73
Dave wo2x


Sent from my waxed string and tin cans.?

On Jul 23, 2020, at 4:10 PM, Santiago Mejia via groups.io <hi8smx@...> wrote:

?

Thanks Andreas and Alan, I just tried it and it works as expected.

Santiago

<dummyfile.0.part>



______________
73 de Santiago
HI8SMX - KB8SMX
web:?
YouTube: HI8SMX?
Twitter: @hi8smx
Instagram: hi8smx


Re: introductions

 

Thanks Andreas and Alan, I just tried it and it works as expected.

Santiago




______________
73 de Santiago
HI8SMX - KB8SMX
web:?
YouTube: HI8SMX?
Twitter: @hi8smx
Instagram: hi8smx


File /freq to band.json uploaded #file-notice

[email protected] Notification
 

The following files have been uploaded to the Files area of the [email protected] group.

By: Alan Blind

Description:
Andreas' Frequency to Band function, added to a Node-Red Node, adjusted to work with Dave's Flex API VFO frequency output.


Re: introductions

 

Andreas - Nice!

Note; ?Most of us are using Dave's flow to get the VFO frequency and he outputs in MHZ.? So for your flow, we need to multiply by 1000. ??

"var frequency=parseFloat(msg.payload) * 1000"

I tried it and it works just fine.

Alan


On Thu, Jul 23, 2020 at 3:49 PM Andreas Junge <andreas@...> wrote:
Santiago,

Stick this into a function node. It will take a frequency in and a band string out.?



var frequency=parseFloat(msg.payload);
var band="";

switch (true) {
? ? ? ??
? ? case (frequency >= ?1800 && frequency <= ?2000): band="160M"; break;
? ? case (frequency >= ?3500 && frequency <= ?4000): band="80M"; break;
? ? case (frequency >= ?5330 && frequency <= ?5405): band="60M"; break;
? ? case (frequency >= ?7000 && frequency <= ?7300): band="40M"; break;
? ? case (frequency >= 10100 && frequency <= 10150): band="30M"; break;
? ? case (frequency >= 14000 && frequency <= 14350): band="20M"; break;
? ? case (frequency >= 18068 && frequency <= 18168): band="17M"; break;
? ? case (frequency >= 21000 && frequency <= 21450): band="15M"; break;
? ? case (frequency >= 24890 && frequency <= 24990): band="12M"; break;
? ? case (frequency >= 28000 && frequency <= 29700): band="10M"; break;
? ? case (frequency >= 50000 && frequency <= 54000): band="6M"; break;
? ??
? ? default: band=" GEN";
?}
?
msg.payload=band;
return msg;


73, Andreas, N6NU


On Jul 23, 2020, at 12:03 PM, Santiago Mejia via <hi8smx@...> wrote:

On Thu, Jul 23, 2020 at 11:56 AM, Andreas Junge wrote:
What information do you need? Convert frequency into band? Something like 3.500 -> 80M ?
?
Hi Andreas,??Exactly. I would like to include Band in my dashboard, next to Mode and Tx VFO.?
?
______________
73 de Santiago
HI8SMX - KB8SMX
web:?
YouTube: HI8SMX?
Twitter: @hi8smx
Instagram: hi8smx


Re: introductions

 

¿ªÔÆÌåÓý

Santiago,

Stick this into a function node. It will take a frequency in and a band string out.?



var frequency=parseFloat(msg.payload);
var band="";

switch (true) {
? ? ? ??
? ? case (frequency >= ?1800 && frequency <= ?2000): band="160M"; break;
? ? case (frequency >= ?3500 && frequency <= ?4000): band="80M"; break;
? ? case (frequency >= ?5330 && frequency <= ?5405): band="60M"; break;
? ? case (frequency >= ?7000 && frequency <= ?7300): band="40M"; break;
? ? case (frequency >= 10100 && frequency <= 10150): band="30M"; break;
? ? case (frequency >= 14000 && frequency <= 14350): band="20M"; break;
? ? case (frequency >= 18068 && frequency <= 18168): band="17M"; break;
? ? case (frequency >= 21000 && frequency <= 21450): band="15M"; break;
? ? case (frequency >= 24890 && frequency <= 24990): band="12M"; break;
? ? case (frequency >= 28000 && frequency <= 29700): band="10M"; break;
? ? case (frequency >= 50000 && frequency <= 54000): band="6M"; break;
? ??
? ? default: band=" GEN";
?}
?
msg.payload=band;
return msg;


73, Andreas, N6NU


On Jul 23, 2020, at 12:03 PM, Santiago Mejia via <hi8smx@...> wrote:

On Thu, Jul 23, 2020 at 11:56 AM, Andreas Junge wrote:
What information do you need? Convert frequency into band? Something like 3.500 -> 80M ?
?
Hi Andreas,??Exactly. I would like to include Band in my dashboard, next to Mode and Tx VFO.?
?
______________
73 de Santiago
HI8SMX - KB8SMX
web:?
YouTube: HI8SMX?
Twitter: @hi8smx
Instagram: hi8smx


Re: introductions

 

On Thu, Jul 23, 2020 at 11:56 AM, Andreas Junge wrote:
What information do you need? Convert frequency into band? Something like 3.500 -> 80M ?
?
Hi Andreas,??Exactly. I would like to include Band in my dashboard, next to Mode and Tx VFO.?
?
______________
73 de Santiago
HI8SMX - KB8SMX
web:?
YouTube: HI8SMX?
Twitter: @hi8smx
Instagram: hi8smx


Re: introductions

 

¿ªÔÆÌåÓý

Santiago,

What information do you need? Convert frequency into band? Something like 3.500 -> 80M ?

73, Andreas, N6NU


On Jul 22, 2020, at 4:56 PM, Santiago Mejia via <hi8smx@...> wrote:

On Thu, Jul 9, 2020 at 04:04 PM, David De Coons wo2x wrote:
I¡¯d take a look at the data but doing an emergency road trip to the next state. ?Will check it tomorrow.?


?Dave, did you find how to parse the band data from Flex? I want to put it next to MODE and TX VFO in the dashboard, but haven¡¯t found what to parse.?


santiago?
______________
73 de Santiago
HI8SMX - KB8SMX
web:?
YouTube: HI8SMX?
Twitter: @hi8smx
Instagram: hi8smx



Added Folder VA3CW #file-notice

[email protected] Notification
 

Andrew Mitchell added folder VA3CW


Re: FRStack Web APIs for RPi with FRStack Node Red Flows

 

Mark and Andrew

Making slow progress.? I downloaded the Net3.1 file and extracted it to the opt/dotnet directory.

Screen Shot 2020-07-23 at 1.33.53 PM.png

Now, when I run the link command, I get an error.....? What now?

pi@raspberrypi:~/Downloads $ sudo ln -s /opt/dotnet/dotnet /usr/bin

ln: failed to create symbolic link '/usr/bin/dotnet': File exists


Alan


On Thu, Jul 23, 2020 at 9:31 AM Mark Hanson <mkcmsoftware@...> wrote:

You should be in your Pi download folder:?cd ~/Downloads/

wget aspnetcore-runtime-3.1.5-linux-arm.tar.gz? is a place holder for the runtime you need for your RPi
As Andrew comment above the following website has this info.?


Here is the current one for ARM32 devices


The remainder of the instruction are executed from the Downloads folder

sudo mkdir -p /opt/dotnet
sudo tar -zxf aspnetcore-runtime-3.1.5-linux-arm.tar.gz -C /opt/dotnet
sudo ln -s /opt/dotnet/dotnet /usr/bin


Re: FRStack Web APIs for RPi with FRStack Node Red Flows

 

Hi Mark,

Importantly, thank you for taking the time to put the FRStack flows together and sharing them with the group!? There's clearly a lot of though and effort invested in what you've done.

Thanks also for the additional info specific to my project. I got overzealous and fired up the whole enchilada, excited that I was able to get it all imported.? ?I'm running a Pi4 but I'm compounding the CPU load because I'm accessing it headless via VNC and there's also a DXSpider instance running at the same time.? FRStack isn't all to blame here - it's me too! :)

I restarted in --safe and disabled the flows and as you suggested, I'll look at enabling the individual flows and reducing the refresh rates where it makes sense.

73
Andy

VA3CW


File /PG-XL flows-13.json uploaded #file-notice

[email protected] Notification
 

The following files have been uploaded to the Files area of the [email protected] group.

By: Alan Blind

Description:
Updated PG-XL Flow with some more status outputs working now. Still WIP


Re: FRStack Web APIs for RPi with FRStack Node Red Flows

 

Running the entire FRStack Node Red flows takes about 25% CPU between NodeRed and DotNet on my Raspberry Pi Model 3B Plus

By no way do you need to run all of the flows. Just run the ones you want.
Also I have the polling fast so you could slow down the nodered flows.

# this will report your model
cat /proc/device-tree/model
# this will report your CPU info
cat /proc/cpuinfo

# this will show running processes
top



Re: FRStack Web APIs for RPi with FRStack Node Red Flows

 


You should be in your Pi download folder:?cd ~/Downloads/

wget aspnetcore-runtime-3.1.5-linux-arm.tar.gz? is a place holder for the runtime you need for your RPi
As Andrew comment above the following website has this info.?


Here is the current one for ARM32 devices


The remainder of the instruction are executed from the Downloads folder

sudo mkdir -p /opt/dotnet
sudo tar -zxf aspnetcore-runtime-3.1.5-linux-arm.tar.gz -C /opt/dotnet
sudo ln -s /opt/dotnet/dotnet /usr/bin


Re: FRStack Web APIs for RPi with FRStack Node Red Flows

 

Hi Alan,

I ran into the same problems.??

1.? aspnetcore-runtime-3.1.5-linux-arm.tar.gz

  • I went here to find the most recent version?
  • Find the version you want - I needed ARM32 for my Pi
  • I also changed to sudo wget
2.? wget
  • Again, I found I needed to do sudo wget
That got me to the point where I could start node red and in import the .json file.? I deployed it - and while it's started it has completed brought the RPi4 to its knees.? The Pi is still running but it's so slow that I'm not able to take control of node-red in order to disable to the new flows.? I'm still a noob so there's a high probability that I've messed something up.

73
Andy


Re: FRStack Web APIs for RPi with FRStack Node Red Flows

 



On Wed, Jul 22, 2020 at 6:51 PM Alan Blind via <a.alan.blind=[email protected]> wrote:
Mark

Amazing.? You married two of my favorite ham programs, FRStack on a Pi, and Node-Red.? You are a Genius!

I will install ?PI FRStack tomorrow.? Two quick questions:

1- If we already have a working pi with Node-Red, should we start the install at the "Install FRStack on RPI" step?

2- In W10 FRStack, for devices, such as the SteppIR, we must go into the options/settings page to configure the basic settings, like port numbers and type of antenna.? How do we set up the device configurations in Pi FRStack?? I do see the SteppIR commands, but no configuration commands?

Alan
WA9WUD

On Wed, Jul 22, 2020 at 5:33 PM Mark Hanson <mkcmsoftware@...> wrote:
Flex Node Red fans,

I have developed a FRStack Web API service for Raspberry Pi.

I have included a set of Node Red Flows for these Web APIs.
The file in the ZIP is called frstackNodeRedV100.json

The following HTML file contains the information to install .NET Core 3.1, Node Red and FRStack Web APIs Service on your RPi.






Since this service provides some of the same functionality that FRStack3 for Windows provides make sure you only enable those duplication options on one of the instances.

Have fun and good luck.

73,
Mark
W3II