Reader small image

You're reading from  Building Smart Home Automation Solutions with Home Assistant

Product typeBook
Published inSep 2023
PublisherPackt
ISBN-139781801815291
Edition1st Edition
Right arrow
Author (1)
Marco Carvalho
Marco Carvalho
author image
Marco Carvalho

Marco Carvalho is an experienced home automation hobbyist engineer, electrical engineer, and technician. Pursuing his passion for electronics and embedded systems, he created an embedded home automation task scheduler using X10 Home Automation devices in 2006. Nowadays, he uses wireless electronic devices and the Home Assistant software to build different smart home automation applications. As an MSc in Computer Science, Marco has worked with several well-known companies such as IBM, Jabil, Phillips, and Hexagon where he extended his support in development and manufacturing of electronic products. At the time of this publication, he is the Director of Engineering for Apex Microtechnology, where he is involved in the development of high power, high precision analog components.
Read more about Marco Carvalho

Right arrow

Storing data in a database using InfluxDB

We will have to configure two parameters to be able to start storing temperatures in the InfluxDB database:

  • The InfluxDB database
  • A user to access the database

We learned how the InfluxDB database works and how to create it in the Installing and creating databases using InfluxDB subsection in Chapter 7. I recommend you review that subsection, where I showed you how to create the Temperatures InfluxDB database we will use in this project.

Configuring a user to access the database is required to get credentials to store data in the InfluxDB database. We will do this by following these steps:

  1. Open Settings | Add-ons | InfluxDB and click on the OPEN WEB UI button. The Chronograf interface will open.
  2. Select the crown icon titled InfluxDB Admin in the Cronograf sidebar.
  3. Click on the Users tab and then on the + Create User button. In the Create User window, fill the User Name field with your_name, and in the Password...
lock icon
The rest of the page is locked
Previous PageNext Page
You have been reading a chapter from
Building Smart Home Automation Solutions with Home Assistant
Published in: Sep 2023Publisher: PacktISBN-13: 9781801815291

Author (1)

author image
Marco Carvalho

Marco Carvalho is an experienced home automation hobbyist engineer, electrical engineer, and technician. Pursuing his passion for electronics and embedded systems, he created an embedded home automation task scheduler using X10 Home Automation devices in 2006. Nowadays, he uses wireless electronic devices and the Home Assistant software to build different smart home automation applications. As an MSc in Computer Science, Marco has worked with several well-known companies such as IBM, Jabil, Phillips, and Hexagon where he extended his support in development and manufacturing of electronic products. At the time of this publication, he is the Director of Engineering for Apex Microtechnology, where he is involved in the development of high power, high precision analog components.
Read more about Marco Carvalho