def get_value(data, value):
    """Retrieve weather value."""
    try:
        if value == "@mps":
            return round(float(data[value]) * 3.6, 1)
        return round(float(data[value]), 1)
    except (ValueError, IndexError, KeyError):
        return None