- PHP/JS/HTML
- Foundation
- Chart.js
- MongoDb
- You can install OpenServer.
- Place the project in the folder "%ROOT_DIR%\OpenServer\domains"
- Run OpenServer with administrator rights.
- Set the used modules in OpenServer settings ("Settings"->"Modules"): - PHP 5.* - MongoDB 2.* or 3.* - Apache + Nginx
- Start the server: "Start"
- Open the address in the browser: "weather_station/"
- Open developer console: Ctrl + Shift + I
- Go to the Console tab.
- Insert and execute the following script, which will populate the database with test data:
javascript // [The provided JavaScript code]
- Go to the "Settings" tab (gear icon) in the web interface and set the limiting parameters.
- Done. You can view statistics for all sensors and for each one separately (with charts).
- Open the file "php/functions/insertData.php"
- Find the line
'date' => new MongoDate(strtotime(strftime(strftime("%Y-%m-%d %H:%M:%S", time() + 5 * 60 * 60))))
- Change "+ 5" to other values.
- Save.
- Execute the script in the browser console as mentioned above.