dataMine 0.970

dataMine 0.970 has been put on apps.mios.com for MCV approval - hopefully this will be available tomorrow…

Changes in this version

Version 0.970

[ul][li]Added “animation” chart option[/li]
[li]Fixed bug with last entry in some charts (type 1 and 4)[/li]
[li]Require GUI refresh after completing configuration[/li]
[li]Added debug link to plugin window[/li]
[li]Added tooltip to show channels in saved graphs[/li]
[li]Stopped saved graph being displayed when pressing the button to delete it[/li]
[li]Added icons to saved graphs[/li]
[li]Added axis selection to saved graph window[/li]
[li]Fixed bug saving graphs with same name[/li]
[li]Added edit button to edit saved graphs[/li]
[li]Added function to delete old config backups when dataMine starts (keeps last 10)[/li]
[li]Added protection around debug print if no log entries are found[/li]
[li]Changed debug log search to case insensitive[/li][/ul]

The most obvious change in this version is some additional options when saving graphs - you can now specify an icon that will show up in the graph list, and you can specify what axis each channel is on (up to 4 axis).

I’ve also added a debug link to the plugin properties in UI5. If you have any problems, clicking on this link will produce a dump of the logfile with dataMine information, and provide a list of other useful debug information. If you have any problems, please click this and attach this when reporting the issue.

Cheers
Chris

Can’t wait! Not activated/updated yet…

No - MCV haven’t approved anything today (at least not of mine). I also have an update of SysMon awaiting approval since Friday…

Also, this will show as version 0.972, although internally it’s 0.970… There was a hicup when putting it on last night and I had to uprev it in apps…

Chris

Chris,

2 questions.

  1. Can I, and if so yes, see more than one month logging data back?

  2. How come that the “Device” channel counter keeps counting up? Although I haven’t got that amount of active channels logged?

No - at the moment, the plugin doesn’t return data if the graph duration is too long. My intention was to use historical data to speed up the return, but this might not be necessary as I’ve found Lua is pretty fast if you’re careful with the coding. I’ll have a look at this over the next week or two and see if I can change this.

I assume you mean the “Channels” counter in the main UI? This should be a count of the number of channels for which dataMine has configuration data for - which isn’t necessarily the same as the number of channels currently being logged. So, if you configure a channel, but then disable it, it will still be counted. If you don’t think the number stacks up, then I’d be happy to take a look at your config file, but dataMine counts the channels in the config when it starts, so it should be correct :wink:

Cheers
Chris

Yeees, 0.972 is out.
Looking forward to try it. If I can find out about the USB sticks.
Thanks Chris.
Regards CE

Just format a USB stick - on Linux if you have Linux, otherwise Windows. Give the USB a label - under Windows, you just type this into the USB stick properties - call it DATAMINE.
Plug the USB into Vera.
Install the App
Start the GUI - from the device properties, click on the dataMine link
When the GUI starts, select the UUID with the DATAMINE label. Click Ok.
Restart Lua
Refresh the browser once Lua has started.

Please let me know if there’s any problems with this…

Cheers
Chris

Hi Chris
Well,I installed the app and mounted the formatted (fat32)and named stick in the free slot. I was not presentet to the dialog, and I am in doubt where the data is logged. In advanced I do not see any stick.
I have only added one cannel until I know where it is going, but the graphing is working (FINE).
Will the dialog apear if I dismount the stick (or bouth) or can I write the name in the setmountUUID field.
Regards
CE

Hi Chris

DM updated OK as soon as I invoked a LUUP engine restart. DM then deleted a huge pile of config file backups, so that was good. The USB stick mounted with no problems (fortunately it’s always worked for me).

A couple of minor set backs. The data offsets, while OK in the config file, are still not being applied incorrectly to the chart variables ie they are still rotated by one. Likewise I’m not sure what the story is with the show a Month’s data button. I have ten files for two channels and 9 files for the remaining channel, so I have more than 2 months of data but the button is always greyed out.

A quick query - if I rename a device I assume I have to rename the data files to match? If so could the devices UUID be used in the file name together with the human friendly name. DM could read the file names and use the UUID section only for ID purposes. The file names would be rather long and of course it’s more work for yourself. Just wondering if you had any thoughts on this one?

Thanks for all your efforts.

Hmm - I’ll take a look at this. I’m pretty sure it was working a version or so back, so unless I broke it again, it should have been ok… I’ll check in the next day or three…

