Commit 73912077 authored by Markus's avatar Markus

modified all things :)

parent 950e15bb
# dbus-python
- if u are a proud linux user u need to install or have installed the python-dbus package
- if u dont use linux u need to build python-dbus manually https://github.com/warsaw/dbus-python3 then it maybe will work :)
......@@ -4,7 +4,7 @@ import urllib.request
import json
import argparse
import os
import time
from time import sleep
import sys
......@@ -86,8 +86,7 @@ if __name__ == '__main__':
json.dump(cachedict,iofile)
iofile.close()
##notification
if args.notify:
if args.notify and count_changed == True :
###init dbus notifications
bus = dbus.SessionBus()
notif = bus.get_object(item, path)
......@@ -102,5 +101,5 @@ if __name__ == '__main__':
print ("HackHro Users: ",device_count)
if not args.daemonize == True :
sys.exit(0)
time.sleep(args.interval)
sleep(args.interval)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment