Obvius Device Meter Reading File Upload
curl --request POST \
--url https://realtime.replace-me.example.com/uploads/obvius \
--header 'Content-Type: multipart/form-data' \
--form 'MODE=<string>' \
--form 'SERIALNUMBER=<string>' \
--form 'MODBUSDEVICE=<string>' \
--form 'PASSWORD=<string>' \
--form LOGFILE=@example-fileconst form = new FormData();
form.append('MODE', '<string>');
form.append('SERIALNUMBER', '<string>');
form.append('MODBUSDEVICE', '<string>');
form.append('PASSWORD', '<string>');
form.append('LOGFILE', '<string>');
const options = {method: 'POST'};
options.body = form;
fetch('https://realtime.replace-me.example.com/uploads/obvius', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://realtime.replace-me.example.com/uploads/obvius"
files = { "LOGFILE": ("example-file", open("example-file", "rb")) }
payload = {
"MODE": "<string>",
"SERIALNUMBER": "<string>",
"MODBUSDEVICE": "<string>",
"PASSWORD": "<string>"
}
response = requests.post(url, data=payload, files=files)
print(response.text)RealTime API - Obvius Meter Readings
Obvius Device Meter Reading File Upload
To setup the integration between Obvius and WatchWire:
- Configure the meter in WatchWire following steps in “Add Meter” within the Real Time Monitoring section.
- Follow the steps for Obvius meter provider
- Include the valid Serial # / Modbus Device # / and other fields from the metering device - and create a Password (please note it down for next step)
- Go to your Obvius device Portal and input the upload url for the target upload URL destination. The Upload URL is listed above in the POST field, ending in /uploads/obvius
NOTE: Please configure params correctly in WatchWire, or else data won’t flow properly. Pay attention to the “Readings Per Hour” field, if misconfigured the analytics won’t work properly. For any question, please contact support.
Also note, you can ignore all the BODY formdata below which is automatically generated from your Obvius device.
POST
/
uploads
/
obvius
Obvius Device Meter Reading File Upload
curl --request POST \
--url https://realtime.replace-me.example.com/uploads/obvius \
--header 'Content-Type: multipart/form-data' \
--form 'MODE=<string>' \
--form 'SERIALNUMBER=<string>' \
--form 'MODBUSDEVICE=<string>' \
--form 'PASSWORD=<string>' \
--form LOGFILE=@example-fileconst form = new FormData();
form.append('MODE', '<string>');
form.append('SERIALNUMBER', '<string>');
form.append('MODBUSDEVICE', '<string>');
form.append('PASSWORD', '<string>');
form.append('LOGFILE', '<string>');
const options = {method: 'POST'};
options.body = form;
fetch('https://realtime.replace-me.example.com/uploads/obvius', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://realtime.replace-me.example.com/uploads/obvius"
files = { "LOGFILE": ("example-file", open("example-file", "rb")) }
payload = {
"MODE": "<string>",
"SERIALNUMBER": "<string>",
"MODBUSDEVICE": "<string>",
"PASSWORD": "<string>"
}
response = requests.post(url, data=payload, files=files)
print(response.text)Body
multipart/form-data
Always LOGFILEUPLOAD.
Serial number specified during meter setup in WatchWire.
Device number specified during meter setup in WatchWire.
Password specified during meter setup in WatchWire.
Gzipped meter log file.
Response
200
Successful response

