FHEM Forum

FHEM => English Corner => Thema gestartet von: amigob am 26 Dezember 2013, 14:29:57

Titel: Using MicroSoft TouchDevelop as front end
Beitrag von: amigob am 26 Dezember 2013, 14:29:57
Hi all
I am trying to make a frond end with Touchdevelop from Microsoft
Creating button's is easy, but I have problems creating the json requests.

Does any body already have tried this ?
https://www.touchdevelop.com/docs/webrequests
https://www.touchdevelop.com/docs/parsingdata
with this url "http://192.168.146.132:8083/fhem?cmd=set%20test%20On"

tried the download, and the request, the fhem server doesn't do anything

Bart
Titel: Antw:Using MicroSoft TouchDevelop as front end
Beitrag von: rudolfkoenig am 26 Dezember 2013, 15:08:28
Did you try this URL in the browser?
Are you sure that On is correct? I'd try with on first.
Titel: Antw:Using MicroSoft TouchDevelop as front end
Beitrag von: amigob am 26 Dezember 2013, 15:25:10
yes, it is a dummy, so the status changes, when I do it via the browser.

Bart,
Titel: Antw:Using MicroSoft TouchDevelop as front end
Beitrag von: Rince am 29 Dezember 2013, 01:45:54
Rudolf means

"http://192.168.146.132:8083/fhem?cmd=set%20test%20On"
Is wrong.


"http://192.168.146.132:8083/fhem?cmd=set%20test%20on"
should do it :)

Titel: Antw:Using MicroSoft TouchDevelop as front end
Beitrag von: amigob am 29 Dezember 2013, 23:11:46
I send this command to a DUMMY

when you set 'On', status of a dummy becomes 'On'
when you set 'ON', status of a dummy becomes 'ON'
when you set 'dummy', status of a dummy becomes 'dummy'

And that is not happening via Touch develop that I tried, but it does do this via the brouwser.

Bart,
Titel: Antw:Using MicroSoft TouchDevelop as front end
Beitrag von: amigob am 02 Januar 2014, 21:07:36
found the problem, and it can't be really fixed in a way that it is still safe.

The problem is that the request are send from the touchdevelop server, that means that
the request is done outside of my network. So the only way to get this working is to
map the 8083 port to my external IP address, that is something I will not do,
I only work local or via VPN.

So Conclusion, I will find a other way of implementing my app.

Bart
Titel: Antw:Using MicroSoft TouchDevelop as front end
Beitrag von: rudolfkoenig am 02 Januar 2014, 22:27:29
How did you find this?
Titel: Antw:Using MicroSoft TouchDevelop as front end
Beitrag von: amigob am 02 Januar 2014, 23:48:00