Help with scene scripting trough http

Hi!
I’m a vera/luup novice. And I really need some help with my scene scripting - so any help will be highly appreciated!
My coding experience is limited to html/css and basic java.
My setup includes VeraLite and a “mercury lock motor sm-42byg011” (lock). At this moment I am able to open and lock the mercury lock trough miCasaVerde.

So heres my use-case:
(1)On a mobile phone, a user opens a website (made by me). (2)Here they type in only a password. (3)Then the lock open or closes.

I’m thinking that this is possible through a http request in the .html doc, but I’m not sure. ???

I have searched the forum and the wiki, but I can’t find information that is relevant or understandable for me.
Can anyone please help break it down for me so that I can understand the process.
However, any replies are appriciated! :slight_smile:

See:
http://wiki.micasaverde.com/index.php/Luup_Requests#action

Also at the bottom it tells how to convert the LAN request into an Internet accessible request.
(Additionally Requires MCV User Name, Password, and Vera ID)

But there are plenty of Phone based applications that can open/close a Vera controlled lock for you.

Thanks!
I have read that wiki page, and I’m not sure I really understand these URL’s completely.
If I just enter this URL in my browser shouldn’t it able to activate the scene if it’s on the same network and I use my IP adress and the correct scene number? I have also tried several different URL’s, but i can’t get it to work.

The URL: http://IP/:3480/data_request?id=lu_action&serviceId=urn:micasaverde-com:serviceId:HomeAutomationGateway1&action=RunScene&SceneNum=9

In this case I get “access error: 404 – not found”

it’s IP:3480/
Not: IP/:3480

Thank you so much, it worked! :slight_smile:

Just one more question. Do you know why the browser page display an error when the URL is executed and the scene is run?

Error message:
This page contains the following errors:

error on line 2 at column 28: xmlns:u: ‘Unknown Service’ is not a valid URI
Below is a rendering of the page up to the first error.

OK

Also now i’m having a related problem. As you said about remote access, I tried this URL:

https://fwdx.mios.com/username/password/serialNr/data_request?id=lu_action&serviceId=urn:micasaverde-com:serviceId:HomeAutomationGateway1&action=RunScene&SceneNum=9

But it doesn’t work, does anyone know why?

You need to use the right forward server.