A simple python script to grab the current usage from your Telstra Bigpond account.
Dependencies:
python-requests
bs4
Change the username and password as appropriate
ofstream fSlots; | |
fSlots.open(SLOTS); | |
fSlots << "ADAFRUIT-UART2" << std::endl; | |
fSlots << "PyBBIO-epwmss0" << std::endl; | |
fSlots << "PyBBIO-eqep0" << std::endl; | |
fSlots << "PyBBIO-epwmss1" << std::endl; | |
fSlots << "PyBBIO-eqep1" << std::endl; | |
fSlots.close(); |
#!/usr/bin/perl -w | |
############################################################################################################################### | |
## Name: appswitch.pl | |
## | |
## Purpose: Executed by irexec this script will cycle between mythtv and kodi using a single button. | |
## | |
## (C)opyright 2008 Arksoft. | |
## | |
## Author: Arkay | |
## |
// return an array of objects containing D3elements, one per DS | |
// | |
// data = [ | |
// { | |
// name: <DS name>, | |
// values: [{ date: <timestamp>, value: 1}, { date: <timestamp>, value: 2}] | |
// }, | |
// { | |
// name: <DS name>, | |
// values: [{ date: <timestamp>, value: 1}, { date: <timestamp>, value: 2}] |
Graphing data pulled from an RRD file using javascriprrd
D1=[{"time":"2014-12-10T07:00:00.000Z","val":23963.329444444444},{"time":"2014-12-10T08:00:00.000Z","val":0},{"time":"2014-12-10T09:00:00.000Z","val":7350.143697764535},{"time":"2014-12-10T10:00:00.000Z","val":1230.5423714379733},{"time":"2014-12-10T11:00:00.000Z","val":2680.6423191974077},{"time":"2014-12-10T12:00:00.000Z","val":5110.947544547842},{"time":"2014-12-10T13:00:00.000Z","val":2972.8870586764733},{"time":"2014-12-10T14:00:00.000Z","val":14244.08293326015},{"time":"2014-12-10T15:00:00.000Z","val":4154.984313596681},{"time":"2014-12-10T16:00:00.000Z","val":21274.571393023052},{"time":"2014-12-10T17:00:00.000Z","val":12827.169734152581},{"time":"2014-12-10T18:00:00.000Z","val":767.7136190974885},{"time":"2014-12-10T19:00:00.000Z","val":2.654181912484959},{"time":"2014-12-10T20:00:00.000Z","val":1.4527777777777775},{"time":"2014-12-10T21:00:00.000Z","val":659.5492520499265},{"time":"2014-12-10T22:00:00.000Z","val":547.1229701722958},{"time":"2014-12-10T23:00:00.000Z","val":1.6424999999999998},{"time" |
Apache reverse proxy configuration for MythWeb over HTTPS
import smbus | |
import getopt | |
import sys | |
from time import * | |
from time import gmtime, strftime | |
# TODO: Factor out all device_write calls to some PCF8574 specific module ... | |
# will be different with another io expander | |
# communication from expander to display: high nibble first, then low nibble |
#!/usr/bin/python | |
import Adafruit_BBIO.ADC as ADC | |
from time import sleep | |
import sys | |
# | |
# For the BeagleBone Black the input voltage has to be 0-1.8V | |
# The easiest way is with a voltage divider | |
# | |
# Ra Rb |