vosmont
December 8, 2016, 9:35pm
201
[quote=“vosmont, post:180, topic:191587”]It seems that the logs
/var/log/z-way-server.log
/var/log/cmh/LuaUPnP.log
/home/pi/vera/cmh-ludl/LuaUPnP.log
are not written in RAM. It could quickly dammage the SD card ?[/quote]
In order to spare the SD card, it’s possible to put these files in memory (it means they are lost at a reboot) :
sudo nano /etc/fstab
put these lines :
tmpfs /tmp tmpfs defaults,noatime,nosuid,size=10m 0 0
tmpfs /var/tmp tmpfs defaults,noatime,nosuid,size=10m 0 0
tmpfs /var/log tmpfs defaults,noatime,nosuid,mode=0755,size=10m 0 0
(size could be extended to more than 10 mo)
the result :
pi@openLuup:~ $ df
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/root 7546488 1077108 6136528 15% /
devtmpfs 218416 0 218416 0% /dev
tmpfs 222688 0 222688 0% /dev/shm
tmpfs 222688 4600 218088 3% /run
tmpfs 5120 12 5108 1% /run/lock
tmpfs 222688 0 222688 0% /sys/fs/cgroup
tmpfs 10240 1096 9144 11% /var/log
tmpfs 10240 0 10240 0% /var/tmp
tmpfs 10240 16 10224 1% /tmp
/dev/mmcblk0p1 61384 20328 41056 34% /boot
It remains /home/pi/vera/cmh-ludl/LuaUPnP.log that is written on the SD card.
vosmont
December 8, 2016, 9:46pm
202
… :
I’ve removed /tmp from the tmpfs : I could no more upgrade razberry
Ok. I’ve completely rebuilt this thing and it’s now stable. Still tweaking a few things but I’m backing the SD card up between steps.
CudaNet
December 9, 2016, 6:36pm
204
What’s causing you to rebuild ? Anything I can assist with ?
I screwed something up the first time. It WAS stable. Shut it down and on reboot I get this for a log…
2016-12-08 22:05:40.389 :: openLuup STARTUP ::
2016-12-08 22:05:40.391 openLuup.init:: version 2016.06.21 @akbooer
2016-12-08 22:05:41.728 openLuup.scheduler:: version 2016.04.30 @akbooer
2016-12-08 22:05:41.764 openLuup.wsapi:: version 2016.05.30 @akbooer
2016-12-08 22:05:41.776 openLuup.server:: version 2016.06.09 @akbooer
2016-12-08 22:05:41.941 openLuup.plugins:: version 2016.06.20 @akbooer
2016-12-08 22:05:42.080 openLuup.scenes:: version 2016.05.19 @akbooer
2016-12-08 22:05:42.188 openLuup.rooms:: version 2016.04.30 @akbooer
2016-12-08 22:05:42.227 openLuup.chdev:: version 2016.06.02 @akbooer
2016-12-08 22:05:42.228 openLuup.userdata:: version 2016.06.21 @akbooer
2016-12-08 22:05:42.271 openLuup.io:: version 2016.04.30 @akbooer
2016-12-08 22:05:42.272 openLuup.luup:: version 2016.06.06 @akbooer
2016-12-08 22:05:42.423 openLuup.requests:: version 2016.06.20 @akbooer
2016-12-08 22:05:42.780 luup.create_device:: [1] D_ZWaveNetwork.xml / I_ZWave.xml /
2016-12-08 22:05:42.981 luup.create_device:: [2] D_openLuup.xml / I_openLuup.xml / D_openLuup.json
2016-12-08 22:05:43.004 openLuup.init:: loading configuration user_data.json
2016-12-08 22:05:43.074 openLuup.userdata:: loading user_data json...
2016-12-09 21:00:34.034 openLuup.userdata:: loading rooms...
2016-12-09 21:00:34.035 openLuup.userdata:: room#1 'MiOS-50005167'
2016-12-09 21:00:34.035 openLuup.userdata:: ...room loading completed
2016-12-09 21:00:34.036 openLuup.userdata:: loading devices...
2016-12-09 21:00:34.168 luup.create_device:: [1] D_ZWaveNetwork.xml / X /
2016-12-09 21:00:36.527 luup.create_device:: [3] D_ALTUI.xml / I_ALTUI.xml / D_ALTUI_UI7.json
2016-12-09 21:00:36.803 luup.create_device:: [4] D_AltAppStore.xml / I_AltAppStore.xml / D_AltAppStore.json
2016-12-09 21:00:37.044 luup.create_device:: [5] D_VeraBridge.xml / I_VeraBridge.xml / D_VeraBridge.json
2016-12-09 21:00:37.085 luup.create_device:: [10106] D_ALTUI.xml / X / D_ALTUI_UI7.json
2016-12-09 21:00:37.206 luup.create_device:: [10107] D_Ecobee1.xml / X / D_Ecobee1.json
2016-12-09 21:00:37.618 luup.create_device:: [10108] D_PingSensor.xml / X / D_PingSensor_UI7.json
2016-12-09 21:00:37.689 luup.create_device:: [10109] D_PingSensor.xml / X / D_PingSensor_UI7.json
2016-12-09 21:00:52.067 luup.create_device:: [10110] D_EcobeeThermostat1.xml / X / D_EcobeeThermostat1.json
2016-12-09 21:00:52.218 luup.create_device:: [10111] D_EcobeeHumidistat1.xml / X / D_EcobeeHumidistat1.json
2016-12-09 21:00:52.513 luup.create_device:: [10112] D_EcobeeHouse1.xml / X / D_EcobeeHouse1.json
2016-12-09 21:00:52.696 luup.create_device:: [10113] D_TemperatureSensor1.xml / X / D_TemperatureSensor1.json
2016-12-09 21:00:52.879 luup.create_device:: [10114] D_HumiditySensor1.xml / X / D_HumiditySensor1.json
2016-12-09 21:00:53.158 luup.create_device:: [10115] D_MotionSensor1.xml / X / D_MotionSensor1.json
2016-12-09 21:00:53.184 luup.create_device:: [10116] D_TemperatureSensor1.xml / X / D_TemperatureSensor1.json
2016-12-09 21:00:53.202 luup.create_device:: [10117] D_MotionSensor1.xml / X / D_MotionSensor1.json
2016-12-09 21:00:53.661 luup.create_device:: [10118] D_VSwitch.xml / X / D_VSwitch_UI7.json
2016-12-09 21:00:53.714 luup.create_device:: [10119] D_VSwitch.xml / X / D_VSwitch_UI7.json
2016-12-09 21:00:53.771 luup.create_device:: [10120] D_VSwitch.xml / X / D_VSwitch_UI7.json
2016-12-09 21:00:53.776 luup.create_device:: [10121] D_TemperatureSensor1.xml / X / D_TemperatureSensor1.json
2016-12-09 21:00:53.826 luup.create_device:: [10122] D_MotionSensor1.xml / X / D_MotionSensor1.json
2016-12-09 21:00:53.839 luup.create_device:: [10123] D_TemperatureSensor1.xml / X / D_TemperatureSensor1.json
2016-12-09 21:00:53.877 luup.create_device:: [10124] D_MotionSensor1.xml / X / D_MotionSensor1.json
2016-12-09 21:00:53.922 luup.create_device:: [10125] D_TemperatureSensor1.xml / X / D_TemperatureSensor1.json
2016-12-09 21:00:53.927 luup.create_device:: [10126] D_MotionSensor1.xml / X / D_MotionSensor1.json
2016-12-09 21:00:53.992 luup.create_device:: [10127] D_TemperatureSensor1.xml / X / D_TemperatureSensor1.json
2016-12-09 21:00:53.996 luup.create_device:: [10128] D_MotionSensor1.xml / X / D_MotionSensor1.json
2016-12-09 21:00:54.067 luup.create_device:: [10002] D_ZigbeeNetwork.xml / X /
2016-12-09 21:00:54.171 luup.create_device:: [10003] D_BluetoothNetwork.xml / X /
2016-12-09 21:00:54.299 luup.create_device:: [10004] D_SceneController1.xml / X / D_SceneController1.json
2016-12-09 21:00:54.853 luup.create_device:: [10005] D_DoorLock1.xml / X / D_DoorLock1.json
2016-12-09 21:00:54.893 luup.create_device:: [10006] D_DoorLock1.xml / X / D_DoorLock1.json
2016-12-09 21:00:55.243 luup.create_device:: [10007] D_BinaryLight1.xml / X / D_BinaryLight1.json
2016-12-09 21:00:55.291 luup.create_device:: [10135] D_AltAppStore.xml / X / D_AltAppStore.json
2016-12-09 21:00:55.296 luup.create_device:: [10009] D_BinaryLight1.xml / X / D_BinaryLight1.json
2016-12-09 21:00:55.337 luup.create_device:: [10010] D_BinaryLight1.xml / X / D_BinaryLight1.json
2016-12-09 21:00:56.461 luup.create_device:: [10011] D_DimmableLight1.xml / X / D_DimmableLight1.json
2016-12-09 21:00:56.469 luup.create_device:: [10012] D_MotionSensor1.xml / X / D_MotionSensor1.json
2016-12-09 21:00:56.527 luup.create_device:: [10013] D_TemperatureSensor1.xml / X / D_TemperatureSensor1.json
2016-12-09 21:00:56.696 luup.create_device:: [10014] D_LightSensor1.xml / X / D_LightSensor1.json
2016-12-09 21:00:56.751 luup.create_device:: [10015] D_HumiditySensor1.xml / X / D_HumiditySensor1.json
2016-12-09 21:00:56.916 luup.create_device:: [10016] D_DoorSensor1.xml / X / D_DoorSensor1.json
2016-12-09 21:00:56.966 luup.create_device:: [10017] D_BinaryLight1.xml / X / D_BinaryLight1.json
2016-12-09 21:00:57.015 luup.create_device:: [10018] D_VSwitch.xml / X / D_VSwitch_UI7.json
2016-12-09 21:00:57.072 luup.create_device:: [10020] D_VSwitch.xml / X / D_VSwitch_UI7.json
2016-12-09 21:00:57.075 luup.create_device:: [10021] D_ProgramLogicEG.xml / X / D_ProgramLogicEG.json
2016-12-09 21:00:57.080 luup.create_device:: [10022] D_ProgramLogicC.xml / X /
2016-12-09 21:00:57.302 luup.create_device:: [10023] D_DayTime.xml / X / D_DayTime.json
2016-12-09 21:00:57.318 luup.create_device:: [10024] D_VSwitch.xml / X / D_VSwitch_UI7.json
2016-12-09 21:00:57.476 luup.create_device:: [10025] D_AutoVera.xml / X / D_AutoVera.json
2016-12-09 21:00:57.593 luup.create_device:: [10026] D_VeraAlert.xml / X / D_VeraAlert.json
2016-12-09 21:00:57.632 luup.create_device:: [10027] D_VSwitch.xml / X / D_VSwitch_UI7.json
2016-12-09 21:00:57.639 luup.create_device:: [10028] D_BinaryLight1.xml / X / D_BinaryLight1.json
2016-12-09 21:00:57.733 luup.create_device:: [10029] D_BinaryLight1.xml / X / D_BinaryLight1.json
2016-12-09 21:00:57.739 luup.create_device:: [10030] D_BinaryLight1.xml / X / D_BinaryLight1.json
2016-12-09 21:00:57.776 luup.create_device:: [10031] D_BinaryLight1.xml / X / D_BinaryLight1.json
2016-12-09 21:00:57.842 luup.create_device:: [10038] D_VSwitch.xml / X / D_VSwitch_UI7.json
2016-12-09 21:00:57.848 luup.create_device:: [10046] D_BinaryLight1.xml / X / D_BinaryLight1.json
2016-12-09 21:00:57.924 luup.create_device:: [10047] D_BinaryLight1.xml / X / D_BinaryLight1.json
2016-12-09 21:00:57.962 luup.create_device:: [10048] D_BinaryLight1.xml / X / D_BinaryLight1.json
2016-12-09 21:00:58.018 luup.create_device:: [10049] D_VSwitch.xml / X / D_VSwitch_UI7.json
2016-12-09 21:00:58.035 luup.create_device:: [10054] D_MotionSensor1.xml / X / D_MotionSensor1.json
2016-12-09 21:00:58.081 luup.create_device:: [10055] D_MotionSensor1.xml / X / D_MotionSensor1.json
2016-12-09 21:00:58.086 luup.create_device:: [10056] D_MotionSensor1.xml / X / D_MotionSensor1.json
2016-12-09 21:00:58.134 luup.create_device:: [10057] D_MotionSensor1.xml / X / D_MotionSensor1.json
2016-12-09 21:00:59.227 luup.create_device:: [10059] D_MSwitch59.xml / X / D_MSwitch59.json
2016-12-09 21:00:59.712 luup.create_device:: [10062] D_VSwitch.xml / X / D_VSwitch_UI7.json
2016-12-09 21:00:59.719 luup.create_device:: [10063] D_DoorSensor1.xml / X / D_DoorSensor1.json
2016-12-09 21:00:59.783 luup.create_device:: [10068] D_ProgramLogicEG.xml / X / D_ProgramLogicEG.json
2016-12-09 21:01:01.629 luup.create_device:: ERROR [10069] D_FUP_uuid 2abc2f5b-9df5-4e71-b7c0-cb2dfeb0a857.xml / X / : ./openLuup/loader.lua:389: attempt to call method 'match' (a nil value)
Nothing changed obviously during the 24 hours it was offline but here we are…
akbooer
December 10, 2016, 8:54am
206
It’s to do with bridged device #69 on your Vera. What is that? (Looks like a UPnP device.) The problem arises because you probably don’t have that device file on your openLuiup system.
[hr]
Edit: you’re also running a very old system. Strongly suggest you use the Update button for openLuup on the Plugins page.
Device #69 doesn’t appear on my Vera but it does show up in the AltUI on the Vera as my Router. I have no idea why it’s in there… I deleted the device from AltUI on the Vera and so far so good. I have no icons on the OpenLuup AltUI instance but they’re in the directory. One thing at a time I suppose…
akbooer
December 10, 2016, 11:16pm
208
I expect that UPnP discovery found it. I would turn that off.
It’s off (I think). Any idea how to remove Weaved from this package? How does one unload as much off of the Vera as possible and rely on it mostly for the radios? I’m assuming that the physical devices stay on Vera…
akbooer
December 11, 2016, 8:45am
210
Yes, physical Z-Wave devices remain. All your scenes and plugins (or as many as run under openLuup) you move to openLuup. That’s the main idea.
That’s what I figured. Should I remove AltUi from Vera to save resources there as well?
akbooer
December 11, 2016, 4:17pm
212
I’ve kept AltUI on all my Veras, because it’s so much nicer than UI5/7. It’s not using significant resources if you aren’t using it, and when you do ha e to use it, its all familiar because you’ve been using it on openLuup. The only down side is that you have to remember whether you’re talking to Vera or openLuup!
Why would you have to remember which was which? I would think that talking to one would be the same as talking to the other. I have a few plugins on the AltUI installation on the Vera that I suppose I’ll eventually move to the OpenLuup installation. Scenes and such are easy enough to move…
akbooer
December 11, 2016, 6:18pm
214
Well, sometimes it matters: defining a scene on the wrong machine, wondering why you can’t find a device or plugin (openLuup sees the bridged Vera, but Vera does not see openLuup), …
NikV
December 12, 2016, 11:08am
215
trouble is if you use autovera/tasker on a mobile you either need to leave the scenes on the vera or what I’ve done for larger scenes (controlling more devices timers etc) is move them onto openLuup and then use a single line in scene lua on the vera - I am assuming that this doesnt take as many resources on the Vera as the original scene but not sure
luup.inet.wget "http://openLuupIP:3480/data_request?id=action&serviceId=urn:micasaverde-com:serviceId:HomeAutomationGateway1&action=RunScene&SceneNum=14"
of course it then generates a scene on openLuup - cant seem to find a way to hide scenes?
I keep hiding the AltUi on the vera so I doesnt show on openLuup but it comes back unhidden - I got into some right messes changing things on the wrong altui to start with - now I just put the devices and scenes and AltUi in the mios room and try and ignore them - it would be nice on the new “My Home” if we could have an option not to display the Mios room ;D
akbooer
December 12, 2016, 11:27am
216
in terms of storage, a scene takes up very little. What you gain, though, by moving to openLuup, is reliability.
cant seem to find a way to hide scenes?
There is, in fact, a scene attribute ‘hidden’ (in Vera, and hence in openLuup) which is used, I believe, for notifications. But I don’t think it can be used to hide scenes arbitrarily. I think you’d be unwise to do so, even if it did work. You have really provided the solution yourself below…
I just put the devices and scenes and AltUi in the mios room and try and ignore them
…sounds like a good plan.
Don’t seem to be able to keep my OpenLuup installation running more than 24 hours. I have no idea why, but it’s frustrating. I don’t believe it’s OpenLuup, I can’t even ping the damn thing today…
akbooer
December 16, 2016, 4:41pm
218
How do you start it up after a reboot (yes, reboot, not reload)?
Is that done in rc.local?
…just checking that it’s not just been starting up in a shell process which times out.
I’m running the turnkey image so however it starts is how it’s starting. I think the wireless is the issue. I have it hardwired now so I’ll see what happens. If it’s the wireless, I’ll just leave it connected to ethernet. Probably better anyhow…
akbooer
December 16, 2016, 11:21pm
220
Yes, you’re right. It doesn’t sound like an intrinsic openLuup issue, but somewhere else in the system.