Git Product home page Git Product logo

lametric-system-monitor's Introduction

LaMetric-System-Monitor
LaMetric System Monitor

Monitor your system metrics (Windows) on Lametric's Time.


What is LaMetric System Monitor?

This utility parses the HWiNFO's data from remotehwinfo's json server and pushes it to LaMetric Time via an Indicator App.

How to Use

Requirements

How to create an Indicator App?

Usage

  • Fork this repository:
    $ git clone https://github.com/iganeshk/LaMetric-System-Monitor.git
    $ cd LaMetric-System-Monitor
    $ pip3 install -r requirements.txt
    
  • Configure the following in lametricSysMon.py using any editor:
    # Connection
    REMOTE_MONITOR_IP = ""                      # Default: 127.0.0.1
    REMOTE_MONITOR_PORT = ""                    # Default: 8085
    
    # LaMetric Credentials
    LA_TOKEN = "YOUR_APP_TOKEN"
    LA_PUSH_URL_LOCAL = "YOUR_LOCAL_PUSH_URL"   # Prefer local address if app running on a local network
    
  • Run the following command on your system or raspberrypi or any python3 installed environment with local network access.
    $ python3 lametricSysMon.py
    

Installation (systemd service for Linux Environment)

  • Then we create a systemd (service manager) script by copying the following in to /etc/systemd/system/lametric.service.
  • Confirm your python3 path by running which python3.
    [Unit]
    Description=Lametric Time System Monitor Screen
    After=syslog.target network-online.target
    
    [Service]
    Type=forking
    ExecStart=/usr/bin/nice -n 19 '/usr/bin/python3 /root/lametricSysMon.py'
    Restart=always
    RestartSec=5
    KillMode=process
    
    [Install]
    WantedBy=multi-user.target
    
  • Enable the systemd service to run on startup, then start the service and check its status. (by default set to run at startup)
    sudo systemctl daemon-reload
    sudo systemctl enable lametric
    sudo systemctl start lametric
    sudo systemctl status lametric
    

Remote HWiNFO Installation

  • Grab the latest release and extract the executable.
  • Make sure HWiNFO is running and set to start up with Windows.
  • Create the following task in the scheduler with highest privileges with "At Start Up" with the following flags:
    • Security Options: Run whether user logged in or not (with credentials)
    • Trigger: At Start Up
    • Action: Start a Program
      • Program/Script Path: Executable Path
      • Arguments: -port 8085 -hwinfo 1 -gpuz 0 -afterburner 0 -log 0
      • Start In: Executable Path
  • Open port 8085 in the Windows Firewall for private network

lametric-system-monitor's People

Contributors

iganeshk avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.