Random brain dumps

Speaking at ElixirConf 2018 If you want to learn how to build a weather station, laugh, cry when its over; then come to ElixirConf 2018! You can talk to me in person and I’ll make sure to tell you the wind speed. It’s ALIVE To see weather results visit https://weather.frankkumro.com. Refresh the page every 30 seconds to see the latest weather report. The home of the weather station. ... Read More
Part 3 demonstrated how to communicate with the wind speed sensor. The next step is to create modules for reading from both sensors, and automatically repeating this task at a set interval. You will notice two project names in the details below, Lake Effect and Thunder Snow. These are the project names for the code running on the weather station (Lake Effect) and the code that will be running the API/UI for display (Thunder Snow). ... Read More
Part 2 ended without us being able to read the wind speed, let’s fix that! Communicating via SPI bus To communicate with the wind speed sensor, a binary payload must be sent to the MCP3008 chip over the SPI bus. The elixir_ale library will be used, as it supports SPI. The first step was to determine what channel the wind speed sensor is wired to. For my setup, that is channel 0, indicated by the top left most pin being used on the chip. ... Read More
Life happens but I am back with a part 2 update for the Raspberry Pi weather station powered by Elixir/Nerves! An analog mistake After the parts arrived, I began to pour over the schematics for each device. Only then did I realized the wind sensor was analog, but the Raspberry Pi did not support analog inputs. Digital vs analog is a topic I never thought of, being niave in the hardware world, but it was an easy fix. ... Read More
I’ve been using Nanobox for months now on my side projects, it is an amazing tool for dev(s)/teams that are solo or want to avoid devops work. One item that I miss from my devops days, was the ability to deploy based on a git tag. Being able to checkout the code that currently lives on production, at any time, saves a lot of headaches when it hits the fan. ... Read More