BMP180 on RPi3

BMP180 on RPi3

Step 1: Enable I2C Open the Raspberry Pi configuration tool: sudo raspi-config Navigate to Interface Options > I2C and enable it. Reboot the Raspberry Pi: sudo reboot Step 2: Install Required Libraries Update your Raspberry Pi: sudo apt update && sudo apt upgrade -y Install the I2C tools and the necessary Python libraries: sudo apt install -y i2c-tools python3-smbus python3-pip Set up a virtual environment and install the circuitpython-bmp180 library: python3 -m venv env source env/bin/activate pip install adafruit-circuitpython-bmp180 Verify…

Read More Read More

Wemos D1 R2 (ESP8266)

Wemos D1 R2 (ESP8266)

I am try to build a sensor with low power consumption, low enough for be battery operated. This sensor will acquire temperature and humidity readings and transmit them to my Raspberry Pi controller via HTTP requests. The Raspberry Pi will utilize a webpy service running on port 8080 to collect data from various sensors deployed throughout the home. I have previously used webpy for similar sensor projects (see my previous post here), although Node.js could have been a suitable alternative….

Read More Read More

Dynamic data with Chart.js

Dynamic data with Chart.js

  The joy of using charts on you web site! I use chart.js and I have to say after getting MySql to extract the right data I wanted to change data dynamically without a post back to the page. I have to say that I did find some examples online on how to do that with chart.js but the easier one to implement was to build the Chartjs object in a separate php page that you can call with an Ajax call….

Read More Read More

Temperature report site revamp!

Temperature report site revamp!

Finally I did it!  Still struggling with PHP.  I was thinking of using django but I thought the learning curve was too much to tackle for a side project.  Absolutely loving Bootstrap and Chart.js both so easy to use and very good looking.  Have a look at the final result here. Soon I might post some code on how I got Chart.js to post dynamic charts with AJAX.