Cloud API Getting EM CSV file with power consumption

VPN/Proxy erkannt

Es scheint, dass Sie einen VPN- oder Proxy-Dienst verwenden. Bitte beachten Sie, dass die Nutzung eines solchen Dienstes die Funktionalität dieser Webseite einschränken kann.

  • Is there a way to download a CVS file from EM? I can only get the status when using:

    Code
    curl -X POST https://<server_uri>/device/status -d "id=<device_id>&auth_key=<auth_key>"

    but no info on how to get other parameters or csv

    curl -OJ -X POST -d "add_keys=true&ts=1677625200&end_ts=1679698800" https://<server_uri>/emdata/0/data.csv -d "id=>device_id>&auth_key=<auth_key>"

    I get a file with "{"isok":false,"errors":{"404":"Requested method was not found"}}"

  • Hi, I have exactly the same question : is there a way to get the power data recorded for a specific day (or day range) via the cloud API? (even is the result is return as JSON and not CSV file)

    Thanks in advance :)

    Edit: Removed full quote by Mod

    Einmal editiert, zuletzt von Devil (6. Juli 2023 um 14:30)

  • Der Inhalt kann nicht angezeigt werden, da Sie keine Berechtigung haben, diesen Inhalt zu sehen.

    Der Inhalt kann nicht angezeigt werden, da Sie keine Berechtigung haben, diesen Inhalt zu sehen.
  • Abelblublight

    of course you get an error, your code is: "https://<server_uri>/emdata/0/data.csv"

    the EM has no file called "data.csv", neither does it have a folder named "/emdata/"!

    correct would be: "http://<shelly_uri>/emeter/0/em_data.csv"

    type it into your browser's address field and hit enter, browser will ask you where to save the file.

    Besides, i thought shellys don't work with https, only http?

  • Dieses Thema enthält einen weiteren Beitrag, der nur für registrierte Benutzer sichtbar ist.