pyrocumulus / pvoutput.net

A .NET Standard 2.0 library built around the API of the popular solar service PVOutput.org.
https://pyrocumulus.github.io/pvoutput.net/
Other
2 stars 1 forks source link

Add Output seems to work unreliably #5

Closed pyrocumulus closed 4 years ago

pyrocumulus commented 4 years ago

Pushing only a date and generation seems to work well. However when paired with, peaktime/conditions/consumption the api seems to return 200 however no output is record at PVOutput's end.

Sample with which I experienced this

            var builder = new OutputPostBuilder();
            var output = builder.SetDate(DateTime.Today.AddDays(-2))
                .SetGenerated(10000)
                .SetPeakTime(new DateTime(2019, 12, 8, 10, 15, 23))
                .SetCondition("Fine")
                .SetTemperatures(5.2m, 9.4m)
                .SetConsumption(2000)
                .Build();

            var response = await client.Output.AddOutputAsync(output);
pyrocumulus commented 4 years ago

Issue seems resolved now. Perhaps something else caused this.