docs: def convert_to_influx(mac, payload):
      '''
      Convert data into RuuviCollector naming schme and scale
  
      returns:
          Object to be written to InfluxDB
      '''
      dataFormat = payload["data_format"] if ('data_format' in payload) else None
      fields = {}
      fields["temperature"]               = payload["temperature"] if ('temperature' in payload) else None
      fields["humidity"]                  = payload["humidity"] if ('humidity' in payload) else None
      fields["pressure"]                  = payload["pressure"] if ('pressure' in payload) else None
      fields["accelerationX"]             = payload["acceleration_x"] if ('acceleration_x' in payload) else None
      fields["accelerationY"]             = payload["acceleration_y"] if ('acceleration_y' in payload) else None
      fields["accelerationZ"]             = payload["acceleration_z"] if ('acceleration_z' in payload) else None
      fields["batteryVoltage"]            = payload["battery"]/1000.0 if ('battery' in payload) else None
      fields["txPower"]                   = payload["tx_power"] if ('tx_power' in payload) else None
      fields["movementCounter"]           = payload["movement_counter"] if ('movement_counter' in payload) else None
      fields["measurementSequenceNumber"] = payload["measurement_sequence_number"] if ('measurement_sequence_number' in payload) else None
      fields["tagID"]                     = payload["tagID"] if ('tagID' in payload) else None
      fields["rssi"]                      = payload["rssi"] if ('rssi' in payload) else None
      return {
          "measurement": "ruuvi_measurements",
          "tags": {
              "mac": mac,
              "dataFormat": dataFormat
          },
          "fields": fields
      }