Real Time Weather API in TouchDesigner

แชร์
ฝัง
  • เผยแพร่เมื่อ 22 พ.ย. 2024

ความคิดเห็น • 42

  • @protoplasmic
    @protoplasmic ปีที่แล้ว

    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.

    • @water__shed
      @water__shed  6 หลายเดือนก่อน

      thank you so much!!

  • @klaudiapacharew9844
    @klaudiapacharew9844 ปีที่แล้ว +1

    great work! thank you so much for sharing!

  • @AngusMacMinn
    @AngusMacMinn ปีที่แล้ว

    awesome video!! thanks so much, super helpful

  • @xlrtrexe
    @xlrtrexe ปีที่แล้ว

    Great tutorial. Quick question. How do you pull up VSC instead of Notepad when you hit edit?
    Thanks

    • @xlrtrexe
      @xlrtrexe ปีที่แล้ว

      Scratch that, figured it out

    • @water__shed
      @water__shed  ปีที่แล้ว

      @@xlrtrexefor posterity, you can set custom programs to open text and table DATs in the preferences (Edit > Preferences)

  • @thalesmuniz2820
    @thalesmuniz2820 2 หลายเดือนก่อน

    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 :(

    • @water__shed
      @water__shed  2 หลายเดือนก่อน

      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?

  • @KatharinaBlust-r8n
    @KatharinaBlust-r8n หลายเดือนก่อน

    Can't change the text class to python. Did they change this?

  • @clivemathieu9386
    @clivemathieu9386 ปีที่แล้ว +1

    Your mad and I love it

    • @Don-h4d
      @Don-h4d ปีที่แล้ว

      You're ignorant and I love it

  • @alexanderhall4045
    @alexanderhall4045 ปีที่แล้ว +1

    I am getting
    AttributeError: 'URLError' object has no attribute 'read'
    Results of run operation resulted in exception. any ideas on a fix?

    • @water__shed
      @water__shed  ปีที่แล้ว

      Check if the error occurs on a PC - could be OS related

    • @lukastreibenreif
      @lukastreibenreif ปีที่แล้ว

      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.

    • @gregorychang812
      @gregorychang812 ปีที่แล้ว

      @@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

    • @lukastreibenreif
      @lukastreibenreif ปีที่แล้ว

      @@gregorychang812 I could send you the file if you are interested.

    • @gregorychang812
      @gregorychang812 ปีที่แล้ว +1

      @@lukastreibenreif That'd be amazing! I have my twitter and instagram links in my profile but if you prefer another method lmk

  • @yichenwan8582
    @yichenwan8582 3 หลายเดือนก่อน

    My timer is not running, can you tell me how to fix it?

    • @water__shed
      @water__shed  3 หลายเดือนก่อน

      make sure it is active and your timeline is playing

    • @yichenwan8582
      @yichenwan8582 3 หลายเดือนก่อน

      @@water__shed it's working now, thank you!

  • @lirawhite5799
    @lirawhite5799 ปีที่แล้ว +2

    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.
    🫀☠🤖

    • @ValidPlacebo
      @ValidPlacebo ปีที่แล้ว

      You have a text DAT named requests_ouput?

    • @AlphaMoonbase
      @AlphaMoonbase ปีที่แล้ว

      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.

    • @xlrtrexe
      @xlrtrexe ปีที่แล้ว

      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.

  • @RussellKlimas
    @RussellKlimas 6 หลายเดือนก่อน

    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.

    • @water__shed
      @water__shed  6 หลายเดือนก่อน

      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/

    • @RussellKlimas
      @RussellKlimas 6 หลายเดือนก่อน

      @@water__shed That's what is was, thank you!

  • @juhyeonlee8885
    @juhyeonlee8885 ปีที่แล้ว

    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😢😢😢😢😢😢

  • @PanificioAccolla-tn2pe
    @PanificioAccolla-tn2pe ปีที่แล้ว

    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?

    • @water__shed
      @water__shed  ปีที่แล้ว

      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