Differences

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

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
using_weatherduino_pro2_upload_data_website_database_sql [2018/05/20 22:35]
werk_ag [Step 4: Configuring the PHP Scripts]
using_weatherduino_pro2_upload_data_website_database_sql [2018/08/27 21:41]
werk_ag old revision restored (2018/05/20 22:33)
Line 1: Line 1:
-====== Using WeatherDuino Pro2 PLUS to upload data to a website database with SQL ======+====== Using WeatherDuino Pro2 PLUS to upload ​AQM data to a website database with SQL ======
 //By [[http://​palmyweather.co.nz|PalmyWeather]]//​ //By [[http://​palmyweather.co.nz|PalmyWeather]]//​
  
  
-==== Using WeatherDuino Pro2 PLUS to upload data to a website database with SQL ====+==== Using WeatherDuino Pro2 PLUS to upload ​AQM data to a website database with SQL ====
  
 **(Available in Receiver Software Release v6.x onwards)** **(Available in Receiver Software Release v6.x onwards)**
Line 65: Line 65:
   * Open “AirQuality_LogToSQL.php” for configuring this file.   * Open “AirQuality_LogToSQL.php” for configuring this file.
     * Locate and update the “include” line in this file. This is used to point the path to read the credentials set in the “db_rw_details.php”. It is best if these two file are not located in the same folder for security reasons.\\ An example of this is: include ('/​home/​weather/​data/​scripts/​db_rw_details.php'​);​     * Locate and update the “include” line in this file. This is used to point the path to read the credentials set in the “db_rw_details.php”. It is best if these two file are not located in the same folder for security reasons.\\ An example of this is: include ('/​home/​weather/​data/​scripts/​db_rw_details.php'​);​
-    * Locate the timezone setting and update this to your location. The following website can help choose the best timezone name to use for your area: http://​php.net/​manual/​en/​timezones.php .\\  Example of this is: date_default_timezone_set('​Europe/​Lisbon'​);​+    * Locate the timezone setting and update this to your location. The following website can help choose the best timezone name to use for your area: http://​php.net/​manual/​en/​timezones.php .\\  Example of this is:​date_default_timezone_set('​Europe/​Lisbon'​);​
     * Choose the path of where the text log should be stored. This is a one line text file which get updated each time the data is uploaded to the website. For example:​$logfile = '​./​logs/​AirQuality_Log.txt';​     * Choose the path of where the text log should be stored. This is a one line text file which get updated each time the data is uploaded to the website. For example:​$logfile = '​./​logs/​AirQuality_Log.txt';​
  
Print/export
QR Code
QR Code using_weatherduino_pro2_upload_data_website_database_sql (generated for current page)