<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/how-to-build-adonisjs-api-to-store-your-raspberry-pi-temperature-6ophdfopq" -->

---
title: How to build AdonisJS API to store your Raspberry Pi...
description: In this tutorial we will use AdonisJS to build a simple API that will collect the data from the sensors and store it in a Postgres database. This can be used...
canonical: https://daily.dev/posts/how-to-build-adonisjs-api-to-store-your-raspberry-pi-temperature-6ophdfopq
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: How to build AdonisJS API to store your Raspberry Pi Temperature | daily.dev
og:description: In this tutorial we will use AdonisJS to build a simple API that will collect the data from the sensors and store it in a Postgres database. This can be used...
og:url: https://daily.dev/posts/how-to-build-adonisjs-api-to-store-your-raspberry-pi-temperature-6ophdfopq
og:image: https://api.daily.dev/og/posts/6OPHDfOpq.png
og:image:alt: How to build AdonisJS API to store your Raspberry Pi Temperature
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# How to build AdonisJS API to store your Raspberry Pi Temperature

**[DevDojo](https://daily.dev/sources/devdojo)** · [@bobbyiliev](https://daily.dev/bobbyiliev) · 6 min read · 5 upvotes · 1 comments

## Summary

In this tutorial we will use AdonisJS to build a simple API that will collect the data from the sensors and store it in a Postgres database. This can be used to collect the temperature data of a large number of Raspberry Pi devices. The ORL is called Lucid and we will be using it today.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://devdojo.com/bobbyiliev/how-to-build-adonisjs-api-to-store-your-raspberry-pi-temperature>

## Community discussion

Top comments from developers on daily.dev.

**@bobbyiliev** · 0 upvotes

> Hope that this helps!

---

Tags: [#adonisjs](https://daily.dev/tags/adonisjs), [#general-programming](https://daily.dev/tags/general-programming), [#iot](https://daily.dev/tags/iot), [#postgresql](https://daily.dev/tags/postgresql)

[View this post on daily.dev](https://daily.dev/posts/how-to-build-adonisjs-api-to-store-your-raspberry-pi-temperature-6ophdfopq)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"How to build AdonisJS API to store your Raspberry Pi Temperature","url":"https://daily.dev/posts/how-to-build-adonisjs-api-to-store-your-raspberry-pi-temperature-6ophdfopq","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/how-to-build-adonisjs-api-to-store-your-raspberry-pi-temperature-6ophdfopq"},"datePublished":"2021-12-18T17:39:17.919Z","dateModified":"2026-03-15T04:00:53.559Z","description":"In this tutorial we will use AdonisJS to build a simple API that will collect the data from the sensors and store it in a Postgres database. This can be used...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/d9eb76b22e83e9299a4e02d17b88aa13","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/d9eb76b22e83e9299a4e02d17b88aa13","isAccessibleForFree":true,"articleSection":"DevDojo","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Person","name":"Bobby Iliev","url":"https://daily.dev/bobbyiliev","image":"https://avatars3.githubusercontent.com/u/21223421?v=4","description":"DevOps, DevEx, cloud & open source\n","worksFor":{"@type":"Organization","name":"Materialize","logo":"https://res.cloudinary.com/daily-now/image/upload/s--4mL2CrlK--/f_auto/v1725263959/companies/materialize"},"interactionStatistic":{"@type":"InteractionCounter","interactionType":{"@type":"EndorseAction"},"userInteractionCount":81510}},"commentCount":1,"discussionUrl":"https://daily.dev/posts/how-to-build-adonisjs-api-to-store-your-raspberry-pi-temperature-6ophdfopq","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":5},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":1}],"keywords":"adonisjs,general-programming,iot,postgresql","timeRequired":"PT6M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"DevDojo","item":"https://daily.dev/sources/devdojo"},{"@type":"ListItem","position":3,"name":"How to build AdonisJS API to store your Raspberry Pi Temperature"}]}
{"@context":"https://schema.org","@type":"WebPage","@id":"https://daily.dev/posts/how-to-build-adonisjs-api-to-store-your-raspberry-pi-temperature-6ophdfopq","comment":[{"@type":"Comment","text":"Hope that this helps!","datePublished":"2021-12-18T17:39:46.876Z","url":"https://daily.dev/posts/6OPHDfOpq#c-eHUDKBVFN","author":{"@type":"Person","name":"Bobby Iliev","url":"https://daily.dev/bobbyiliev","image":"https://avatars3.githubusercontent.com/u/21223421?v=4"}}]}
```

