A blog dedicated to tidbits of software information related to the AEC industry. Most tips and tricks are roughly 60 seconds because, "Hey who doesn't have 60 seconds".
*The views and opinions expressed in this blog do not reflect those of my employer.

Wednesday, July 29, 2015

Fun with #DynamoBIM Web Request Node

A while back on twitter there was a joke regarding the hashtag, #theresanodeforthat.

Jolstein Olsen made a joke by creating a Mother Teresa node called “TeresaNode”. This started to make me think, “What if we created a node that pulled quotes from somewhere?”.

Enter the web request node.

2015-07-29_13h54_09This node allows us to grab a website and view its source. This is pretty awesome if you see replicated info and can make it variable.

Initially I began making quote nodes from various people.

2015-07-29_11h56_20

But I soon made it searchable!

2015-07-29_13h58_13

What the definition basically does is get the home page of quotes for the searched individual and pulls all of the quotes. This is pulling from http://www.brainyquote.com/ by the way.

After removing some of the extra junk we can then get a random index of the list, producing a random quote.

Check out the animation and graph below and have fun! And of course this is now in Rhythm.

InspirationQuotes

2015-07-29_14h02_29

Another thing I thought of is this isn’t necessarily a waste of time, because this represents the power we have to read data from external resources with DynamoBIM!

-johnp

No comments:

Post a Comment