XaiJu
entagma
entagma

patreon


PDG 101 – Pt.10: Online Data & APIs

We’re continuing our journey into using PDG instead of Python in our setups. In this episode Chris shows you how to get data from online services using APIs and how to create a space-selfie using one of NASAs satellites!

NASA Open APIs

PDG 101 – Pt.10: Online Data & APIs

Comments

On Mac I am getting the following error with the Download File node - "certificate verify failed: unable to get local issuer certificate". My workaround is to use Python Script and Attribute Create nodes. More details here - https://www.sidefx.com/forum/topic/82184/?page=1#post-372732

Mark Horgan

Ah ok, I see. Wasn't aware of that. Would auto-uploading to an FTP server work out better? Eg. "artwork of the day" for our own websites?

Konstantin Magnus

I'm not sure what you're describing, but you may be looking at the backside of the sphere, which is a quite confusing effect that I fix in Pt.11

Entagma_Chris

This is great and opening my eyes to other real time uses. Comment- seem to be 2 issues with the generated work items as displayed in obj view. The earth appears flipped left to right and also as you select each wok item shouldn't the effect be of the earth turning?

jimbachalo

About the autoupload: I'm still quite hesitant about that one. The official API route is much more aimed at building 3rd party apps or having control over lots of users for the same large-company instagram profile. You need to do fun stuff like creating a business profile, a developer account and submitting your "app" for review, which would not make a fun tutorial video, I think. The other route would controlling mouse movement and keyboard inputs to post something, which again would be a very boring video and also most likely violate the terms of services, risking for example a blocked or deleted account.

Entagma_Chris

The autoupload tutorial would be 🔥

Gio

ditto. Please keep these great tutorials coming!

jimbachalo

Another tutorial suggestion: How about using PDG the other way around? Like making it auto-upload a sequence of rendered images to an instagram account? : )

Konstantin Magnus

Hey thank you! The question of wether to use PDG or Python is a difficult one to answer. Cons for PDG: Only a limited set of top nodes / functios, no (easy to install) 3rd party modules and less flexibilty in general. Pros for PDG: Multithreaded and a lot faster to "code" since there's less to look up (at least for me). But then there's also the Python Processor Node, which is able to run Python Scripts multithreaded... But I can personally say that in day to day use I usually gravitate towards PDG first and Python second nowadays.

Entagma_Chris

Thank you for presenting this, Chris. I hope your great series has at least ten more parts to go! ; ) I also like that your speaking pace is not quite as fast anymore. That aside, have you experienced any limitations of PDG's current toolset yet? E.g. in which cases it's still more advisable to use Python?

Konstantin Magnus


More Creators