Installing Datamine in ui7... what on earth am I doing wrong?

Trying to install datamine on my vera edge, and trying to follow (as best I can) the UI5 install document but I’m pretty much going off the rails from the start. I’m trying to log to a USB stick.

I plugged in my USB stick, and Vera ever so thoughtfully decided to reformat it. (hurumph) I turned off logging to the USB stick, so /dev/sda1 (the 500M partition) is currently unmounted.

Then I did

busybox mkfs.ext2 /dev/sda2 mkdir /dataMine mount /dev/sda2 /dataMine.

At this point, here’s what things look like from the command prompt:

root@MiOS_(something else was here):/# mount
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)
/dev/mtdblock6 on /overlay type jffs2 (rw,noatime)
overlayfs:/overlay on / type overlayfs (rw,noatime,lowerdir=/,upperdir=/overlay)
tmpfs on /dev type tmpfs (rw,relatime,size=512k,mode=755)
devpts on /dev/pts type devpts (rw,relatime,mode=600)
debugfs on /sys/kernel/debug type debugfs (rw,noatime)
/dev/mtdblock10 on /storage type jffs2 (rw,relatime)
/dev/mtdblock10 on /etc/cmh-firmware type jffs2 (rw,relatime)
/dev/mtdblock10 on /etc/cmh-backup type jffs2 (rw,relatime)
/dev/mtdblock9 on /mios type squashfs (ro,relatime)
/dev/sda2 on /dataMine type ext2 (rw,relatime)

root@MiOS_(something else was here):/# df -m
Filesystem           1M-blocks      Used Available Use% Mounted on
rootfs                      10         3         6  32% /
/dev/root                    9         9         0 100% /rom
tmpfs                       62         5        57   8% /tmp
/dev/mtdblock6              10         3         6  32% /overlay
overlayfs:/overlay          10         3         6  32% /
tmpfs                        1         0         1   0% /dev
/dev/mtdblock10             65         6        58  10% /storage
/dev/mtdblock10             65         6        58  10% /etc/cmh-firmware
/dev/mtdblock10             65         6        58  10% /etc/cmh-backup
/dev/mtdblock9               5         5         0 100% /mios
/dev/sda2                 7086         0      6726   0% /dataMine

root@MiOS_(something else was here):/# ls -al /dataMine
drwxr-xr-x    3 root     root          4096 Aug 25 14:54 .
drwxr-xr-x    1 root     root             0 Aug 25 15:43 ..
drwxr-xr-x    2 root     root         16384 Aug 25 14:54 lost+found

root@MiOS_(something else was here):/# cat > /dataMine/testfile.txt
this is a test file being written to the ext2 filesystem on /dev/sda2/ via the /dataMine mount point

root@MiOS_(something else was here):/# cat /dataMine/testfile.txt
this is a test file being written to the ext2 filesystem on /dev/sda2/ via the /dataMine mount point

root@MiOS_(something else was here):/# ls -l /dataMine
drwxr-xr-x    2 root     root         16384 Aug 25 14:54 lost+found
-rw-r--r--    1 root     root           101 Aug 25 15:53 testfile.txt

So it appears that my USB stick is correctly mounted in /dataMine and can be read and written to.

However, every time I go into datamine and go to the graphing page, it asks for my USB UUID and the drop down box is completely blank – I can’t select anything!

I’ve gone into “develop apps”, then the serial port, then clicked “reload luup”, but that does nothing. Watching the logs, the reload luup button actually isn’t even reloading luup.

So I’m stuck and looking for suggestions on how to get this to work. (Need it for Imperihome, which apparently doesn’t work with DataYours.)

Thanks!

Your USB drive must be reformatted correctly to begin with. DO not use CDFormatter (free) to format. Do not use the Win system formatter.

Also not you cannot use DM with UI7. It is UI5 only

And what way would that be? I’m finding it very tough to believe that Vera is incapable of formatting it correctly, especially since I was able to mount, read, and write to the USB stick.

OK that covers what not to use. What should be used and how should it be formatted?

Uhh, plenty of folks have written that they’ve gotten it to work in UI7 already. I believe you are mistaken.

Don’t waste time with the UI7 web page. Install the AltUI plugin - you won’t regret it. There is little down side and the original UI7 will continue to function.

Once Alt UI is running you can go to the Misc → OS Command menu and execute the command: blkid Or you can just SSH into Vera and execute it directly. It will report the UUID. This can then be entered in the Advanced Tab of the DataMine Plugin under SetMountUUID entry box. You can restart the Luup Engin in AltiUI under the Menu Misc → Reload Luup Engine or just use this URL:

http://your_Vera_IP_address:3480/data_request?id=reload

The dataMine plugin does the mount so no need to manually mount it.

Unfortunately Vera, in their infinite idiocy wisdom, has removed every single way I know of obtaining the UUID from the Vera edge:

root@(removed):~# blkid
-ash: blkid: not found
root@(removed):~# ls /dev/disk/by-id
ls: /dev/disk/by-id: No such file or directory
root@(removed):~# ls /dev/.udev/db
ls: /dev/.udev/db: No such file or directory
root@(removed):~# udevadm
-ash: udevadm: not found
root@(removed):~# udevinfo
-ash: udevinfo: not found
root@(removed):~# vol_id
-ash: vol_id: not found
root@(removed):~# hwinfo
-ash: hwinfo: not found
root@(removed):~# busybox
BusyBox v1.19.4 (2015-01-30 01:47:09 PST) multi-call binary.
Copyright (C) 1998-2011 Erik Andersen, Rob Landley, Denys Vlasenko
and others. Licensed under GPLv2.
See source distribution for full notice.

Usage: busybox [function] [arguments]...
   or: busybox --list[-full]
   or: function [arguments]...

        BusyBox is a multi-call binary that combines many common Unix
        utilities into a single executable.  Most people will create a
        link to busybox for each function they wish to use and BusyBox
        will act like whatever it was invoked as.

