User Tools

Site Tools


doc:appunti:hardware:raspberrypi_air

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
doc:appunti:hardware:raspberrypi_air [2017/10/09 12:49] niccolodoc:appunti:hardware:raspberrypi_air [2020/08/14 10:17] (current) – [Rapsberry Pi Air Quality Station] niccolo
Line 1: Line 1:
-====== Rapsberry Pi Air Quality Station ======+====== Raspberry Pi Air Quality Station ======
  
 This is my second approach to the **[[wp>Internet of things]]**, this time I built a **weather station** to be installed on the balcony. The first one, which was based also on the [[wp>Raspberry Pi]], was a [[raspberrypi_thermostat|programmable thermostat]]. This is my second approach to the **[[wp>Internet of things]]**, this time I built a **weather station** to be installed on the balcony. The first one, which was based also on the [[wp>Raspberry Pi]], was a [[raspberrypi_thermostat|programmable thermostat]].
Line 81: Line 81:
  
 Edit **/etc/nginx/sites-available/default** to enable PHP into the Nginx web server, then reload Nginx. Edit **/etc/nginx/sites-available/default** to enable PHP into the Nginx web server, then reload Nginx.
- 
 ===== DS3231 RTC Clock ===== ===== DS3231 RTC Clock =====
  
Line 94: Line 93:
 ===== Python Libraries ===== ===== Python Libraries =====
  
-The **Adafruit library for the GPIO** lines is required by the Adafruit BME280 library to access I2C bus:+The **Adafruit library for the GPIO** lines is required by the Adafruit BME280 library to access I2C bus. It is advisable to install also some packages **from the Raspbian distro**, otherwise the python setup will try to download and install a local version: 
 + 
 +<code> 
 +apt-get install python-dev python-setuptools python-spidev 
 +</code> 
 + 
 +The Adafruit Python library is installed from the Git repository:
  
 <code> <code>
Line 103: Line 108:
 </code> </code>
  
 +The setup procedure will download and install also the **Adafruit_PureIO** library. Everything will be installed into the **/usr/local/lib/python2.7/dist-packages/** directory.
 ===== Serial Line ===== ===== Serial Line =====
  
Line 255: Line 261:
  
 <code> <code>
-apt-get install build-essential python-dev python-smbus git+apt-get install git build-essential python-dev python-smbus python-setuptools python-spidev
 cd /usr/local/src/ cd /usr/local/src/
 git clone https://github.com/adafruit/Adafruit_Python_GPIO.git git clone https://github.com/adafruit/Adafruit_Python_GPIO.git
Line 464: Line 470:
 ==== Export to DXF ==== ==== Export to DXF ====
  
-In OpenSCAD we use the menu //Design// -> //Compile and Render (CGAL)//. If the object is only bi-dimensional it will be rendered with a red outline and cyan filling. Only in this case we will be able to //File// -> //Export// -> //Export as DXF...//.+In OpenSCAD we use the menu //Design// -> //Render//. If the object is only bi-dimensional it will be rendered with a red outline and cyan filling. Only in this case we will be able to //File// -> //Export// -> //Export as DXF...//.
  
 ==== Using Inkscape to add writings, logos and to layout the pieces ==== ==== Using Inkscape to add writings, logos and to layout the pieces ====
doc/appunti/hardware/raspberrypi_air.1507546192.txt.gz · Last modified: 2017/10/09 12:49 by niccolo