💾 Archived View for gmi.bacardi55.io › blog › 2017 › 02 › 21 › kalliope-system-status-neuron captured on 2023-03-20 at 18:09:08. Gemini links have been rewritten to link to archived content

View Raw

More Information

⬅️ Previous capture (2023-01-29)

-=-=-=-=-=-=-

Kalliope system status neurons

Posted on 2017-02-21

Introduction

Couple of days ago, I created a very simple neuron to retrieve some system data and have an idea of the system kalliope runs on. It was in the same idea of the poorsman loganalyser I talked about before[1].

1: node/31

In all honesty, most credits goes to this github repository[2] I found that did almost all the job for me.

2: https://github.com/edouardpoitras/jasper-status

What does it do ?

So far, it returns the following variable that can then be used in a template or say_template:

Look at the readme[3] for an up to date list :)

3: https://github.com/bacardi55/kalliope-system-status

Installation

The usual:

  kalliope install --git-url https://github.com/bacardi55/kalliope-system-status.git

Usage

Create a brain file like this:

      - name: "System-status"
        signals:
          - order: "Step into analysis mode, please"
        neurons:
          - system_status:
              say_template:
                - "I'm running on {{os}}, kernel {{os_version}}, with {{system_nb_cores}} cores.    C P U usage {{cpu}} %  memory usage {{memory}} %  disk usage {{disk}} %"
              cache: False

Or create a more complex template :)

I'll add more into this, but if you have idea, PR on github or comment on this post :)

/gemlog/

Send me a gemini mention

send me an email!