Giter Site home page Giter Site logo

templogger's People

Contributors

philur avatar

Watchers

 avatar  avatar

templogger's Issues

Update weather.ini file with live log settings

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')]

Create pywws.txt template file

Modifiy this .....

!

live

timezone local

roundtime True

idx "%H:%M %Z:"

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, "#

!pressure_trend "%s" "" "pressure_trend_text(x)"

Update weather.ini file with correct paths

[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/

Enable livelogging PYWWS automatically on boot

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.

Enable livelogging PYWWS automatically on boot

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.