Getting weather data from Google API

frits297's icon

Hello,

I'm very new to MAX/MSP. My first project is to get temperature/weather data from a Google API. I would like to use this data to create a soundscape. As the weather changes, so does the soundscape.

So far I managed to get the xml data from Google and open it in MAX/MSP. The next goal is to get the temperature data in the XML file to a variable MAX/MSP can use to transform sounds.

I'm using jit.str.regexp to filter out the other rubbish I don't need, but somehow it is not working.

Any ideas what I am doing wrong?

Max Patch
Copy patch and select New From Clipboard in Max.

Frits

3749.googleweatherapipatch.maxpat
Max Patch
Luke Woodbury's icon
Max Patch
Copy patch and select New From Clipboard in Max.

Interesting, thought there would be a non jitter based way to do this, but couldn't think of anything. Anyways, here's a possible solution: