Outils pour utilisateurs

Outils du site


serialkiller-plugins-process

Installation plugin sunshine

#!/usr/bin/env python
# -*- coding: utf-8 -*-
 
import time
 
from skplugins import addValuePlugin, addEventPlugin, addValue, addEvent
from skplugins.checker.system.process import process
 
server = '192.168.1.1'
while True:
 
    # Check if the computer is locked
    plugin = process(processname='i3lock')
    addValuePlugin(server, 'livingroom:hp2012:inuse', plugin)
 
    #Sleep
    time.sleep(5)
serialkiller-plugins-process.txt · Dernière modification: 2015/08/12 22:29 (modification externe)