Skip to content

Instantly share code, notes, and snippets.

View philpownall's full-sized avatar

Phil P philpownall

  • Canada
View GitHub Profile
@philpownall
philpownall / MeterMaid.html
Created December 20, 2016 17:08
Meter Maid - a simple web page to display Utility metrics and usage graphs
html>
<head>
<title>Meter Maid</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="style.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.1.1/jquery.min.js"></script>
<script src="MeterMaid.js"></script>
</head>
<body>
@philpownall
philpownall / MeterMaid.js
Created December 20, 2016 17:11
Meter Maid - a simple web page to display Utility metrics and usage graphs
//
var RogersClickCount = 0;
var HydroClickCount = 0;
var mydate = 0;
var dayusage = 0;
var day$ = 0;
var monthusage = 0;
var month$ = 0;
var yearusage = 0;
var year$ = 0;
@philpownall
philpownall / Hydro.py
Created December 20, 2016 17:35
Hydro.py Selenium Webdriver script to extract usage data and graphs from Hydro One
# -*- coding: utf-8 -*-
from selenium import webdriver
from selenium.webdriver.common.by import By
from selenium.webdriver.common.keys import Keys
from selenium.webdriver.support.ui import Select
from selenium.common.exceptions import NoSuchElementException
from selenium.common.exceptions import NoAlertPresentException
import unittest, time, re
class Hydro(unittest.TestCase):
#!/bin/bash
#set -x #echo on
echo "Rogersmogrify run at $(date)"
#
# Mogrify script for MeterMaid
# Crop the interesting bits out of the image files
# downloaded from the Rogers website by myRogers.py
# and copy them to the server directory for MeterMaid
# Sorry for the magic numbers..
#