Skip to content

Commit

Permalink
Update readme.md
Browse files Browse the repository at this point in the history
  • Loading branch information
timhallinflux authored Jan 30, 2021
1 parent e5977cf commit b6281f1
Showing 1 changed file with 16 additions and 15 deletions.
31 changes: 16 additions & 15 deletions raspberry-pi/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,27 +44,28 @@ General instructions on using InfluxDB Templates can be found in the [use a temp

You may need to logout/log back in for this to take effect. If running Ubuntu on Raspberry Pi 400, a reboot may be necessary.

- Check the location of `vcgencmd` on your Raspberry Pi using
- You may need to modify the telegraf configuration to reflect the location of your `vcgencmd`. Currently, the telegraf configuration is set for
Ubuntu (Groovy Gorilla):

```
[[inputs.exec]]
commands = ["/usr/bin/vcgencmd measure_temp"]
name_override = "temperature_gpu"
data_format = "grok"
grok_patterns = ["%{NUMBER:value:float}"]
```

You can check the location of `vcgencmd` on your Raspberry Pi using:

```sh
which vcgencmd
```
You may need to change the telegraf configuration to reflect the location of your `vcgencmd`. Currently, the telegraf configuration is set for
Ubuntu (Groovy Gorilla):

```
[[inputs.exec]]
commands = ["/usr/bin/vcgencmd measure_temp"]
name_override = "temperature_gpu"
data_format = "grok"
grok_patterns = ["%{NUMBER:value:float}"]
```
Typically on Raspberry Pi OS, the `commands` line should be :

On Raspberry Pi OS, modify the `commands` line to:
```
commands = ["/opt/vc/bin/vcgencmd measure_temp"]
```
```
commands = ["/opt/vc/bin/vcgencmd measure_temp"]
```

Telegraf configuration requires the following environment variables:

Expand Down

0 comments on commit b6281f1

Please sign in to comment.