Ok so I re-read your post at the beginning you say that you get the image in the browser.
Hoiw does the other camera work?
Does it point to a cgi file as well?
cgi files are website scripts not images.
wget and the browser will download the image generated by the cgi script but not the sitemap “binding”
An alternative way to do this would be to get the exec binding to execute the wget command and store the image in your /conf/html folder and then point the sitemap image to that file.
and my log file is continuously being filled with many lines like these ones:
20:33:08.338 [WARN ] [org.eclipse.jetty.http.HttpParser ] - Illegal character 0x20 in state=HEADER_IN_NAME for buffer DirectByteBuffer@693b54[p=39,l=131,c=16384,r=92]={HTTP/1.1 200 OK\r\n... GoaHead\r\nTue, <<<12 Jun 2012 01:56...ection: close\n\n>>>\xFf\xD8\xFf\xE0\x00\x10JFIF\x00\x01\x01\x00\x00\x01\x00...\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00}
20:33:08.657 [WARN ] [org.eclipse.jetty.http.HttpParser ] - bad HTTP parsed: 400 Illegal character 0x20 for HttpReceiverOverHTTP@1ab97ee(rsp=HEADER,failure=null)[HttpParser{s=HEADER_IN_NAME,0 of 0}]
20:33:09.475 [WARN ] [org.eclipse.jetty.http.HttpParser ] - Illegal character 0x20 in state=HEADER_IN_NAME for buffer DirectByteBuffer@693b54[p=39,l=131,c=16384,r=92]={HTTP/1.1 200 OK\r\n... GoaHead\r\nTue, <<<12 Jun 2012 01:56...ection: close\n\n>>>\xFf\xD8\xFf\xE0\x00\x10JFIF\x00\x01\x01\x00\x00\x01\x00...\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00}
20:33:09.795 [WARN ] [org.eclipse.jetty.http.HttpParser ] - bad HTTP parsed: 400 Illegal character 0x20 for HttpReceiverOverHTTP@1877fa4(rsp=HEADER,failure=null)[HttpParser{s=HEADER_IN_NAME,0 of 0}]
20:33:10.658 [WARN ] [org.eclipse.jetty.http.HttpParser ] - Illegal character 0x20 in state=HEADER_IN_NAME for buffer DirectByteBuffer@693b54[p=39,l=8819,c=16384,r=8780]={HTTP/1.1 200 OK\r\n... GoaHead\r\nTue, <<<12 Jun 2012 01:56...S\xA8\xD3sVw1b\x83h\x1c\x1e*\xEc\x1f>>>93\xCb<\x80\xFa\xE6\xE6c_\xC1>\xE7-u...\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00}
20:33:10.953 [WARN ] [org.eclipse.jetty.http.HttpParser ] - bad HTTP parsed: 400 Illegal character 0x20 for HttpReceiverOverHTTP@5a7e14(rsp=HEADER,failure=null)[HttpParser{s=HEADER_IN_NAME,0 of 0}]
20:33:11.626 [WARN ] [org.eclipse.jetty.http.HttpParser ] - Illegal character 0x20 in state=HEADER_IN_NAME for buffer DirectByteBuffer@693b54[p=39,l=4475,c=16384,r=4436]={HTTP/1.1 200 OK\r\n... GoaHead\r\nTue, <<<12 Jun 2012 01:56...\x1e\x80\xE3\xDa\xBeM\xFf\x00\x82|^\xC9\xE2o\x0e>>>\xAf]\xD4~&\xCf\xF0\xDbR\xF1W\x86\xF5\xFb\xA7uM...\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00}
20:33:11.934 [WARN ] [org.eclipse.jetty.http.HttpParser ] - bad HTTP parsed: 400 Illegal character 0x20 for HttpReceiverOverHTTP@c7532c(rsp=HEADER,failure=null)[HttpParser{s=HEADER_IN_NAME,0 of 0}]
20:33:12.605 [WARN ] [org.eclipse.jetty.http.HttpParser ] - Illegal character 0x20 in state=HEADER_IN_NAME for buffer DirectByteBuffer@693b54[p=39,l=131,c=16384,r=92]={HTTP/1.1 200 OK\r\n... GoaHead\r\nTue, <<<12 Jun 2012 01:56...ection: close\n\n>>>\xFf\xD8\xFf\xE0\x00\x10JFIF\x00\x01\x01\x00\x00\x01\x00...\x00\x00\x00\x00 \x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00}
..........................................................
...........................................................
The only way to avoid these errors from the sitemap is to remove the image item.
If you have found a solution I will appreciate you sharing it. I have done quite a research and have not found a way to solve it.
Sim, Namraccr… thanks for your quick reply and excuse me for bothering you.
My problem is that I don’t have enough knowledge to understand the workaround suggested by Sim.
Where should I place the following code?
I have done some research to eventually find that NGIX is already installed in the Synology NAS where my instance of openHAB is already running.
There are three .conf files under /etc/nginx (see attached nginx.txt (9.5 KB), proxy.txt (277 Bytes) and fastcgi.txt (1.1 KB) - extension changed from .conf to .txt so as to be able to upload them). I assume that the one I need to modify is ngix.conf (it is the only one where I have seen something like “location /”).
Configuration seems to be in individual server {….} blocks depending on the listening port and I can see config blocks for ports 5000, 5001, 80 and 443. All the blocks start with
Will you pls let me know if
a) ngix.conf is the config file where that I have to modify and
b) if this configuration will work or should I include additional lines?
Hello!
the configuration appears to be correct…
You can change the “/etc/nginx/sites-available/default” and left the nginx.conf standard.
Have you tested it?
Thanks Sim!
I have a rough idea of what I have to do but I don’t feel comfortable with my knowledge in regards to how to do it. That’s why I was waiting for your confirmation to ensure that this approach was correct.
I don’t have a "/etc/nginx/sites-available/default” to apply this modification. Instead there is a “nginx.conf.default” whose contents seem to be quite similar (nginx.conf.default.txt (3.4 KB)
without .txt). I have tried to apply this modification but I can’t because of an issue with permissions. I will investigate and find a way to do it. I will let you know.
Thanks a lot