14

Click here to load reader

WattDepot 2.0 presentation

Embed Size (px)

DESCRIPTION

This is a presentation I gave to the University of Hawaii ICS 691 class on changes in WattDepot since the publication of our SmartGridComm paper, and ideas for class projects around WattDepot.

Citation preview

Page 1: WattDepot 2.0 presentation

(1)

ICS 691:WattDepot 2.0 and

Project Opportunities

Robert Brewer

Collaborative Software Development Laboratory

Dept of Information and Computer Sciences

University of Hawaii at Manoa

http://www.kukuicup.org/

Page 2: WattDepot 2.0 presentation

(2)

Quickie Quiz!

What are the 3 architectural components of WattDepot?

Page 3: WattDepot 2.0 presentation

(3)

Quickie Quiz Answer

Devices MetersWattDepotSensors

WattDepotServer

WattDepotClients

HTTPHTTP

Page 4: WattDepot 2.0 presentation

(4)

WattDepot 2.0

Paper was written in early 2010• 11 releases since then• 2 years is a long time

Outline of talk• What’s new since paper• Exciting project opportunities!

Credit• Andrea Connell made WattDepot 2.0 happen

Page 5: WattDepot 2.0 presentation

(5)

New for Developers

Source control• svn -> git

Build system• Ant -> Maven

Many new library updates• Restlet 2.1RC5

Page 6: WattDepot 2.0 presentation

(6)

New for Client Developers

REST API• Fully implemented (finally)• New conveniences for client developers

Google visualization integrated into REST API• Now listens on just 1 port

Page 7: WattDepot 2.0 presentation

(7)

New for End Users (Server)

New storage backends• BerkeleyDB (George Lee)• PostgreSQL (Andrea Connell)

Ephemeral data storage• Cache high frequency data• Persist to disk at lower frequency

Cloud-enabled• Can (almost) be run on Heroku

Load tested• Though more can be done

Page 8: WattDepot 2.0 presentation

(8)

New for End Users (Client)

New sensors• Shark 200S meter• eGauge meter

Sensor improvements• Multithreaded sensors• Can “embed” sensors in server process

Page 9: WattDepot 2.0 presentation

(9)

Project Ideas

Page 10: WattDepot 2.0 presentation

(10)

WattDepot Apps 2.0

WattDepot lacks good UI• Timeline & monitor viz in separate app• No CRUD for users & sources!• Poor user experience

Create a Single Page Application• Serve up static HTML/JS/CSS from WD server• Now it’s built in

Features• Timeline, monitor viz• Also CRUD for users, sources, sensordata

Page 11: WattDepot 2.0 presentation

(11)

WattDepot in the Cloud

Technically works on Heroku

Many practical issues• Configuring sensors• Port problem

Frontend tightly coupled to backend• Can’t just ramp up frontend processes

Make WattDepot cloudirific• Solve practical issues• Decouple frontend from backend• Maybe explore other cloud providers?

Page 12: WattDepot 2.0 presentation

(12)

Supercharge WattDepot

Performance adequate for Kukui Cup• Much room for improvement• Many parameters & layers to tweak

Characterize current performance• Different backends, paramters, local vs cloud

Profile system• Where are the bottlenecks

Supercharge!• Fix bottlenecks• Measure performance improvement

Page 13: WattDepot 2.0 presentation

(13)

Environmental Data Support

Currently focused on energy• What about water use?• Environmental data: temp, humidity, wind

Support additional data types• How to generalize REST API?• What value add does WD provide?• What does this mean for backends?

Page 14: WattDepot 2.0 presentation

(14)

PostgreSQL Improvements

Implement properties as hstore• Arbitrary key-value storage in Postgres