DEV Community

Cover image for Building an interactive Raspberry Pi dashboard with Laravel, Grafana, and Docker

Building an interactive Raspberry Pi dashboard with Laravel, Grafana, and Docker

Andrew Schmelyun on April 23, 2020

If you'd like to skip the following article and just check out the code, you can view everything on this GitHub repository: github.com/aschmelyun/l...
Collapse
 
m4t5 profile image
Mat S

Hi Andrew,

Thanks for a well written and useful post. I'm using it to connect a pi-w to an old model B which has been logging temperature (heating, ambient) data for my house for about 5 years. I'm a docker newbie though, and the instructions for creating docker-compose.yml omit the services: line and the indents which follow. This is enough to stop it working (even though yamllint didn't complain).

The git repo saved the day and the downloads are nearly done - got to go!

Thanks again

Mat

Collapse
 
aschmelyun profile image
Andrew Schmelyun

Glad the repo helped Mat, I'll have to make some quick edits to those in the article!

Also, if you don't mind me asking, how'd you find this post?

Collapse
 
m4t5 profile image
Mat S

This post was linked from the stack overflow newsletter (The Overflow #20: Sharpen your skills).

I can't get beyond docker-compose up -d --build though. Tried the dockerfile in your repo, tried some other containers, played around with it but it always fails (output below).

Fresh Raspbian 10 on a Pi Zero 1.1, 16Gb sd card. Google didn't help - any ideas?

Many thanks

~/laravel-grafana-dashboard-master $ docker-compose up -d --build

Building php
Step 1/3 : FROM php:7.4-fpm-alpine
---> 62ddc4288d97
Step 2/3 : WORKDIR /var/www/html
---> Using cache
---> 2c1d49e9f256
Step 3/3 : RUN docker-php-ext-install pdo pdo_mysql
---> Running in 5e66cc8f0056
ERROR: Service 'php' failed to build: The command '/bin/sh -c docker-php-ext-install pdo pdo_mysql' returned a non-zero code: 139

Collapse
 
huncyrus profile image
huncyrus

What's the PI load with this amount of docker?

Collapse
 
roelofjanelsinga profile image
Roelof Jan Elsinga

I'm just starting out in the "smart home" journey and this post is what I needed! Thank you for this 😁

Collapse
 
tylerlwsmith profile image
Tyler Smith

Hey this is nifty!