element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet & Tria Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • About Us
    About the element14 Community
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      •  Japan
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      •  Vietnam
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
Arduino
  • Products
  • More
Arduino
Arduino Forum Help on how to get information from the internet
  • Blog
  • Forum
  • Documents
  • Quiz
  • Events
  • Polls
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Arduino to participate - click to join for free!
Actions
  • Share
  • More
  • Cancel
Forum Thread Details
  • Replies 6 replies
  • Subscribers 417 subscribers
  • Views 709 views
  • Users 0 members are here
Related

Help on how to get information from the internet

e14 Contributor
e14 Contributor over 12 years ago

I am required to get information from the local gov website for the latest weather update using my arduino ethernet shield ( to be displayed on a LCD ). I have tested my device using arduino coding example ( Webserver for Ethernet and Hello World for the lcd display ) which means both is working properly. I can't seem to find any information on how i can get just the information of the weather to be displayed on the LCD display ( 16x2 ). Any help is greatly appreciated. Thanks!

  • Sign in to reply
  • Cancel
Parents
  • shabaz
    shabaz over 12 years ago

    Hi Cho Zi,

     

    I am not sure Arduino is the best platform for what you wish to do. If you used an platform running Linux (e.g. BeagleBone Black or Raspberry Pi for example), then you could quite easily write up something to retrieve the web page and pull out the information you need. For example:

    wget bbc.co.uk/weather
    grep headline index.html

    Example output for today:

    <p class="headline" lang="en-GB">Cloudy and dry, but wind and rain in northwest later.</p>

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • e14 Contributor
    e14 Contributor over 12 years ago in reply to shabaz

    Hey Shabaz,

     

    Thanks for your info, but it is required of me to used arduino.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • mconners
    mconners over 12 years ago in reply to e14 Contributor

    Here is an example for a web client using Arduino

     

    Arduino - WebClient

     

    You'll need to make the request, parse the return, the print the string to your lcd.

     

    It should be pretty easy, depending on the format returned from the website.

     

    Good luck,

     

    Mike

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
Reply
  • mconners
    mconners over 12 years ago in reply to e14 Contributor

    Here is an example for a web client using Arduino

     

    Arduino - WebClient

     

    You'll need to make the request, parse the return, the print the string to your lcd.

     

    It should be pretty easy, depending on the format returned from the website.

     

    Good luck,

     

    Mike

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
Children
  • e14 Contributor
    e14 Contributor over 12 years ago in reply to mconners

    Hey Mike,

     

    Thanks for the link provided. I have take a look into it, as i am still a beginner when it comes to programming, how do you actually print the data from the internet?

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • mconners
    mconners over 12 years ago in reply to e14 Contributor

    Well, in the example I linked to, they are reading the response from the http request into a character, then printing that out until there is no more data. You would probably want to read the received data into a buffer of some sort (an array of char, maybe), at that point you can start to treat the data as a string.

     

    You would then need to write some code to analyze the data in your array to isolate the data that you would like to print.

     

    Once you have determined the data that you would like to print, you would provide that data in place of the hello world string that you provided to the lcd in the lcd demo.

     

    The topics in c that you will probably need to research are:

    Arrays and pointers

    string manipulation

    regular expressions

     

     

    This conceptually is no different than a demo that would allow you to read data from the keyboard and print it out. If you are that new to programming that is where I would start.

     

    Write a program that accepts keyboard input and writes it back out after you have received some terminating character.

     

    Modify that program to write it out to the LCD.

     

    Modify that program to read from the internet instead of the keyboard.

     

    After that you should have gained all the skills required to complete your project.

     

    Mike

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • e14 Contributor
    e14 Contributor over 12 years ago in reply to mconners

    Thank you for your advice. I will start to read into them.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2026 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube