I always forget this:

First goto youtube-dl and grab the latest version

Copy the playlist link which looks like (just from the recommends, search or if you’re already in the list)

D/L using /usr/local/bin/youtube-dl -cit –extract-audio –audio-format mp3 “…”

Goodbye thingsboard – welcome grafana Part 1

Thingsboard had kind of a short lifespan in the weather station project. The main issues I have

  • resource hungry – Java, tomcat server
  • buggy – kept crashing on me 5 times yesterday and now doesn’t even startup anymore
  • controls not implemented yet, multi-axis missing
  • basically too much boilerplate

On paper thingsboard looks like a good and easy way to get your MQTT data archived and displayed, but I don’t need a multi tenant solution where I need to invest a lot of resources to debug, fix and implement the functionality I need.

So here’s the deal: Mosquitto as MQTT broker, InfluxDB, Telegraf as bridge between Mosquitto and InfluxDB and Grafana for data visualization.

In part one we get the basic system running on localhost, in part 2 we add security and deploy to our web server.

Continue reading

Circuits for noobs (like me)

This is probably a part in a series where I figure out some basics of electronic circuits. I take absolutely no responsibility and I might as well be totally wrong. I try to figure stuff out and see if it makes sense to me. The I’ll hook it up to my controller and if there’s no magic smoke I might have done something right 🙂
I’m a programmer, I can write code for microcontrollers an hook some sensors up and I know that plus is minus and red is black 🙂
But when it comes down to calculating specific dimensions of components or knowing what basic component I need in a circuit to adapt to specific conditions I’m totally lost and start all over like I’m back in 7th grade.

Part 1 – Voltage dividers

Simple Problem: Voltage coming from a 6V Solar Panel needs to be measured with an ADC which has a maximum input voltage of 2.048V (to be more specific: I use an ADS1015 with GAIN_TWO – more on that later)
Continue reading