homematic-community/XML-API

inconsistent path's in README and rc.d script

Yannik opened this issue · 3 comments

In the README it says:

After installation the XML-API should be avilable via the following URL call:

http://[CCU_IP]/addons/xmlapi/[ScriptName]

However, the rc.d script creates a link to /www/config/xmlapi, which corresponds to a url of http://[CCU_IP]/config/xmlapi/[ScriptName]

@Yannik Sorry, but of course /www is a valid path within a CCU environment and the lighttpd web server has normally correct pathes to access /addons/xmlapi which will be forwarded/linked to /www/config/xmlapi automatically. So please make yourself more familiar to the whole CCU/WebUI environment because I have the feeling that you are not using full-fledged RaspberryMatic or a CCU3 firmware but either debmatic/piVCCU or your own environment and you expect things to work different in these environments. So please install RaspberryMatic or CCU3 environment and see how things are working there or are configured there.

Why would you put xmlapi in /www/config/xmlapi and then link that to /addons/xmlapi in lighttpd? It seems to be much more straightforward to simply put it in /www/addons/xmlapi to me..?

@Yannik Well, that's mostly because of historical reasons and that's the way a real CCU / RaspberryMatic handles this. It has a certain directory structure and to avoid such problems like above you should avoiding deviating from it. However, regarding this ticket, this is definitly no issue as the xml-api addon is working correctly in a real CCU / RaspberryMatic system.