{% extends "layout.html" %} {% set active_page = "info" %} {% set help_page = ["https://kizniche.github.io/Mycodo/System-Information/", _('System Information')] %} {% block title %} - {{_('System Information')}}{% endblock %} {% block body %}
{% include 'flash_messages.html' %}
{{_('Mycodo Version')}}: {{mycodo_version}}
{{_('Python Version')}}: {{python_version}}
{{_('Database Version')}}:  {%- if database_version == correct_database_version -%}{{database_version}} {%- else -%}{{database_version}} (Incorrect Version. Should be {{correct_database_version}}) {%- endif -%}
{{_('Daemon Status')}}:  {%- if daemon_status == "alive" %}{{_('Running')}} {%- else %}{{_('Not Running')}} {% endif %} {% if daemon_up %}
{{_('Daemon Process ID')}}: {{daemon_pid}}
{{_('Daemon RAM Usage')}}: {{ram_use_daemon}} MB
{{_('Daemon Virtualenv')}}:  {%- if virtualenv_daemon -%}{{_('Yes')}} {%- else -%}{{_('No')}} {%- endif -%} {% endif %}
{{_('Frontend Process ID')}}: {{frontend_pid}}
{{_('Frontend RAM Usage')}}: {{ram_use_flask}} MB
{{_('Frontend Virtualenv')}}:  {%- if virtualenv_flask -%}{{_('Yes')}} {%- else -%}{{_('No')}} {%- endif -%}
uptime
{{uptime}}
Kernel Information: uname -a
{{uname}}
{%- if gpio_readall -%}
General-Purpose Input/Output (GPIO) Pins: gpio readall
{{gpio_readall}}
{%- endif -%} {% for each_i2c_dev in i2c_devices_sorted %}
I2C Bus {{each_i2c_dev}}: i2cdetect -y {{each_i2c_dev}}
{{i2c_devices_sorted[each_i2c_dev]}}
{% endfor %}
Disk Usage: df -h
{{df}}
Memory: free -h
{{free}}
Diagnostic Messages: dmesg | tail -n 20
{{dmesg_output}}
Network: ifconfig -a
{{ifconfig}}
{% if daemon_up %}
Processes (daemon and threads): pstree -p {{daemon_pid}}
{{pstree_daemon}}
Processes (daemon and threads): top -b -H -n 1 -p {{daemon_pid}}
{{top_daemon}}
{% endif %}
Processes (frontend and threads): pstree -p {{frontend_pid}}
{{pstree_frontend}}
Processes (frontend and threads): top -b -H -n 1 -p {{frontend_pid}}
{{top_frontend}}
{% endblock %}