This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm that you accept these cookies being set.

HTTP Post
#12
(09.05.2019, 12:18)admin Wrote: Do you mean that you use port forwarding? Are two devices in the same sub-network and you want to access another device via port-forwarded IP?

No for example I have an LM in the same network as the player freebox and I would like to drive via the LM this player. 
So I have the following script (For the remote I did my tests for sending URLs because it did not work with the player, to be sure I was not wrong in the scripts).


Code:
   local http = require('socket.http')
        res, err = http.request('http://http://IPLOCAL/pub/remote_control?code=CODETELECOMMAND"&key=play')
    log(res, err)
--[[
"red" // Bouton rouge
"green" // Bouton vert
"blue" // Bouton bleu
"yellow" // Bouton jaune


"power" // Bouton Power
"list" // Affichage de la liste des chaines
"tv" // Bouton tv

"1" // Bouton 1
"2" // Bouton 2
"3" // Bouton 3
"4" // Bouton 4
"5" // Bouton 5
"6" // Bouton 6
"7" // Bouton 7
"8" // Bouton 8
"9" // Bouton 9

"back" // Bouton jaune (retour)
"0" // Bouton 0
"swap" // Bouton swap

"info" // Bouton info
"epg" // Bouton epg (fct+)
"mail" // Bouton mail
"media" // Bouton media (fct+)
"help" // Bouton help
"options" // Bouton options (fct+)
"pip" // Bouton pip

"vol_inc" // Bouton volume +
"vol_dec" // Bouton volume -

"ok" // Bouton ok
"up" // Bouton haut
"right" // Bouton droite
"down" // Bouton bas
"left" // Bouton gauche

"prgm_inc" //Bouton programme +
"prgm_dec" // Bouton programme -

"mute" // Bouton sourdine
"home" // Bouton Free
"rec" // Bouton Rec

"bwd" // Bouton << retour arrière
"prev" // Bouton |<< précédent
"play" // Bouton Lecture / Pause
"fwd" // Bouton >> avance rapide
"next" // Bouton >>| suivant
--]]

When I realize it directly in my browser it works.
Reply


Messages In This Thread
HTTP Post - by Desislav - 04.11.2016, 20:40
RE: HTTP Post - by admin - 05.11.2016, 11:25
RE: HTTP Post - by Desislav - 05.11.2016, 20:39
RE: HTTP Post - by admin - 07.11.2016, 07:17
RE: HTTP Post - by Gadjoken - 09.05.2019, 08:46
RE: HTTP Post - by Daniel - 09.05.2019, 09:10
RE: HTTP Post - by admin - 09.05.2019, 10:09
RE: HTTP Post - by Gadjoken - 09.05.2019, 11:37
RE: HTTP Post - by admin - 09.05.2019, 11:53
RE: HTTP Post - by Gadjoken - 09.05.2019, 12:10
RE: HTTP Post - by admin - 09.05.2019, 12:18
RE: HTTP Post - by Gadjoken - 09.05.2019, 12:55
RE: HTTP Post - by admin - 09.05.2019, 13:05
RE: HTTP Post - by Gadjoken - 09.05.2019, 13:18
RE: HTTP Post - by admin - 09.05.2019, 13:28
RE: HTTP Post - by Gadjoken - 09.05.2019, 14:20
RE: HTTP Post - by domobrain - 11.09.2023, 11:04
RE: HTTP Post - by Daniel - 11.09.2023, 11:06
RE: HTTP Post - by domobrain - 13.09.2023, 14:11

Forum Jump: