cometVisu UI under openHab2 running on Win 10

I installed cometVisu via paperUI and found a cometVisu.cfg file in my conf folder. The first 2 lines ask for folders to the installed comentVisu stuff(configs etc). if I give a folder relative to “D:\openHab2\conf\html” (for example “webFolder=cometVisu and webAlias=cometVisu”, the log say after saving the cfg:
started cometVius UI at /cometVisu serving cometVisu
initila pwd /d:/openHab2/userdata/cometVisu
initial webInf /d:/openHab2/userdata/cometVisu
Stopped CometVisu UI

and the browser tells me error 404 for http://localhost:8080/cometvisu/?config=demo

Is the UI not for Windows platform or what is the correct path and folders to be used ?

Currently the cometvisu has a bug in the openhab2 beta and does not work at all. We are working to fix this. Another Thing that I never tried to Run the cometvisu on Windows so this is probably another bug to be fixed.

What platforms does it work on? I am getting the same under OSX.

As I said, it does not work at all. This bug is platform independent.

Is there any timeline or updates as to when CometVisu UI will work?

Has been fixed already, so it should be part of the next beta release (or the current nightly builds)

The issue is the same on version 2.0.0-SNAPSHOT Build #710. Anybody working on this?

I am getting:
HTTP ERROR 404
Problem accessing /cometvisu/. Reason:
Not Found

Guys, anybody can help me to troubleshoot this? Should this work at all?

@Mage Could you post the content of your services/cometvisu.cfg file here? It sounds like the configured path to the CometVisu is wrong

Thanks for the response. Please find config file below.

webFolder=…/…/…/CometVisu/src/
webAlias=/cometvisu

icons>enableMapping=true

icons.mapping>firstfloor=control_building_int_og
icons.mapping>groundfloor=control_building_int_eg
icons.mapping>cellar=control_building_int_kg
icons.mapping>garden=scene_garden
icons.mapping>sun=weather_sun
icons.mapping>video=scene_livingroom
icons.mapping>kitchen=scene_dinner
icons.mapping>bath=scene_bath
icons.mapping>corridor=scene_hall
icons.mapping>office=scene_office
icons.mapping>boy1=scene_childs_room
icons.mapping>bedroom=scene_sleeping
icons.mapping>heating=sani_heating
icons.mapping>temperature=temp_temperature
icons.mapping>contact=fts_window_1w

You should use an absolute path to the CometVisu folder (the one were CometVisu’s index.html is in) for the ‘webFolder’ setting.

Yes, thanks. Modifying webfolder in the following way solved the issue:

webFolder=c:\OpenHAB\runtime\release\

The UI itself works. It generates the config using a sitemap and looks ok more or less.

But the following links below doesn’t work. I am getting a blank white screen. Any idea?

http://openhab-server:8080//icon/knx-uf-iconset/showicons.php
http://openhab-server:8080//check_config.php?config=demo
http://openhab-server:8080//editor/?config=demo

All those links need PHP support, which means either you did not install the cometvisu-php bundle or it has not been loaded correctly. Some users reported problems with loading the bundle and they solved it by manually reloading (on the console) the cometvisu-php bundle and the cometvisu bundle afterwards. Maybe you have the same issue.

I shut down and reloaded the whole OH2 which didnt solve the issue. I have cometvisu php bundle installed from the Paper UI. Anything else I need to add? I mean do I need to copy any additional files or folders? How can I restart services?

Restarting the whole OH2 was not what I meant. I was talking only about the single cometvisu and cometvisu-php bundles which can be restarted from the console: http://docs.openhab.org/administration/console.html

You don’ t have to configure or copy anything for the cometvisu-php bundle installing it from the paper ui should be enough. But as said sometimes the cometvisu bundle does not recognize that the cometvisu-php is installed, and restarting the bundles might solve that problem.

Hmm… i can’t find an release folder or an index.html

After installing the bundle (comet-ui and PHP support) on an RPI nightly build package and searching trough /etc/openhab2 and /usr/share/openhab2 the only “CometVisu” related file I found is this:
/etc/openhab2/services/cometvisu.cfg

With the followeing content:

webFolder=../../../CometVisu/src/
webAlias=/cometvisu


icons>enableMapping=true

icons.mapping>firstfloor=control_building_int_og
icons.mapping>groundfloor=control_building_int_eg
icons.mapping>cellar=control_building_int_kg
[...]

Of cause the webFolder=../../../CometVisu/src/ will not work

Any idea?

You have to install the CometVisu client also:

Hi

I created a folder a CometVisu folder i the html folder

/openhab2/conf/html/CometVisu

In this folder i uploaded the release folder

i edit the cometvisu.cfg file:

webFolder=../conf/html/CometVisu/release/
webAlias=/cometvisu


icons>enableMapping=true

icons.mapping>firstfloor=control_building_int_og
icons.mapping>groundfloor=control_building_int_eg
icons.mapping>cellar=control_building_int_kg
icons.mapping>garden=scene_garden
icons.mapping>sun=weather_sun			
icons.mapping>video=scene_livingroom
icons.mapping>kitchen=scene_dinner
icons.mapping>bath=scene_bath
icons.mapping>corridor=scene_hall
icons.mapping>office=scene_office			
icons.mapping>boy1=scene_childs_room
icons.mapping>bedroom=scene_sleeping
icons.mapping>heating=sani_heating
icons.mapping>temperature=temp_temperature
icons.mapping>contact=fts_window_1w

it worked foe me.

Now i have to learn how to maka a CometVisu site :slight_smile: