• mqtt: output topic not conducive to nodered/html output

    From Nigel Reed@VERT to GitLab issue in main/sbbs on Mon Aug 7 00:57:52 2023
    open https://gitlab.synchro.net/main/sbbs/-/issues/598

    When using the output topic to spy on a node, it's not very readable due to ansi graphics codes and characters.

    ![image](https://gitlab.synchro.net/main/sbbs/uploads/59e438e19ef75a0f577677d18f708131/image.png)

    I can only think of pre-formatting the output by either
    1: Removing all escape codes, including color and graphics so it's readable
    2: Convert colors and graphics, as much as possible, to html

    It could be possible to change output to have something like

    sbbs/+/node/+/output/raw (as it comes)
    sbbs/+/node/+/output/html (preformatted html)
    sbbs/+/node/+/output/stripped (plain old text with no color/graphics)

    This would allow different users to pick whatever format works for them.

    I considered the amount of data and it's not really a lot unless you've got 10 users bombarding each other!

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Rob Swindell@VERT to GitLab note in main/sbbs on Mon Aug 14 18:39:11 2023
    https://gitlab.synchro.net/main/sbbs/-/issues/598#note_3776

    I think we can close this issue, yeah?

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Nigel Reed@VERT to GitLab note in main/sbbs on Mon Aug 14 18:48:00 2023
    https://gitlab.synchro.net/main/sbbs/-/issues/598#note_3777

    Well, I'm not sure we have discussed a way to display this. While not bug, it would be good to get a solution. We can discuss via email or dovenet if you prefer to do so, let me know and go ahead and close.

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Rob Swindell@VERT to GitLab note in main/sbbs on Mon Aug 14 19:05:23 2023
    https://gitlab.synchro.net/main/sbbs/-/issues/598#note_3778

    Having a separate output topic for every possible terminal type would be pretty wasteful and not really practical, so I think it makes the most sense to do any necessary translation in the client (spying app).

    I think Ree's web-based node spy page demonstrates that the MQTT node/+/output topic works with HTML output. You just need to do the proper character set and terminal escape sequence decoding or translating, as appropriate and demonstrated on that page (with UTF-8 and CP437 anyway).

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net