DataMine 2.0

I’ve had a dig around the code used to mount USBs as well as having a look at a couple of people’s log files and I’ve found something quirky! My (limited) understanding is that to mount a USB drive the following commands would be needed:
[tt]
mkdir /dataMine
mount /dev/sda1 /dataMine
[/tt]
however, in the dataMine code it seems to be executing the two commands in the reverse order, meaning it is bound to fail on the first attempt. It is also only creating the directory if the mount was successful (which it won’t have been) or no USB stick is found. No wonder people are struggling!

I’ve coded a quick fix. Can you please try uploading the attached file to your LUA directory - under Apps/Develop Apps/Luup Files in the Vera UI. This should create the mount directory before attempting to mount the USB stick.

I have a problem with DataMine2 (1.895).
When clicking on the link ?dataMine graphing page? or ?DataMine debug page?
I get the message: ERROR:Module not found:port_3480
I running UI7 on a Vera3

(When I was running UI5 some month ago I used DataMine, and it?s a great app so I have been missing the ability to use it)

Great - about time this was looked into. Note that a firmware upgrade may delete the directory. Also sometimes the stick just unmounts mysteriously in the middle of the night. You find data is missing in the morning and a Vera restart is needed. Anyone seen that happen?. Likewise if a data file can’t be found or opened (as per when the stick is unmounted) then perhaps a remount should be tried automatically?

Any how, under all circumstances the existence of the directory/mountpoint should be checked for before mounting.

http://forum.micasaverde.com/index.php/topic,7750.825.html.

If having troubles please post the output of the “dataMine debug page”. There is the link for that provided by the plugin.

I’ve spent some time updating the dataMine user guide to include all the new features in dataMine2. I’d love to put it somewhere people can download it but it’s too big to attach here (~800KB). Any suggestions anyone?

[quote=“tyfoon, post:19, topic:190421”]Unfortunately I’m not having a smooth transition.

I had v1 on a UI5 Vera 3. USB logging ON. I have bene succesfully logging 32 variables for over 20 months…

What I did:

[ul][li]Uninstalled v1
Installed v2 from appstore
After some refresh etc. I could open the extra TAB as usual. Got a pop up with the the text to configure the USB drive (to my surprise). As recommend on the pop up restarted vera again. But same thing. p.s. I get the pull down menu with the option to chose a USB drive.
Stopped Vera logging on USB
Restarted etc. still the same pop up
Thought; ok , lets then start fresh…and selected the available USB drive
Restart etc.
Still keep getting the pop up even tough selected USB and restarted and refreshed etc.
Uninstalled v2
Installed v1
Now getting the same issue as above with v1
[/li]
[li][/li][/ul]

Any advice?[/quote]

I got the same as @tyfoon hen I installed V1. Good news for me, it did not show the loading icon for ever. But I can not get past the USB part. I will uninstall V1 and install V2 tonight, see how that goes.

You need to make sure your /dataMine/ directory is getting created. Until the next version gets approved in the marketplace, here are a few methods:

  1. Install the L_DataMine2.lua file attached a few posts above and restart
  2. Unplug your USB stick, restart Vera, wait for all start-up code to complete, replug the USB stick in and restart again.
  3. create the directory manually using winSCP or PuTTY or similar (requires admin password)

Also as @a-lurker mentions it would be useful to post the output of the dataMine debug page: http://vera-ip/port_3480/data_request?id=lr_dmCtrl&control=debug

I installed DataMine 2.0, but still can not get past the USB part. I logon and created the mount point and refresh, still not there

Debug output below:

-1-=========================================================================== -2-=========================================================================== -3-=========================================================================== -4-=========================================================================== -5-=========================================================================== SetDataDirectory-/dataMine/ SetMountUUID - SetMountPoint - SetManualMount -0 -6-=========================================================================== {"dbVersion":2,"Events":{"count":0,"last":0},"Version":"1.895","Variables":[],"Graphs":[],"guiConfig":[],"nextId":1} -7-===========================================================================

Attached screen shots of mount setup

It seems that actually that your USB mount worked fine. More of a worry for me is the lack of information in your debug output. This should show:

  1. Output of: cat /var/log/cmh/LuaUPnP.log | grep -i dataMine
  2. Output of: blkid
  3. Output of: mount
  4. Output of: fdisk
  5. Values of 4 device variables
  6. Json encoded configuration data
  7. End marker

We know that the mount command works on your machine so the question is why the output is not showing up in the debug. Could you log onto your box, type and run lua:

[tt]# lua
Lua 5.1.4 Copyright (C) 1994-2008 Lua.org, PUC-Rio (double int32)[/tt]

then execute the following commands

[tt]os.execute(“cat /var/log/cmh/LuaUPnP.log | grep -i dataMine”)
tmpFilename = “/tmp/dataMine.tmp”
os.execute(“blkid >”…tmpFilename)
fTmp=io.open(tmpFilename,“r”)
line = fTmp:read(“*all”)
io.close(fTmp)
print(line)[/tt]

