Parsing device web page

This is the main technical forum for discussing problems that were encountered by users while developing PROMOTIC applications, and their possible solutions.

Parsing device web page

Postby roman66 » Tue 23. Jul 2024 10:05:03

HI.
Can you show, please, a simple option for parsing www pages?
Have device web page. Need to read staatus word, like 'alarm' and 'noalarm' word from device web page and change Scada variable depended on it.

Thank you.
newbie
PM 9.0.28.0 64bit
roman66
 
Posts: 14
Joined: Tue 09. Jul 2024 12:07:38

Re: Parsing device web page

Postby Pavel Klimíček » Mon 05. Aug 2024 8:58:29

Hello.
The html content of the page can be retrieved using HttpRequest.
https://www.promotic.eu/en/pmdoc/Subsys ... equest.htm

The required data from the content can then be parsed using the HTML DOM.
Pavel Klimíček
 
Posts: 81
Joined: Thu 13. Dec 2012 15:35:59


Return to I don't know how to...

Who is online

Users browsing this forum: No registered users and 3 guests

cron