NI Labs Discussions

cancel
Showing results for 
Search instead for 
Did you mean: 

Extract weather forecast from webpage

Hello,

Any one know can i extract weather forecast from webpage by using LabView. The website is : http://www.met.gov.my/index.php?option=com_content&task=view&id=3406&Itemid=1930&lang=malay

I need the weather data for my control algorithm in LabView. Thank you.

0 Kudos
Message 1 of 5
(7,936 Views)

Unless the forecast is embedded in a graphic, and it does not appear to be on the linked website, getting the forecast from the webpage is just a text parsing exercise.  You can use the HTTP client VIs to fetch your data.  Have fun!

0 Kudos
Message 2 of 5
(3,524 Views)

Hello DFGray,

Thank you. But can you explain how to use HTTP client? Is that similar to open, read and close?

0 Kudos
Message 3 of 5
(3,524 Views)

The LabVIEW help is always helpful!  Yes, it is an open, read, close sequence.

SimpleReadWebPage.png

The attached VI is in LabVIEW 2010.

0 Kudos
Message 4 of 5
(3,524 Views)

Thank you DFGray for your useful information...

0 Kudos
Message 5 of 5
(3,524 Views)