Comments (6)
Hi @pjdervan,
We have an example how to connect to InfluxDB 2.0 Cloud - influx_cloud.py example.
Try use client same way... something like this:
url = "https://eu-central-1-1.aws.cloud2.influxdata.com"
token = "eJfb567aSoJnoDZJRaTI48lgzafILzOEaW70CEQqStin4xm9mboyYQO7dLJWVwRBXyLbrje9nvI6aXMJN1HlCg=="
bucket = "Keithley2410"
org = "[email protected]"
client = InfluxDBClient(url=url, token=token)
point = Point(kind).tag('host', host).tag('device', device).field('value', 25.3).time(time=datetime.utcnow())
write_api = client.write_api(write_options=SYNCHRONOUS)
write_api.write(bucket=bucket, org=org, record=point)
client.close()
Regards
from influxdb-client-python.
from influxdb-client-python.
There is not an init file that should be set up.
Please, try validate token via:
curl -i -X POST 'http://localhost:9999/api/v2/write?org=my-org&bucket=my-bucket' \
-H 'Authorization: Token my-token' \
-d 'h2o,location=west level=1'
If you renamed your organization, bucket or something else try generate new token.
from influxdb-client-python.
from influxdb-client-python.
from influxdb-client-python.
No problem at all. I am glad that it works.
from influxdb-client-python.
Related Issues (20)
- Handling "Unauthorized Access" Error with MultiprocessingWriter in InfluxDB Client After Service Restart HOT 1
- Can not write a point to the specific time (HH:MM:SS) using Point.time HOT 1
- Pivotted query result with long and float type columns causes ValueError in `_to_value()` HOT 3
- Missing Type Hints HOT 2
- `class Point` doesn't support equality comparison HOT 5
- ur patch is no longer working i have test it multiple time HOT 1
- AttributeError: 'WriteApi' object has no attribute '_subject' HOT 1
- Flux Script parse failed because of missing value with pivot function HOT 1
- Discrepancies between measurement values for batched and synchronous api HOT 1
- Ping throwing exception when DEBUG is True HOT 1
- warnings returned when using example program on https://influxdb-client.readthedocs.io/en/latest/
- README.rst is not rendered correctly on GitHub HOT 3
- Refactor DataFrame Operations to Avoid Chained Assignment and Address FutureWarning in Pandas
- ThreadPoolExecutor alway alive after close batching API and database client HOT 3
- atexit doesn’t work properly in batch mode: "cannot schedule new futures after interpreter shutdown"
- Can't send a custom timestamp to InfluxDB HOT 5
- Doc improvment HOT 3
- Timezone location does not work HOT 3
- "query_data_frame()" triggers "pandas.errors.InvalidIndexError" when the response data table has a column named "result" HOT 1
- bucket stays empty after sending dataframe. HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from influxdb-client-python.