💾 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
⬅️ Previous capture (2023-01-29)
-=-=-=-=-=-=-
Posted on 2017-02-21
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].
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
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
The usual:
kalliope install --git-url https://github.com/bacardi55/kalliope-system-status.git
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 :)