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

    From Nigel Reed@1:103/705 to GitLab issue in main/sbbs on Monday, August 07, 2023 00:57:52
    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 either1: Removing all escape codes, including color and graphics so it's readable2: Convert colors and graphics, as much as possible, to htmlIt could be possible to change output to have something likesbbs/+/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!
    --- SBBSecho 3.20-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Rob Swindell@1:103/705 to GitLab note in main/sbbs on Monday, August 14, 2023 18:39:11
    https://gitlab.synchro.net/main/sbbs/-/issues/598#note_3776

    I think we can close this issue, yeah?
    --- SBBSecho 3.20-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Nigel Reed@1:103/705 to GitLab note in main/sbbs on Monday, August 14, 2023 18:48:00
    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.
    --- SBBSecho 3.20-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Rob Swindell@1:103/705 to GitLab note in main/sbbs on Monday, August 14, 2023 19:05:23
    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).
    --- SBBSecho 3.20-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)