dataMine 0.974

I hope to get 0.974 into the apps store over the weekend. This has quite a few changes - mostly minor, but…

The first point to note is that I’ve upgraded to the latest versions of the libraries I’m using. This fixes some issues that I’ve been waiting for for a while - eg. the configuration options for the graph now supports graph type names rather than having to type in numbers…

This version adds a day/night indicator. The plugin logs the sunrise / sunset times, and then there’s a button on the toolbar that will show night-time bands in the graph. Note that this builds up the times over time - it doesn’t calculate this on the fly, so it doesn’t display old data.

The other significant change is the graph screen configuration. I’ve added the ability to hide the graph config window (the channel list etc). The first picture attached shows a new button in the slider bar - clicking on this hides the channel list etc to the left and you’ll see a window as in the second picture. To temporarily display it again, click on the bar on the left - when you then select a graph, this should hide again, and you’ll have the full window space available for graphs.

On mobile devices, this defaults to collapsed to provide the maximum space on the smaller screens. I welcome feedback on how this works - some further tuning may be needed…

The full changelog is below.

Version 0.974

[ul][li]Removed function to retreive SysInfo - using luup variables instead[/li]
[li]Modified startup to split readConfig into separate function[/li]
[li]Added feature to use last backup file if main config file read fails[/li]
[li]Check if USB mount has changed. If so, unmount prior to mounting[/li]
[li]Cope with blank, or non CSV formatted lines in data[/li]
[li]Added reprocessing of data if alpha-lookup fails getting graph data[/li]
[li]Fixed some formatting errors in index.html[/li]
[li]Added sunrise/sunset logging[/li]
[li]Added night bands in plot and button to activate[/li]
[li]Fixed bug where notification updates were being requested too often[/li]
[li]Upgrade library to Ext4.2[/li]
[li]Upgrade graph library to 3.0 beta[/li]
[li]Add propper names to configuration property sheet[/li]
[li]Add dropdown lists in configuration to graph type, energy category[/li]
[li]Allow collapsible window in graph screen[/li]
[li]Default collapsible window to collapsed on mobile device[/li]
[li]Energy donut problem with 0W labels fixed[/li][/ul]

Cheers
Chris

Hi Chris, after update my icons are gone… see attached…

UPDATE: In chrome it’s wrong, in iexplore its ok.

Thanks - Chrome and IE both ok here… This looks like a CSS problem though - I think the icons have wrapped onto the next line (which isn’t there).

How wide is your screen? Does resizing the window make any difference? Or, does clicking on the little arrow (circled in red in the picture) make any difference?

I’m travelling for a couple of days, so won’t be home until tomorrow night to look at this (sorry).

Cheers
Chris

Ok - “good news” - I have this problem on Firefox here, so hopefully I can find a solution…

@SanderL,
Try refreshing your browser - it fixed my problem on Firefox. The issue may be that the CSS files have changed with the upgraded libraries, but if the browser has cached the files from the old version, this may cause bad screen formatting…

Let me know if that works…

Cheers
Chris

My dataMine plugin updated to 0.974 today. It then failed on startup. Error was:

LuaInterface::CallFunction_Startup-1 device 266 function initialise failed [string "-- dataMine Plugin for Vera..."]:754: attempt to index field '?' (a nil value) LuImplementation::StartLua running startup code for 266 I_DataMine1.xml failed
Cause is that my Vera got stuck and the complete dataMine directory was empty. So it might have failed on previous versions as well (but started auto-update after the reboot). However, the code should be able to handle this case.

Config is:
SetDataDirectory: /tmp/log/cmh/dataMine
SetManualMount: 1

After putting a new (PC backup) ‘dataMinConfig.json’ in the directory the plugin starts up normally.