RaspberryPi, Device Tree & why my DS18B20 app is broken

One of the problems with writing about Linux, the Raspberry Pi and technology in general is that posts can quickly become out of date.

 

I noticed several weeks ago that my server was no longer producing nice graphs showing me the temperatures both inside and outside my house.

I've only just found some time to investigate.

My server problems relate to two posts: this one about how to use the DS18B20 temperature sensors and this one about the OpenWeatherMap api.

Device Tree

RaspberryPi
Apparently, early in 2015, support for Device Tree was added to Raspbian. A few weeks ago I updated my Raspberry Pi server and lost my thermometers. If you want to know why, you may like to read this long thread:-

https://www.raspberrypi.org/forums/viewtopic.php?f=28&t=97314

I found I could fix my system by running in terminal:-

sudo raspi-config

…and then selecting:-

Advanced Options > Device Tree

…and just turning it off. This is probably the wrong way of doing it and I may live to regret it. But for now, its a solution.

OpenWeatherMap

I was using the OpenWeatherMap api to get the current outside temperature. This wasn't ideal as my actual location is generally a few degrees colder that the closest location available on OpenWeatherMap.

The reason this has stopped working is that (as of October) you now need to get an access key. To do this you need to register, create an account & give them all sorts of personal information.

 

For more detail: RaspberryPi, Device Tree & why my DS18B20 app is broken


About The Author

Ibrar Ayyub

I am an experienced technical writer holding a Master's degree in computer science from BZU Multan, Pakistan University. With a background spanning various industries, particularly in home automation and engineering, I have honed my skills in crafting clear and concise content. Proficient in leveraging infographics and diagrams, I strive to simplify complex concepts for readers. My strength lies in thorough research and presenting information in a structured and logical format.

Follow Us:
LinkedinTwitter

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top