Real Time Weather API in TouchDesigner

Поделиться
HTML-код
  • Опубликовано: 23 дек 2024

Комментарии • 48

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

  • @klaudiapacharew9844
    @klaudiapacharew9844 Год назад +1

    great work! thank you so much for sharing!

  • @thenodeinstitute
    @thenodeinstitute 27 дней назад

    Hi Lake, I really like the tutorial, however, i get stuck after implementing the "replaceSpaces" helper function. I get this error, although I am pretty sure I have typed it exactly as you have shown... What could it be?
    Traceback (most recent call last):
    File "", line "op('/project1/WeatherAPI/API').run()"
    td.tdError: File "/project1/WeatherAPI/API", line 24
    File "/project1/WeatherAPI/API", line 11, in replaceSpaces
    TypeError: 'str' object is not callable
    Results of run operation resulted in exception.
    python >>>

    • @water__shed
      @water__shed  27 дней назад

      it looks like you are trying to call a string object, which is not possible

    • @thenodeinstitute
      @thenodeinstitute 25 дней назад

      @@water__shed I know, that is waht the erro message suggests, I just wonder how that can come about as I have compared your code with mine quite thoroughly for typos or anything that could change how it is interpetated, but I can't find a hint. What could turn it into a string that it in the right version wouldn't?

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

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

  • @KatharinaBlust-r8n
    @KatharinaBlust-r8n 2 месяца назад

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

  • @AngusMacMinn
    @AngusMacMinn Год назад

    awesome video!! thanks so much, super helpful

  • @RussellKlimas
    @RussellKlimas 7 месяцев назад

    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  7 месяцев назад

      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 7 месяцев назад

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

  • @thalesmuniz2820
    @thalesmuniz2820 3 месяца назад

    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  3 месяца назад

      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?

  • @yichenwan8582
    @yichenwan8582 4 месяца назад

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

    • @water__shed
      @water__shed  4 месяца назад

      make sure it is active and your timeline is playing

    • @yichenwan8582
      @yichenwan8582 4 месяца назад

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

  • @clivemathieu9386
    @clivemathieu9386 Год назад +1

    Your mad and I love it

    • @Don-h4d
      @Don-h4d Год назад

      You're ignorant and I love it

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

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

    • @jillianvordick5651
      @jillianvordick5651 Месяц назад

      I'm having the same issue with 'op' not defined. Were you able to figure out a solution?

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

  • @jillianvordick5651
    @jillianvordick5651 28 дней назад

    My code was running perfectly earlier but I just tried to change a location and now I'm getting an error that says "AttributeError: module '/project1/weather_reactive_effect/weatherAPI/datetime' has no attribute 'date'." I tried to go back and add from datetime import datetime but this didn't change anything. Any suggestions?

    • @water__shed
      @water__shed  28 дней назад

      hard to say without seeing the code, but it looks like more than just the location changed