Coder Social home page Coder Social logo

scoder12 / lcdtemps Goto Github PK

View Code? Open in Web Editor NEW
3.0 2.0 0.0 19 KB

Client and server to show temps and stats on an LCD with Raspberry Pi and python

License: MIT License

Python 97.80% Batchfile 2.20%
python3 python raspberry-pi raspberry-pi-gpio aiohttp aiohttp-server requests

lcdtemps's Introduction

lcdtemps

Client and server to show temps on an LCD with Raspberry Pi

This is a library I wrote to connect my raspberry pi to show my PC's temps on a 16x2 LCD I had lying around. For the wiring,. I used this page http://www.circuitbasics.com/raspberry-pi-lcd-set-up-and-programming-in-python/ which had this diagram for the wiring: Fritzing Wiring Diagram To setup do the following:

  1. Install aiohttp and download the lcd_server.py file onto your Raspberry Pi, grab its ip address, and run it. (You may want to put it in /etc/rc.local as well so it runs on bootup).
  2. Download the client.py file and the requests module onto your PC.
  3. Update the server_url variable in your client with the Pi's IP address.
  4. Setup your get_temps.py file. If you are running windows, use windows setup instructions
  5. Run the client. The temperatures should automatically update every second and if you bump the cable, just hit the Reset LCD button to refresh the GPIO without restarting the server!

Windows setup

Just populate the function with a method of retrieving the temperatures for you system. If you are running windows, you can use the provided function without modifing them, but you need to have Open Hardware Monitor running (I'd use minimize to try though) and the wmi module to communicate with it. Also only with windows you can use the provided start.bat and stop.bat file to control it. These use pythonw so it is fine to just close the cmd window that opens. Hope this helps! Made by @Scoder12 Github Repl.it

lcdtemps's People

Contributors

scoder12 avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.