def add_output(options)
      params = {
      }

      params[:d] = options[:output_date]
      params[:g] = options[:energy_generated] if options[:energy_generated]
      params[:pp] = options[:peak_power] if options[:peak_power]
      params[:pt] = options[:peak_time] if options[:peak_time]
      params[:cd] = options[:condition] if options[:condition]
      params[:tm] = options[:min_temp] if options[:min_temp]
      params[:tx] = options[:max_temp] if options[:max_temp]
      params[:cm] = options[:comments] if options[:comments]
      params[:ip] = options[:import_peak] if options[:import_peak]
      params[:io] = options[:import_off_peak] if options[:import_off_peak]
      params[:is] = options[:import_shoulder] if options[:import_shoulder]
      params[:ih] = options[:import_high_shoulder] if options[:import_high_shoulder]
      params[:c] = options[:consumption] if options[:consumption]

      response = self.class.post('/service/r2/addoutput.jsp', :body => params)

      raise('Bad Post') unless response.code == 200
    end
def add_output(options)
      params = {
      }

      params[:d] = options[:output_date]
      params[:g] = options[:energy_generated] if options[:energy_generated]
      params[:pp] = options[:peak_power] if options[:peak_power]
      params[:pt] = options[:peak_time] if options[:peak_time]
      params[:cd] = options[:condition] if options[:condition]
      params[:tm] = options[:min_temp] if options[:min_temp]
      params[:tx] = options[:max_temp] if options[:max_temp]
      params[:cm] = options[:comments] if options[:comments]
      params[:ip] = options[:import_peak] if options[:import_peak]
      params[:io] = options[:import_off_peak] if options[:import_off_peak]
      params[:is] = options[:import_shoulder] if options[:import_shoulder]
      params[:ih] = options[:import_high_shoulder] if options[:import_high_shoulder]
      params[:c] = options[:consumption] if options[:consumption]

      response = self.class.post('/service/r2/addoutput.jsp', :body => params)

      raise('Bad Post') unless response.code == 200
    end
rubocop:enable Metrics/AbcSize, Metrics/CyclomaticComplexity, Metrics/PerceivedComplexity
 rubocop:disable Metrics/AbcSize, Metrics/CyclomaticComplexity, Metrics/PerceivedComplexity