Shell Command to flow

Any tips on getting this shell command out of my config and into nodered?

shell_command:
  pvoutputcurl: 'curl -d "d={{now().strftime("%Y%m%d")}}" -d "t={{now().strftime("%H:%M")}}" -d "v1={{states("sensor.daily_solar_energy_wh")}}" -d "v2={{states("sensor.total_solar_power")}}" -d "v3={{states("sensor.daily_consumed_energy_wh")}}" -d "v4={{states("sensor.total_consumed_power")}}" -d "v5={{states("sensor.dark_sky_temperature_0h")}}" -d "v6={{states("sensor.utility_voltage")}}" -H "X-Pvoutput-Apikey: XXXXXXXX" -H "X-Pvoutput-SystemId: XXXXX" https://pvoutput.org/service/r2/addstatus.jsp'

This is all i’ve got so far :woozy_face:
34%20PM

You should be able to use the HTTP Request Node for this.

I’m not sure how to move the date and time into the msg.payload. The below example isn’t right.

msg.action = msg.payload;
msg.url = "http://pvoutput.org/service/r2/addstatus.jsp";
msg.payload = 
    {
        "d": 'now().strftime("%Y%m%d")',
        "t": 'now().strftime("%H:%M")',
        "v1": msg.v1,
        "v2": msg.v2,
        "v3": msg.v3,
        "v4": msg.v4,
        "v5": msg.v5,
        "v6": msg.v6,
    }
return msg;

I found my solution and posted it to the projects categories.

Sir, how do you build the flow? I have setup my HA to retrieve the values from the solis cloud as sensor readings. I installed node red, and want this to push to PVOutput (only a few fields like Daily Generated). Thanks

See here.