Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add tmux status bar modules in a NaviGator tmux config #1292

Open
cbrxyz opened this issue Oct 18, 2024 · 2 comments
Open

Add tmux status bar modules in a NaviGator tmux config #1292

cbrxyz opened this issue Oct 18, 2024 · 2 comments

Comments

@cbrxyz
Copy link
Member

cbrxyz commented Oct 18, 2024

What needs to change?

We should add a custom tmux status bar for NaviGator showing some important values on the boat, such as:

  • core temperatures
  • battery voltages
  • memory/cpu usage

This is the start of a snippet I was working on to print out the battery voltage straight to tmux:

rostopic echo /odom/pose/pose/position/x | awk '$1 ~ /^[0-9.-]+$/ { printf "%.6f\n", $1 }'

How would this task be tested?

  1. Ensure that the config can be launched and that the modules appear.
@hoshbosh
Copy link

I worked on adding custom values to the tmux status bar, I was able to get the code snippet above to show up as a value that updated in the status bar. I did this by making a bash script containing the code snippet in the initial comment, then I made a .tmux.conf file that printed the output of the bash script to the status line. This week I plan on duplicating this to work for the other NaviGator info as listed in the initial comment (i.e. core temps, battery voltages, memory/cpu usage).

@hoshbosh
Copy link

hoshbosh commented Nov 4, 2024

I worked on making bash scripts for reading NaviGator important values, those being core temps, battery voltages, memory and cpu usage. I complied them each into their own bash scripts to be loaded by the .tmux.conf file. I got a few to appear with raw data in the tmux status line. This week I plan on formatting each of them to fit better on the status line and making a pr.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants