This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python -u | |
import sys, os | |
import logging | |
from functools import partial | |
from collections import Mapping | |
from datetime import datetime | |
import dbus | |
from dbus.mainloop.glib import DBusGMainLoop | |
import gobject |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python -u | |
from functools import partial | |
import dbus | |
from dbus.mainloop.glib import DBusGMainLoop | |
import gobject | |
def track(name, value): | |
# TODO: Do something with the value, for this example we just print it | |
print "{} = {:.2f}".format(name, value["Value"]) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python -u | |
import sys, os | |
import logging | |
from math import pi | |
from functools import partial | |
from collections import Mapping | |
import dbus | |
from dbus.mainloop.glib import DBusGMainLoop | |
import gobject |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var page = require('webpage').create(), | |
access = '4XXXXXXXXX', | |
pin = '1234', | |
userno = '7', | |
password = 'password22', | |
accountno = '0000001111'; | |
function waitFor(selector, callback, count){ | |
count = count || 0; | |
// TODO make this more flexibile than just aborting after 30 seconds. |