NetAtmo IDs from FMI are integers
The Netatmo station IDs from FMI are integers with (at least) up to 10 digits, i.e.
1401333882. I made the following change to get the code working:
diff --git a/netatmoqc/load_data.py b/netatmoqc/load_data.py index 699c871..4d49ea2 100644 --- a/netatmoqc/load_data.py +++ b/netatmoqc/load_data.py @@ -85,7 +85,8 @@ def read_netatmo_csv( data = data.dropna() # Drop the 'enc:16:' stat id prefix and shorten them to 8 chars - data["id"] = shorten_stat_id(data["id"]) + if data["id"].dtype != 'int64': + data["id"] = shorten_stat_id(data["id"]) # The netatmo data I got from Norway has mean sea-level pressure # instead of pressure, but the label is "pressure" there. Fix this.