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
alias fan-auto='systemctl start supermicro-fan-auto.timer' | |
alias fan-full='systemctl stop supermicro-fan-auto.timer && sleep 5 && sm fan full' | |
alias fan-pue2='systemctl stop supermicro-fan-auto.timer && sleep 5 && sm fan pue2' | |
alias fan-optimal='systemctl stop supermicro-fan-auto.timer && sleep 5 && sm fan optimal' | |
alias fan-heavyio='systemctl stop supermicro-fan-auto.timer && sleep 5 && sm fan heavyio' | |
alias fan-standard='systemctl stop supermicro-fan-auto.timer && sleep 5 && sm fan standard' |
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
LICENSE = "MIT" | |
LIC_FILES_CHKSUM = "file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420" | |
inherit qmakeve | |
inherit daemontools | |
SRC_URI = " \ | |
gitsm://github.com/osaether/dbus-tsmppt.git;tag=v${PV};protocol=https \ | |
" |
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"]) |