¿ªÔÆÌåÓý

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

Re: Tweaking WA9WUD's Auto Tune flow


 

Also, another important note on building the HTML string.

The "SWR Meter" function builds a text file called, "msg.template" to send the HTML to the Dashboard Template Node.

In order to get the dynamic data into the text, I had to use a ?concept called, "Template Literals".

You add a "back tick" around the text rather than a set of quotes.? Outside the text build, bring in the JSON object, but it must be converted, first, to a string:?msg.data = JSON.stringify(msg.data);

Then, in the text build, between the back ticks, bring in the variable, msg.data with this syntax, var data = ${msg.data}

The reverse ticks are very small and hard to see in the function, so be sure to not delete them.

Screen Shot 2022-07-06 at 6.36.51 AM.png

Here is a link describing String Literals.



On Wed, Jul 6, 2022 at 6:14 AM Alan Blind, WA9WUD via <a.alan.blind=[email protected]> wrote:
Dave

I like your improvements.? As you say, this is the fun of Node-Red, open source working together to advance our ideas.

?Also, integrating the Sweep flow into your Tuner Genius Flow, will make easy for other Tuner Genius persons to use the Sweep Flow.

The visual presentation easily shows how your G5RV antenna is performing.? The resonant areas, and the areas needing tune solutions are easy to identify.? Also, easy to adjust your TG tune solutions with changing seasons.

FYI, I found that Stephen had used a Javascript library, called "D3, Data Driven Documents" to build his panadater flow.? I found that Node-Red had a version 3 of D3 built in.? There are more advance D3 versions, and if you want to use them in Node-Red, just add the desired D3 library script to a Node-Red Template, Head Section, node.

I found this video series concise and easy to learn from, for using D3.? The bar chart build is in video three:



Alan. WA9WUD

Join [email protected] to automatically receive all group messages.