Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
infrastructure
Hackspace Device Info
Commits
73912077
Commit
73912077
authored
May 22, 2014
by
Markus
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
modified all things :)
parent
950e15bb
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
5 deletions
+7
-5
README.md
README.md
+3
-0
hack_count
hack_count
+3
-4
requirements.txt
requirements.txt
+1
-1
No files found.
README.md
View file @
73912077
# 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 :)
hack_count
View file @
73912077
...
...
@@ -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
)
requirements.txt
View file @
73912077
notify2
urllib3
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment