Live data from Hacker News

Show HN: Building terminal dashboards using ASCII/ANSI art and JavaScript

github.com

41–50 of 56 posts

Re: Show HN: Building terminal dashboards using ASCII/ANSI art and JavaScript

#41
It would get really interesting if this combined with the new inline image support present in iTerm2 (only nightly builds for now).

Basically you can do something like :

  ESC ] 1337 ; File = [optional arguments] : base-64 encoded file contents ^G
And then display an image inline along with other text. E.g. that ascii rendering of the world could be replaced by an actual image of the world.

Re: Show HN: Building terminal dashboards using ASCII/ANSI art and JavaScript

#44

Hi everyone, I am the author. Let me know if you have any questions or ideas.

Awesome project. I will definitely be using this!

The provided example is a great illustration of how to build various layouts and use the various widgets. I find it lacks any examples of real-world data gathering. For us Node newbies, how would one, for example, graph system load of a remote server over time? I think examples like that would help get some people going.

Re: Show HN: Building terminal dashboards using ASCII/ANSI art and JavaScript

#47
post #41

It would get really interesting if this combined with the new inline image support present in iTerm2 (only nightly builds for now). Basically you can do something like : ESC ] 1337 ; File = [optional arguments] : base-64 encoded file contents ^G And then display an image inline along with other text. E.g. that ascii rendering of the world could be replaced by an actual image of the world.

I considered something like this but it felt like cheating. The beauty of standard ascii/ansi is that it is available in any terminal without any installation and it also has the same aesthetics / resolution as the text you type. Of course I will watch after iTerm2 progress.

Re: Show HN: Building terminal dashboards using ASCII/ANSI art and JavaScript

#48
post #40

Hi everyone, I am the author. Let me know if you have any questions or ideas.

On the line chart examples , the scales do not seem like able to change,otherwise great project.

what do you mean? You are right that in this sample I have not changed the values of the X axis but the api allows you to change its values anytime.

Re: Show HN: Building terminal dashboards using ASCII/ANSI art and JavaScript

#49

Hi everyone, I am the author. Let me know if you have any questions or ideas.

Awesome project. I will definitely be using this! The provided example is a great illustration of how to build various layouts and use the various widgets. I find it lacks any examples of real-world data gathering. For us Node newbies, how would one, for example, graph system load of a remote server over time? I think examples like that would help get some people going.

I plan to add more samples. Meanwhile you can use a module like this to get the data for you: https://github.com/kgryte/node-metrics-os
Post reply on HN