Hi all,
First of all, this is Txus Ordorika (aka txusinho). It's great to be part of this community.
I'm starting a personal project that involves several arduino boards that measure temperature and humidity, and a central device to diplay the data. The main device is an orange pi plus 2[1] with a 1024*600, 7 inch capacitive display attached [2].
For the joy of programming, I was thinking of creating a ncurses app to display (between others) some charts, including measured temperatures with the official data captured by the spanish meteorologic agency. The goal is to have 2 lines displayed at the same time, and see the difference between them.
I'd like your opinions on the use of ncurses for displaying data in such display. One of the goals of this project is to use as less energy as possible, and be as efficient as possible. Programing in asm is not an option right now.
Currently I've the xterm configured to have the font at a size of 20. You can see the screen as it is now in the second link.
If you need more info, or whatever feel free to ask.
Thanks for your time and feedback :)
-Txus
[1] http://linux-sunxi.org/Xunlong_Orange_Pi_Plus_2 [2] https://ttm.sh/BS.jpg
February 5, 2019 6:53 PM, txusinho@tilde.team wrote:
First of all, this is Txus Ordorika (aka txusinho). It's great to be part of this community.
Hey Txus! Glad to have you! :)
I'm starting a personal project that involves several arduino boards that measure temperature and humidity, and a central device to diplay the data. The main device is an orange pi plus 2[1] with a 1024*600, 7 inch capacitive display attached [2].
For the joy of programming, I was thinking of creating a ncurses app to display (between others) some charts, including measured temperatures with the official data captured by the spanish meteorologic agency. The goal is to have 2 lines displayed at the same time, and see the difference between them.
Is this data something that could be displayed using plain ASCII?
I'm thinking something along the lines of [1]
I'd like your opinions on the use of ncurses for displaying data in such display. One of the goals of this project is to use as less energy as possible, and be as efficient as possible. Programing in asm is not an option right now.
ncurses would certainly work, but would have a bit more overhead than just rendering something with ASCII.
It might even be an opportunity to integrate figlet :D
~ben
On Wed, Feb 06, 2019 at 05:24:41PM +0000, Ben Harris wrote:
Is this data something that could be displayed using plain ASCII?
My idea is to create a chart displaying a line (or a bar chart) showing the day in X axis and T in Celsius. Therman amplitude here can be about 40 degrees, at most.
ncurses would certainly work, but would have a bit more overhead than just rendering something with ASCII.
I'd like to zoom in/out in the chart, that's why I think in ncurses.
It might even be an opportunity to integrate figlet :D
Let me try some sketches using that, and see how they fit in the app
Thank you for your responses
It might even be an opportunity to integrate figlet :D
I gave it a try, but it didn't fit well.
Some updates regarding this on the client side:
- Currently I have a prototype using an arduino uno and a protoboard. Nothing soldered, but Real time clock + sensor + micro Sd do their work and data is saved correctly. The data from this sensor will be introduced into the server copying and pasting the file in CSV format.
At the same time, I'm working in a soldered version of an arduino nano on a PCB with those components, too. The goal is to get a smaller thing. I might use some sockets to be able to change in case something breaks. Any thoughts are welcome.
- I started working also on a sensor based on arduino with WiFi enabled, to be able to send data through home LAN. For that I ordered a ESP-01.
Someone on mastodon told me my approach could work[1], but ESP board family have an internal chip more powerful tha arduino, and could be standalone. I didn't expect this at all.
Regarding the server side, I have no updated to post :(
Thanks, and regards
-Txus
On Wed, 6 Feb 2019, tildeteam-request@lists.tildeverse.org wrote:
Date: Tue, 5 Feb 2019 18:53:56 -0500 From: txusinho@tilde.team First of all, this is Txus Ordorika (aka txusinho). It's great to be part of this community.
Welcome!
I'd like your opinions on the use of ncurses for displaying data in such display. One of the goals of this project is to use as less energy as possible, and be as efficient as possible. Programing in asm is not an option right now.
I think gnuplot can output to ascii -- should be possible to capture that and insert it into an ncurses window.
Here are a couple of other approaches I've seen around:
https://github.com/asciimoo/drawille -- uses braille character for 'pixel' graphics.
https://github.com/stefanhaustein/TerminalImageViewer -- colour overkill!!
https://github.com/rigel314/ttysys -- usage graphs in terminal
https://github.com/hpjansson/chafa -- funky video/image conversion to terminal -- generate a gif or png and convert, perhaps?
https://github.com/HarryBeadle/ncgraph -- too blocky but colourful
The 'drawille' page has a lot of links to similar projects in various languages. To my mind it looks the most complete of the list above.
Please post more as your project evolves!
Best,
Tildebeast
On Thu, Feb 07, 2019 at 06:00:36PM -0500, tildebeast@tilde.team wrote:
Welcome!
Thank you!
I think gnuplot can output to ascii -- should be possible to capture that and insert it into an ncurses window.
Here are a couple of other approaches I've seen around:
https://github.com/asciimoo/drawille -- uses braille character for 'pixel' graphics.
https://github.com/stefanhaustein/TerminalImageViewer -- colour overkill!!
https://github.com/rigel314/ttysys -- usage graphs in terminal
https://github.com/hpjansson/chafa -- funky video/image conversion to terminal -- generate a gif or png and convert, perhaps?
https://github.com/HarryBeadle/ncgraph -- too blocky but colourful
The 'drawille' page has a lot of links to similar projects in various languages. To my mind it looks the most complete of the list above.
Thanks fot he tips, will take a look at them!
Please post more as your project evolves!
Sure thing.
The original idea was to have already started doing some sketches/tests with ncurses, but look like reality has better plans for me.
Will try to keep updated. I should give a chance to my gopher site in tildeverse...
Regards
tildeteam@lists.tildeverse.org