40
40
41
41
#### Write the home sensor data to InfluxDB
42
42
43
- Use the ` influxdb3 ` CLI, InfluxDB v2 API, or InfluxDB v1 API to write the
43
+ Use the ` influxdb3 ` CLI, InfluxDB v3 API, InfluxDB v2 API, or InfluxDB v1 API to write the
44
44
home sensor sample data to {{< product-name >}}.
45
45
46
46
{{< code-tabs-wrapper >}}
47
47
{{% code-tabs %}}
48
48
[ influxdb3] ( # )
49
+ [ v3 API] ( # )
49
50
[ v2 API] ( # )
50
51
[ v1 API] ( # )
51
52
{{% /code-tabs %}}
@@ -90,6 +91,43 @@ home,room=Kitchen temp=22.7,hum=36.5,co=26i 1641067200'
90
91
{{% /code-tab-content %}}
91
92
{{% code-tab-content %}}
92
93
94
+ {{% influxdb/custom-timestamps %}}
95
+ {{% code-placeholders "AUTH_TOKEN|DATABASE_NAME" %}}
96
+ ``` sh
97
+ curl -v " http://localhost:8181/api/v3/write_lp?db=sensors&precision=auto&accept_partial=true" \
98
+ --data-raw " home,room=Living\ Room temp=21.1,hum=35.9,co=0i 1735545600
99
+ home,room=Kitchen temp=21.0,hum=35.9,co=0i 1735545600
100
+ home,room=Living\ Room temp=21.4,hum=35.9,co=0i 1735549200
101
+ home,room=Kitchen temp=23.0,hum=36.2,co=0i 1735549200
102
+ home,room=Living\ Room temp=21.8,hum=36.0,co=0i 1735552800
103
+ home,room=Kitchen temp=22.7,hum=36.1,co=0i 1735552800
104
+ home,room=Living\ Room temp=22.2,hum=36.0,co=0i 1735556400
105
+ home,room=Kitchen temp=22.4,hum=36.0,co=0i 1735556400
106
+ home,room=Living\ Room temp=22.2,hum=35.9,co=0i 1735560000
107
+ home,room=Kitchen temp=22.5,hum=36.0,co=0i 1735560000
108
+ home,room=Living\ Room temp=22.4,hum=36.0,co=0i 1735563600
109
+ home,room=Kitchen temp=22.8,hum=36.5,co=1i 1735563600
110
+ home,room=Living\ Room temp=22.3,hum=36.1,co=0i 1735567200
111
+ home,room=Kitchen temp=22.8,hum=36.3,co=1i 1735567200
112
+ home,room=Living\ Room temp=22.3,hum=36.1,co=1i 1735570800
113
+ home,room=Kitchen temp=22.7,hum=36.2,co=3i 1735570800
114
+ home,room=Living\ Room temp=22.4,hum=36.0,co=4i 1735574400
115
+ home,room=Kitchen temp=22.4,hum=36.0,co=7i 1735574400
116
+ home,room=Living\ Room temp=22.6,hum=35.9,co=5i 1735578000
117
+ home,room=Kitchen temp=22.7,hum=36.0,co=9i 1735578000
118
+ home,room=Living\ Room temp=22.8,hum=36.2,co=9i 1735581600
119
+ home,room=Kitchen temp=23.3,hum=36.9,co=18i 1735581600
120
+ home,room=Living\ Room temp=22.5,hum=36.3,co=14i 1735585200
121
+ home,room=Kitchen temp=23.1,hum=36.6,co=22i 1735585200
122
+ home,room=Living\ Room temp=22.2,hum=36.4,co=17i 1735588800
123
+ home,room=Kitchen temp=22.7,hum=36.5,co=26i 1735588800"
124
+ ```
125
+ {{% /code-placeholders %}}
126
+ {{% /influxdb/custom-timestamps %}}
127
+
128
+ {{% /code-tab-content %}}
129
+ {{% code-tab-content %}}
130
+
93
131
{{% influxdb/custom-timestamps %}}
94
132
{{% code-placeholders "AUTH_TOKEN|DATABASE_NAME" %}}
95
133
``` sh
227
265
228
266
#### Write the home sensor actions data to InfluxDB
229
267
230
- Use the ` influxdb3 ` CLI, InfluxDB v2 API, or InfluxDB v1 API to write the
268
+ Use the ` influxdb3 ` CLI, InfluxDB v3 API, InfluxDB v2 API, or InfluxDB v1 API to write the
231
269
home sensor actions sample data to {{< product-name >}}.
232
270
233
271
{{< code-tabs-wrapper >}}
234
272
{{% code-tabs %}}
235
273
[ influxdb3] ( # )
274
+ [ v3 API] ( # )
236
275
[ v2 API] ( # )
237
276
[ v1 API] ( # )
238
277
{{% /code-tabs %}}
@@ -259,6 +298,25 @@ home_actions,room=Living\ Room,action=alert,level=warn description="Carbon monox
259
298
{{% /code-tab-content %}}
260
299
{{% code-tab-content %}}
261
300
301
+ {{% influxdb/custom-timestamps %}}
302
+ {{% code-placeholders "AUTH_TOKEN|DATABASE_NAME" %}}
303
+ ``` sh
304
+ curl -v " http://localhost:8181/api/v3/write_lp?db=sensors&precision=auto&accept_partial=true" \
305
+ --data-raw " home_actions,room=Kitchen,action=cool,level=ok description=\" Temperature at or above 23°C (23°C). Cooling to 22°C.\" 1739437200
306
+ home_actions,room=Kitchen,action=cool,level=ok description=\" Temperature at or above 23°C (23.3°C). Cooling to 22°C.\" 1739469600
307
+ home_actions,room=Kitchen,action=cool,level=ok description=\" Temperature at or above 23°C (23.1°C). Cooling to 22°C.\" 1739473200
308
+ home_actions,room=Kitchen,action=alert,level=warn description=\" Carbon monoxide level above normal: 18 ppm.\" 1739469600
309
+ home_actions,room=Kitchen,action=alert,level=warn description=\" Carbon monoxide level above normal: 22 ppm.\" 1739473200
310
+ home_actions,room=Kitchen,action=alert,level=warn description=\" Carbon monoxide level above normal: 26 ppm.\" 1739476800
311
+ home_actions,room=Living Room,action=alert,level=warn description=\" Carbon monoxide level above normal: 14 ppm.\" 1739473200
312
+ home_actions,room=Living Room,action=alert,level=warn description=\" Carbon monoxide level above normal: 17 ppm.\" 1739476800"
313
+ ```
314
+ {{% /code-placeholders %}}
315
+ {{% /influxdb/custom-timestamps %}}
316
+
317
+ {{% /code-tab-content %}}
318
+ {{% code-tab-content %}}
319
+
262
320
{{% influxdb/custom-timestamps %}}
263
321
{{% code-placeholders "AUTH_TOKEN|DATABASE_NAME" %}}
264
322
``` sh
@@ -354,12 +412,13 @@ series use cases that involve seasonality.
354
412
355
413
#### Write the NOAA Bay Area weather data to InfluxDB
356
414
357
- Use the ` influxdb3 ` CLI, InfluxDB v2 API, or InfluxDB v1 API to write the
415
+ Use the ` influxdb3 ` CLI, InfluxDB v3 API, InfluxDB v2 API, or InfluxDB v1 API to write the
358
416
NOAA Bay Area weather sample data to {{< product-name >}}.
359
417
360
418
{{< code-tabs-wrapper >}}
361
419
{{% code-tabs %}}
362
420
[ influxdb3] ( # )
421
+ [ v3 API] ( # )
363
422
[ v2 API] ( # )
364
423
[ v1 API] ( # )
365
424
{{% /code-tabs %}}
@@ -374,6 +433,16 @@ influxdb3 write \
374
433
```
375
434
{{% /code-placeholders %}}
376
435
436
+ {{% /code-tabs %}}
437
+ {{% code-tab-content %}}
438
+
439
+ {{% code-placeholders "AUTH_TOKEN|DATABASE_NAME" %}}
440
+ ``` sh
441
+ curl -v " http://localhost:8181/api/v3/write_lp?db=sensors&precision=auto&accept_partial=false" \
442
+ --data-binary " $( curl --request GET https://docs.influxdata.com/downloads/bay-area-weather.lp) "
443
+ ```
444
+ {{% /code-placeholders %}}
445
+
377
446
{{% /code-tab-content %}}
378
447
{{% code-tab-content %}}
379
448
@@ -454,12 +523,13 @@ The Bitcoin price sample dataset provides Bitcoin prices from
454
523
455
524
#### Write the Bitcoin price sample data to InfluxDB
456
525
457
- Use the ` influxdb3 ` CLI, InfluxDB v2 API, or InfluxDB v1 API to write the
526
+ Use the ` influxdb3 ` CLI, InfluxDB v3 API, InfluxDB v2 API, or InfluxDB v1 API to write the
458
527
Bitcoin price sample data to {{< product-name >}}.
459
528
460
529
{{< code-tabs-wrapper >}}
461
530
{{% code-tabs %}}
462
531
[ influxdb3] ( # )
532
+ [ v3 API] ( # )
463
533
[ v2 API] ( # )
464
534
[ v1 API] ( # )
465
535
{{% /code-tabs %}}
@@ -474,6 +544,16 @@ influxdb3 write \
474
544
```
475
545
{{% /code-placeholders %}}
476
546
547
+ {{% /code-tabs %}}
548
+ {{% code-tab-content %}}
549
+
550
+ {{% code-placeholders "AUTH_TOKEN|DATABASE_NAME" %}}
551
+ ``` sh
552
+ curl -v " http://localhost:8181/api/v3/write_lp?db=sensors&precision=auto&accept_partial=false" \
553
+ --data-binary " $( curl --request GET https://docs.influxdata.com/downloads/bitcoin.lp) "
554
+ ```
555
+ {{% /code-placeholders %}}
556
+
477
557
{{% /code-tab-content %}}
478
558
{{% code-tab-content %}}
479
559
@@ -528,12 +608,13 @@ transformation functions.
528
608
529
609
#### Write the random number sample data to InfluxDB
530
610
531
- Use the ` influxdb3 ` CLI, InfluxDB v2 API, or InfluxDB v1 API to write the
611
+ Use the ` influxdb3 ` CLI, InfluxDB v3 API, InfluxDB v2 API, or InfluxDB v1 API to write the
532
612
random number sample data to {{< product-name >}}.
533
613
534
614
{{< code-tabs-wrapper >}}
535
615
{{% code-tabs %}}
536
616
[ influxdb3] ( # )
617
+ [ v3 API] ( # )
537
618
[ v2 API] ( # )
538
619
[ v1 API] ( # )
539
620
{{% /code-tabs %}}
@@ -551,6 +632,16 @@ influxdb3 write \
551
632
{{% /code-tab-content %}}
552
633
{{% code-tab-content %}}
553
634
635
+ {{% code-placeholders "AUTH_TOKEN|DATABASE_NAME" %}}
636
+ ``` sh
637
+ curl -v " http://localhost:8181/api/v3/write_lp?db=sensors&precision=auto&accept_partial=false" \
638
+ --data-binary " $( curl --request GET https://docs.influxdata.com/downloads/bitcoin.lp) "
639
+ ```
640
+ {{% /code-placeholders %}}
641
+
642
+ {{% /code-tab-content %}}
643
+ {{% code-tab-content %}}
644
+
554
645
{{% code-placeholders "AUTH_TOKEN|DATABASE_NAME" %}}
555
646
``` sh
556
647
curl --request POST \
0 commit comments