Skip to content

Measurements with "C" (celsius) don't get extracted #4

@ualex73

Description

@ualex73

If the measurement has special character(s), it doesn't get extract at all. The "Measurements fields" get incorrectly field in the internal hash.

export INFLUX_PW=none;./influx-backup.py --url http://localhost:8086 --user none --dump --dump-db database --dir /var/tmp/database --measurements "°C"

2018-06-22 10:18:16 UTC
Starting backup of "database" db to "/var/tmp/database" dir

Measurements:
['°C']

Measurement fields:
{'°C': {'temperature': 'float', 'icon_str': 'string', 'current_temperature': 'float', 'operation_mode_str': 'string', 'supported_features': 'float', 'value': 'float', 'mode': 'float', 'min_temp': 'float', 'state': 'string', 'attribution_str': 'string', 'max_temp': 'float', 'friendly_name_str': 'string', 'operation_list_str': 'string'}}

Ignoring °C... 0
Done.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions