     (let [measurements5 (map #(zipmap [:device_id :type :month :timestamp :error :reading_metadata :value] %)
                              (rest (csv/read-csv in-file4)))]
       (batch-csv measurements5 (:measurement-5 urls))))
-  
+
   (with-open [in-file5 (io/reader (io/resource "csv/122b4bf8dfa66cbf8f321f2d03c4d73f924bb719-interpolatedElectricityConsumption.csv"))]
     (let [measurements6 (map #(zipmap [:device_id :type :month :timestamp :error :reading_metadata :value] %)
                              (rest (csv/read-csv in-file5)))]
       (batch-csv measurements6 (:measurement-6 urls)))))
 
 
-(defn post-generated-measurements 
+(defn post-generated-measurements
   "Generates measurements (500) and posts them to Hecuba"
   []
   (let [generated-measurements (generators/measurements  {:type "electricityConsumption"

    [(:username cred) (:password cred)]))

(defn post-resource [post-uri content-type data]
  (pr-str "DATA:" data)
  (let [response
        @(http-request
          {:method :post

    (let [measurements4 (map #(zipmap [:device_id :type :month :timestamp :error :reading_metadata :metadata :value] %)
                             (rest (csv/read-csv in-file3)))
           m4 (map #(update-in % [:timestamp] (fn [t] (let [d (tf/parse (tf/formatter  "yyyy-MM-dd HH:mm:ssZ") t)]
                                                      (tf/unparse
                                                       (tf/formatter "yyyy-MM-dd HH:mm:ssZ")
                                                       (t/minus (t/plus d (t/years 2)) (t/days 9))))))
                   measurements4)]
