Hallo, ich habe mir mit diesem Artikel eine netten Temp/Feuchte Anzeige gebaut. Es läuft ein Web Server auf dem Raspi, der die Daten aus CSV sichtbar macht. Zum Projekt geht hier lang:
[url=http://www.home-automation-community.com/temperature-and-humidity-from-am2302-dht22-sensor-displayed-as-chart/[/url]
Leider sehen ich auf meinem Hauprechner W7/64 nur den Text der Seite , Daten und Grafiken sind nicht sichtbar, egal mit welchem Browser ich es teste. Auf den anderen Rechnern gehts. Jave deinstalliert und neu installiert bring auch keine Hilfe.
Zum WebServer steht dort:
Visualizing Sensor Values in an Interactive Chart
To display the sensor values in a chart, a HTML page with NVD3 charts for d3.js is used together with a node.js JavaScript file that contains a node.js Express web server. The web server contains two web service methods and it delivers static content from the public subfolder. The newest express version 4 is used.
If you do not already have node.js installed, then you can install it with
mkdir -p /home/pi/sources
cd /home/pi/sources
wget http://node-arm.herokuapp.com/node_latest_armhf.deb
sudo dpkg -i node_latest_armhf.deb
To download the HTML page to the public subfolder type
mkdir -p /home/pi/projects/temp-and-humidity/public
cd /home/pi/projects/temp-and-humidity/public
wget http://www.home-automation-community.com/downloads/temp…dity/index.html
To download the node.js script type
cd /home/pi/projects/temp-and-humidity
wget http://www.home-automation-community.com/downloads/temp…oap-services.js
The node.js script needs the following dependencies
npm install express
npm install body-parser
npm install csv-parse
npm install glob
To start the node.js webserver type
node nodejs-webserver-with-soap-services.js
The Chart can now be opened at http://raspberrypi:9999/index.html or http://[ip-of-your-RaspberryPi]:9999/index.html
Note that you can hide lines in the chart by clicking on the legend. So even displaying values from 20 sensors in one diagram could make sense because you can hide the lines which you do not want to analyze.