Skip to content

ChristianHering/Thermostat

Repository files navigation

Thermostat

This repository does not (currently) implement a thermostat.

It provides:

  • The software to run a simple weather station.
  • A (mostly) text based display output:

Example Output

Table of Contents:

About

I originally set out to make a smart thermostat with a weather station build into it. However, relays were never ordered with the display and the thermostat idea was tabled for now. Here is a list of the hardware that was chosen to create the weather station:

  • WaveShare 7.5" E-Ink Display - I chose this display to minimize the power draw of the system. Color and refresh rate aren't a problem, as the data doesn't refresh very often anyways.
  • Raspberry Pi Zero W - This was used for it's simplicity, affordability, and because our display came with a rPi hat.
  • Texas Instruments Temperature Sensor (TMP117) - I wanted to be able to read out temperature with a reasonable degree of accuracy that many cheap hobbyist sensors didn't allow for. Insert overkill sensor here
  • OpenWeather's One Call API - This was the first API I found that was free and had current data for my location.

The setup is pretty simple... Solder the TMP117 to the rPi's I2C pins, plug the display into the rPi, and configure a cronjob/similar to run this program on boot.

Documentation:

Compiling from Source

If you're looking to compile from source, you'll need the following:

In order to cross comile this from windows to your raspberry pi, you'll have to run the following commands before building:

  • set GOOS=linux
  • set GOARCH=arm
  • set GOARM=5

Then, build the project.

  • go build ./

Simply upload everything to your raspberry pi, and you're done!

PS- You may want to add the binary to crontab/similar, so it runs on startup.

Contributing

Contributions are always welcome. If you're interested in contributing, send me an email or submit a PR.

License

This project is currently licensed under GPLv3. This means you may use our source for your own project, so long as it remains open source and is licensed under GPLv3.

Please refer to the license file for more information.

About

An E-Paper weather display device

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages