 
 Steps.all = (callback) ->
     Steps.request 'byDate', callback
+
 
 # Konnector
 

            if bloodPressure.systolic? and not bloodPressureHash[date]?
                bloodPressuresToSave.push bloodPressure

        log.debug "#{measuresToSave.length} weight measures to save"
        log.debug "#{heartBeatsToSave.length} heartbeat measures to save"
        log.debug "#{bloodPressuresToSave.length} blood pressure measures to save"

        saveAll = (models, done) ->
            async.forEach models, (model, callback) ->

        newSteps = measures.body?.series?.type_36
        newDistances = measures.body?.series?.type_40

        if not newSteps? and not newDistances?
            callback()

        else
            stepsToSave = []
            for date, valueObj of newSteps
                dateAsMom = moment date
                steps = valueObj.sum

                if not stepsHash[dateAsMom]?
                    stepMeasure = new Steps
                    stepMeasure.date = dateAsMom
                    stepMeasure.steps = steps
                    stepMeasure.vendor = 'Withings'

                    if newDistances[date]?
                        stepMeasure.distance = newDistances[date].sum

                    stepsToSave.push stepMeasure

            log.info "Found #{stepsToSave.length} new steps measures to save!"
            saveInstance = (model, cb) ->
                model.save cb

            async.forEach stepsToSave, saveInstance, (err) ->
                return callback err if err?

                log.info 'Steps measures saved.'
                notifContent = null
                if stepsToSave.length
                    localizationKey = 'notification withings'
                    options = smart_count: stepsToSave.length
                    notifContent = localization.t localizationKey, options
                callback null, notifContent


    log.debug 'Fetching former activity measures...'
    Steps.all (err, stepsMeasures) ->
        return callback err if err
        processData stepsMeasures