and let us know what you get back? Thanks

The latest version of dataMine2 (1.896) has now been released in the marketplace - it includes a small fix to ensure the /dataMine/ directory has been created before attempting to mount a USB stick to it - hopefully it should make the mounting process simpler for a number of people :slight_smile:

Has anyone tested out the remote access feature of dataMine2 yet? I’m pretty sure it should all work on UI5 as I have tested, that but I have not been able to test it out on UI7 which I understand has a different authentication system. Below is a snippet from the user guide I am putting together…

The dataMine plugin presents a simple device in the UI5 dashboard. This just shows how many channels have been configured in all. The main properties tab presents further information about disk space and links to the web GUI and debug page which are outside of the UI5 interface. Note that the web GUI can be accessed directly from http://vera-ip/dm on your local network or also indirectly via http://vera-ip/port_3480/data_request?id=lr_dmPage ? accessing the GUI this way will be slower than the direct route as all files have to be processed to be compatible with remote access.

[center]Figure 3. dataMine Properties Page[/center]

The best way to access the web GUI remotely is to log-in to the Micasaverde servers (you will need to register first). Login here: MiOS (which sets a special authentication cookie) and navigate to your UI5 web portal then click the above dataMine graphing page link. Alternatively the GUI can be accessed remotely via a URL of the format:

https://active_server/username/password/serialNumber/data_request?id=lr_dmPage

e.g. https://fwd8.mios.com/username/password/12345678/data_request?id=lr_dmPage

The request must be https (and not http) which will mean that your username and password will be encrypted during transmission. The required values for active_server and serialNumber can be found via the following request (whilst local to your Vera box):

https://sta1.mios.com/locator_json.php


Is anyone brave enough to test it out on UI7 or explain to me how the remote access might work on UI7?

Thanks

I updated today to version 1.896, to see if that solved the problem.

If I loggin remotly, I can?t acces Datamine, I get the message ERROR:Module not found:port_3480
https://vera-eu-oem-relay11.mios.com/port_3480/data_request?id=lr_dmCtrl&control=debug.
I get this: “ERROR:Module not found:port_3480”

If I loggin in the network, locally I can start DataMine but when I chose the USB drive, I get the message ?Please restart Luup (press the Reload button in UI5). Wait a moment before the refreshing the GUI.? And this appears over and over again.

http://vera ip/port_3480/data_request?id=lr_dmCtrl&control=debug