Currently defined functions:
        [, [[, adduser, adjtimex, arping, ash, awk, base64, basename, brctl, bunzip2, bzcat, cat, chgrp, chmod, chown, chroot, clear, cmp, cp, crond, crontab, cryptpw, cut, date, dd, deluser, devmem, df, diff, dirname, dmesg, dnsdomainname, dos2unix, du, echo, egrep, env, expr, false,
        fdisk, fgrep, find, free, fsck, fsync, ftpget, ftpput, fuser, getty, grep, gunzip, gzip, halt, head, hexdump, hostid, hostname, hwclock, id, ifconfig, kill, killall, killall5, less, ln, lock, logger, login, losetup, ls, lsusb, md5sum, microcom, mkdir, mkdosfs, mke2fs, mkfifo,
        mkfs.ext2, mkfs.vfat, mknod, mkpasswd, mkswap, mktemp, more, mount, mv, nc, netmsg, netstat, nice, nslookup, ntpd, passwd, patch, pgrep, pidof, ping, ping6, pivot_root, pkill, poweroff, printf, ps, pstree, pwd, rdate, readlink, reboot, reset, rm, rmdir, route, sed, seq, sh,
        sha1sum, sleep, sort, start-stop-daemon, stat, strings, stty, swapoff, swapon, switch_root, sync, sysctl, tac, tail, tar, tee, telnet, test, time, timeout, top, touch, tr, traceroute, true, udhcpc, umount, uname, uniq, unix2dos, unzip, uptime, uudecode, uuencode, vconfig, vi,
        watch, watchdog, wc, wget, which, whois, xargs, yes, zcat

I wound up throwing the stick on one of my linux boxes and got its UUID…

/dev/sdb1: LABEL="MiOS" UUID="afeae839-0486-47d4-97c9-f3bd7e018756" SEC_TYPE="ext2" TYPE="ext3" /dev/sdb2: LABEL="dataMine" UUID="0328d1f4-52aa-4b30-a1cd-9e1dcbc372e2" SEC_TYPE="ext2" TYPE="ext2"

The dataMine plugin does the mount so no need to manually mount it.

Well that’s how it’s supposed to work, unfortunately it doesn’t appear to work anymore. When I would put that UUID into datamine, though datamine would now start there were no additional mounts, and was trying to write to /dataMine as part of the root file system:

root@(removed):/dataMine# df -h
Filesystem                Size      Used Available Use% Mounted on
rootfs                    9.5M      3.1M      6.4M  32% /
/dev/root                 9.3M      9.3M         0 100% /rom
tmpfs                    61.9M    660.0K     61.2M   1% /tmp
/dev/mtdblock6            9.5M      3.1M      6.4M  32% /overlay
overlayfs:/overlay        9.5M      3.1M      6.4M  32% /
tmpfs                   512.0K         0    512.0K   0% /dev
/dev/mtdblock10          64.8M      6.3M     58.5M  10% /storage
/dev/mtdblock10          64.8M      6.3M     58.5M  10% /etc/cmh-firmware
/dev/mtdblock10          64.8M      6.3M     58.5M  10% /etc/cmh-backup
/dev/mtdblock9            4.8M      4.8M         0 100% /mios
root@(removed):/dataMine#
root@(removed):/dataMine# # copy big 5M random file, see if we nuke half the filesystem.
root@(removed):/dataMine# #  if we do, then USB stick is NOT mounted (bad!!)
root@(removed):/dataMine#
root@(removed):/dataMine# scp me@something:/temp/big_5M_random_file .
me@something's password:
big_5M_random_file                                                                          100% 5120KB 204.8KB/s   00:25
root@(removed):/dataMine# df -h
Filesystem                Size      Used Available Use% Mounted on
rootfs                    9.5M      8.1M      1.4M  86% /
/dev/root                 9.3M      9.3M         0 100% /rom
tmpfs                    61.9M    684.0K     61.2M   1% /tmp
/dev/mtdblock6            9.5M      8.1M      1.4M  86% /overlay
overlayfs:/overlay        9.5M      8.1M      1.4M  86% /
tmpfs                   512.0K         0    512.0K   0% /dev
/dev/mtdblock10          64.8M      6.3M     58.5M  10% /storage
/dev/mtdblock10          64.8M      6.3M     58.5M  10% /etc/cmh-firmware
/dev/mtdblock10          64.8M      6.3M     58.5M  10% /etc/cmh-backup
/dev/mtdblock9            4.8M      4.8M         0 100% /mios
root@(removed):/dataMine#
root@(removed):/dataMine# #  Nope, USB not mounted, as expected.
root@(removed):/dataMine# #
root@(removed):/dataMine#
root@(removed):/dataMine# rm big_5M_random_file
root@(removed):/dataMine#
root@(removed):/dataMine# df -h
Filesystem                Size      Used Available Use% Mounted on
rootfs                    9.5M      3.1M      6.4M  33% /
/dev/root                 9.3M      9.3M         0 100% /rom
tmpfs                    61.9M    688.0K     61.2M   1% /tmp
/dev/mtdblock6            9.5M      3.1M      6.4M  33% /overlay
overlayfs:/overlay        9.5M      3.1M      6.4M  33% /
tmpfs                   512.0K         0    512.0K   0% /dev
/dev/mtdblock10          64.8M      6.3M     58.5M  10% /storage
/dev/mtdblock10          64.8M      6.3M     58.5M  10% /etc/cmh-firmware
/dev/mtdblock10          64.8M      6.3M     58.5M  10% /etc/cmh-backup
/dev/mtdblock9            4.8M      4.8M         0 100% /mios

At that point I was tired of screwing around and decided to take things into my own hands as dataMine’s automounting is apparently now borked under UI7.


So for those playing along at home, here’s how you make dataMine work under a recent UI7 (mine is 1.7.1248):

[ol][li]plug in a memory stick[/li]
[li]go into settings, logs, click on “store logs on usb device”. Vera will reformat your USB stick and reboot.[/li]
[li]Go back into settings logs, then click off storing logs on usb device. Vera will reboot. (This is necessary so that in case you accidentally click it on again in the future, you don’t lose everything when vera insists on formatting it. You will sacrifice 1/2 gig on your thumb drive for this assurance. I think it’s worth it.)[/li]
[li]ssh into your vera edge[/li]
[li]mke2fs -L dataMine /dev/sda2

(This will create an ext2 filesystem on your second partition on your USB stick. Vera edge can format but not mount ext3 filesystems. It crashes and reboots if you try and manually mount an ext3 filesystem. Go figure!!)[/li]
[li]mkdir /dataMine[/li]
[li]mount /dev/sda2 /dataMine[/li]
[li]exit[/li]
[li]Now open up the web interface, go into the datamine device, click advanced, then click on variables. Don’t forget to click on the “switch to input type text” checkbox before each entry before you type in it!![/li]
[li]Clear SetMountUUID, if set[/li]
[li]Clear SetMountPoint, if set[/li]
[li]Set SetManualMount to 1[/li]
[li]Click on Apps, develop apps, then edit startup lua[/li][/ol]

Put the following code in your lua startup:

local cmd="mount /dev/sda2 /dataMine"
local ok = os.execute(cmd)

Reboot one last time and you should, finally, be able to run dataMine correctly, without trampling your root filesystem! (…that’s good.)

Good stuff:

Really interesting to see that they have removed the blkid command from the distribution in the Vera Edge. It will create havoc in the dataMine checkUUID function.

Chris, the plugin developer, was working on the mounting before he moved to OpenHab. Many users were having their stick data destroyed when they inadvertently turned on the logging. So did Vera create the two partitions on the stick when it formatted the stick for the logs or did you do that on another box? It seems this is a good solution to accidental deletion of data by turning on the logging :-X

Also could you please post the dataMine plugin debug text- see “dataMine_debug_page” link on the plugin tab.

Would expect it to contain:
“Error opening tmpfile during UUID check”
or
“Error reading tmpfile during UUID check”

Plus the contents of in the Advanced Tab:

SetMountPoint
mountLocation
SetMountUUID

I would interested to see how they ended up. If they eventually contained the correct values or you manually set them, then you may no longer need your start up code to do the mount.

Glad you got it working and give the AltUI plugin a try out.

And what way would that be? I’m finding it very tough to believe that Vera is incapable of formatting it correctly, especially since I was able to mount, read, and write to the USB stick.

OK that covers what not to use. What should be used and how should it be formatted?

Uhh, plenty of folks have written that they’ve gotten it to work in UI7 already. I believe you are mistaken.
[/quote]

Sorry, my bad. I meant DO use CDFormatter.
I was only aware it would not work in UI7. Great news you can use it! However, I am sticking to UI5, but I will have 2 other houses and I will have no choice at that point but to go to UI7 with them.

Vera created the Mios partition. What I haven’t determined is if vera completely reformatted the stick and created the 1/2 gig partition, or resized the existing partition to make room for the 1/2 gig partition.

I had thought I put in the instructions how to create the second partition, but looks like when I was writing it up I missed that step. Whoops.

Truth be known, midway through the process I realized I was having a USB memory stick incompatibility issue between my original 8GB stick and the Vera. (I believe that’s what was the true cause of me being able to format but not mount an ext3 filesystem.)

The upshot is due to having that memory stick incompatibility I had to switch horses mid-stream to a different memory stick that already had a fat32 filesystem on it. I was getting tired, so I rolled with it. The plan is to let dataMine run a couple of days, copy the data off, nuke the entire memory stick, test/re-write my instructions from scratch and then copy the data back on. I believe the existing instructions are mostly correct, except for the part where I forgot to mention to go into fdisk and create the second partition. :smiley:

(I’d really prefer to have an ext3 filesystem rather than ext2 or fat32!)

Also could you please post the dataMine plugin debug text- see "dataMine_debug_page" link on the plugin tab.

Sure… not sure what it gets you, but here it is in all its verbosity!

-1-===========================================================================
09	08/27/15 15:25:59.700	JobHandler_LuaUPnP::Run device 86 dataMine room 2 type urn:schemas-cd-jackson-com:device:DataMine:1 cat 0:-1 id  parent 0/0xdf3328 upnp: 0 plugin:1088 pnp:0 mac: ip: <0x77abe320>
50	08/27/15 15:26:04.962	luup_log:86: dataMine: Initialising dataMine System (0.980) <0x77356520>
06	08/27/15 15:26:04.963	Device_Variable::m_szValue_set device: 86 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 <0x77356520>
06	08/27/15 15:26:04.964	Device_Variable::m_szValue_set device: 86 service: urn:cd-jackson-com:serviceId:DataMine1 variable: e[35;1mChannelCnte[0m was: 23 now: 0 #hooks: 0 upnp: 0 skip: 0 v:0xedc7b8/NONE duplicate:0 <0x77356520>
06	08/27/15 15:26:04.964	Device_Variable::m_szValue_set device: 86 service: urn:cd-jackson-com:serviceId:DataMine1 variable: e[35;1mChannelRece[0m was: 20 now: 0 #hooks: 0 upnp: 0 skip: 0 v:(nil)/NONE duplicate:0 <0x77356520>
06	08/27/15 15:26:04.965	Device_Variable::m_szValue_set device: 86 service: urn:cd-jackson-com:serviceId:DataMine1 variable: e[35;1mmountLocatione[0m was: ** Manual now: ** Manual #hooks: 0 upnp: 0 skip: 0 v:(nil)/NONE duplicate:1 <0x77356520>
06	08/27/15 15:26:04.966	Device_Variable::m_szValue_set device: 86 service: urn:cd-jackson-com:serviceId:DataMine1 variable: e[35;1mmountTypee[0m was: ** Manual now: ** Manual #hooks: 0 upnp: 0 skip: 0 v:(nil)/NONE duplicate:1 <0x77356520>
50	08/27/15 15:26:04.966	luup_log:86: dataMine: Manual mounting to (/dataMine/) <0x77356520>
50	08/27/15 15:26:07.367	luup_log:86: dataMine: D[34] S[urn:micasaverde-com:serviceId:EnergyMetering1] V[Watts] newVal on startup is 900 was 959 __LEAK__ this:258048 start:1044480 to 0x13b5000 <0x77356520>
50	08/27/15 15:26:07.368	luup_log:86: dataMine: Watching: D[34] S[urn:micasaverde-com:serviceId:EnergyMetering1] V[Watts] <0x77356520>
50	08/27/15 15:26:07.374	luup_log:86: dataMine: Watching: D[49] S[urn:micasaverde-com:serviceId:EnergyMetering1] V[Watts] <0x77356520>
50	08/27/15 15:26:07.380	luup_log:86: dataMine: Watching: D[67] S[urn:upnp-org:serviceId:TemperatureSensor1] V[CurrentTemperature] <0x77356520>
50	08/27/15 15:26:07.394	luup_log:86: dataMine: Watching: D[76] S[urn:upnp-org:serviceId:TemperatureSensor1] V[CurrentTemperature] <0x77356520>
50	08/27/15 15:26:07.399	luup_log:86: dataMine: Watching: D[3] S[urn:micasaverde-com:serviceId:EnergyMetering1] V[Watts] <0x77356520>
50	08/27/15 15:26:07.404	luup_log:86: dataMine: Watching: D[4] S[urn:micasaverde-com:serviceId:EnergyMetering1] V[Watts] <0x77356520>
50	08/27/15 15:26:07.409	luup_log:86: dataMine: Watching: D[5] S[urn:micasaverde-com:serviceId:EnergyMetering1] V[Watts] <0x77356520>
50	08/27/15 15:26:07.415	luup_log:86: dataMine: Watching: D[6] S[urn:micasaverde-com:serviceId:EnergyMetering1] V[Watts] <0x77356520>
50	08/27/15 15:26:07.437	luup_log:86: dataMine: Watching: D[7] S[urn:micasaverde-com:serviceId:EnergyMetering1] V[Watts] <0x77356520>
50	08/27/15 15:26:07.452	luup_log:86: dataMine: Watching: D[28] S[urn:micasaverde-com:serviceId:EnergyMetering1] V[Watts] <0x77356520>
50	08/27/15 15:26:07.467	luup_log:86: dataMine: Watching: D[37] S[urn:micasaverde-com:serviceId:SecuritySensor1] V[Tripped] <0x77356520>
50	08/27/15 15:26:07.473	luup_log:86: dataMine: Watching: D[46] S[urn:upnp-org:serviceId:SwitchPower1] V[Status] <0x77356520>
50	08/27/15 15:26:07.479	luup_log:86: dataMine: Watching: D[49] S[urn:upnp-org:serviceId:TemperatureSensor1] V[CurrentTemperature] <0x77356520>
50	08/27/15 15:26:07.488	luup_log:86: dataMine: Watching: D[55] S[urn:upnp-org:serviceId:SwitchPower1] V[Status] <0x77356520>
50	08/27/15 15:26:07.498	luup_log:86: dataMine: Watching: D[56] S[urn:micasaverde-com:serviceId:SecuritySensor1] V[Tripped] <0x77356520>
50	08/27/15 15:26:07.507	luup_log:86: dataMine: Watching: D[64] S[urn:upnp-org:serviceId:SwitchPower1] V[Target] <0x77356520>
50	08/27/15 15:26:07.514	luup_log:86: dataMine: Watching: D[65] S[urn:upnp-org:serviceId:SwitchPower1] V[Status] <0x77356520>
50	08/27/15 15:26:07.520	luup_log:86: dataMine: Watching: D[68] S[urn:upnp-org:serviceId:SwitchPower1] V[Status] <0x77356520>
50	08/27/15 15:26:07.535	luup_log:86: dataMine: Watching: D[72] S[urn:micasaverde-com:serviceId:SecuritySensor1] V[Tripped] <0x77356520>
50	08/27/15 15:26:07.540	luup_log:86: dataMine: Watching: D[76] S[urn:micasaverde-com:serviceId:SecuritySensor1] V[Tripped] <0x77356520>
06	08/27/15 15:26:07.561	Device_Variable::m_szValue_set device: 86 service: urn:cd-jackson-com:serviceId:DataMine1 variable: e[35;1mChannelCnte[0m was: 0 now: 23 #hooks: 0 upnp: 0 skip: 0 v:0xedc7b8/NONE duplicate:0 <0x77356520>
06	08/27/15 15:26:07.562	Device_Variable::m_szValue_set device: 86 service: urn:cd-jackson-com:serviceId:DataMine1 variable: e[35;1mChannelRece[0m was: 0 now: 20 #hooks: 0 upnp: 0 skip: 0 v:(nil)/NONE duplicate:0 <0x77356520>
06	08/27/15 15:26:07.682	Device_Variable::m_szValue_set device: 86 service: urn:cd-jackson-com:serviceId:DataMine1 variable: e[35;1mChannelCnte[0m was: 23 now: 23 #hooks: 0 upnp: 0 skip: 0 v:0xedc7b8/NONE duplicate:1 <0x77356520>
06	08/27/15 15:26:07.687	Device_Variable::m_szValue_set device: 86 service: urn:cd-jackson-com:serviceId:DataMine1 variable: e[35;1mChannelRece[0m was: 20 now: 20 #hooks: 0 upnp: 0 skip: 0 v:(nil)/NONE duplicate:1 <0x77356520>
50	08/27/15 15:26:07.688	luup_log:86: dataMine: Startup complete <0x77356520>
50	08/27/15 15:26:22.253	luup_log:86: dataMine: Delete backups complete - deleted 0 of 72 files <0x75356520>
06	08/27/15 15:26:22.271	Device_Variable::m_szValue_set device: 86 service: urn:cd-jackson-com:serviceId:DataMine1 variable: e[35;1mdiskTotale[0m was: 7865324 now: 7865324 #hooks: 0 upnp: 0 skip: 0 v:(nil)/NONE duplicate:1 <0x75356520>
06	08/27/15 15:26:22.272	Device_Variable::m_szValue_set device: 86 service: urn:cd-jackson-com:serviceId:DataMine1 variable: e[35;1mdiskUsede[0m was: 234502 now: 234578 #hooks: 0 upnp: 0 skip: 0 v:(nil)/NONE duplicate:0 <0x75356520>
06	08/27/15 15:26:22.273	Device_Variable::m_szValue_set device: 86 service: urn:cd-jackson-com:serviceId:DataMine1 variable: e[35;1mdiskFreee[0m was: 7630822 now: 7630746 #hooks: 0 upnp: 0 skip: 0 v:(nil)/NONE duplicate:0 <0x75356520>
06	08/27/15 15:26:22.273	Device_Variable::m_szValue_set device: 86 service: urn:cd-jackson-com:serviceId:DataMine1 variable: e[35;1mdiskUsedPcnte[0m was: 3 now: 3 #hooks: 0 upnp: 0 skip: 0 v:(nil)/NONE duplicate:1 <0x75356520>
-2-===========================================================================
-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)
/dev/mtdblock6 on /overlay type jffs2 (rw,noatime)
overlayfs:/overlay on / type overlayfs (rw,noatime,lowerdir=/,upperdir=/overlay)
tmpfs on /dev type tmpfs (rw,relatime,size=512k,mode=755)
devpts on /dev/pts type devpts (rw,relatime,mode=600)
debugfs on /sys/kernel/debug type debugfs (rw,noatime)
/dev/mtdblock10 on /storage type jffs2 (rw,relatime)
/dev/mtdblock10 on /etc/cmh-firmware type jffs2 (rw,relatime)
/dev/mtdblock10 on /etc/cmh-backup type jffs2 (rw,relatime)
/dev/mtdblock9 on /mios type squashfs (ro,relatime)
/dev/sda1 on /dataMine type vfat (rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=iso8859-1,shortname=mixed,errors=remount-ro)
-4-===========================================================================
-5-===========================================================================
SetDataDirectory-/dataMine/
SetMountUUID    -
SetMountPoint   -
SetManualMount  -1
-6-===========================================================================
{"Version":"0.980","dbVersion":2,"Events":{"count":0,"last":0},"guiConfig":{"_dc":"1440675048718","graphOptionShadows":false,"graphOptionMarker":true,"graphOptionLegend":true,"graphOptionWidth":"1","graphOptionAnimation":true},"Variables":[{"Ghost":false,"Service":"urn:upnp-org:serviceId:TemperatureSensor1","DrowsyError":0,"LastRec":1440698609,"DrowsyWarning":0,"FilterMaximum":0,"LastHistory":1104516000,"Type":0,"FirstRec":0,"LastVal":72,"Device":79,"FilterMinimum":0,"DataType":1,"Units":" ","Id":1,"DataOffset":0,"Name":"Outside Temp","FilterEnable":0,"Logging":0,"Variable":"CurrentTemperature","historyState":0},{"Ghost":false,"Service":"urn:micasaverde-com:serviceId:EnergyMetering1","LastRec":1440707172,"DrowsyError":0,"DrowsyWarning":0,"LastHistory":1104516000,"FilterMaximum":0,"EnergyCat":1,"Type":0,"FirstRec":0,"LastVal":908,"Id":2,"FilterMinimum":0,"Device":34,"Units":"Watts","DataType":5,"DataOffset":0,"Name":"Home Energy Monitor - Watts","FilterEnable":0,"Logging":1,"Variable":"Watts","historyState":0},{"Ghost":false,"Service":"urn:micasaverde-com:serviceId:EnergyMetering1","DrowsyError":0,"LastRec":1440675214,"DrowsyWarning":0,"LastHistory":1104516000,"FilterMaximum":0,"EnergyCat":2,"Type":0,"FirstRec":0,"LastVal":0,"Device":49,"FilterMinimum":0,"DataType":5,"Units":"Watts","Id":3,"DataOffset":0,"Name":"PBA LED lights","FilterEnable":0,"Logging":1,"Variable":"Watts","historyState":0},{"Ghost":false,"Service":"urn:upnp-org:serviceId:TemperatureSensor1","DrowsyError":0,"LastRec":1440688743,"DrowsyWarning":0,"FilterMaximum":0,"LastHistory":1104516000,"Type":0,"FirstRec":0,"LastVal":73,"Device":67,"FilterMinimum":0,"DataType":1,"Units":"F","Id":4,"DataOffset":0,"Name":"Living Room Temperature","FilterEnable":0,"Logging":1,"Variable":"CurrentTemperature","historyState":0},{"Ghost":false,"Service":"urn:upnp-org:serviceId:TemperatureSensor1","DrowsyError":0,"LastRec":1440698609,"FilterMaximum":0,"DataType":1,"Type":0,"LastHistory":1104516000,"FirstRec":0,"Id":5,"FilterMinimum":0,"LastVal":72,"DrowsyWarning":0,"Device":76,"DataOffset":0,"Name":"Outside Temperature","FilterEnable":0,"Logging":1,"Variable":"CurrentTemperature","historyState":0},{"Ghost":false,"Service":"urn:micasaverde-com:serviceId:EnergyMetering1","LastRec":1440675208,"DrowsyError":0,"DrowsyWarning":0,"FilterMaximum":0,"EnergyCat":4,"Type":0,"LastHistory":1104516000,"Logging":1,"Device":3,"FilterMinimum":0,"FilterEnable":0,"DataType":5,"Id":6,"DataOffset":0,"Name":"Amplifiers - Watts","LastVal":0,"FirstRec":0,"Variable":"Watts","historyState":0},{"Ghost":false,"Service":"urn:micasaverde-com:serviceId:EnergyMetering1","LastRec":1440675202,"DrowsyError":0,"DrowsyWarning":0,"FilterMaximum":0,"EnergyCat":2,"Type":0,"LastHistory":1104516000,"Logging":1,"Device":4,"FilterMinimum":0,"FilterEnable":0,"DataType":5,"Id":7,"DataOffset":0,"Name":"Right lamp - Watts","LastVal":0,"FirstRec":0,"Variable":"Watts","historyState":0},{"Ghost":false,"Service":"urn:micasaverde-com:serviceId:EnergyMetering1","LastRec":1440675215,"DrowsyError":0,"DrowsyWarning":0,"Units":"Watts","FilterMaximum":0,"EnergyCat":2,"Type":0,"Logging":1,"FilterEnable":0,"Device":5,"FilterMinimum":0,"Id":8,"LastHistory":1104516000,"DataType":5,"DataOffset":0,"Name":"Left lamp","LastVal":0,"FirstRec":0,"Variable":"Watts","historyState":0},{"Ghost":false,"Service":"urn:micasaverde-com:serviceId:EnergyMetering1","LastRec":1440675180,"DrowsyError":0,"DrowsyWarning":0,"Units":"Watts","FilterMaximum":0,"EnergyCat":2,"Type":0,"Logging":1,"FilterEnable":0,"Device":6,"FilterMinimum":0,"Id":9,"LastHistory":1104516000,"DataType":5,"DataOffset":0,"Name":"Bedroom Lamp","LastVal":0,"FirstRec":0,"Variable":"Watts","historyState":0},{"Ghost":false,"Service":"urn:micasaverde-com:serviceId:EnergyMetering1","LastRec":1440683761,"DrowsyError":0,"DrowsyWarning":0,"Units":"Watts","FilterMaximum":0,"EnergyCat":4,"Type":0,"Logging":1,"FilterEnable":0,"Device":7,"FilterMinimum":0,"Id":10,"LastHistory":1104516000,"DataType":5,"DataOffset":0,"Name":"Bedroom TV","LastVal":0,"FirstRec":0,"Variable":"Watts","historyState":0},{"Ghost":false,"Service":"urn:micasaverde-com:serviceId:EnergyMetering1","LastRec":1440706550,"DrowsyError":0,"DrowsyWarning":0,"Units":"Watts","FilterMaximum":0,"EnergyCat":3,"Type":0,"Logging":1,"FilterEnable":0,"Device":28,"FilterMinimum":0,"Id":11,"LastHistory":1104516000,"DataType":5,"DataOffset":0,"Name":"Upstairs Fan","LastVal":48,"FirstRec":0,"Variable":"Watts","historyState":0},{"Ghost":false,"Service":"urn:micasaverde-com:serviceId:EnergyMetering1","LastRec":0,"DrowsyError":0,"FilterMaximum":0,"EnergyCat":0,"Type":0,"DrowsyWarning":0,"Device":35,"Id":12,"FilterMinimum":0,"Logging":0,"DataType":5,"FilterEnable":0,"DataOffset":0,"Name":"HEM phase 2 - Watts","LastVal":642,"FirstRec":0,"Variable":"Watts","historyState":0},{"Ghost":false,"Service":"urn:micasaverde-com:serviceId:EnergyMetering1","LastRec":0,"DrowsyError":0,"FilterMaximum":0,"EnergyCat":0,"Type":0,"DrowsyWarning":0,"Device":36,"Id":13,"FilterMinimum":0,"Logging":0,"DataType":5,"FilterEnable":0,"DataOffset":0,"Name":"HEM Phase 1 - Watts","LastVal":702,"FirstRec":0,"Variable":"Watts","historyState":0},{"Ghost":false,"Service":"urn:micasaverde-com:serviceId:SecuritySensor1","DrowsyError":0,"LastRec":1440674305,"FilterMaximum":0,"DrowsyWarning":0,"Type":0,"LastHistory":1104516000,"Logging":1,"Id":14,"FilterMinimum":0,"FilterEnable":0,"DataType":6,"Device":37,"DataOffset":0,"Name":"Front door - Tripped","LastVal":0,"FirstRec":0,"Variable":"Tripped","historyState":0},{"Ghost":false,"Service":"urn:upnp-org:serviceId:SwitchPower1","DrowsyError":0,"LastRec":1440675178,"FilterMaximum":0,"DrowsyWarning":0,"Type":4,"LastHistory":1104516000,"Logging":1,"Id":15,"FilterMinimum":0,"FilterEnable":0,"DataType":3,"Device":46,"DataOffset":0,"Name":"Garage lights - Status","LastVal":0,"FirstRec":0,"Variable":"Status","historyState":0},{"Ghost":false,"Service":"urn:upnp-org:serviceId:TemperatureSensor1","DrowsyError":0,"LastRec":1440685524,"FilterMaximum":0,"DrowsyWarning":0,"Type":0,"LastHistory":1104516000,"Logging":1,"Id":16,"FilterMinimum":0,"FilterEnable":0,"DataType":1,"Device":49,"DataOffset":0,"Name":"PBA LED Master - CurrentTemperature","LastVal":75,"FirstRec":0,"Variable":"CurrentTemperature","historyState":0},{"Ghost":false,"Service":"urn:upnp-org:serviceId:SwitchPower1","DrowsyError":0,"LastRec":1440674395,"FilterMaximum":0,"DrowsyWarning":0,"Type":4,"LastHistory":1104516000,"Logging":1,"Id":17,"FilterMinimum":0,"FilterEnable":0,"DataType":3,"Device":55,"DataOffset":0,"Name":"Garage Door Opener - Status","LastVal":0,"FirstRec":0,"Variable":"Status","historyState":0},{"Ghost":false,"Service":"urn:micasaverde-com:serviceId:SecuritySensor1","DrowsyError":0,"LastRec":1440674340,"FilterMaximum":0,"DrowsyWarning":0,"Type":4,"LastHistory":1104516000,"Logging":1,"Id":18,"FilterMinimum":0,"FilterEnable":0,"DataType":6,"Device":56,"DataOffset":0,"Name":"Garage Small Door - Tripped","LastVal":0,"FirstRec":0,"Variable":"Tripped","historyState":0},{"Ghost":false,"Service":"urn:upnp-org:serviceId:SwitchPower1","DrowsyError":0,"LastRec":1440675194,"LastHistory":1104516000,"FilterMaximum":0,"DrowsyWarning":0,"Type":4,"Logging":1,"FilterEnable":0,"Id":19,"FilterMinimum":0,"Device":64,"Units":0,"DataType":0,"DataOffset":0,"Name":"Pre-Amp and Computer - Target","LastVal":0,"FirstRec":0,"Variable":"Target","historyState":0},{"Ghost":false,"Service":"urn:upnp-org:serviceId:SwitchPower1","DrowsyError":0,"LastRec":1440685524,"FilterMaximum":0,"DrowsyWarning":0,"Type":4,"LastHistory":1104516000,"Logging":1,"Id":20,"FilterMinimum":0,"FilterEnable":0,"DataType":3,"Device":65,"DataOffset":0,"Name":"Projector - Status","LastVal":1,"FirstRec":0,"Variable":"Status","historyState":0},{"Ghost":false,"Service":"urn:upnp-org:serviceId:SwitchPower1","DrowsyError":0,"LastRec":1440676932,"FilterMaximum":0,"DrowsyWarning":0,"Type":4,"LastHistory":1104516000,"Logging":1,"Id":21,"FilterMinimum":0,"FilterEnable":0,"DataType":3,"Device":68,"DataOffset":0,"Name":"Patio Lights - Status","LastVal":0,"FirstRec":0,"Variable":"Status","historyState":0},{"Ghost":false,"Service":"urn:micasaverde-com:serviceId:SecuritySensor1","DrowsyError":0,"LastRec":0,"FilterMaximum":0,"DrowsyWarning":0,"Type":0,"LastHistory":1104516000,"Logging":1,"Id":22,"FilterMinimum":0,"FilterEnable":0,"DataType":6,"Device":72,"DataOffset":0,"Name":"Patio door - Tripped","LastVal":0,"FirstRec":0,"Variable":"Tripped","historyState":0},{"Ghost":false,"Service":"urn:micasaverde-com:serviceId:SecuritySensor1","DrowsyError":0,"LastRec":1440701789,"FilterMaximum":0,"DrowsyWarning":0,"Type":4,"LastHistory":1104516000,"Logging":1,"Id":23,"FilterMinimum":0,"FilterEnable":0,"DataType":6,"Device":76,"DataOffset":0,"Name":"Motion Sensor - Tripped","LastVal":0,"FirstRec":0,"Variable":"Tripped","historyState":0}],"Graphs":[{"Night":0,"Period":86400,"Channels":[{"Device":34,"Service":"urn:micasaverde-com:serviceId:EnergyMetering1","yAxis":1,"Variable":"Watts"}],"Name":"Home Energy Monitor","Icon":0,"Events":0}],"LastWrite":1440707167,"nextId":24}
-7-===========================================================================
Would expect it to contain: "Error opening tmpfile during UUID check" or "Error reading tmpfile during UUID check"

Don’t see anything of the sort. I am getting lots of “dataMine: Events Ret -1”, but I think those are because of my Aeon HEM. (Vera constantly complains about phantom nodes on that device.)

Plus the contents of in the Advanced Tab:

SetMountPoint
mountLocation
SetMountUUID

No such animal on a Vera Edge. But here are the device variables.

I would interested to see how they ended up. If they eventually contained the correct values or you manually set them, then you may no longer need your start up code to do the mount.

Nope, they’re thoroughly blank at this point. :smiley:

Glad you got it working and give the AltUI plugin a try out.

It’s on my list of stuff to try, just have bigger fish to fry right now. :wink:

Unfortunately Vera, in their infinite idiocy wisdom, has removed every single way I know of obtaining the UUID from the Vera edge:

root@(removed):~# blkid
-ash: blkid: not found
root@(removed):~# ls /dev/disk/by-id
ls: /dev/disk/by-id: No such file or directory
root@(removed):~# ls /dev/.udev/db
ls: /dev/.udev/db: No such file or directory
root@(removed):~# udevadm
-ash: udevadm: not found
root@(removed):~# udevinfo
-ash: udevinfo: not found
root@(removed):~# vol_id
-ash: vol_id: not found
root@(removed):~# hwinfo
-ash: hwinfo: not found
root@(removed):~# busybox
BusyBox v1.19.4 (2015-01-30 01:47:09 PST) multi-call binary.
Copyright (C) 1998-2011 Erik Andersen, Rob Landley, Denys Vlasenko
and others. Licensed under GPLv2.
See source distribution for full notice.

Usage: busybox [function] [arguments]...
   or: busybox --list[-full]
   or: function [arguments]...

        BusyBox is a multi-call binary that combines many common Unix
        utilities into a single executable.  Most people will create a
        link to busybox for each function they wish to use and BusyBox
        will act like whatever it was invoked as.

Currently defined functions:
        [, [[, adduser, adjtimex, arping, ash, awk, base64, basename, brctl, bunzip2, bzcat, cat, chgrp, chmod, chown, chroot, clear, cmp, cp, crond, crontab, cryptpw, cut, date, dd, deluser, devmem, df, diff, dirname, dmesg, dnsdomainname, dos2unix, du, echo, egrep, env, expr, false,
        fdisk, fgrep, find, free, fsck, fsync, ftpget, ftpput, fuser, getty, grep, gunzip, gzip, halt, head, hexdump, hostid, hostname, hwclock, id, ifconfig, kill, killall, killall5, less, ln, lock, logger, login, losetup, ls, lsusb, md5sum, microcom, mkdir, mkdosfs, mke2fs, mkfifo,
        mkfs.ext2, mkfs.vfat, mknod, mkpasswd, mkswap, mktemp, more, mount, mv, nc, netmsg, netstat, nice, nslookup, ntpd, passwd, patch, pgrep, pidof, ping, ping6, pivot_root, pkill, poweroff, printf, ps, pstree, pwd, rdate, readlink, reboot, reset, rm, rmdir, route, sed, seq, sh,
        sha1sum, sleep, sort, start-stop-daemon, stat, strings, stty, swapoff, swapon, switch_root, sync, sysctl, tac, tail, tar, tee, telnet, test, time, timeout, top, touch, tr, traceroute, true, udhcpc, umount, uname, uniq, unix2dos, unzip, uptime, uudecode, uuencode, vconfig, vi,
        watch, watchdog, wc, wget, which, whois, xargs, yes, zcat

I wound up throwing the stick on one of my linux boxes and got its UUID…

/dev/sdb1: LABEL="MiOS" UUID="afeae839-0486-47d4-97c9-f3bd7e018756" SEC_TYPE="ext2" TYPE="ext3" /dev/sdb2: LABEL="dataMine" UUID="0328d1f4-52aa-4b30-a1cd-9e1dcbc372e2" SEC_TYPE="ext2" TYPE="ext2"

The dataMine plugin does the mount so no need to manually mount it.

Well that’s how it’s supposed to work, unfortunately it doesn’t appear to work anymore. When I would put that UUID into datamine, though datamine would now start there were no additional mounts, and was trying to write to /dataMine as part of the root file system:

root@(removed):/dataMine# df -h
Filesystem                Size      Used Available Use% Mounted on
rootfs                    9.5M      3.1M      6.4M  32% /
/dev/root                 9.3M      9.3M         0 100% /rom
tmpfs                    61.9M    660.0K     61.2M   1% /tmp
/dev/mtdblock6            9.5M      3.1M      6.4M  32% /overlay
overlayfs:/overlay        9.5M      3.1M      6.4M  32% /
tmpfs                   512.0K         0    512.0K   0% /dev
/dev/mtdblock10          64.8M      6.3M     58.5M  10% /storage
/dev/mtdblock10          64.8M      6.3M     58.5M  10% /etc/cmh-firmware
/dev/mtdblock10          64.8M      6.3M     58.5M  10% /etc/cmh-backup
/dev/mtdblock9            4.8M      4.8M         0 100% /mios
root@(removed):/dataMine#
root@(removed):/dataMine# # copy big 5M random file, see if we nuke half the filesystem.
root@(removed):/dataMine# #  if we do, then USB stick is NOT mounted (bad!!)
root@(removed):/dataMine#
root@(removed):/dataMine# scp me@something:/temp/big_5M_random_file .
me@something's password:
big_5M_random_file                                                                          100% 5120KB 204.8KB/s   00:25
root@(removed):/dataMine# df -h
Filesystem                Size      Used Available Use% Mounted on
rootfs                    9.5M      8.1M      1.4M  86% /
/dev/root                 9.3M      9.3M         0 100% /rom
tmpfs                    61.9M    684.0K     61.2M   1% /tmp
/dev/mtdblock6            9.5M      8.1M      1.4M  86% /overlay
overlayfs:/overlay        9.5M      8.1M      1.4M  86% /
tmpfs                   512.0K         0    512.0K   0% /dev
/dev/mtdblock10          64.8M      6.3M     58.5M  10% /storage
/dev/mtdblock10          64.8M      6.3M     58.5M  10% /etc/cmh-firmware
/dev/mtdblock10          64.8M      6.3M     58.5M  10% /etc/cmh-backup
/dev/mtdblock9            4.8M      4.8M         0 100% /mios
root@(removed):/dataMine#
root@(removed):/dataMine# #  Nope, USB not mounted, as expected.
root@(removed):/dataMine# #
root@(removed):/dataMine#
root@(removed):/dataMine# rm big_5M_random_file
root@(removed):/dataMine#
root@(removed):/dataMine# df -h
Filesystem                Size      Used Available Use% Mounted on
rootfs                    9.5M      3.1M      6.4M  33% /
/dev/root                 9.3M      9.3M         0 100% /rom
tmpfs                    61.9M    688.0K     61.2M   1% /tmp
/dev/mtdblock6            9.5M      3.1M      6.4M  33% /overlay
overlayfs:/overlay        9.5M      3.1M      6.4M  33% /
tmpfs                   512.0K         0    512.0K   0% /dev
/dev/mtdblock10          64.8M      6.3M     58.5M  10% /storage
/dev/mtdblock10          64.8M      6.3M     58.5M  10% /etc/cmh-firmware
/dev/mtdblock10          64.8M      6.3M     58.5M  10% /etc/cmh-backup
/dev/mtdblock9            4.8M      4.8M         0 100% /mios

At that point I was tired of screwing around and decided to take things into my own hands as dataMine’s automounting is apparently now borked under UI7.


So for those playing along at home, here’s how you make dataMine work under a recent UI7 (mine is 1.7.1248):

[ol][li]plug in a memory stick[/li]
[li]go into settings, logs, click on “store logs on usb device”. Vera will reformat your USB stick and reboot.[/li]
[li]Go back into settings logs, then click off storing logs on usb device. Vera will reboot. (This is necessary so that in case you accidentally click it on again in the future, you don’t lose everything when vera insists on formatting it. You will sacrifice 1/2 gig on your thumb drive for this assurance. I think it’s worth it.)[/li]
[li]ssh into your vera edge[/li]
[li]mke2fs -L dataMine /dev/sda2

(This will create an ext2 filesystem on your second partition on your USB stick. Vera edge can format but not mount ext3 filesystems. It crashes and reboots if you try and manually mount an ext3 filesystem. Go figure!!)[/li]
[li]mkdir /dataMine[/li]
[li]mount /dev/sda2 /dataMine[/li]
[li]exit[/li]
[li]Now open up the web interface, go into the datamine device, click advanced, then click on variables. Don’t forget to click on the “switch to input type text” checkbox before each entry before you type in it!![/li]
[li]Clear SetMountUUID, if set[/li]
[li]Clear SetMountPoint, if set[/li]
[li]Set SetManualMount to 1[/li]
[li]Click on Apps, develop apps, then edit startup lua[/li][/ol]

Put the following code in your lua startup:

local cmd="mount /dev/sda2 /dataMine"
local ok = os.execute(cmd)

Reboot one last time and you should, finally, be able to run dataMine correctly, without trampling your root filesystem! (…that’s good.)[/quote]

Thank you sir for this post. It solved my issues.