Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Off Topic
    4. Tipp: Curl für Download *.ics Datei - manchmal ist man blöd

    NEWS

    • Monatsrückblick - April 2025

    • Minor js-controller 7.0.7 Update in latest repo

    • Save The Date: ioBroker@Smart Living Forum Solingen, 14.06.

    Tipp: Curl für Download *.ics Datei - manchmal ist man blöd

    This topic has been deleted. Only users with topic management privileges can see it.
    • MartinP
      MartinP last edited by

      Wollte mir den Müllkalender meiner Stadtwerke für meinen Standort herunterladen, und das klappte mit der URL, die ich mir vom Portal geholt habe mit dem curl, was wohl mit git auf meinen Windows PC gekommen ist nicht....

      Die Lösung war aber einfach, nichts mit USER-Agent o. Ä., woran ich zuerst gebastelt habe...

      Die über die Zwischenablage kopierte URL...

      f13b39b4-e403-4771-9c4f-457b8aadc403-grafik.png

      ... musste curl in Anführungszeichen gesetzt übergeben werden ...

      nicht:

      curl https://kundenportal.edg.de/WasteManagementDortmund/WasteManagementServiceServlet?ApplicationName=Calendar&SubmitAction=sync&StandortID=..............1&AboID=...........&Fra=P;R;B;W > mein_muellkalender.ics
      

      sondern:

      curl "https://kundenportal.edg.de/WasteManagementDortmund/WasteManagementServiceServlet?ApplicationName=Calendar&SubmitAction=sync&StandortID=..............1&AboID=...........&Fra=P;R;B;W" > mein_muellkalender.ics
      
      haus-automatisierung 1 Reply Last reply Reply Quote 0
      • haus-automatisierung
        haus-automatisierung Developer Most Active @MartinP last edited by haus-automatisierung

        @martinp sagte in Tipp: Curl für Download *.ics Datei - manchmal ist man blöd:

        ... musste curl in Anführungszeichen gesetzt übergeben werden ...

        Logisch, weil Du ein & in der url hast, was in sh ja für etwas anderes steht 😉

        Damit wird der Befehl (davor) im Hintergrund ausgeführt.

        Job control:

        In Bash, a program can be started as a background job by appending an ampersand (&) to the command line; its output is directed to the terminal (potentially interleaved with other programs' output), but it cannot read from the terminal input.

        MartinP 1 Reply Last reply Reply Quote 0
        • MartinP
          MartinP @haus-automatisierung last edited by

          @haus-automatisierung Das war auf einem Window-PC, aber auch Windows wird die URL in irgendeiner Weise zerpflückt haben, dass sie keinen Sinn mehr ergab ...

          1 Reply Last reply Reply Quote 0
          • First post
            Last post

          Support us

          ioBroker
          Community Adapters
          Donate

          989
          Online

          31.6k
          Users

          79.4k
          Topics

          1.3m
          Posts

          2
          3
          96
          Loading More Posts
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes
          Reply
          • Reply as topic
          Log in to reply
          Community
          Impressum | Datenschutz-Bestimmungen | Nutzungsbedingungen
          The ioBroker Community 2014-2023
          logo