-1-=========================================================================== 02 01/08/16 14:41:52.411 e[33;1mJobHandler_LuaUPnP::FetchMissingFiles need to download D_DataMine2.jsone[0m <0x2b716000> 02 01/08/16 14:41:52.412 e[33;1mJobHandler_LuaUPnP::m_sMissingFile_set D_DataMine2.jsone[0m <0x2b716000> 02 01/08/16 14:41:52.413 e[33;1mJobHandler_LuaUPnP::FetchMissingFiles need to download D_DataMine2.xmle[0m <0x2b716000> 02 01/08/16 14:41:52.413 e[33;1mJobHandler_LuaUPnP::m_sMissingFile_set D_DataMine2.xmle[0m <0x2b716000> 02 01/08/16 14:41:52.414 e[33;1mJobHandler_LuaUPnP::FetchMissingFiles need to download I_DataMine2.xmle[0m <0x2b716000> 02 01/08/16 14:41:52.415 e[33;1mJobHandler_LuaUPnP::m_sMissingFile_set I_DataMine2.xmle[0m <0x2b716000> 02 01/08/16 14:41:52.416 e[33;1mJobHandler_LuaUPnP::FetchMissingFiles need to download L_DataMine2.luae[0m <0x2b716000> 02 01/08/16 14:41:52.416 e[33;1mJobHandler_LuaUPnP::m_sMissingFile_set L_DataMine2.luae[0m <0x2b716000> 02 01/08/16 14:41:52.418 e[33;1mJobHandler_LuaUPnP::FetchMissingFiles need to download S_DataMine2.xmle[0m <0x2b716000> 02 01/08/16 14:41:52.418 e[33;1mJobHandler_LuaUPnP::m_sMissingFile_set S_DataMine2.xmle[0m <0x2b716000> 02 01/08/16 14:41:52.419 e[33;1mJobHandler_LuaUPnP::FetchMissingFiles need to download /../../www/dm/dataMine2Web.tar.gze[0m <0x2b716000> 02 01/08/16 14:41:52.420 e[33;1mJobHandler_LuaUPnP::m_sMissingFile_set /../../www/dm/dataMine2Web.tar.gze[0m <0x2b716000> 01 01/08/16 14:41:52.507 e[31;1mDevice_LuaUPnP::LoadDeviceDoc can't load /etc/cmh-lu//D_DataMine2.xmle[0m <0x2b716000> 02 01/08/16 14:41:52.508 e[33;1mJobHandler_LuaUPnP::m_sMissingFile_set /etc/cmh-lu//D_DataMine2.xmle[0m <0x2b716000> 02 01/08/16 14:41:52.508 e[33;1mJobHandler_LuaUPnP::CreateDevice_LuaUPnP failed to load 145/D_DataMine2.xml so device 145 is offline while waiting for download the filee[0m <0x2b716000> 01 01/08/16 14:41:54.005 e[31;1mJobHandler_LuaUPnP::CreateLuaInterfaces can't load plugin /etc/cmh-lu//L_DataMine2.luae[0m <0x2b716000> 09 01/08/16 14:41:54.503 JobHandler_LuaUPnP::Run device 145 room 0 type urn:schemas-cd-jackson-com:device:DataMine:1 cat 0:-1 id parent 0/0xd27948 upnp: 0 plugin:8526 pnp:0 mac: ip: <0x2b716000> 03 01/08/16 14:41:54.549 JobHandler_LuaUPnP::Run ready 32 devices oem:1 skin:1-mios installation 30107969 missing /etc/cmh-lu//D_DataMine2.xml version *1.7.730* allow_evt: 1 allow_ud: 1 upnp 0 netpnp: 1 reprovision: 0 secure: 0 tz:-3600 tnow:1452260514 dst: 0 gmt:3600 tz:CET / CEST fahr:0 changed: 0 pMem 0xf99000 start 12783616 diff: 3571712 <0x2b716000> 09 01/08/16 14:42:10.599 JobHandler_LuaUPnP::Run device 145 dataMine 2 graphing and logging plugin room 0 type urn:schemas-cd-jackson-com:device:DataMine:1 cat 0:-1 id parent 0/0xcb8470 upnp: 0 plugin:8526 pnp:0 mac: ip: <0x2b213000> 50 01/08/16 14:42:17.994 luup_log:145: dataMine: Initialising dataMine System (1.896) <0x2bb64680> 06 01/08/16 14:42:17.994 Device_Variable::m_szValue_set device: 145 service: urn:cd-jackson-com:serviceId:DataMine1 variable: e[35;1merrorStatuse[0m was: EMPTY now: false #hooks: 0 upnp: 0 skip: 0 v:(nil)/NONE duplicate:0 <0x2bb64680> 06 01/08/16 14:42:17.995 Device_Variable::m_szValue_set device: 145 service: urn:cd-jackson-com:serviceId:DataMine1 variable: e[35;1mSetDataDirectorye[0m was: EMPTY now: /dataMine/ #hooks: 0 upnp: 0 skip: 0 v:(nil)/NONE duplicate:0 <0x2bb64680> 06 01/08/16 14:42:17.996 Device_Variable::m_szValue_set device: 145 service: urn:cd-jackson-com:serviceId:DataMine1 variable: e[35;1mSetMountUUIDe[0m was: EMPTY now: #hooks: 0 upnp: 0 skip: 0 v:(nil)/NONE duplicate:0 <0x2bb64680> 06 01/08/16 14:42:17.997 Device_Variable::m_szValue_set device: 145 service: urn:cd-jackson-com:serviceId:DataMine1 variable: e[35;1mSetMountPointe[0m was: EMPTY now: #hooks: 0 upnp: 0 skip: 0 v:(nil)/NONE duplicate:0 <0x2bb64680> 06 01/08/16 14:42:17.998 Device_Variable::m_szValue_set device: 145 service: urn:cd-jackson-com:serviceId:DataMine1 variable: e[35;1mSetMountOptionse[0m was: EMPTY now: #hooks: 0 upnp: 0 skip: 0 v:(nil)/NONE duplicate:0 <0x2bb64680> 06 01/08/16 14:42:17.999 Device_Variable::m_szValue_set device: 145 service: urn:cd-jackson-com:serviceId:DataMine1 variable: e[35;1mSetManualMounte[0m was: EMPTY now: 0 #hooks: 0 upnp: 0 skip: 0 v:(nil)/NONE duplicate:0 <0x2bb64680> 06 01/08/16 14:42:18.000 Device_Variable::m_szValue_set device: 145 service: urn:cd-jackson-com:serviceId:DataMine1 variable: e[35;1mSetTimeoutPeriode[0m was: EMPTY now: 12 #hooks: 0 upnp: 0 skip: 0 v:(nil)/NONE duplicate:0 <0x2bb64680> 06 01/08/16 14:42:18.001 Device_Variable::m_szValue_set device: 145 service: urn:cd-jackson-com:serviceId:DataMine1 variable: e[35;1mSetHistoryEnablee[0m was: EMPTY now: 1 #hooks: 0 upnp: 0 skip: 0 v:(nil)/NONE duplicate:0 <0x2bb64680> 06 01/08/16 14:42:18.001 Device_Variable::m_szValue_set device: 145 service: urn:cd-jackson-com:serviceId:DataMine1 variable: e[35;1mSetUseBackupe[0m was: EMPTY now: 1 #hooks: 0 upnp: 0 skip: 0 v:(nil)/NONE duplicate:0 <0x2bb64680> 06 01/08/16 14:42:18.002 Device_Variable::m_szValue_set device: 145 service: urn:cd-jackson-com:serviceId:DataMine1 variable: e[35;1mSetEventsEnablee[0m was: EMPTY now: 1 #hooks: 0 upnp: 0 skip: 0 v:(nil)/NONE duplicate:0 <0x2bb64680> 06 01/08/16 14:42:18.003 Device_Variable::m_szValue_set device: 145 service: urn:cd-jackson-com:serviceId:DataMine1 variable: e[35;1mChannelCnte[0m was: EMPTY now: 0 #hooks: 0 upnp: 0 skip: 0 v:0xd16170/NONE duplicate:0 <0x2bb64680> 06 01/08/16 14:42:18.004 Device_Variable::m_szValue_set device: 145 service: urn:cd-jackson-com:serviceId:DataMine1 variable: e[35;1mChannelRece[0m was: EMPTY now: 0 #hooks: 0 upnp: 0 skip: 0 v:(nil)/NONE duplicate:0 <0x2bb64680> 50 01/08/16 14:42:18.005 luup_log:145: dataMine: Installing update of dataMine web application <0x2bb64680> 50 01/08/16 14:42:23.260 luup_log:145: dataMine: ERROR: Startup state is 'uninitialised'! <0x2bb64680> 06 01/08/16 14:42:23.261 Device_Variable::m_szValue_set device: 145 service: urn:cd-jackson-com:serviceId:DataMine1 variable: e[35;1mChannelCnte[0m was: 0 now: 0 #hooks: 0 upnp: 0 skip: 0 v:0xd16170/NONE duplicate:1 <0x2bb64680> 06 01/08/16 14:42:23.261 Device_Variable::m_szValue_set device: 145 service: urn:cd-jackson-com:serviceId:DataMine1 variable: e[35;1mChannelRece[0m was: 0 now: 0 #hooks: 0 upnp: 0 skip: 0 v:(nil)/NONE duplicate:1 <0x2bb64680> 50 01/08/16 14:42:23.262 luup_log:145: dataMine: Reinitialising configuration structure <0x2bb64680> 50 01/08/16 14:42:23.263 luup_log:145: dataMine: Startup complete <0x2bb64680> 50 01/08/16 14:42:38.169 luup_log:145: dataMine: Delete backups complete - deleted 0 of 10 files <0x2c564680> 06 01/08/16 14:42:38.187 Device_Variable::m_szValue_set device: 145 service: urn:cd-jackson-com:serviceId:DataMine1 variable: e[35;1mdiskTotale[0m was: EMPTY now: 11264 #hooks: 0 upnp: 0 skip: 0 v:(nil)/NONE duplicate:0 <0x2c564680> 06 01/08/16 14:42:38.188 Device_Variable::m_szValue_set device: 145 service: urn:cd-jackson-com:serviceId:DataMine1 variable: e[35;1mdiskUsede[0m was: EMPTY now: 9444 #hooks: 0 upnp: 0 skip: 0 v:(nil)/NONE duplicate:0 <0x2c564680> 06 01/08/16 14:42:38.189 Device_Variable::m_szValue_set device: 145 service: urn:cd-jackson-com:serviceId:DataMine1 variable: e[35;1mdiskFreee[0m was: EMPTY now: 1820 #hooks: 0 upnp: 0 skip: 0 v:(nil)/NONE duplicate:0 <0x2c564680> 06 01/08/16 14:42:38.190 Device_Variable::m_szValue_set device: 145 service: urn:cd-jackson-com:serviceId:DataMine1 variable: e[35;1mdiskUsedPcnte[0m was: EMPTY now: 84 #hooks: 0 upnp: 0 skip: 0 v:(nil)/NONE duplicate:0 <0x2c564680> 09 01/08/16 14:48:16.749 JobHandler_LuaUPnP::Run device 145 dataMine 2 graphing and logging plugin room 0 type urn:schemas-cd-jackson-com:device:DataMine:1 cat 0:-1 id parent 0/0xd49d60 upnp: 0 plugin:8526 pnp:0 mac: ip: <0x2b2c8000> 09 01/08/16 14:48:29.494 JobHandler_LuaUPnP::Run device 145 dataMine 2 graphing and logging plugin room 0 type urn:schemas-cd-jackson-com:device:DataMine:1 cat 0:-1 id parent 0/0x81a8d8 upnp: 0 plugin:8526 pnp:0 mac: ip: <0x2ad94000> 50 01/08/16 14:48:37.146 luup_log:145: dataMine: Initialising dataMine System (1.896) <0x2b6e4680> 06 01/08/16 14:48:37.146 Device_Variable::m_szValue_set device: 145 service: urn:cd-jackson-com:serviceId:DataMine1 variable: e[35;1merrorStatuse[0m was: false now: false #hooks: 0 upnp: 0 skip: 0 v:(nil)/NONE duplicate:1 <0x2b6e4680> 06 01/08/16 14:48:37.148 Device_Variable::m_szValue_set device: 145 service: urn:cd-jackson-com:serviceId:DataMine1 variable: e[35;1mChannelCnte[0m was: 0 now: 0 #hooks: 0 upnp: 0 skip: 0 v:0x87a2e8/NONE duplicate:1 <0x2b6e4680> 06 01/08/16 14:48:37.148 Device_Variable::m_szValue_set device: 145 service: urn:cd-jackson-com:serviceId:DataMine1 variable: e[35;1mChannelRece[0m was: 0 now: 0 #hooks: 0 upnp: 0 skip: 0 v:(nil)/NONE duplicate:1 <0x2b6e4680> 50 01/08/16 14:48:37.159 luup_log:145: dataMine: ERROR: Startup state is 'uninitialised'! <0x2b6e4680> 06 01/08/16 14:48:37.160 Device_Variable::m_szValue_set device: 145 service: urn:cd-jackson-com:serviceId:DataMine1 variable: e[35;1mChannelCnte[0m was: 0 now: 0 #hooks: 0 upnp: 0 skip: 0 v:0x87a2e8/NONE duplicate:1 <0x2b6e4680> 06 01/08/16 14:48:37.161 Device_Variable::m_szValue_set device: 145 service: urn:cd-jackson-com:serviceId:DataMine1 variable: e[35;1mChannelRece[0m was: 0 now: 0 #hooks: 0 upnp: 0 skip: 0 v:(nil)/NONE duplicate:1 <0x2b6e4680> 50 01/08/16 14:48:37.161 luup_log:145: dataMine: Reinitialising configuration structure <0x2b6e4680> 50 01/08/16 14:48:37.163 luup_log:145: dataMine: Startup complete <0x2b6e4680> 50 01/08/16 14:48:52.186 luup_log:145: dataMine: Delete backups complete - deleted 0 of 10 files <0x2c0e4680> 06 01/08/16 14:48:52.206 Device_Variable::m_szValue_set device: 145 service: urn:cd-jackson-com:serviceId:DataMine1 variable: e[35;1mdiskTotale[0m was: 11264 now: 11264 #hooks: 0 upnp: 0 skip: 0 v:(nil)/NONE duplicate:1 <0x2c0e4680> 06 01/08/16 14:48:52.206 Device_Variable::m_szValue_set device: 145 service: urn:cd-jackson-com:serviceId:DataMine1 variable: e[35;1mdiskUsede[0m was: 9444 now: 9448 #hooks: 0 upnp: 0 skip: 0 v:(nil)/NONE duplicate:0 <0x2c0e4680> 06 01/08/16 14:48:52.207 Device_Variable::m_szValue_set device: 145 service: urn:cd-jackson-com:serviceId:DataMine1 variable: e[35;1mdiskFreee[0m was: 1820 now: 1816 #hooks: 0 upnp: 0 skip: 0 v:(nil)/NONE duplicate:0 <0x2c0e4680> 06 01/08/16 14:48:52.208 Device_Variable::m_szValue_set device: 145 service: urn:cd-jackson-com:serviceId:DataMine1 variable: e[35;1mdiskUsedPcnte[0m was: 84 now: 84 #hooks: 0 upnp: 0 skip: 0 v:(nil)/NONE duplicate:1 <0x2c0e4680> 09 01/08/16 14:51:44.397 JobHandler_LuaUPnP::Run device 145 dataMine 2 graphing and logging plugin room 0 type urn:schemas-cd-jackson-com:device:DataMine:1 cat 0:-1 id parent 0/0x961fd8 upnp: 0 plugin:8526 pnp:0 mac: ip: <0x2b66a000> 50 01/08/16 14:51:52.984 luup_log:145: dataMine: Initialising dataMine System (1.896) <0x2bfba680> 06 01/08/16 14:51:52.984 Device_Variable::m_szValue_set device: 145 service: urn:cd-jackson-com:serviceId:DataMine1 variable: e[35;1merrorStatuse[0m was: false now: false #hooks: 0 upnp: 0 skip: 0 v:(nil)/NONE duplicate:1 <0x2bfba680> 06 01/08/16 14:51:52.985 Device_Variable::m_szValue_set device: 145 service: urn:cd-jackson-com:serviceId:DataMine1 variable: e[35;1mChannelCnte[0m was: 0 now: 0 #hooks: 0 upnp: 0 skip: 0 v:0x9c1a00/NONE duplicate:1 <0x2bfba680> 06 01/08/16 14:51:52.986 Device_Variable::m_szValue_set device: 145 service: urn:cd-jackson-com:serviceId:DataMine1 variable: e[35;1mChannelRece[0m was: 0 now: 0 #hooks: 0 upnp: 0 skip: 0 v:(nil)/NONE duplicate:1 <0x2bfba680> 50 01/08/16 14:51:53.022 luup_log:145: dataMine: ERROR: Startup state is 'uninitialised'! <0x2bfba680> 06 01/08/16 14:51:53.022 Device_Variable::m_szValue_set device: 145 service: urn:cd-jackson-com:serviceId:DataMine1 variable: e[35;1mChannelCnte[0m was: 0 now: 0 #hooks: 0 upnp: 0 skip: 0 v:0x9c1a00/NONE duplicate:1 <0x2bfba680> 06 01/08/16 14:51:53.023 Device_Variable::m_szValue_set device: 145 service: urn:cd-jackson-com:serviceId:DataMine1 variable: e[35;1mChannelRece[0m was: 0 now: 0 #hooks: 0 upnp: 0 skip: 0 v:(nil)/NONE duplicate:1 <0x2bfba680> 50 01/08/16 14:51:53.024 luup_log:145: dataMine: Reinitialising configuration structure <0x2bfba680> 50 01/08/16 14:51:53.025 luup_log:145: dataMine: Startup complete <0x2bfba680> 50 01/08/16 14:52:08.253 luup_log:145: dataMine: Delete backups complete - deleted 0 of 10 files <0x2c9ba680> 06 01/08/16 14:52:08.282 Device_Variable::m_szValue_set device: 145 service: urn:cd-jackson-com:serviceId:DataMine1 variable: e[35;1mdiskTotale[0m was: 11264 now: 11264 #hooks: 0 upnp: 0 skip: 0 v:(nil)/NONE duplicate:1 <0x2c9ba680> 06 01/08/16 14:52:08.283 Device_Variable::m_szValue_set device: 145 service: urn:cd-jackson-com:serviceId:DataMine1 variable: e[35;1mdiskUsede[0m was: 9448 now: 9604 #hooks: 0 upnp: 0 skip: 0 v:(nil)/NONE duplicate:0 <0x2c9ba680> 06 01/08/16 14:52:08.284 Device_Variable::m_szValue_set device: 145 service: urn:cd-jackson-com:serviceId:DataMine1 variable: e[35;1mdiskFreee[0m was: 1816 now: 1660 #hooks: 0 upnp: 0 skip: 0 v:(nil)/NONE duplicate:0 <0x2c9ba680> 06 01/08/16 14:52:08.285 Device_Variable::m_szValue_set device: 145 service: urn:cd-jackson-com:serviceId:DataMine1 variable: e[35;1mdiskUsedPcnte[0m was: 84 now: 85 #hooks: 0 upnp: 0 skip: 0 v:(nil)/NONE duplicate:0 <0x2c9ba680> 09 01/08/16 14:52:20.973 JobHandler_LuaUPnP::Run device 145 dataMine 2 graphing and logging plugin room 0 type urn:schemas-cd-jackson-com:device:DataMine:1 cat 0:-1 id parent 0/0x8415c0 upnp: 0 plugin:8526 pnp:0 mac: ip: <0x2b1dc000> 50 01/08/16 14:52:26.145 luup_log:145: dataMine: Initialising dataMine System (1.896) <0x2bb2c680> 06 01/08/16 14:52:26.145 Device_Variable::m_szValue_set device: 145 service: urn:cd-jackson-com:serviceId:DataMine1 variable: e[35;1merrorStatuse[0m was: false now: false #hooks: 0 upnp: 0 skip: 0 v:(nil)/NONE duplicate:1 <0x2bb2c680> 06 01/08/16 14:52:26.146 Device_Variable::m_szValue_set device: 145 service: urn:cd-jackson-com:serviceId:DataMine1 variable: e[35;1mChannelCnte[0m was: 0 now: 0 #hooks: 0 upnp: 0 skip: 0 v:0x8a1028/NONE duplicate:1 <0x2bb2c680> 06 01/08/16 14:52:26.147 Device_Variable::m_szValue_set device: 145 service: urn:cd-jackson-com:serviceId:DataMine1 variable: e[35;1mChannelRece[0m was: 0 now: 0 #hooks: 0 upnp: 0 skip: 0 v:(nil)/NONE duplicate:1 <0x2bb2c680> 50 01/08/16 14:52:26.168 luup_log:145: dataMine: ERROR: Startup state is 'uninitialised'! <0x2bb2c680> 06 01/08/16 14:52:26.169 Device_Variable::m_szValue_set device: 145 service: urn:cd-jackson-com:serviceId:DataMine1 variable: e[35;1mChannelCnte[0m was: 0 now: 0 #hooks: 0 upnp: 0 skip: 0 v:0x8a1028/NONE duplicate:1 <0x2bb2c680> 06 01/08/16 14:52:26.169 Device_Variable::m_szValue_set device: 145 service: urn:cd-jackson-com:serviceId:DataMine1 variable: e[35;1mChannelRece[0m was: 0 now: 0 #hooks: 0 upnp: 0 skip: 0 v:(nil)/NONE duplicate:1 <0x2bb2c680> 50 01/08/16 14:52:26.180 luup_log:145: dataMine: Reinitialising configuration structure <0x2bb2c680> 50 01/08/16 14:52:26.181 luup_log:145: dataMine: Startup complete <0x2bb2c680> 50 01/08/16 14:52:41.088 luup_log:145: dataMine: Delete backups complete - deleted 0 of 10 files <0x2c52c680> 06 01/08/16 14:52:41.108 Device_Variable::m_szValue_set device: 145 service: urn:cd-jackson-com:serviceId:DataMine1 variable: e[35;1mdiskTotale[0m was: 11264 now: 11264 #hooks: 0 upnp: 0 skip: 0 v:(nil)/NONE duplicate:1 <0x2c52c680> 06 01/08/16 14:52:41.109 Device_Variable::m_szValue_set device: 145 service: urn:cd-jackson-com:serviceId:DataMine1 variable: e[35;1mdiskUsede[0m was: 9604 now: 9520 #hooks: 0 upnp: 0 skip: 0 v:(nil)/NONE duplicate:0 <0x2c52c680> 06 01/08/16 14:52:41.121 Device_Variable::m_szValue_set device: 145 service: urn:cd-jackson-com:serviceId:DataMine1 variable: e[35;1mdiskFreee[0m was: 1660 now: 1744 #hooks: 0 upnp: 0 skip: 0 v:(nil)/NONE duplicate:0 <0x2c52c680> 06 01/08/16 14:52:41.122 Device_Variable::m_szValue_set device: 145 service: urn:cd-jackson-com:serviceId:DataMine1 variable: e[35;1mdiskUsedPcnte[0m was: 85 now: 85 #hooks: 0 upnp: 0 skip: 0 v:(nil)/NONE duplicate:1 <0x2c52c680> 06 01/08/16 14:58:13.493 Device_Variable::m_szValue_set device: 145 service: urn:cd-jackson-com:serviceId:DataMine1 variable: e[35;1mSetMountUUIDe[0m was: now: 349967f9-c8e0-4717-8b3f-fe9eb1620d63 #hooks: 0 upnp: 0 skip: 0 v:(nil)/NONE duplicate:0 <0x2e52c680> 06 01/08/16 15:02:58.402 Device_Variable::m_szValue_set device: 145 service: urn:cd-jackson-com:serviceId:DataMine1 variable: e[35;1mSetMountUUIDe[0m was: 349967f9-c8e0-4717-8b3f-fe9eb1620d63 now: 349967f9-c8e0-4717-8b3f-fe9eb1620d63 #hooks: 0 upnp: 0 skip: 0 v:(nil)/NONE duplicate:1 <0x2d12c680> 06 01/08/16 15:03:59.812 Device_Variable::m_szValue_set device: 145 service: urn:cd-jackson-com:serviceId:DataMine1 variable: e[35;1mSetMountUUIDe[0m was: 349967f9-c8e0-4717-8b3f-fe9eb1620d63 now: 349967f9-c8e0-4717-8b3f-fe9eb1620d63 #hooks: 0 upnp: 0 skip: 0 v:(nil)/NONE duplicate:1 <0x2eb2c680> 06 01/08/16 15:12:23.192 Device_Variable::m_szValue_set device: 145 service: urn:cd-jackson-com:serviceId:DataMine1 variable: e[35;1mSetMountUUIDe[0m was: 349967f9-c8e0-4717-8b3f-fe9eb1620d63 now: 349967f9-c8e0-4717-8b3f-fe9eb1620d63 #hooks: 0 upnp: 0 skip: 0 v:(nil)/NONE duplicate:1 <0x2d12c680> 06 01/08/16 15:17:53.326 Device_Variable::m_szValue_set device: 145 service: urn:cd-jackson-com:serviceId:DataMine1 variable: e[35;1mSetMountUUIDe[0m was: 349967f9-c8e0-4717-8b3f-fe9eb1620d63 now: 261E-35D1 #hooks: 0 upnp: 0 skip: 0 v:(nil)/NONE duplicate:0 <0x2e92c680> 06 01/08/16 15:18:57.902 Device_Variable::m_szValue_set device: 145 service: urn:cd-jackson-com:serviceId:DataMine1 variable: e[35;1mSetMountUUIDe[0m was: 261E-35D1 now: 261E-35D1 #hooks: 0 upnp: 0 skip: 0 v:(nil)/NONE duplicate:1 <0x2e92c680> 06 01/08/16 15:23:28.015 Device_Variable::m_szValue_set device: 145 service: urn:cd-jackson-com:serviceId:DataMine1 variable: e[35;1mSetMountUUIDe[0m was: 261E-35D1 now: 261E-35D1 #hooks: 0 upnp: 0 skip: 0 v:(nil)/NONE duplicate:1 <0x2e32c680> -2-=========================================================================== /dev/sdb1: LABEL="DATA" UUID="261E-35D1" /dev/sda1: LABEL="MiOS" UUID="349967f9-c8e0-4717-8b3f-fe9eb1620d63" -3-=========================================================================== rootfs on / type rootfs (rw) /dev/root on /rom type squashfs (ro,relatime) proc on /proc type proc (rw,noatime) sysfs on /sys type sysfs (rw,noatime) tmpfs on /tmp type tmpfs (rw,nosuid,nodev,noatime) tmpfs on /dev type tmpfs (rw,noatime,size=512k,mode=755) devpts on /dev/pts type devpts (rw,noatime,mode=600) /dev/mtdblock7 on /overlay type jffs2 (rw,noatime) overlayfs:/overlay on / type overlayfs (rw,noatime,lowerdir=/,upperdir=/overlay) debugfs on /sys/kernel/debug type debugfs (rw,relatime) /dev/sda1 on /tmp/log/cmh type ext3 (rw,noatime,nodiratime,errors=continue,barrier=0,data=ordered) /dev/mtdblock8 on /mios type squashfs (ro,relatime) none on /proc/bus/usb type usbfs (rw,relatime) -4-===========================================================================

Any suggestions?

I solved the problem, it was all caused by a faulty configuration if the DHCP server.
Strange, but now it works! :slight_smile:

@STAIK - well done. That was a strange one. Looks like the clue in the log was:
[tt]CreateDevice_LuaUPnP failed to load 145/D_DataMine2.xml so device 145 is offline while waiting for download the filee[/tt]

Howdy,

Having issues installing a fresh build on a vera edge. I have the usb mounted and getting issues downloading config files:

http://pastebin.com/muYbpvXf

Thanks,

Tim

ConstantSphere,
Great news that you are working on DataMine 2.0…

I have uninstalled version1 and installed version 2.0 some weeks ago.
A had some “handler failed” massages last days, so I installed version 1.896

I still got the same messages!
And after loading the DM2.0 (debug) page many times the luup reloads.
I have a Vera3 UI5 and Datamine logging to a nas.

My debug page is below as attachement.

Can you see whats going wrong?

UPDATE:
After uninstall, deleting all the files and reinstalling Datamine 2.0 the “handler failed” messages are gone. Except for one item I log.

Andre

I’ve been looking at a number of debug logs (thanks to anyone who has sent me one) and I can see that many of them contain something like: “LoadDeviceDoc can’t load /etc/cmh-lu//D_DataMine2.xml”.

I have a theory as to why this might be and I’ve had a go at modifying the file to see if it helps.

If you are having trouble installing dataMine2 please try uploading the attached file in the Vera web portal under Apps/Develop Apps/Luup Files with Restart Luup after upload checked.

Please let me know how you get on. If it works, I’ll add the fix to the App Store. Thanks!

*update: attachment removed as it has now been approved in the app store. Please try with the latest version (1.897). Thanks *

@A.Ardon - I can see from the logs that there is an error reading alpha data for channel 40 that isn’t configured as an alpha file.

dataMine can record both numerical results and text results (e.g. “On”,“Off”) in the log files. When reading the data back, it assumes that the data is numerical unless it is configured as text (alpha). If it is configured as alpha then it uses a Y-axis lookup table to convert the text into numerical data that can be graphed (you can’t graph text!). Normally this configuration should happen automatically as the data is recorded but for some reason that hasn’t happened here.

To fix it, have a look at the Configuration tab in the dataMine2 web interface, find the variable that is not working and look at the Y-Axis lookup tab on the right. Make sure there is 1 entry per possible text value being recorded. Label should be the text value and value should be the number it is being converted to (normally just a counting sequence).

I also suspect that error message reporting isn’t working properly it it is just saying “handler failed”. When working locally to your Vera, I’d recommend accessing the dataMine2 web interface via http://vera-ip/dm rather than the port_3480 way.

Cheers big ears for updating.

I have my working stats now but it’s strange how as I could not chose my USB in the drop down list on the dataMine graphing url. What solved my issue, I think, was to set
SetMountUUID=vera_usb(my usb label)
SetMountPoint=/dev/sda1 (my USB stick)

And I also have the Settings->Logs->Store logs on USB device checked. Dunno what happens if I disable that one … edit: I disabled it and the dataMine is still logging. Hmm this gets me wondering if, when I pressed Store logs on USB and letted Vera format my USB, what size that new partition got? Last time I checked it was on 500 mb which seems stupid.

edit2: How can I change it from logging every 5 sec to like every 1 or two minutes?

Great news that you got it working @jonator but I’m pretty sure that SetMountPoint is only used if SetManualMount = 1.

As for the logging frequency - dataMine logs every time a variable changes and not at a specific frequency; that way no data is ever lost through sampling issues. What is it that you are logging that’s changing every 5 seconds?

[quote=“ConstantSphere, post:39, topic:190421”]Great news that you got it working @jonator but I’m pretty sure that SetMountPoint is only used if SetManualMount = 1.

As for the logging frequency - dataMine logs every time a variable changes and not at a specific frequency; that way no data is ever lost through sampling issues. What is it that you are logging that’s changing every 5 seconds?[/quote]

Ok then :slight_smile:
I am thinking about the disk space it will take up if logging every 5 sec. But maybe there is no worries if you have a 16gb stick anyway? I don’t remember the space of my rrd database from my old 1-wire when it logged every 2.5 minute…