Weather code

I’m trying to make a weather code for my sim so it can tell what the weather is (if that isn’t possible, I might have it ask you what the weather is, but that’s lame.). Is there any possible way to do this?

i’ll see if I can get something working..!

Thank you again :slight_smile:

after reading up on 🌦️ Docs | Open-Meteo.com a bit, i managed to come up with this:
untitled script pic (40)
to get the relevant data, you can load the OOP library and use
field [current v] of (your var) @:> ::lists reporter to get the actual information, and
field [current_units v] of (your var) @:> ::lists reporter to get the units of the information, if needed.

I’m assuming I can get the “URL” block to get data from a weather website, I’ll try making a block for this.

Oh my. You beat me to it lol

You mean item [current v] of (your var) ::lists reporter ?

it’s a block in the OOP library. both blocks should work fine here though

could you put this in a project again? (So i can download the code and such)

https://snap.berkeley.edu/snap/snap.html#present:Username=mctx_studios&ProjectName=weather%20block

:+1:

i updated the block just now to fallback to a basic object if an error occurs (such as the api not working), so you might want to update it