Browsed by
Category: Raspberry Pi

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.

IPaddress change alert script

IPaddress change alert script

My old ISP use to change my external IP address all the time and to keep my DNS name on track I wrote this script: #!/usr/bin/python import smtplib import urllib2 import time import sys def send_email(): try: server = smtplib.SMTP(‘smtp’, 587)#smtp address and port number server.starttls() #Next, log in to the server server.login(“smtp username”, “password”)#username and password for smtp #def emailSend(ipaddress): to_addr=”your email address” subject=”IPaddress is changed” message=”this is from your webserver:” + html from_addr=”you@gmail.com” header = ‘From: %s\n’ %…

Read More Read More

Raspberry Pi 2

Raspberry Pi 2

After the temporary death of the Banana Pi (and with it my website) I hastily bought a Raspberry Pi 2 to then find out few days later that the problem with the Banana was SD adapter from micro to normal, the miracle of Easter (Banana Pi = Jesus), replaced the adapter the Banana start again. Need to find a use to this one now….

First steps to my RPi weather station

First steps to my RPi weather station

After my fist Pi experiment I finally decided what my final project will be: a weather station. After the temperature I thought humidity and atmospheric pressure will be the next task: To do that I needed two new sensors: DHT11 (don’t waste your money like I did on DHT11 buy DHT22) and BMP180. In order to get the sensor working there is no better place then the Adafruit (thanks be to god!) website, I found there all I needed to…

Read More Read More

Banana Pi

Banana Pi

Here is my new Banana Pi. It has been employed to replace the old laptop that I used as a webserver. The old laptop was still going strong but the HD was on his way out, every time I restarted the machine the HD stop working until you give it a good shake! Plus the Banana Pi as almost the same processing power and consume a fraction of the laptop power. So far I have to say that it works…

Read More Read More

First Raspberry Pi Project

First Raspberry Pi Project

Temperature Sensor: Just got my self a DS18D20 and I thought it will be good to build a controller to record temperature. I am using these two websites to help me start: http://raspberrywebserver.com/cgiscripting/rpi-temperature-logger/building-an-sqlite-temperature-logger.html https://www.cl.cam.ac.uk/projects/raspberrypi/tutorials/temperature/ In the second website I understood the basic to connect a DS18B20 Then the code in python to get the readings: #!/usr/bin/env python import os import glob import time # load the kernel modules needed to handle the sensor os.system(‘modprobe w1-gpio’) os.system(‘modprobe w1-therm’) # find the path…

Read More Read More