Finish an incomplete php/cURL script

Job ID: 34678024

Budget: $10 – $50 AUD

Attached are two files.
The script I would like fixed and an export of the source feed (direct access to the feed can be given upon request).

PURPOSE OF SCRIPT
This is an auto-uploader script to push data to pvoutput.org using their https://pvoutput.org/help/api_specification.html#add-status-service API
This data is being sourced from my local energy monitoring device

MY VARIABLES vs PVOutput.org's API
V2 = Solar
V4 = Use
V6 = Voltage <-- ignore
V7 = CarPort
V8 = Roof
V9 = Air Con
V10 = price

STATUS OF SCRIPT
It is correctly uploading V4/Use data from live data, the rest, unfortunately, is 'hard coded' in the script, rather than pulling it from the data source

TASK REQUIREMENTS
- This script is pushing data to PVOutput in 6 segments. With such a small amount of data, there's no reason for this. Script to push all values in one go.
- Once complete, it's my intention to publish this script for public use. As such, I would like to make it easy for the next person to adapt the script to their installation, so the script should clearly ask for the following information from the user
-- PVOutput.org API Key
-- PVOutput.org System ID
-- EMONCms Local IP
-- EmonCMS Read API Key

As well as sources for data
Eg. V2 data is sourced from feed named 'Solar' on my system
- V2 (Power Generation) Feed Name:
- V4 (Power Consumption) Feed Name:
- V5 (Temperature) Feed name:
- V6 (Voltage) Feed name:
- V7 Custom Feed
- V8 Custom Feed
- V9 Custom Feed
- V10 Custom Feed
- V11 Custom Feed
- V12 Custom Feed

Obviously not all of these are going to be populated by everyone. Script should handle empty responses.

In your response, I don't need to hear about all of your skills. Just tell me if you can complete this task and how long you need.
Related categories: PHP JavaScript XML cURL