¿ªÔÆÌåÓý

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

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


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

 

Mark

FYI, In the meantime, I am building a new Raspian Operating System from scratch. ? That way we will know my OS is not corrupted.

Unless you see something in the previously sent responses that need attention on your end....perhaps the permission issue with downloading rpiFRStack.

Alan

On Thu, Jul 23, 2020 at 7:35 AM Alan Blind via <a.alan.blind=[email protected]> wrote:
Hi Mark

A couple of apparent problems getting started, detailed below.

Alan
WA9WUD

.NetCore returns ?"Name of Service Not Known"

pi@raspberrypi:/usr/local/frstack $ wget aspnetcore-runtime-3.1.5-linux-arm.tar.gz

--2020-07-23 07:28:56--?

Resolving aspnetcore-runtime-3.1.5-linux-arm.tar.gz (aspnetcore-runtime-3.1.5-linux-arm.tar.gz)... failed: Name or service not known.

wget: unable to resolve host address ¡®aspnetcore-runtime-3.1.5-linux-arm.tar.gz¡¯

pi@raspberrypi:/usr/local/frstack $ sudo mkdir -p /opt/dotnet

pi@raspberrypi:/usr/local/frstack $ sudo tar -zxf aspnetcore-runtime-3.1.5-linux-arm.tar.gz -C /opt/dotnet

tar (child): aspnetcore-runtime-3.1.5-linux-arm.tar.gz: Cannot open: No such file or directory

tar (child): Error is not recoverable: exiting now

tar: Child returned status 2

tar: Error is not recoverable: exiting now

pi@raspberrypi:/usr/local/frstack $ sudo ln -s /opt/dotnet/dotnet /usr/bin

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

pi@raspberrypi:/usr/local/frstack $?




MKAM web download of FRStack "Permission Denied":

pi@raspberrypi:/usr/local/frstack $ wget

--2020-07-23 07:23:12--?

Resolving ()... 168.62.180.173

Connecting to ()|168.62.180.173|:80... connected.

HTTP request sent, awaiting response... 200 OK

Length: 1043756 (1019K) [application/x-zip-compressed]

FRStackWebApiRpi.zip: Permission denied




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


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

 

Hi Mark

A couple of apparent problems getting started, detailed below.

Alan
WA9WUD

.NetCore returns ?"Name of Service Not Known"

pi@raspberrypi:/usr/local/frstack $ wget aspnetcore-runtime-3.1.5-linux-arm.tar.gz

--2020-07-23 07:28:56--?

Resolving aspnetcore-runtime-3.1.5-linux-arm.tar.gz (aspnetcore-runtime-3.1.5-linux-arm.tar.gz)... failed: Name or service not known.

wget: unable to resolve host address ¡®aspnetcore-runtime-3.1.5-linux-arm.tar.gz¡¯

pi@raspberrypi:/usr/local/frstack $ sudo mkdir -p /opt/dotnet

pi@raspberrypi:/usr/local/frstack $ sudo tar -zxf aspnetcore-runtime-3.1.5-linux-arm.tar.gz -C /opt/dotnet

tar (child): aspnetcore-runtime-3.1.5-linux-arm.tar.gz: Cannot open: No such file or directory

tar (child): Error is not recoverable: exiting now

tar: Child returned status 2

tar: Error is not recoverable: exiting now

pi@raspberrypi:/usr/local/frstack $ sudo ln -s /opt/dotnet/dotnet /usr/bin

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

pi@raspberrypi:/usr/local/frstack $?




MKAM web download of FRStack "Permission Denied":

pi@raspberrypi:/usr/local/frstack $ wget

--2020-07-23 07:23:12--?

Resolving ()... 168.62.180.173

Connecting to ()|168.62.180.173|:80... connected.

HTTP request sent, awaiting response... 200 OK

Length: 1043756 (1019K) [application/x-zip-compressed]

FRStackWebApiRpi.zip: Permission denied




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


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

 

I wanted to thank Mark for all the time and effort he put into this.??

This is really cool stuff.

Mike va3mw

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


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

 

If your RPi has Node Red already then just the .NET Core install and FRStack install steps are needed.
I have not create a Node Red Flow for SPE Amp and SteppIR but the Web APIs are there for you to create one.
Let me know how it works out.

73,
Mark
W3II


Re: introductions

 

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


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

 

Mark

Question #2, asked and answered.? OK, I see there is ?a configuration page you included with the instructions.

Alan

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


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

 

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