Skip to content

Simple projet to display the temperature of my pool using 2 raspberry pies

License

Notifications You must be signed in to change notification settings

ctaschereau/pipool

Repository files navigation

pipool

Simple projet to display the temperature of a pool using one/two raspberry pi(es).

Installing

  1. have a one-wire thermometer sensor wired-up to your pi that is near the water
  2. have a python web server running on that pi to be able to read the pool's temperature
  3. have that pi powered up, connected to wifi, and with the sensor in the pool
  4. using a different pi (or the same one), have a cron job that gets the pool's temperature at a given interval
  5. have a nice webserver to display the results

Putting it all together

  • Step 1 : https://thepihut.com/blogs/raspberry-pi-tutorials/18095732-sensors-temperature-with-the-1-wire-interface-and-the-ds18b20
  • Step 2 is accomplished by installing python3-flask and then running the script pi1_install.sh
  • Step 3 is left up to the reader to figure out
  • Steps 4 & 5 are done by running this : deno run --allow-net --allow-write --allow-read --allow-plugin --unstable index.ts or by setuping a service like this (for systemd) (in a file like /etc/systemd/system/pipool.service) :
      [Unit]
      Description="PiPool"
    
      [Service]
      ExecStart=/home/pi/.cargo/bin/deno run --allow-net --allow-write --allow-read index.ts
      WorkingDirectory=/home/pi/pipool
      Restart=always
      RestartSec=10
      StandardOutput=syslog
      StandardError=syslog
      SyslogIdentifier=Deno
      User=pi
    
      [Install]
      WantedBy=multi-user.target```
    
    

Todos

  • Add script to create and manage service for Deno webserver
  • Use a real way of templating stuff for the client-side (ex: Vue.js or React.js)
  • Use a nice client-side lib
  • Manage the fact that the local.ts file could not be there
  • Better logging (use nice datetime format)

About

Simple projet to display the temperature of my pool using 2 raspberry pies

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published