Switch to desktop version  
M2Web API for retrieving a webpage from a LAN device behind the eWon - Printable Version

+- Ewon Technical Forum (https://techforum.ewon.biz)
+-- Forum: Development (https://techforum.ewon.biz/forum-50.html)
+--- Forum: Talk2m & Argos API (https://techforum.ewon.biz/forum-54.html)
+---- Forum: M2Web API (https://techforum.ewon.biz/forum-10.html)
+---- Thread: M2Web API for retrieving a webpage from a LAN device behind the eWon (/thread-1152.html)



M2Web API for retrieving a webpage from a LAN device behind the eWon - wesmoore - 27-01-2020

Can you assist me on the best way to do this please?  This is what I was thinking may be close but wanted to check with you first.  

https://m2web.talk2m.com/t2mapi/get/devicename/rcgi.bin/ParamForm?AST_Param=GETURL for webpage on another devicet2maccount=account&t2musername=user&t2mpassword=pwd&t2mdeveloperid=ID

&t2mdeviceusername=adm&t2mdevicepassword=adm

Or should I write a script for the eWon to read the page periodically? 

Thanks,  Wes


RE: M2Web API for retrieving a webpage from a LAN device behind the eWon - simon - 30-01-2020

Hi Wes,

The Ewon cannot do SQL queries directly and M2Web API works only with web request.
If you can get the SQL values with HTTP calls, then it should work like https://m2web.talk2m.com/account/flexyname/proxy/DeviceIP:Port/LinkToWebform...&t2maccount=...

account, flexyname , deviceIP and port must be changed by the right values (proxy stays "proxy") :-)

Simon