I would like to use the raspberry with C and get local humidity from a weather web site.
There are many weather web sites that give this information.
Can someone point me to examples of getting and reading web sites in C.
the curl library is a good starting point.BradCarlson wrote:getting and reading web sites in C.
Yes. If you're running Raspbian, the optional taskbar weather widget might provide a more stable and reliable way of sourcing the relevant data.fsr wrote:a tip: rather than trying to parse html, look for a weather site that offers a data feed, say to a widget or app or something. it'll be much easier to parse.
There are great weather sites by city and state in the USA at weather.gov that are xml sites.a tip: rather than trying to parse html, look for a weather site that offers a data feed, say to a widget or app or something. it'll be much easier to parse.
I am a beginner. Maybe I am slow, but I have not been able to find the optional taskbar weather widget. Can you help me a little more on where to find out how to install this optional widget and how to get info from it with a C program.Yes. If you're running Raspbian, the optional taskbar weather widget might provide a more stable and reliable way of sourcing the relevant data.
look at the source code for the widget and see where it is getting its data from.BradCarlson wrote:how to get info from it with a C program.
Code: Select all
# Uncomment line below then 'apt-get update' to enable 'apt-get source'
deb-src http://archive.raspbian.org/raspbian/ jessie main contrib non-free rpiCode: Select all
sudo apt-get updateCode: Select all
apt-get source plasma-widget-yawp