Help getting data from this website! Its caiso.com

Team:

I need some help on a project that I am working on. For the project, I need to be able to read in the data from this website:
http://oasis.caiso.com/mrtu-oasis/prc_hub_lmp/PRC_HUB_LMP.html

But it seems for this, I need to know the IP address of it. But when I ping it, I dont get a TTL response from it. Is it possible to get that data?

Thanks,
Farooq

If your question is how do you get the IP address of oasis.caiso.com then the answer is that you can do it at runtime via DNS, or do the lookup in advance and use the IP address instead of the domain name in your sketch. There are lots of ways to do the lookup manually, for example on Windows you can use 'ping' or 'nslookup' - there are similar commands in most *nix variants. The answer I get today from my location is 12.200.60.67. Since IP addresses are not generally guaranteed to be static and can even depend on your location in some circumstances, it would be better to do the lookup at runtime rather than hard-coding the answer in your sketch.

When you have an Arduino board with an Ethernet Shield, you can use "http://oasis.caiso.com/mrtu-oasis/prc_hub_lmp/PRC_HUB_LMP.html", you don't have to get the IP address to read that page.

ping oasis.casio.com is all you need to get the IP address
it's 69.59.167.202

Thanks guys! That helped!

If its not too much trouble for you guys, I have one more question. So I can load up the "Chars" from the website onto my arduino BUT those numbers are "chars" and I can't do any arithmetic on them. Like if the number pulled is "45", the arduino doesn't seem to understand that its an INTEGER. How can I convert this "char" to an int?

I tried int(x) but that doesn't do anything. Further research showed me that arudino reads the values as ANSI codes? Is this true? How do I convert it?

MUCH THANKS!

Found one solution which works!

if c has the ANSI char then
c-'0'
does the job.