Yep - it’s just always greyed out at the moment. The next version will change this and add a year button, however there will be some caveats which I’ll explain more about when I release it…

No - you can rename the devices without doing anything. The archive name gets set when you first enable a device, so you can rename it etc all you like with no fear of screwing up the logging…

Cheers
Chris

[quote=“svaleb, post:8, topic:174430”]Hi Chris
Well,I installed the app and mounted the formatted (fat32)and named stick in the free slot. I was not presentet to the dialog, and I am in doubt where the data is logged. In advanced I do not see any stick.
I have only added one cannel until I know where it is going, but the graphing is working (FINE).
Will the dialog apear if I dismount the stick (or bouth) or can I write the name in the setmountUUID field.
Regards
CE[/quote]
Can you send me the debug info? There’s now a link in the device in UI5 - if you click on that it will create a page with a bunch of useful information for me. I can then see what’s up…

The link will be /port_3480/data_request?id=lr_dmCtrl&control=debug

I should add this only works if DM is running, but it sounds like this is the case…

Basically, the dialogue should have appeared if the USB stick was not mounted, so if you have a new install, it should have come up…

Cheers
Chris

I just did a really quick check, and it seemed to work… are you sure it’s not working? I just changed one channel in a graph by a large amount, and it seemed ok. I then did it with 2 channels, and that was also ok…

If you’re sure it’s busted, I’ll take a look at the code tomorrow…

Chris

I’m sure it’s busted - on three channels.

Hi Chris

Ok, I will try to send it to you tomorow, but I do not think there is anything wrong, but maybe I have made some kind of fault.
I had lately 967 installed but deleted it as I did not get the updates (Because there were none until now 972) I installed it and mounted the stick afterwards.
I do not know were to look for the new datamine stick.
I will be back.
CE

What happens if you change the graph type for a channel - does this also change ok, or does that also swap around. It should do exactly the same as the data offset…

One other possibility is that the GUI didn’t update. I’ve seen this happen - downloading the app from apps.mios.com can timeout, and in this case I’ve seen it where the old GUI can remain. Do you have the notification flags in the graph window?

Thanks
Chris

Hi Cris
The debug file as promised.

Regards
CE

Thanks - this is very useful… I found a problem with the initialisation sequence which I’ll take a look at. I suspect that at the moment your data is being stored in the main Vera file system - this isn’t a problem as you’re not logging a lot of data, but we should try and resolve this… I’ll sort out the issue with dataMine, however the debug file should also provide me a list of all the USB sticks currently attached to your Vera (at the time you ran the debug) and this shows nothing…

This information should have been between the lines…
-2-===========================================================================
-3-===========================================================================
… and currently there is nothing there, which tells me that there are no (valid?) USB sticks in your system - at least none that Vera knows about… This is further substantiated by the fdisk data, which is after the -4-=== line. This only shows the main file system being available.

So… I need to resolve this bug in the Lua file. I’ll try and do that today if I can, and I’ll upload it here. In the meantime, the USB stick issue needs to be resolved. You can use the debug information from dataMine to see if this is being seen by Vera when you plug it in, but for the moment, it’s not being recognised…

Cheers
Chris

Thanks Chris
I have 2 stics in vera.
I will pull the plug out, remount the sticks and start up agin.
Regards
CE

Hi Chris
This one seems to have both sticks.(I think).

it took some time, I lost contact with wera and it was loading…loading…loading…
Had to restart it several times.
I still do not get a message about witch stick to use. Can I put the labele name into advanced ?
Or would you sugest an other solution.

Thanks for your help
CE

Hi,
Vera is still only seeing one of the USB sticks. Now you have

-2-===========================================================================
/dev/sda1: LABEL="MiOS" UUID="5ec0d40e-eee0-4df8-bf76-eae8b946feeb" 
-3-=========================================================================== 

So, the stick that Vera is seeing if the one used for USB logging - since it has the MiOS label I assume this to be the case…

I don’t understand why Vera wouldn’t see the USB. The above data is coming from the “blkid” command - this should list all block devices (basically USB sticks on Vera). Maybe there’s more I don’t understand about this yet, or maybe there’s an issue with the other stick. It might be worth reformatting it and trying again if just unplugging it and plugging in doesn’t work…

Cheers
Chris