Skip to content

sampod/sh-blinkstick

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 

Repository files navigation

sh-blinkstick

My blinkstick scripts. These are my blinkstick scripts.

Based on examples here.

Usage (to be checked...):

create python venv

python -m venv blinkstick

activate venv

source blinkstick/bin/activate 

cd to venv

cd blinkstick

clone repository

git clone https://github.com/sampod/sh-blinkstick.git

install requirements

pip install -r requirements.txt 

run

python blinkstick/sh-blinstick/cpu-usage.py 

Running as systemd service

For running as a service and autostarting refer to: this and this

Example systemd unit file:

[Unit]
Description=sh-blinkstick service

[Service]
# Command to execute when the service is started
ExecStart=/home/user/blinkstick/bin/python /home/user/blinkstick/sh-blinkstick/cpu-usage.py
Environment=PYTHONUNBUFFERED=1

[Install]
WantedBy=default.target

Short howto:

Check your paths. Create file ~/.config/systemd/user/sh-blinkstick.service If all goes well it should start with:

systemctl --user start sh-blinkstick.service

For staring it at reboot:

systemctl --user enable sh-blinkstick.service

About

My blinkstick scripts

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages