Simplistic implementation of from/to for the map display

This is just a crude start - it doesn't appear to display all available
data until 'to', it also keeps calling update after all data has been
exhausted which is an utter waste.

But it's a start.

Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Add date and time picker to the energy UI

This is pretty rough still. Dates aren't initialized with the last value.
Hitting ESC while picking a date creates an invalid query string, lots of
other problems. But it mostly works.

This also adds the MIT licensed jquery and jquery-ui components so people
don't need to hunt and seek for them.

Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Don't create invalid URLs when exiting the datetime picker with ESC

We simply test that there is an actual date string returned.

Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Use the separator option to simplify the code

We can tell the datetimepicker which character to use between the date and
time component.

Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Use the existing to / from value as default when opening picker

This makes it easier to make small modifications to the range displayed.

Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Only reload the page if the date/time actually changed

For readability do the check in a function.

Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Massive simplification of the query parsing

All the splitting and re-assembly wasn't needed after all. The code gives
scary looking warnings on the JS console but with no issues for the actual
functionality.

Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Use the date picker in the map display as well

This simply copies the code over from the energy page.

Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Always show dates in boxes and add links to corresponding page

This makes the pages look more consistent (the start / end time are always
shown) and allows to switch between the two views (for the same start/end
range).

Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Add missing files

How embarrassing - these were needed by the previous commits already...

Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Add missing images

Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Comparisons can fail if we don't force the dates to be numbers

This caused the random "progress on the map gets stuck" error that I had
been seeing on and off (no idea, really, why this wasn't consistently
failing but worked when you moved the end time by at least ten minutes
past the start).

Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Merge pull request #9 from dirkhh/fromto

Added from/to time range for map display