You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Command line tool to migrate UI config to files for **OpenHAB v. 4** (semantic model compatible)
3
+
Command line tools to help migrating configuration from UI to files for **OpenHAB v. 4** (semantic model compatible)
4
4
5
-
This tool is writter in **PHP 8** and can be run as a docker container in Windows, using runme.bat. Otherwise you could run by yourself using a local **PHP 8** installation
5
+
These tools are written in **PHP 8** and can be run as a docker container in Windows, using the provided runme_XXXX.bat. Otherwise you could run by yourself using a local **PHP 8** installation
6
6
7
-
It generate things and items files, partial services.cfg file and json rules source files to be imported using API, reading bridges, things, channels, links, location, equipments, groups, points, items, rules and addons from OpenHAB 4 configuration using API Rest.
7
+
At this moment there are two distinct scripts
8
+
9
+
## convert.php
10
+
11
+
It generates things and items files, partial services.cfg file for addons and json rules(scenes source files to be imported using API (or the import_rules.php script), reading bridges, things, channels, links, location, equipments, groups, points, items, rules/scenes and addons from OpenHAB 4 configuration using API Rest.
8
12
9
13
- .things files (bridges, things and channels) will be generated in *output_folder*/things
10
14
- .items files (locations, equipments, groups, points, items and links) will be generated in *output_folder*/items
@@ -15,8 +19,28 @@ In the *output_folder* there is 1 file
15
19
16
20
- XX_addonsconfig.txt: config variables for installed addons as simple reference
17
21
18
-
## Usage
22
+
###Usage
19
23
20
24
- Copy *params.php.template* in *params.php* and populate config variables according to your setup
21
-
- Run *runme.bat*
25
+
- Run *runme_convert.bat*
22
26
- Files will be generated in output folder
27
+
28
+
## import_rules.php
29
+
30
+
It create rules and scenes on the destination platform, reading the json payload files generated by the **convert.php** software (*see previous chapter*)
31
+
32
+
### Usage
33
+
34
+
- Copy *params_dest.php.template* in *params_dest.php* and populate config variables according to your setup
35
+
- Run *runme_import_rules.bat*
36
+
- You can follow the progress in the terminal output
37
+
38
+
# DISCLAIMER
39
+
40
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
41
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
42
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
43
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
44
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
45
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
0 commit comments