InfluxDB database in Docker Container | Connect with Python client library to Read and Write Data

แชร์
ฝัง
  • เผยแพร่เมื่อ 19 ก.ย. 2024
  • Hey,
    Welcome back to this channel.
    In this video, we are going to see how we can use docker container to run the influxDB database at your local computer. Moreover, we are going to see how we can use influxDB python client library to make read and write request to the database.
    Github code: github.com/sye...

ความคิดเห็น • 3

  • @kunalshrivastava
    @kunalshrivastava 3 หลายเดือนก่อน

    Thanks Syed :)

  • @vickylance
    @vickylance ปีที่แล้ว

    How to add data with timestamp?

    • @syedmuhammaddanish
      @syedmuhammaddanish  ปีที่แล้ว +1

      You can import datetime module and use the following datastructure to write the data with timestamps
      data = influxdb_client.Point("measurement") \
      .tag("building", "Trade Center") \
      .field("temperature", 40) \
      .time(datetime.utcnow(), 's')