-
-
Notifications
You must be signed in to change notification settings - Fork 55
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
InfluxDB authentication and InfluxDB 2.x compatibility #456
Comments
Dear @JSAnyone , i will take a look hopefully tomorrow or latest on the weekend and add another argument to Cheers, [1] https://influxdb-python.readthedocs.io/en/latest/api-documentation.html#dataframeclient |
Hi,
That sounds great! |
Dear @JSAnyone, thank you for writing in. @gutzbenj: Indeed, it would be sweet to support all variants of connecting to both InfluxDB 1.x and InfluxDB 2.x. On this matter, I propose those URL specifications for the For InfluxDB 1.x, the authentication credentials are propagated as
What do you think? With kind regards, |
Sounds good! |
While checking on this, we are currently facing some problems concerning including NULL in the pushed values. @JSAnyone do you have a clue how to write nullable values to influxdb? |
I think |
So for tabular data we'd loose a lot of data especially for very old timestamps, where variables such as temperature and precipitation may have been measured but not more modern variables which rely on newer instruments. Would it make sense to fill those values with -999/-999.0 as a replacement? |
I think filling them with any other value would be really confusing. |
Ok, will try this. So far we were using the DataframeClient which helps for exporting pandas DataFrames, however this leaves no choice else then to convert everything to strings. Instead using the InfluxdbClient and manually writing json should overcome this issue. The following should be working: https://gist.github.com/gutzbenj/fcb729f6c74d5d8491b3e83620914082 |
Hi @JSAnyone, the implementation of the connection specification as outlined at #456 (comment) has been implemented with 7d1460d (InfluxDB 1.x, with optional authentication and SSL support) and 4bf45a9 (InfluxDB 2.x support). With kind regdards, |
Hi all, |
Edit: The above error appears when trying to store forecast data. I used the following code:
The full error:
I also get an error when using observation data. Code:
The error I get here:
Am I doing something wrong? |
Dear Julian, thank you for providing concise repros reflecting the problem you are observing. We will look into that. Please note, while @gutzbenj loves the tidy format and it is actually nice because it "annotates" data points with quality information instead of arbitrarily mixing value and quality columns, it is not well suited for InfluxDB data export because of the type anomaly you have been observing:
So, please turn that option off when running the InfluxDB export from custom code. On top of that, I fear that the forecast domain currently does not feature tabular (aka. non-tidy) data processing at all. Bummer - we will also have to step up here. With kind regards, |
Hi, |
Thanks for your feedback @JSAnyone ! Unfortunately I won't be able to fix the issue until in two weeks because of holiday in the next week. |
It’s not urgent, enjoy your holiday! |
Thanks, it's working! |
Hi all,
I was wondering if it is possible to use the data-export with a authentification-enabled influx installation (See here). Your documentation here didn’t mention that scenario.
If it isn’t possible yet, would it be a high effort to implement it?
The text was updated successfully, but these errors were encountered: