Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set url to virtual cam bug #2

Open
tikismoke opened this issue Apr 7, 2016 · 2 comments
Open

Set url to virtual cam bug #2

tikismoke opened this issue Apr 7, 2016 · 2 comments

Comments

@tikismoke
Copy link
Contributor

I want to add this url to a video device:

http://x.x.x.x/cgi-bin/nph-zms?mode=jpeg&monitor=3

Result is that Virtual Video sensor is:

http://x.x.x.x/cgi-bin/nph-zms?mode=jpeg

After the '&' the url is stripped

@vdomos
Copy link
Owner

vdomos commented Apr 7, 2016

It' works for me with parameter of the vdevice set to this link:

domogik_plugin_vdevice_3

But, it's don't work with a REST Call like this:

$ wget -q  http://hermes:40406/rest/cmd/id/111?value='http://x.x.x.x/cgi-bin/nph-zms?mode=jpeg&vdevice=3'

2016-04-07 22:09:59,853 domogik-xplgw DEBUG MQ Request received : <MQMessage(action=cmd.send, data='{u'cmdid': 111, u'cmdparams': {u'vdevice': u'3', u'value': u'http://x.x.x.x/cgi-bin/nph-zms?mode=jpeg'}}')>
2016-04-07 22:09:59,854 domogik-xplgw INFO Received new cmd request: <MQMessage(action=cmd.send, data='{u'cmdid': 111, u'cmdparams': {u'vdevice': u'3', u'value': u'http://x.x.x.x/cgi-bin/nph-zms?mode=jpeg'}}')>
2016-04-07 22:09:59,864 domogik-xplgw DEBUG       => Command parameter after conversion value = http://x.x.x.x/cgi-bin/nph-zms?mode=jpeg

The xplgw received the command before the plugin and the link is already incomplete, possible issue or security with the '&' character in xplgw ?

Possible solution:

$ wget -q  http://hermes:40406/rest/cmd/id/111?value='http://x.x.x.x/cgi-bin/nph-zms?mode=jpeg%26vdevice=4'

2016-04-07 22:15:10,970 domogik-xplgw DEBUG MQ Request received : <MQMessage(action=cmd.send, data='{u'cmdid': 111, u'cmdparams': {u'value': u'http://x.x.x.x/cgi-bin/nph-zms?mode=jpeg&vdevice=4'}}')>
2016-04-07 22:15:10,970 domogik-xplgw INFO Received new cmd request: <MQMessage(action=cmd.send, data='{u'cmdid': 111, u'cmdparams': {u'value': u'http://x.x.x.x/cgi-bin/nph-zms?mode=jpeg&vdevice=4'}}')>
2016-04-07 22:15:10,983 domogik-xplgw DEBUG       => Command parameter after conversion value = http://x.x.x.x/cgi-bin/nph-zms?mode=jpeg&vdevice=4

@tikismoke
Copy link
Contributor Author

Crap just try with Firefox in URL address directly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants