Lake this tutorial was awesome - the API table output with parameterized tox inputs is super useful. Great presentation. Can't wait to dig into your GLSL work.
Awesome tutorial! Everything was working nicely but out of nowhere I started getting an error and my locations info didn't update anymore. This is the error: Error: Traceback (most recent call last): File "/project/Weather_Reactive_Effect/WeatherAPI/parexec2", line 9, in onValueChange td.tdError: File "/project1/Weather_Reactive_Effect/WeatherAPI/API", line 70 NameError: name 'data' is not defined Results of run opération resulted in exception. (/project1/Weather_Reactive_Effect/WeatherAPI/parexec2) I simply can't find a solution :(
If you have trouble using urllib, because it's easy on macOS to struggle with that, then switch to the web client data instead of a script in a text dat.
@@lukastreibenreif I'm also on mac, but I just tried it rn but it still out puts the same error are there any settings I should change in the web client node
Hi, Lake, quick question. op('request_output').text = json.dumps(weatherData) NameError: name 'op' is not defined and it also cannot define debug function. Awesome tutorial, it helps me more understanding how API works, thank you for sharing your knowledge. 🫀☠🤖
Dumb question, but are you running the script inside of TouchDesigner or as its own python-script? op not being defined make it look like you are not running that script in TouchDesigner.
I had the same issue. I had changed the location from DC to New york,NY so I reverted it back to Washington,DC no spaces then I deleted the request_output text DAT and created a new one from scratch and it worked. Not sure why exactly. Maybe it wasn't registering from when I changed the settings earlier on.
For some reason when I try and get the text to show up instead of changing to the location it just displays parent().par.location.eval() I've been through the tutorial twice and I'm not sure what I'm doing wrong.
perhaps you are writing text, and not a parameter expression (make sure the second, green little check box is ticked on the left when the parameter is expanded) - see interactiveimmersive.io/touchdesigner-parameters/
Thanks for great tutorial!!! But I have some issues, it seems quite going well while I'm doing with debug ApiQuery. After then following the op('request_output')... many errors followed. It says ~~Versions/3.9/lib/python3.9/http/client.py", line 1253, in request And I thought it could be the problem of python version. I try to downgrade python but error keep coming out it only downgrade by 3.8 I'm not sure if it is the problem of python version, or did I miss some install of lib. (I already check json, url lib...) If you know any solution about this plz let me know😢😢😢😢😢😢
The ApiQuery does not work, although I debugged it, it doesn't pull out the URL address with all the other data when I run the code, just: ApiQuery (Debug - DAT:/project1/weather_API fn: line:61). Help, please?
hey there, sorry you are having issues. Im not sure from the context you shared what is going on, but you can find a working component with the code available on my patreon
Lake this tutorial was awesome - the API table output with parameterized tox inputs is super useful. Great presentation. Can't wait to dig into your GLSL work.
thank you so much!!
great work! thank you so much for sharing!
awesome video!! thanks so much, super helpful
Great tutorial. Quick question. How do you pull up VSC instead of Notepad when you hit edit?
Thanks
Scratch that, figured it out
@@xlrtrexefor posterity, you can set custom programs to open text and table DATs in the preferences (Edit > Preferences)
Awesome tutorial! Everything was working nicely but out of nowhere I started getting an error and my locations info didn't update anymore. This is the error:
Error: Traceback (most recent call last):
File "/project/Weather_Reactive_Effect/WeatherAPI/parexec2", line 9, in onValueChange
td.tdError: File "/project1/Weather_Reactive_Effect/WeatherAPI/API", line 70
NameError: name 'data' is not defined
Results of run opération resulted in exception.
(/project1/Weather_Reactive_Effect/WeatherAPI/parexec2)
I simply can't find a solution :(
looks like the name 'data' is not defined based on that traceback. could it be that you accidentally deleted an operator or line of code?
Can't change the text class to python. Did they change this?
Your mad and I love it
You're ignorant and I love it
I am getting
AttributeError: 'URLError' object has no attribute 'read'
Results of run operation resulted in exception. any ideas on a fix?
Check if the error occurs on a PC - could be OS related
If you have trouble using urllib, because it's easy on macOS to struggle with that, then switch to the web client data instead of a script in a text dat.
@@lukastreibenreif I'm also on mac, but I just tried it rn but it still out puts the same error are there any settings I should change in the web client node
@@gregorychang812 I could send you the file if you are interested.
@@lukastreibenreif That'd be amazing! I have my twitter and instagram links in my profile but if you prefer another method lmk
My timer is not running, can you tell me how to fix it?
make sure it is active and your timeline is playing
@@water__shed it's working now, thank you!
Hi, Lake, quick question.
op('request_output').text = json.dumps(weatherData)
NameError: name 'op' is not defined
and it also cannot define debug function.
Awesome tutorial, it helps me more understanding how API works, thank you for sharing your knowledge.
🫀☠🤖
You have a text DAT named requests_ouput?
Dumb question, but are you running the script inside of TouchDesigner or as its own python-script?
op not being defined make it look like you are not running that script in TouchDesigner.
I had the same issue. I had changed the location from DC to New york,NY so I reverted it back to Washington,DC no spaces then I deleted the request_output text DAT and created a new one from scratch and it worked. Not sure why exactly. Maybe it wasn't registering from when I changed the settings earlier on.
For some reason when I try and get the text to show up instead of changing to the location it just displays parent().par.location.eval()
I've been through the tutorial twice and I'm not sure what I'm doing wrong.
perhaps you are writing text, and not a parameter expression (make sure the second, green little check box is ticked on the left when the parameter is expanded) - see interactiveimmersive.io/touchdesigner-parameters/
@@water__shed That's what is was, thank you!
Thanks for great tutorial!!! But I have some issues, it seems quite going well while I'm doing with debug ApiQuery. After then following the op('request_output')... many errors followed. It says ~~Versions/3.9/lib/python3.9/http/client.py", line 1253, in request
And I thought it could be the problem of python version. I try to downgrade python but error keep coming out it only downgrade by 3.8
I'm not sure if it is the problem of python version, or did I miss some install of lib. (I already check json, url lib...) If you know any solution about this plz let me know😢😢😢😢😢😢
The ApiQuery does not work, although I debugged it, it doesn't pull out the URL address with all the other data when I run the code, just:
ApiQuery (Debug - DAT:/project1/weather_API fn: line:61). Help, please?
hey there, sorry you are having issues. Im not sure from the context you shared what is going on, but you can find a working component with the code available on my patreon