Core: Update to NOAA BAy Area weather data write_lp endpoint example

pull/5836/head
meelahme 2025-02-14 14:47:25 -08:00
parent 841f3867b9
commit 6ccda31bef
1 changed files with 13 additions and 2 deletions

View File

@ -271,7 +271,7 @@ home sensor actions sample data to {{< product-name >}}.
{{< code-tabs-wrapper >}}
{{% code-tabs %}}
[influxdb3](#)
[V3 API](#)
[v3 API](#)
[v2 API](#)
[v1 API](#)
{{% /code-tabs %}}
@ -412,12 +412,13 @@ series use cases that involve seasonality.
#### Write the NOAA Bay Area weather data to InfluxDB
Use the `influxdb3` CLI, InfluxDB v2 API, or InfluxDB v1 API to write the
Use the `influxdb3` CLI, InfluxDb v3 API, InfluxDB v2 API, or InfluxDB v1 API to write the
NOAA Bay Area weather sample data to {{< product-name >}}.
{{< code-tabs-wrapper >}}
{{% code-tabs %}}
[influxdb3](#)
[v3 API](#)
[v2 API](#)
[v1 API](#)
{{% /code-tabs %}}
@ -432,6 +433,16 @@ influxdb3 write \
```
{{% /code-placeholders %}}
{{% /code-tabs %}}
{{% code-tab-content %}}
{{% code-placeholders "AUTH_TOKEN|DATABASE_NAME" %}}
```sh
curl -v "http://localhost:8181/api/v3/write_lp?db=sensors&precision=auto&accept_partial=false" \
--data-raw "$(curl --request GET https://docs.influxdata.com/downloads/bay-area-weather.lp)"
```
{{% /code-placeholders %}}
{{% /code-tab-content %}}
{{% code-tab-content %}}