philur / templogger Goto Github PK
View Code? Open in Web Editor NEWLicense: GNU General Public License v2.0
License: GNU General Public License v2.0
pywws-livelog-daemon -v ~/weather/data ~/weather/data/pywws.log start
http://tomsblog.gschwinds.net/2014/06/installation-of-pywws-on-a-rapsberry-pi/
Copy the yowindow.xml example template to your text template directory.
Add the yowindow template to the [live] tasks in weather.ini.
[live]
text = [('yowindow.xml', 'L')]
or
text = [('pywws.txt', 'L')]
Modifiy this .....
Temperature Out: #temp_out "%.1f C"#
Temperature In: #temp_in "%.1f C"#
Wind Direction: #wind_dir "%s, " "" "winddir_text(x)"#
Wind Average: #wind_ave "%.0f mph (ave), " "" "wind_mph(x)"#
Wind Gust #wind_gust "%.0f mph (gust)" "" "wind_mph(x)"#
Humidity Out: #hum_out "%d%%"#
Humidity In: #hum_in "%d%%"#
Rain (hourly) #rain "%.1f mm"#
Pressure: #rel_pressure "%.0f hPa, "#
http://sourceforge.net/projects/mjpg-streamer/
Location of data file should be '/home/pi/Weather/WS/Results/LastReadingPYWWS.txt'
[paths]
work = /tmp/weather
templates = /home/pi/Weather/WS/templates_pywws/
graph_templates = /home/pi/Weather/WS/graph_templates_pywws/
local_files = /home/pi/Weather/WS/results/
is currently readCfgFile
Automatically Run On Boot
In order to avoid having to start the script manually you can configure it to launch when the Pi boots up. You can do this by editing the rc.local file :
"sudo nano /etc/init.d/rc.local"
then adding the following line at the bottom of the file :
"sudo python /home/pi/templogger.py > /home/pi/templogger.log 2>&1"
On startup the line runs the Python script and directs text output to a log file. This is a useful file to read if you are fault finding. The values in the log are comma separated so it could be loaded into a spreadsheet application if you wanted to analyse the data.
sudo nano /etc/init.d/rc.local
then adding the following line at the bottom of the file :
sudo python /home/pi/templogger.py > /home/pi/templogger.log 2>&1
Make sure to use correct path and filename
This will make so that the pywws.txt file is only updated when new data is received.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.