Extract Data from Internet
I'm trying to get the data from this RSS feed to be used later in a visualization, but I'm having issues grabbing the specific numbers (data) I'm interested in. Here is the current patch.
I'm trying to pass the "wave height" number into a Max message. The saved text file from the patch shows me the number in this line: Significant Wave Height: 2.6 ft. How do I extract that specific number (2.6) from the text file?
There's a patch here that parses weather data:
It's mostly the same problems. I'm using the jasch objects.
I've tried using that exact patch but I don't understand how it works. I thought it would be simpler I used the jit.uldl + jit.textfile for downloading the stuff, and jit.str.regexp for parsing the data, since I'm new to the program.
Is there a message or something that I can send to jit.str.regexp that will take me to the waveheight number?
Please help
I'd like to generalize this a bit, but:
BTW: I have a permanent sound installation in Santa Monica that varies with the tide heights. http://www.mikezed.com/portfolio/listen-edgemar/
Thanks so much! That works perfectly.
I've actually been by that place before, I'll have to check it out again soon. I'm only about 15 min away... when the damn 405 isn't backed up.
This is great. After some tweaking, I was able to make it work for a significant wave height number.