Hello, I would like to know, how can I take information from an HTTP page from the logic machine?
Logic Machine Communication - HTTP
|
31.03.2017, 14:08
31.03.2017, 14:22
Hi,
If you just need a simple datafield you can also use: Code: require('socket.http') Erwin
31.03.2017, 17:50
Hi, Erwin van der Zwar:
Thanks for your help. Yes, it is a simple data capture, use your code but it is not registering anything to me.
31.03.2017, 19:18
(This post was last modified: 31.03.2017, 19:24 by Erwin van der Zwart.)
Hi,
The data is now fetched between <h2> </h2> fields but i don't know the fields in your html mark-up so you have to check that and change it to those.. log(data) to see your complete reply from your url source.. or right click your source in the browser and select 'view source code' to see the structure of the site you read.. BR, Erwin
01.04.2017, 10:09
Check is gateway and DNS are set in network config.
01.04.2017, 21:35
(This post was last modified: 01.04.2017, 21:35 by Erwin van der Zwart.)
Hi,
I adjusted the sample to a (tested) version to fetch all the main topics from this forum Code: require('socket.http') BR, Erwin
04.04.2017, 17:31
It works, thanks for your help.
|
« Next Oldest | Next Newest »
|