Shelly script direct upload to PVoutput POC

I’ve been playing with a Shelly script to directly upload power to PVoutput, there where some firmware updates for the Shelly that broke my progress but for anyone who’s interested (this needs some more work) =>

let PVO_URL = “https://pvoutput.org/service/r2/addoutput.jsp?key=”;
let PVO_APIKEY = “YOURAPIKEY”;
let PVO_SYSID = “YOURSYSID”;
let PVO_DATE = “20221006”;
let PVO_GENERATION = “5000”;
let PVO_PP = “2300”;
let PVO_PT = “08:40”;
let PVO_CM = “Shelly_1PM_script_next_update_in_5_minutes”;
Shelly.call(“HTTP.GET”, {
url: PVO_URL + PVO_APIKEY + “&sid=” + PVO_SYSID + “&d=” + PVO_DATE + “&g=” + PVO_GENERATION + “&pp=” + PVO_PP
+ “&pt=” + PVO_PT + “&cm=” + PVO_CM,});

Just as an POC :wink:

1 Like

Did you perhaps work on this a bit more? I want to use a Shelly (Plus?) Plus S for monitoring my solar on a 545 wattpeak panel and preferably als upload this to pvoutput.

Suggestions anyone ? :slight_smile:

I ported chrono-Compatible Low-Level Date Algorithms to JavaScript to make it happen.

I’ve got it working, but it’s very hacky.

Once they add a Date function, it’ll be better … and they just did — see https://github.com/ALLTERCO/shelly-script-examples/issues/15#issuecomment-1571035217. It shipped in 1.0.0-beta5: https://shelly-api-docs.shelly.cloud/gen2/changelog. I’m waiting for a stable release.