#!/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)