Updated lsenv in mycroft-tools

Hi, I updated ‘lsenv’ (list environment) in my mycroft-tools package. It checks if mycroft and emby are running as services, and if not as processes. It also checks for pulseaudio processes, and then other information like the IP address, temperature the Pi, and CPU and memory numbers.

Here’s sample output when Mycroft is running processes:

$ lsenv
Status of mycroft:
 -) WARNING: mycroft is not running as a service ... checking for processes ...
    Found matching processes:
    pi        181096  140234  0 10:13 pts/2    00:00:00 bash /home/pi/mycroft-core/bin/mycroft-start debug
    pi        181119  181096 46 10:13 pts/2    00:00:08 python3 -m mycroft.messagebus.service
    pi        181122  181096 56 10:13 pts/2    00:00:10 python3 -m mycroft.skills
    pi        181125  181096 25 10:13 pts/2    00:00:04 python3 -m mycroft.audio
    pi        181128  181096 35 10:13 pts/2    00:00:06 python3 -m mycroft.client.speech
    pi        181131  181096 22 10:13 pts/2    00:00:04 python3 -m mycroft.client.enclosure
    pi        181133  181096 41 10:13 pts/2    00:00:07 python3 -m mycroft.client.text
    pi        181332  181128  0 10:13 pts/2    00:00:00 /home/pi/.local/share/mycroft/precise/precise-engine/precise-engine /home/pi/.local/share/mycroft/precise/hey-mycroft.pb 2048
    pi        181334  181332 81 10:13 pts/2    00:00:08 /home/pi/.local/share/mycroft/precise/precise-engine/precise-engine /home/pi/.local/share/mycroft/precise/hey-mycroft.pb 2048
----------------------------------------------------------------
Status of emby-server:
 -) emby-server is running as a service
    Active: active (running) since Fri 2022-08-12 13:02:56 EDT; 2 days ago
----------------------------------------------------------------
Status of pulseaudio:
 -) pulseaudio is running as a process:
    pi          1221    1210  1 Aug12 ?        01:17:50 /usr/bin/pulseaudio --daemonize=no --log-target=journal
------------------------------------------------------
IP address:  192.168.1.229
temperature: 64C / 147F
CPU usage:   21.39%
Memory usage:
                 total        used        free      shared  buff/cache   available
  Mem:           3.7Gi       2.5Gi       306Mi       188Mi       954Mi       774Mi
  Swap:          1.0Gi       764Mi       259Mi

See: GitHub - mike99mac/mycroft-tools: line command tools to use with mycroft

Enjoy!

Any thoughts on other useful info?

-Mike Mac