{"id":111596,"date":"2022-06-09T13:34:57","date_gmt":"2022-06-09T13:34:57","guid":{"rendered":"https:\/\/randomnerdtutorials.com\/?p=111596"},"modified":"2024-05-16T18:17:40","modified_gmt":"2024-05-16T18:17:40","slug":"install-influxdb-2-raspberry-pi","status":"publish","type":"post","link":"https:\/\/randomnerdtutorials.com\/install-influxdb-2-raspberry-pi\/","title":{"rendered":"Install InfluxDB 2 on Raspberry Pi"},"content":{"rendered":"\n<p>This guide shows how to install InfluxDB 2 on Raspberry Pi. InfluxDB is an open-source time-series database (TSDB). So, it is ideal to store sensor data with timestamps over a determined period of time.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img data-recalc-dims=\"1\" fetchpriority=\"high\" decoding=\"async\" width=\"1200\" height=\"675\" src=\"https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2022\/06\/Install-InfluxDB-Raspberry-Pi.jpg?resize=1200%2C675&#038;quality=100&#038;strip=all&#038;ssl=1\" alt=\"Install InfluxDB 2 on Raspberry Pi\" class=\"wp-image-111612\" srcset=\"https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2022\/06\/Install-InfluxDB-Raspberry-Pi.jpg?w=1280&amp;quality=100&amp;strip=all&amp;ssl=1 1280w, https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2022\/06\/Install-InfluxDB-Raspberry-Pi.jpg?resize=300%2C169&amp;quality=100&amp;strip=all&amp;ssl=1 300w, https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2022\/06\/Install-InfluxDB-Raspberry-Pi.jpg?resize=1024%2C576&amp;quality=100&amp;strip=all&amp;ssl=1 1024w, https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2022\/06\/Install-InfluxDB-Raspberry-Pi.jpg?resize=768%2C432&amp;quality=100&amp;strip=all&amp;ssl=1 768w\" sizes=\"(max-width: 1200px) 100vw, 1200px\" \/><\/figure><\/div>\n\n\n<p><em>Updated 16 May 2024<\/em><\/p>\n\n\n\n<p><a href=\"https:\/\/randomnerdtutorials.com\/esp32-influxdb\/\">In previous tutorials<\/a>, we showed you how to use InfluxDB cloud and send data from the ESP32 and ESP8266. The InfluxDB free cloud plan has some limitations that might not be suitable for your projects like the maximum 30-day data retention. If you want to have full control over your data, you can install InfluxDB on a local computer, like your Raspberry Pi.<\/p>\n\n\n\n<p>The amount of data you can save will be limited to the storage of your Raspberry Pi, so make sure you use a microSD card with appropriate size storage.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Prerequisites<\/h2>\n\n\n\n<ol class=\"wp-block-list\">\n<li><strong>MicroSD Card<\/strong>: The Pi doesn\u2019t have built-in memory, so you\u2019ll need a <a href=\"https:\/\/makeradvisor.com\/tools\/microsd-card-raspberry-pi-16gb-class-10\/\" target=\"_blank\" rel=\"noreferrer noopener\">microSD card<\/a> to install your OS. We&#8217;ll install the operating system on the microSD card. I recommend using a <a href=\"https:\/\/makeradvisor.com\/tools\/microsd-card-raspberry-pi-16gb-class-10\/\" target=\"_blank\" rel=\"noreferrer noopener\">microSD card class 10 with at least 16GB of memory<\/a>.<\/li>\n\n\n\n<li><a href=\"https:\/\/makeradvisor.com\/best-raspberry-pi-starter-kits\/\" target=\"_blank\" rel=\"noreferrer noopener\">Raspberry Pi 3 or Raspberry Pi 4<\/a><\/li>\n\n\n\n<li>64-bit architecture\u2014we&#8217;ll install <strong>Raspberry Pi OS (64-bit)<\/strong>.<\/li>\n<\/ol>\n\n\n\n<h2 class=\"wp-block-heading\">Install Raspberry Pi OS (64-bit)<\/h2>\n\n\n\n<p>InfluxDB 2 is only compatible with 64-bit architectures. So, you must be running <strong>Raspberry Pi OS (64-bit)<\/strong> or any other 64-bit OS (like Ubuntu, for example) to successfully install InfluxDB 2. Raspberry Pi OS (64-bit)<strong> is only compatible with Raspberry Pi 3 and 4<\/strong>.<\/p>\n\n\n\n<p>Follow the next steps to install Raspberry Pi OS (64-bit).<\/p>\n\n\n\n<p><strong>1)<\/strong> Start by connecting the microSD card to your computer.<\/p>\n\n\n\n<p><strong>2)<\/strong> Go to the <a href=\"https:\/\/www.raspberrypi.com\/software\/\" target=\"_blank\" rel=\"noreferrer noopener\">Raspberry Pi Software page<\/a>.<\/p>\n\n\n\n<p><strong>3)<\/strong> Select and download the Raspberry Pi Imager (a tool to flash the OS on the microSD card) for your computer&#8217;s operating system.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img data-recalc-dims=\"1\" decoding=\"async\" width=\"750\" height=\"470\" src=\"https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2021\/12\/Raspberry-Pi-Imager-download.jpg?resize=750%2C470&#038;quality=100&#038;strip=all&#038;ssl=1\" alt=\"Raspberry Pi Imager Download\" class=\"wp-image-108352\" srcset=\"https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2021\/12\/Raspberry-Pi-Imager-download.jpg?w=750&amp;quality=100&amp;strip=all&amp;ssl=1 750w, https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2021\/12\/Raspberry-Pi-Imager-download.jpg?resize=300%2C188&amp;quality=100&amp;strip=all&amp;ssl=1 300w\" sizes=\"(max-width: 750px) 100vw, 750px\" \/><\/figure><\/div>\n\n\n<p><strong>4)<\/strong> Click on the downloaded file to install the Raspberry Pi Imager.<\/p>\n\n\n\n<p><strong>5)<\/strong> When the installation is complete, the Raspberry Pi Imager will open.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img data-recalc-dims=\"1\" decoding=\"async\" width=\"682\" height=\"452\" src=\"https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2021\/12\/Rpi-Imager.png?resize=682%2C452&#038;quality=100&#038;strip=all&#038;ssl=1\" alt=\"Raspberry Pi Imager Software\" class=\"wp-image-111564\" srcset=\"https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2021\/12\/Rpi-Imager.png?w=682&amp;quality=100&amp;strip=all&amp;ssl=1 682w, https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2021\/12\/Rpi-Imager.png?resize=300%2C199&amp;quality=100&amp;strip=all&amp;ssl=1 300w\" sizes=\"(max-width: 682px) 100vw, 682px\" \/><\/figure><\/div>\n\n\n<p><strong>6)<\/strong> Click on <strong>Choose OS<\/strong> to select the Operating System. Select the <strong>Raspberry Pi OS<\/strong> <strong>(other)<\/strong> and then select <strong>Raspberry Pi OS (64-bit)<\/strong>.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"682\" height=\"452\" src=\"https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2022\/06\/Install-Rpi-64-bit.png?resize=682%2C452&#038;quality=100&#038;strip=all&#038;ssl=1\" alt=\"Raspberry Pi Imager Selecting Raspberry Pi OS 64-bit\" class=\"wp-image-111613\" srcset=\"https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2022\/06\/Install-Rpi-64-bit.png?w=682&amp;quality=100&amp;strip=all&amp;ssl=1 682w, https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2022\/06\/Install-Rpi-64-bit.png?resize=300%2C199&amp;quality=100&amp;strip=all&amp;ssl=1 300w\" sizes=\"(max-width: 682px) 100vw, 682px\" \/><\/figure><\/div>\n\n\n<p><strong>7)<\/strong> Choose storage. You must choose the microSD card where you want to install the OS.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"682\" height=\"452\" src=\"https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2021\/12\/Rpi-Imager-3.png?resize=682%2C452&#038;quality=100&#038;strip=all&#038;ssl=1\" alt=\"Raspberry Pi Imager Storage\" class=\"wp-image-111567\" srcset=\"https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2021\/12\/Rpi-Imager-3.png?w=682&amp;quality=100&amp;strip=all&amp;ssl=1 682w, https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2021\/12\/Rpi-Imager-3.png?resize=300%2C199&amp;quality=100&amp;strip=all&amp;ssl=1 300w\" sizes=\"(max-width: 682px) 100vw, 682px\" \/><\/figure><\/div>\n\n\n<p><strong>8) <\/strong>The Raspberry Pi Imager allows you to access advanced settings to configure hostname, SSH, and Wi-Fi, among others\u2014click on the gear icon to open advanced settings. If your window doesn\u2019t show the gear icon, press&nbsp;<strong>Ctrl<\/strong>\u2013<strong>Shift<\/strong>\u2013<strong>X<\/strong> to open the advanced setting window.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"684\" height=\"454\" src=\"https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2022\/06\/Install-Rpi-64-bit.-2png.png?resize=684%2C454&#038;quality=100&#038;strip=all&#038;ssl=1\" alt=\"Install Raspberry Pi 64-bit Storage and OS selected\" class=\"wp-image-111597\" srcset=\"https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2022\/06\/Install-Rpi-64-bit.-2png.png?w=684&amp;quality=100&amp;strip=all&amp;ssl=1 684w, https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2022\/06\/Install-Rpi-64-bit.-2png.png?resize=300%2C199&amp;quality=100&amp;strip=all&amp;ssl=1 300w\" sizes=\"(max-width: 684px) 100vw, 684px\" \/><\/figure><\/div>\n\n\n<p><strong>9)<\/strong> You can set hostname (the default will be <span class=\"rnthl rntliteral\">raspberrypi<\/span>), enable SSH, and set a password for SSH connection. <\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"473\" height=\"392\" src=\"https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2021\/12\/Raspberry-Pi-Imager-Advanced-Settings-2.png?resize=473%2C392&#038;quality=100&#038;strip=all&#038;ssl=1\" alt=\"Raspberry Pi Imager Advanced Settings\" class=\"wp-image-111570\" srcset=\"https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2021\/12\/Raspberry-Pi-Imager-Advanced-Settings-2.png?w=473&amp;quality=100&amp;strip=all&amp;ssl=1 473w, https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2021\/12\/Raspberry-Pi-Imager-Advanced-Settings-2.png?resize=300%2C249&amp;quality=100&amp;strip=all&amp;ssl=1 300w\" sizes=\"(max-width: 473px) 100vw, 473px\" \/><\/figure><\/div>\n\n\n<p><strong>10)<\/strong> Additionally, set up Wi-Fi with your local network credentials so that you can connect to your Raspberry Pi using Wi-Fi later on.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"461\" height=\"392\" src=\"https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2021\/12\/Raspberry-Pi-Imager-Advanced-Settings-1.png?resize=461%2C392&#038;quality=100&#038;strip=all&#038;ssl=1\" alt=\"Raspberry Pi Advanced Settings\" class=\"wp-image-111569\" srcset=\"https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2021\/12\/Raspberry-Pi-Imager-Advanced-Settings-1.png?w=461&amp;quality=100&amp;strip=all&amp;ssl=1 461w, https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2021\/12\/Raspberry-Pi-Imager-Advanced-Settings-1.png?resize=300%2C255&amp;quality=100&amp;strip=all&amp;ssl=1 300w\" sizes=\"(max-width: 461px) 100vw, 461px\" \/><\/figure><\/div>\n\n\n<p><strong>11)<\/strong> Set up your country and time zone. Finally, click <strong>Save<\/strong>.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"464\" height=\"392\" src=\"https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2021\/12\/Raspberry-Pi-Imager-Advanced-Settings-3.png?resize=464%2C392&#038;quality=100&#038;strip=all&#038;ssl=1\" alt=\"Raspberry Pi Imager Advanced Settings\" class=\"wp-image-111572\" srcset=\"https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2021\/12\/Raspberry-Pi-Imager-Advanced-Settings-3.png?w=464&amp;quality=100&amp;strip=all&amp;ssl=1 464w, https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2021\/12\/Raspberry-Pi-Imager-Advanced-Settings-3.png?resize=300%2C253&amp;quality=100&amp;strip=all&amp;ssl=1 300w\" sizes=\"(max-width: 464px) 100vw, 464px\" \/><\/figure><\/div>\n\n\n<p><strong>12)<\/strong> After selecting the operating system, storage, and advanced settings, click on <strong>write <\/strong>to start installing the operating system on the microSD card.<\/p>\n\n\n\n<p><strong>13)<\/strong> Wait a few seconds while it installs the Operating System.<\/p>\n\n\n\n<p><strong>14)<\/strong> When the installation is complete click on <strong>Continue<\/strong>. It will eject the microSD card safely.<\/p>\n\n\n\n<p><strong>15) <\/strong>Now, remove the card from your computer and insert it into your Raspberry Pi. Then, apply power to the Raspberry Pi to start it.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Install InfluxDB 2 on a Raspberry Pi<\/h2>\n\n\n\n<p>We&#8217;ll use SSH to communicate with the Raspberry Pi. If you&#8217;re using Windows, you can use a software like <a href=\"http:\/\/www.putty.org\/\" target=\"_blank\" rel=\"noreferrer noopener\">PuTTY<\/a>. If you&#8217;re using Linux or Mac OS, you can use the Terminal.<\/p>\n\n\n\n<p>If you don&#8217;t know how to establish an SSH connection with your Pi, <a href=\"https:\/\/randomnerdtutorials.com\/installing-raspbian-lite-enabling-and-connecting-with-ssh\/#connect-RPi-SSH\" target=\"_blank\" rel=\"noreferrer noopener\">check these instructions<\/a>.<\/p>\n\n\n\n<p>With an SSH connection established with your Raspberry Pi, run the following command (copy the complete command with CTRL-C and then paste it into the Terminal window with a right-click on the mouse).<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>wget -q https:\/\/repos.influxdata.com\/influxdata-archive_compat.key\necho '393e8779c89ac8d958f81f942f9ad7fb82a25e133faddaf92e15b16e6ac9ce4c influxdata-archive_compat.key' | sha256sum -c &amp;&amp; cat influxdata-archive_compat.key | gpg --dearmor | sudo tee \/etc\/apt\/trusted.gpg.d\/influxdata-archive_compat.gpg &gt; \/dev\/null\necho 'deb &#091;signed-by=\/etc\/apt\/trusted.gpg.d\/influxdata-archive_compat.gpg] https:\/\/repos.influxdata.com\/debian stable main' | sudo tee \/etc\/apt\/sources.list.d\/influxdata.list\n\nsudo apt-get update &amp;&amp; sudo apt-get install influxdb2<\/code><\/pre>\n\n\n\n<p class=\"rntbox rntclblue\"><strong>Issues with the installation?<\/strong> Check <a href=\"https:\/\/portal.influxdata.com\/downloads\/\" target=\"_blank\" rel=\"noopener\" title=\"\">this page for the official instructions<\/a>. Make sure you select the platform<strong> Ubuntu &amp; Debian<\/strong>.<\/p>\n\n\n\n<p>At some time, it will ask you to install additional packages. Press <strong>Y<\/strong> and hit <strong>Enter<\/strong> to accept. After installing, the Terminal window should look as follows:<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"733\" height=\"546\" src=\"https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2022\/06\/influxdb-installed-Rpi-64-bit.png?resize=733%2C546&#038;quality=100&#038;strip=all&#038;ssl=1\" alt=\"InfluxDB Installed on Rpi\" class=\"wp-image-111600\" srcset=\"https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2022\/06\/influxdb-installed-Rpi-64-bit.png?w=733&amp;quality=100&amp;strip=all&amp;ssl=1 733w, https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2022\/06\/influxdb-installed-Rpi-64-bit.png?resize=300%2C223&amp;quality=100&amp;strip=all&amp;ssl=1 300w\" sizes=\"(max-width: 733px) 100vw, 733px\" \/><\/figure><\/div>\n\n\n<p>Type the following command to start InfluxDB as a background service on startup.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo service influxdb start<\/code><\/pre>\n\n\n\n<p>Run the following command to verify that InfluxDB is running as expected.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo service influxdb status<\/code><\/pre>\n\n\n\n<p>You should get something as follows:<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"836\" height=\"394\" src=\"https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2022\/06\/influxdb-running-as-service-ok.png?resize=836%2C394&#038;quality=100&#038;strip=all&#038;ssl=1\" alt=\"InfluxDB running as a service\" class=\"wp-image-111602\" srcset=\"https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2022\/06\/influxdb-running-as-service-ok.png?w=836&amp;quality=100&amp;strip=all&amp;ssl=1 836w, https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2022\/06\/influxdb-running-as-service-ok.png?resize=300%2C141&amp;quality=100&amp;strip=all&amp;ssl=1 300w, https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2022\/06\/influxdb-running-as-service-ok.png?resize=768%2C362&amp;quality=100&amp;strip=all&amp;ssl=1 768w\" sizes=\"(max-width: 836px) 100vw, 836px\" \/><\/figure><\/div>\n\n\n<p>This means that InfluxDB is successfully running as a service.<\/p>\n\n\n\n<p><strong>Note: <\/strong> you may also want to check the official <a href=\"https:\/\/docs.influxdata.com\/influxdb\/v2.6\/install\/?t=Raspberry+Pi\" target=\"_blank\" rel=\"noopener\" title=\"\">installation instructions here<\/a> or <a href=\"https:\/\/portal.influxdata.com\/downloads\/\" target=\"_blank\" rel=\"noopener\" title=\"\">here<\/a>.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Accessing InfluxDB on Raspberry Pi<\/h2>\n\n\n\n<p>Now, you can access InfluxDB on your Raspberry Pi IP address port <strong>8086<\/strong>. My Raspberry Pi IP address is 192.168.1.106, so to access InfluxDB, I just need to type the following in my web browser:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>192.168.1.106:8086<\/code><\/pre>\n\n\n\n<p>To get your Raspberry Pi IP address, you can run the following command:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>hostname -I<\/code><\/pre>\n\n\n\n<p>When you first access InfluxDB, you&#8217;ll see the following screen. Click on <strong>Get Started<\/strong>.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"852\" height=\"552\" src=\"https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2022\/06\/influx-db-access-Raspberry-Pi-Port-8086.png?resize=852%2C552&#038;quality=100&#038;strip=all&#038;ssl=1\" alt=\"InfluxDB Get Started Screen\" class=\"wp-image-111607\" srcset=\"https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2022\/06\/influx-db-access-Raspberry-Pi-Port-8086.png?w=852&amp;quality=100&amp;strip=all&amp;ssl=1 852w, https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2022\/06\/influx-db-access-Raspberry-Pi-Port-8086.png?resize=300%2C194&amp;quality=100&amp;strip=all&amp;ssl=1 300w, https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2022\/06\/influx-db-access-Raspberry-Pi-Port-8086.png?resize=768%2C498&amp;quality=100&amp;strip=all&amp;ssl=1 768w\" sizes=\"(max-width: 852px) 100vw, 852px\" \/><\/figure><\/div>\n\n\n<p>You&#8217;ll need to set up an initial user. Fill in the form details, you can use whatever names you want. You need to remember the username and password so that you can access InfluxDB data later on.<\/p>\n\n\n\n<p>Then, click on <strong>Continue <\/strong>to proceed.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"742\" height=\"691\" src=\"https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2022\/06\/setup-initial-user-influxdb.png?resize=742%2C691&#038;quality=100&#038;strip=all&#038;ssl=1\" alt=\"InfluxDB Get Started Screen create user\" class=\"wp-image-111608\" srcset=\"https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2022\/06\/setup-initial-user-influxdb.png?w=742&amp;quality=100&amp;strip=all&amp;ssl=1 742w, https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2022\/06\/setup-initial-user-influxdb.png?resize=300%2C279&amp;quality=100&amp;strip=all&amp;ssl=1 300w\" sizes=\"(max-width: 742px) 100vw, 742px\" \/><\/figure><\/div>\n\n\n<p>Make sure you copy your operator API token before proceeding. You won\u2019t be able to see it again.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"798\" src=\"https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2024\/05\/api-token.png?resize=1024%2C798&#038;quality=100&#038;strip=all&#038;ssl=1\" alt=\"Influxdb api token\" class=\"wp-image-155499\" srcset=\"https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2024\/05\/api-token.png?resize=1024%2C798&amp;quality=100&amp;strip=all&amp;ssl=1 1024w, https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2024\/05\/api-token.png?resize=300%2C234&amp;quality=100&amp;strip=all&amp;ssl=1 300w, https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2024\/05\/api-token.png?resize=768%2C598&amp;quality=100&amp;strip=all&amp;ssl=1 768w, https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2024\/05\/api-token.png?w=1028&amp;quality=100&amp;strip=all&amp;ssl=1 1028w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure><\/div>\n\n\n<p>Then, you can click on <strong>Quick Start<\/strong>.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"784\" height=\"296\" src=\"https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2022\/06\/influxdb-quick-start.png?resize=784%2C296&#038;quality=100&#038;strip=all&#038;ssl=1\" alt=\"influxdb quick start\" class=\"wp-image-155497\" srcset=\"https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2022\/06\/influxdb-quick-start.png?w=784&amp;quality=100&amp;strip=all&amp;ssl=1 784w, https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2022\/06\/influxdb-quick-start.png?resize=300%2C113&amp;quality=100&amp;strip=all&amp;ssl=1 300w, https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2022\/06\/influxdb-quick-start.png?resize=768%2C290&amp;quality=100&amp;strip=all&amp;ssl=1 768w\" sizes=\"(max-width: 784px) 100vw, 784px\" \/><\/figure><\/div>\n\n\n<p>You&#8217;ll be redirected to the <strong>Getting Started <\/strong>screen.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"1038\" height=\"727\" src=\"https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2024\/05\/influxdb-getting-started.png?resize=1038%2C727&#038;quality=100&#038;strip=all&#038;ssl=1\" alt=\"\" class=\"wp-image-155500\" srcset=\"https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2024\/05\/influxdb-getting-started.png?w=1038&amp;quality=100&amp;strip=all&amp;ssl=1 1038w, https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2024\/05\/influxdb-getting-started.png?resize=300%2C210&amp;quality=100&amp;strip=all&amp;ssl=1 300w, https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2024\/05\/influxdb-getting-started.png?resize=1024%2C717&amp;quality=100&amp;strip=all&amp;ssl=1 1024w, https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2024\/05\/influxdb-getting-started.png?resize=768%2C538&amp;quality=100&amp;strip=all&amp;ssl=1 768w\" sizes=\"(max-width: 1038px) 100vw, 1038px\" \/><\/figure><\/div>\n\n\n<h2 class=\"wp-block-heading\">Wrapping Up<\/h2>\n\n\n\n<p>Congratulations! You&#8217;ve successfully installed InfluxDB on your Raspberry Pi and set up an initial user, organization, and bucket. <\/p>\n\n\n\n<p>You are now ready to load data to InfluxDB.<\/p>\n\n\n\n<p>You can follow one of the next tutorials to get started loading data from the ESP32 or ESP8266 to InfluxDB:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><a href=\"https:\/\/randomnerdtutorials.com\/esp32-influxdb\/\">ESP32: Getting Started with InfluxDB<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/randomnerdtutorials.com\/esp8266-nodemcu-influxdb\/\">ESP8266 NodeMCU: Getting Started with InfluxDB<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/randomnerdtutorials.com\/esp32-esp8266-sensor-bme280-influxdb\/\">ESP32\/ESP8266: Send BME280 Sensor Readings to InfluxDB<\/a><\/li>\n<\/ul>\n\n\n\n<p>Do you like Home Automation? Check our most complete eBook about this subject:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><a href=\"https:\/\/randomnerdtutorials.com\/smart-home-ebook\/\" title=\"\">SMART HOME with Raspberry Pi, ESP32, and ESP8266<\/a>: Learn Node-RED and InfluxDB on a Raspberry Pi to build a Home Automation System with the ESP32 and ESP8266.<\/li>\n<\/ul>\n\n\n\n<p>Thanks for reading.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>This guide shows how to install InfluxDB 2 on Raspberry Pi. InfluxDB is an open-source time-series database (TSDB). So, it is ideal to store sensor data with timestamps over a &#8230; <\/p>\n<p class=\"read-more-container\"><a title=\"Install InfluxDB 2 on Raspberry Pi\" class=\"read-more button\" href=\"https:\/\/randomnerdtutorials.com\/install-influxdb-2-raspberry-pi\/#more-111596\" aria-label=\"Read more about Install InfluxDB 2 on Raspberry Pi\">CONTINUE READING \u00bb<\/a><\/p>\n","protected":false},"author":5,"featured_media":111612,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[301,264,190,268],"tags":[],"class_list":["post-111596","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-0-raspberrypi","category-project","category-raspberry-pi","category-raspberry-pi-project"],"aioseo_notices":[],"jetpack_featured_media_url":"https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2022\/06\/Install-InfluxDB-Raspberry-Pi.jpg?fit=1280%2C720&quality=100&strip=all&ssl=1","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/randomnerdtutorials.com\/wp-json\/wp\/v2\/posts\/111596","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/randomnerdtutorials.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/randomnerdtutorials.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/randomnerdtutorials.com\/wp-json\/wp\/v2\/users\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/randomnerdtutorials.com\/wp-json\/wp\/v2\/comments?post=111596"}],"version-history":[{"count":12,"href":"https:\/\/randomnerdtutorials.com\/wp-json\/wp\/v2\/posts\/111596\/revisions"}],"predecessor-version":[{"id":155501,"href":"https:\/\/randomnerdtutorials.com\/wp-json\/wp\/v2\/posts\/111596\/revisions\/155501"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/randomnerdtutorials.com\/wp-json\/wp\/v2\/media\/111612"}],"wp:attachment":[{"href":"https:\/\/randomnerdtutorials.com\/wp-json\/wp\/v2\/media?parent=111596"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/randomnerdtutorials.com\/wp-json\/wp\/v2\/categories?post=111596"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/randomnerdtutorials.com\/wp-json\/wp\/v2\/tags?post=111596"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}