At this point i just want it too work or give a sign of progress its like im still on the start square of this task and i have devoted quite alot of time already and so have the people helping me
I will install the Binding add the thing cant hurt
This will be my first text thing file my other things are created by paper ui my items and rules are text
2018-08-02 23:19:06.090 [INFO ] [el.core.internal.ModelRepositoryImpl] - Loading model 'Test.things'
2018-08-02 23:19:06.516 [WARN ] [hab.binding.exec.handler.ExecHandler] - Couldn't transform response because transformationService of type 'REGEX' is unavailable
==> /var/log/openhab2/events.log <==
2018-08-02 23:19:06.224 [hingStatusInfoChangedEvent] - 'exec:command:kodidbupdate' changed from UNINITIALIZED to INITIALIZING
2018-08-02 23:19:06.240 [hingStatusInfoChangedEvent] - 'exec:command:kodidbupdate' changed from INITIALIZING to ONLINE
Yeah, try to install the regex transformation too. I think that the --data-binary part in the command is kind of , or at least handled as, a regular expression.
Info: Kodi will execute the command once, immediately after you saved the things file, so you should see if it works without the need to trigger the item.
I can confirm that this worked but you used the VideoLibrary.Clean this cleans the library changing too VideoLibrary.Scan updated the library perfectly
Kodi did run the update as soon as i saved the thing file it also ran it after i pressed the button
Just need too remove the auto part of that now so its only manual…
I removed interval part and re saved it scanned the libary again
Haha, f*ck, sry dude - you´re right. Used one of the sample codes on the kodi wiki and didn´t recognize it was the VideoLibrary.Clean - Hope I didn´t wiped you´re whole library…
I have been watching for a while now it works perfectly but it seems to be running the update db every 3 mins or so i have removed the interval ?
2018-08-02 23:21:14.393 [.ItemChannelLinkAddedEvent] - Link 'Kodi_DBUpdate-exec:command:kodidbupdate:run' has been added.
2018-08-02 23:22:40.294 [vent.ItemStateChangedEvent] - Kodi_DBUpdate changed from NULL to ON
2018-08-02 23:22:40.491 [vent.ItemStateChangedEvent] - Kodi_DBUpdate changed from ON to OFF
2018-08-02 23:23:01.187 [ome.event.ItemCommandEvent] - Item 'Kodi_DBUpdate' received command OFF
2018-08-02 23:23:44.256 [ome.event.ItemCommandEvent] - Item 'Kodi_DBUpdate' received command ON
2018-08-02 23:23:44.270 [vent.ItemStateChangedEvent] - Kodi_DBUpdate changed from OFF to ON
2018-08-02 23:23:44.500 [vent.ItemStateChangedEvent] - Kodi_DBUpdate changed from ON to OFF
2018-08-02 23:24:09.720 [ome.event.ItemCommandEvent] - Item 'Kodi_DBUpdate' received command OFF
2018-08-02 23:24:10.821 [ome.event.ItemCommandEvent] - Item 'Kodi_DBUpdate' received command ON
2018-08-02 23:24:10.834 [vent.ItemStateChangedEvent] - Kodi_DBUpdate changed from OFF to ON
2018-08-02 23:24:11.024 [vent.ItemStateChangedEvent] - Kodi_DBUpdate changed from ON to OFF
2018-08-02 23:31:17.544 [vent.ItemStateChangedEvent] - Kodi_DBUpdate changed from OFF to ON
2018-08-02 23:31:59.122 [ome.event.ItemCommandEvent] - Item 'Kodi_DBUpdate' received command OFF
2018-08-02 23:31:59.133 [vent.ItemStateChangedEvent] - Kodi_DBUpdate changed from ON to OFF
2018-08-02 23:33:39.188 [ome.event.ItemCommandEvent] - Item 'Kodi_DBUpdate' received command ON
2018-08-02 23:33:39.199 [vent.ItemStateChangedEvent] - Kodi_DBUpdate changed from OFF to ON
2018-08-02 23:34:02.370 [vent.ItemStateChangedEvent] - Kodi_DBUpdate changed from ON to OFF
2018-08-02 23:34:15.441 [vent.ItemStateChangedEvent] - Kodi_DBUpdate changed from OFF to ON
2018-08-02 23:34:15.618 [vent.ItemStateChangedEvent] - Kodi_DBUpdate changed from ON to OFF
2018-08-02 23:34:18.100 [ome.event.ItemCommandEvent] - Item 'Kodi_DBUpdate' received command OFF
2018-08-02 23:34:20.783 [ome.event.ItemCommandEvent] - Item 'Kodi_DBUpdate' received command ON
2018-08-02 23:34:20.794 [vent.ItemStateChangedEvent] - Kodi_DBUpdate changed from OFF to ON
2018-08-02 23:34:21.015 [vent.ItemStateChangedEvent] - Kodi_DBUpdate changed from ON to OFF
2018-08-02 23:34:25.569 [ome.event.ItemCommandEvent] - Item 'Kodi_DBUpdate' received command OFF
2018-08-02 23:34:53.666 [vent.ItemStateChangedEvent] - Kodi_DBUpdate changed from OFF to ON
2018-08-02 23:34:53.890 [vent.ItemStateChangedEvent] - Kodi_DBUpdate changed from ON to OFF
2018-08-02 23:35:28.391 [ome.event.ItemCommandEvent] - Item 'Kodi_DBUpdate' received command ON
2018-08-02 23:35:28.414 [vent.ItemStateChangedEvent] - Kodi_DBUpdate changed from OFF to ON
2018-08-02 23:35:28.626 [vent.ItemStateChangedEvent] - Kodi_DBUpdate changed from ON to OFF
2018-08-02 23:38:30.672 [vent.ItemStateChangedEvent] - Kodi_DBUpdate changed from OFF to ON
2018-08-02 23:38:30.861 [vent.ItemStateChangedEvent] - Kodi_DBUpdate changed from ON to OFF
2018-08-02 23:39:30.863 [vent.ItemStateChangedEvent] - Kodi_DBUpdate changed from OFF to ON
2018-08-02 23:39:31.066 [vent.ItemStateChangedEvent] - Kodi_DBUpdate changed from ON to OFF
2018-08-02 23:40:31.072 [vent.ItemStateChangedEvent] - Kodi_DBUpdate changed from OFF to ON
2018-08-02 23:40:31.281 [vent.ItemStateChangedEvent] - Kodi_DBUpdate changed from ON to OFF
2018-08-02 23:41:31.290 [vent.ItemStateChangedEvent] - Kodi_DBUpdate changed from OFF to ON
2018-08-02 23:41:31.504 [vent.ItemStateChangedEvent] - Kodi_DBUpdate changed from ON to OFF
2018-08-02 23:42:31.515 [vent.ItemStateChangedEvent] - Kodi_DBUpdate changed from OFF to ON
2018-08-02 23:42:31.753 [vent.ItemStateChangedEvent] - Kodi_DBUpdate changed from ON to OFF
2018-08-02 23:43:31.768 [vent.ItemStateChangedEvent] - Kodi_DBUpdate changed from OFF to ON
2018-08-02 23:43:32.005 [vent.ItemStateChangedEvent] - Kodi_DBUpdate changed from ON to OFF
2018-08-02 23:44:32.015 [vent.ItemStateChangedEvent] - Kodi_DBUpdate changed from OFF to ON
2018-08-02 23:44:32.301 [vent.ItemStateChangedEvent] - Kodi_DBUpdate changed from ON to OFF
2018-08-02 23:45:32.274 [vent.ItemStateChangedEvent] - Kodi_DBUpdate changed from OFF to ON
2018-08-02 23:45:32.525 [vent.ItemStateChangedEvent] - Kodi_DBUpdate changed from ON to OFF
2018-08-02 23:46:32.546 [vent.ItemStateChangedEvent] - Kodi_DBUpdate changed from OFF to ON
2018-08-02 23:46:32.753 [vent.ItemStateChangedEvent] - Kodi_DBUpdate changed from ON to OFF
2018-08-02 23:47:32.774 [vent.ItemStateChangedEvent] - Kodi_DBUpdate changed from OFF to ON
2018-08-02 23:47:47.193 [ome.event.ItemCommandEvent] - Item 'Kodi_DBUpdate' received command OFF
2018-08-02 23:47:47.201 [vent.ItemStateChangedEvent] - Kodi_DBUpdate changed from ON to OFF
2018-08-02 23:48:53.525 [vent.ItemStateChangedEvent] - Kodi_DBUpdate changed from OFF to ON
2018-08-02 23:48:53.720 [vent.ItemStateChangedEvent] - Kodi_DBUpdate changed from ON to OFF
2018-08-02 23:49:53.742 [vent.ItemStateChangedEvent] - Kodi_DBUpdate changed from OFF to ON
2018-08-02 23:49:53.984 [vent.ItemStateChangedEvent] - Kodi_DBUpdate changed from ON to OFF
2018-08-02 23:50:53.999 [vent.ItemStateChangedEvent] - Kodi_DBUpdate changed from OFF to ON
2018-08-02 23:50:54.218 [vent.ItemStateChangedEvent] - Kodi_DBUpdate changed from ON to OFF
took that as a base for the exec command and trying around a bit - and this is definitely one of the downsides using the exec binding: the syntax. But after a few minutes, there was success.
The will to digg into some stuff and understand what you´re doing, is the key to success.
I had popped into this thread a few days ago, but didn’t realize you had been struggling with this… better late than never! To do this with executeCommandLine, you need to triple escape some of the quotes…
This post also contains the version of exec I am dealing with it was a post talking about different ways too do what I wanted its not just about the exec command and I was receiving the whitelist error so it must affect exec command?
I wrote this post its where I originally found out how too get openhab too updated the kodi library the people on this post helped me with the topic in the first place so I think it’s appropriate enought too add it here for anyone else who might encounter the same problem and also help too troubleshoot the issue, it also helps me keep track of related posts for future reference