|
@@ -1,19 +1,23 @@
|
1
|
1
|
---
|
2
|
2
|
date: 2016-05-02
|
3
|
|
-strapline: Fun with SOAP and rrdtool
|
4
|
|
-thumbnail: /res/images/wemo/switch.thumb.jpg
|
5
|
3
|
title: Monitoring power draw with WeMo Insight Switches
|
6
|
|
-url: /2016/05/02/monitoring-power-with-wemo/
|
7
|
|
-aliases: ["/2016/05/02/monitoring-power-with-wemo.html"]
|
8
|
|
-image: /res/images/wemo/desk-1d.png
|
9
|
4
|
description: Using SOAP requests to get raw data, and rrdtool to produce graphs.
|
10
|
5
|
area: data analysis
|
|
6
|
+url: /2016/05/02/monitoring-power-with-wemo/
|
|
7
|
+aliases: ["/2016/05/02/monitoring-power-with-wemo.html"]
|
|
8
|
+
|
|
9
|
+resources:
|
|
10
|
+ - src: switch.jpg
|
|
11
|
+ name: A WeMo Insight Switch
|
|
12
|
+ params:
|
|
13
|
+ default: true
|
|
14
|
+ - src: desk-1d.png
|
|
15
|
+ name: Graph of power usage over a day
|
|
16
|
+ - src: desk-1w.png
|
|
17
|
+ name: Graph of power usage over a week
|
11
|
18
|
---
|
12
|
19
|
|
13
|
|
-<figure class="left">
|
14
|
|
- <img src="/res/images/wemo/switch.jpg" alt="WeMo Insight Switch">
|
15
|
|
- <figcaption>A WeMo Insight Switch</figcaption>
|
16
|
|
-</figure>
|
|
20
|
+{{< figure "left" "A WeMo Insight Switch" >}}
|
17
|
21
|
|
18
|
22
|
I recently picked up a couple of <a href="http://www.belkin.com/uk/p/P-F7C029/">Belkin's WeMo
|
19
|
23
|
Insight Switches</a> to monitor power usage for my PC and networking equipment. WeMo is Belkin's
|
|
@@ -190,14 +194,14 @@ The big block of `CDEF`/`CDEF`/`AREA` parameters creates a series of area plots
|
190
|
194
|
according to the power level. They're in descending order so the smaller areas are drawn on top of
|
191
|
195
|
the larger layers. This results in a graph that looks like this:
|
192
|
196
|
|
193
|
|
-<img src="/res/images/wemo/desk-1d.png" alt="Graph of power usage over a day">
|
|
197
|
+{{< img "Graph of power usage over a day" >}}
|
194
|
198
|
|
195
|
199
|
This graph shows the total power for all the things plugged in at my desk. You can see the idle
|
196
|
200
|
power draw is around 60W. When I'm using the computer it jumps up to around 130W, and when the
|
197
|
201
|
computer is under heavy load (playing games, for example) it goes up even further to the 200W mark.
|
198
|
202
|
With a couple of small tweaks to the rrdtool command, I also have a graph showing the entire week:
|
199
|
203
|
|
200
|
|
-<img src="/res/images/wemo/desk-1w.png" alt="Graph of power usage over a week">
|
|
204
|
+{{< img "Graph of power usage over a week" >}}
|
201
|
205
|
|
202
|
206
|
The two huge spikes near the start of the data are caused by a heater under my desk. They're also
|
203
|
207
|
one of the main reasons I chose to plot the graphs with a logarithmic scale. With a linear scale
|