¿ªÔÆÌåÓý

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

Re: Modernizing the HTML control panel

 

¿ªÔÆÌåÓý

Steve G7TAJ has documented the Node API. See and select REST API

73, John

_._,_._,_


Re: Modernizing the HTML control panel

 

¿ªÔÆÌåÓý

Rik,

There is a basic apt that returns some node info, but nothing for the BBS

/api/ports
/api/nodes
/api/users
/api/info
/api/links
/api/mheardport

This could be extended, but would need a fair bit of work for me.

The simplest for me is to change the code to look for an external file before using the internal copy. The downside of this is that the template is used directly by the C code and introduces the problem of compatibility if I change my pages and the risk of instability if there are any problems with the template.

Perhaps it would be interesting if you built a few pages using the existing api functions and see how they look. I'll need to document the api calls but I should do that anyway.

73,

John


On 02/10/2024 11:13, Rik M7GMT wrote:

Hi John,
?
Thanks for the explanation. While I know HTML, CSS, and JS intimately, C is above my pay grade! That does put a small spanner in the works as I was hoping to be able to do this without too much work for you, by simply editing the templates. Spitballing some potential approaches:
?
  1. Modify the existing template strings in the C source code. This seems like it would be very awkward - having the HTML and C code mixed together seems like a recipe for a lot of headaches.
  2. Go back to having the HTML in separate files. The C code would load the template from disk, all the data could simply be printed into an object in a script tag, then assembled into the page using Handlebars (on the client). This would avoid having to do the string replacement in C, which I imagine is quite fragile. You can see a basic example of how this would work . Handlebars also has a concept called "Partials", so things like the main menu can be written once, then reused on multiple pages. You would also get proper syntax highlighting and formatting in your editor, rather than just bunched up strings.
  3. Leave everything as is, and build a new REST API. Provide endpoints such as /api/main-config and /api/node-list which return a JSON object containing the data, which can then be used by any kind of custom front end. This would be very versatile, especially for things like the node list and link status, as it could also be used in scripting, not just in a web front end. I would probably build a separate program using NodeJS that provides a custom front end, but others could do something similar using PHP, Python, or any other language. I'm sure other people would appreciate being able to get at this data for use in monitoring scripts, Discord bots, or other innovative things like that.
  4. Use to create a hybrid approach. This would involve creating new endpoints that return small chunks of HTML, rather than whole pages (e.g. /api/main-config would return just the form). This means the chunks could remain in the C code (although it would be easier to manage them in dedicated files) and use most of your existing logic.
  5. "Gaffer tape" scraper. Add a single JS file that essentially scraped the data out of the existing compiled HTML (as it's delivered to the client), and then rebuilt the page using this data. This would mean no extra work on your part at all, but would be a bit more fragile if you did change anything, and isn't a very efficient way of doing things.
I think my personal preference of order would be 3, 2, 4, 5, 1. As I mentioned, a REST API would be very versatile for all sorts of uses, not just the web front end. Each approach has it's pros and cons, and would involve varying amounts of work for you, so I would be interested to hear your thoughts.


Re: Modernizing the HTML control panel

 

Hi John,
?
Thanks for the explanation. While I know HTML, CSS, and JS intimately, C is above my pay grade! That does put a small spanner in the works as I was hoping to be able to do this without too much work for you, by simply editing the templates. Spitballing some potential approaches:
?
  1. Modify the existing template strings in the C source code. This seems like it would be very awkward - having the HTML and C code mixed together seems like a recipe for a lot of headaches.
  2. Go back to having the HTML in separate files. The C code would load the template from disk, all the data could simply be printed into an object in a script tag, then assembled into the page using Handlebars (on the client). This would avoid having to do the string replacement in C, which I imagine is quite fragile. You can see a basic example of how this would work . Handlebars also has a concept called "Partials", so things like the main menu can be written once, then reused on multiple pages. You would also get proper syntax highlighting and formatting in your editor, rather than just bunched up strings.
  3. Leave everything as is, and build a new REST API. Provide endpoints such as /api/main-config and /api/node-list which return a JSON object containing the data, which can then be used by any kind of custom front end. This would be very versatile, especially for things like the node list and link status, as it could also be used in scripting, not just in a web front end. I would probably build a separate program using NodeJS that provides a custom front end, but others could do something similar using PHP, Python, or any other language. I'm sure other people would appreciate being able to get at this data for use in monitoring scripts, Discord bots, or other innovative things like that.
  4. Use to create a hybrid approach. This would involve creating new endpoints that return small chunks of HTML, rather than whole pages (e.g. /api/main-config would return just the form). This means the chunks could remain in the C code (although it would be easier to manage them in dedicated files) and use most of your existing logic.
  5. "Gaffer tape" scraper. Add a single JS file that essentially scraped the data out of the existing compiled HTML (as it's delivered to the client), and then rebuilt the page using this data. This would mean no extra work on your part at all, but would be a bit more fragile if you did change anything, and isn't a very efficient way of doing things.
I think my personal preference of order would be 3, 2, 4, 5, 1. As I mentioned, a REST API would be very versatile for all sorts of uses, not just the web front end. Each approach has it's pros and cons, and would involve varying amounts of work for you, so I would be interested to hear your thoughts.


Re: Adding SSID to APPLICATION TALK?

 

¿ªÔÆÌåÓý

No, you can use any ssid not used for other purposes.

73,

John

On 02/10/2024 01:01, Brian Pasternak wrote:

Hello everyone. Are there any issues with adding a SSID to the TALK Node Application? Such as KA3VSP-2?

Screenshot 2024-10-01 195740.png

Best,
Brian, KA3VSP


Re: BPQ32 Connect Script Problems

 

I just recently ran into a situation where I needed to do the same thing, i.e. change frequencies via ELSE. I tend to use 30 second pauses whenever something fails and has to move on with an ELSE, so things worked for me right off the bat. I think I see why at least a 20 second pause is needed. After a failed attempt to connect using the first frequency, a detach evidently happens automatically, and there's a delay before scanning resumes. I expect it's the same delay seen when a detach is done manually. It looks like the script needs to pause in order to allow scanning to resume. What's after the ELSE essentially starts over, so things need to be back to square one, i.e. back to scanning, before attaching again. That's what it looks like to me, anyway.

On Mon, Sep 2, 2024 at 12:17?PM Robby via <Robby.roberson=[email protected]> wrote:
If you have a yaesu 857d using a digrig mobile sound card this is what work for me to get it to change frequencies?
TIMES 0000-2359
ATT 5
RADIO 7.0945 USB?
C (callsign)
ELSE
PAUSE 20
ATT 5
RADIO 7.100 USB?
C (callsign)

73,
Lee K5DAT


Re: Changing the VARA mode

 

On Tue, Oct 1, 2024 at 10:05?AM John G8BPQ via <john.wiseman=[email protected]> wrote:

Yes, you can add BW commands to the connect script, after attach and before connect. Format is BW500, BW2300 or BW2750 and for VARAFM FM1200 or FM9600.

If you include a BW command in the port config the TNC will start in that mode and return to it after a session.

73, John


Thank-you Sir!? Also I see one can override the port default with the VN, VW, etc. parameters in the scan lines. That's great as I have some frequencies where I don't want to accept VARA wide and others that I do.

73,
Lee

_._,_._,_


Adding SSID to APPLICATION TALK?

 

Hello everyone. Are there any issues with adding a SSID to the TALK Node Application? Such as KA3VSP-2?

Screenshot 2024-10-01 195740.png

Best,
Brian, KA3VSP


Re: VARA port default setting

 

Thank-you for the details John.

Lee K5DAT?


Re: VARA port default setting

 

¿ªÔÆÌåÓý

If you port is set for 500 it won't allow incoming 2300 connects but if set to 2300 it will accept 500 so long as you have the enable 500 check box set.

73, John

On 01/10/2024 16:03, Lee Bengston wrote:

Does the default (bandwidth) setting for a VARA port impact outbound only, or
does it impact incoming connections also?


Thanks,
Lee K5DAT


Re: Modernizing the HTML control panel

 

¿ªÔÆÌåÓý

Hi Rik.

I have nothing in principal against you updating the web pages. They are the minimum to do the job of managing the node.

The files are not actually used any more, the pages are included in the program source, and they are templates not complete pages and are processed by the bpq code to generate the actual html. The HTTP server is built into the BPQ Node.

You can install your own pages in the HTML directory and the server will return them but that leaves you with the problem of getting the data from the node to put in the pages.

If you have a working knowledge of C programming you could update the templates in the source. It is available on github and if you want to pursue that idea I could give you an outline of how the system works.

Another possibility would be to modify the code so it looks for a template in HTML and only if not found would it use the embedded version.

73, John

?

On 01/10/2024 15:15, Rik M7GMT wrote:

This is primarily for John G8BPQ, but I would be interested in other opinions too.
?
I am a web developer with 20 years experience and I would like to offer to update the BPQ HTML pages to modern standards. This is primarily to make them fully responsive so that they display correctly on all screen sizes (phones, tablets, and desktops). I don't want to mess with the content of the pages, just the layout. Tasks would include:
?
  • Using a modern grid system instead of tables for layout.
  • Moving the inline styles to a reusable stylesheet.
  • Optimising how styling is applied to avoid repetition.
  • Removing some JS which could be better handled by CSS.
  • Adding some sensible caching headers, so CSS and JS doesn't have to be repeatedly downloaded.
?
A few questions:
?
  1. Are you open to me doing this in the first place?
  2. Is there a reason the files have a .txt extension instead of .html?
  3. How is template data being processed? Do you have a custom renderer (probably related to #2)? Example, the %s: <h3 align="center">BPQ32 BBS %s</h3>
  4. Does the program use a custom HTTP server or something standard?
?
Further thoughts:
?
  • I'm familiar with git, so I would use git to track all my changes, which you could of course approve/refuse/discuss/modify along the way.
  • Perhaps the templating part could use to pass in the strings and form values. It's very simple, but also very powerful.
  • We could potentially have light/dark/user themes, and easily switch between them.
  • If you are open to this, I would be happy to do one of the pages as a prototype to show how well this could work, before launching into the whole set of files.
Happy to hear any other feedback too.
?
73 de Rik M7GMT


Re: Modernizing the HTML control panel

Richard Hendricks - KE0GB
 

Using secure HTTP (shttp://) would be a good idea, too.
?
73 - Rick
KE0GB
?


Modernizing the HTML control panel

 

This is primarily for John G8BPQ, but I would be interested in other opinions too.
?
I am a web developer with 20 years experience and I would like to offer to update the BPQ HTML pages to modern standards. This is primarily to make them fully responsive so that they display correctly on all screen sizes (phones, tablets, and desktops). I don't want to mess with the content of the pages, just the layout. Tasks would include:
?
  • Using a modern grid system instead of tables for layout.
  • Moving the inline styles to a reusable stylesheet.
  • Optimising how styling is applied to avoid repetition.
  • Removing some JS which could be better handled by CSS.
  • Adding some sensible caching headers, so CSS and JS doesn't have to be repeatedly downloaded.
?
A few questions:
?
  1. Are you open to me doing this in the first place?
  2. Is there a reason the files have a .txt extension instead of .html?
  3. How is template data being processed? Do you have a custom renderer (probably related to #2)? Example, the %s: <h3 align="center">BPQ32 BBS %s</h3>
  4. Does the program use a custom HTTP server or something standard?
?
Further thoughts:
?
  • I'm familiar with git, so I would use git to track all my changes, which you could of course approve/refuse/discuss/modify along the way.
  • Perhaps the templating part could use to pass in the strings and form values. It's very simple, but also very powerful.
  • We could potentially have light/dark/user themes, and easily switch between them.
  • If you are open to this, I would be happy to do one of the pages as a prototype to show how well this could work, before launching into the whole set of files.
Happy to hear any other feedback too.
?
73 de Rik M7GMT


Re: Changing the VARA mode

 

¿ªÔÆÌåÓý

Yes, you can add BW commands to the connect script, after attach and before connect. Format is BW500, BW2300 or BW2750 and for VARAFM FM1200 or FM9600.

If you include a BW command in the port config the TNC will start in that mode and return to it after a session.

73, John



On 01/10/2024 15:23, Lee Bengston wrote:

Hello,

To provide an example, I'm scanning both 20m and 40m during the day, and the same BPQ port for VARA applies. The default mode is BW500, and that's needed for the 40m frequency.

On 20m I could potentially use 2300. Is it possible to specify the VARA bandwidth in a connect script? If not, is there any recourse other than to use a different radio and VARA instance for 20 meters?

I suppose I could just change the default to 2300 and let it adapt to incoming connections that use 500, but there's the risk of an incoming connection on 2300 that could cause problems.

Any advice would be appreciated.

73,
Lee K5DAT


VARA port default setting

 

Does the default (bandwidth) setting for a VARA port impact outbound only, or
does it impact incoming connections also?


Thanks,
Lee K5DAT


Re: Changing the VARA mode

 



On Tue, Oct 1, 2024 at 9:45?AM Mark Taylor via <mtaylor=[email protected]> wrote:
Yes, in the connect script, after the attach you can use the BWxxxx to change your transmit bandwidth.

Thanks Mark!
?
Be sure and check to allow 500hz connections in the Vara TNC settings.? It has always worked for me.

Yes, up until now I've been running VARA 500 exclusively, so that has been checked all along.
?
73,
Lee K5DAT


Re: Changing the VARA mode

 

Yes, in the connect script, after the attach you can use the BWxxxx to change your transmit bandwidth.
?
Be sure and check to allow 500hz connections in the Vara TNC settings.? It has always worked for me.
?
?
?
?


Changing the VARA mode

 

Hello,

To provide an example, I'm scanning both 20m and 40m during the day, and the same BPQ port for VARA applies. The default mode is BW500, and that's needed for the 40m frequency.

On 20m I could potentially use 2300. Is it possible to specify the VARA bandwidth in a connect script? If not, is there any recourse other than to use a different radio and VARA instance for 20 meters?

I suppose I could just change the default to 2300 and let it adapt to incoming connections that use 500, but there's the risk of an incoming connection on 2300 that could cause problems.

Any advice would be appreciated.

73,
Lee K5DAT


Re: Hierarchical routing not working

 

On Sun, Sep 29, 2024 at 11:15 AM, John G8BPQ wrote:
but it seems it doesn't think you are in USA or NOAM!
Eric, I'm guessing you are either completely frustrated with this or you have it fixed.? I'd be curious to know if you fixed it...
?
?
If not I think there are two possibilities.
?
1. Something has been corrupted during the upgrade. Since I do not know the linux upgrade procedure I'm of no use, not that I have been any so far...
2. A simple typo.? The most likely is a comma where a period should be in your main BBS configuration where it sets the BBS HR.? It could even be a non printable character. To remedy this I would blank out the field and re-type it in with care.
?
I'm sure there are many others interested in the outcome, and still willing to assist if possible. Please let us know how you are doing.
?
?
Mark
?
?
?
?


Re: Missing calls in MH ?

 

Another example from today:
?
In the monitor window:
?
20:18:01R KK4DIV-1>K0WAV-7 Port=2 <D C P>
?
but in MH list no KK4DIV-1
?
mh 2
RFTMG:K7TMG-7} Heard List for Port 2
K7TMG. ? ? 00:00:08:09 ? ?
W7BMH-1. ? 00:00:08:43 ? ?
W7BMH-1+ ? 00:00:08:43 ? ?
K7TMG-1. ? 00:00:08:45 ? ?
N4QMI-7 ? ?00:00:40:18 ? ?
K5DAT-7 ? ?00:00:57:51 ? ?
K5DAT-1 ? ?00:01:15:24 ? ?
K5DAT-7 ? ?00:01:15:26 ? ?
K7TMG ? ? ?00:01:15:28 ? ?
K7TMG-1 ? ?00:01:15:29 ? ?
K5DAT-1+ ? 00:01:18:09 ? ?
KB9PVH-7 ? 00:01:31:43 ? ?
K5DAT ? ? ?00:01:32:41 ? ?
K5DAT+ ? ? 00:01:40:38 ? ?
KB9PVH-5 ? 00:01:56:13 ? ?
KB9PVH ? ? 00:02:18:26 ? ?
KB9PVH+ ? ?00:02:18:26 ? ?
KB5YZB-1 ? 00:03:26:31 ? ?via KB9PVH*
KB9PVH-5 ? 00:03:33:30 ? ?
N4QMI-7+ ? 00:03:42:33 ? ?
AL7LS ? ? ?00:03:49:28 ? ?
KB9PVH ? ? 00:03:51:41 ? ?
WB5BNV ? ? 00:03:55:32 ? ?
K7SKI-7 ? ?00:04:30:52 ? ?
K7SKI-7+ ? 00:04:30:52 ? ?
K7SKI ? ? ?00:05:47:27 ? ?
KB8UVN-1 ? 00:05:57:20 ? ?
KB8UVN-1. ?00:05:57:31 ? ?
?
I'm guessing this has more to do with the SCSTracker driver than BPQ itself?
?


Re: Node Taking Application Callsigns

 

¿ªÔÆÌåÓý

HIDENODES only stop the display of nodes with an alias starting with # in the NODES display.

NODE=0 disables the node functions and only allows connects to your applications. The NODECALL is ignored and the first Application callsign is used.

73, John

On 29/09/2024 23:40, Murray Johnson VE3KNO wrote:

Never mind - I figured it out.? SIMPLE already included the NODE and HIDENODES settings and my configuration reversed them.? I guess HIDENODES hides the subject node as well :)
?
Thanks for the suggestion.
?
73 - Murray? VE3KNO
?