[weewx-user] Re: Noob question... where to find the actual data (temp) within weewx?
I see that you mention "images" in your question, and it looks like you have perhaps already got the answer you needed, but I wanted to reply to this thread in case others are brought here later, with a response to the question I *thought* you were asking (but I may have been wrong!). I recently wrote a bash shell script (to be invoked by 'cron') that emails me the previous day's rain total. To do so I invoke a SQL script to get the data from the database, which is what I thought you were looking to do. *#!/bin/bash* *# email me summary of yesterday's local weather* *# robcranf...@xxx.com* *SQL_RESULT=`echo "SELECT DATETIME(MAX(dateTime), 'unixepoch', 'localtime') \* * AS Date, sum AS RainTotal FROM archive_day_rain WHERE dateTime < (SELECT MAX(dateTime) \* * FROM archive_day_rain);" | sqlite3 /var/lib/weewx/weewx.sdb`* *SUBJECT=`echo $SQL_RESULT | awk 'BEGIN { FS="[| ]"} {print "Rain for", $1}'`* *MESSAGE=`echo $SQL_RESULT | awk 'BEGIN { FS="[| ]"} {print "The total rain on", $1, "was", $3, "inches.\n"}'`* *echo $MESSAGE |* * mutt -s "$SUBJECT" -e 'my_hdr From:WeexReporter@x10pi' -- robcranf...@xxx.com* HTH. /rob On Saturday, October 29, 2016 at 1:50:59 PM UTC-7, Jim W. wrote: > > I have very little Linux (or other programming) experience... Decades ago > I did a little Visual Basic programming but that is a dim memory. I have > managed (with the generous help of this forum) to setup and run weewx on a > Rpi3b. WS2080 WU and Motion sending images to WU. > > My next project is to add overlays of temperature and wind speed and > direction to the images I'm sending to WU. Most of it I have figured out > but what I don't know is where to find the actual data (temp) within weewx? > > Thanks! > -- You received this message because you are subscribed to the Google Groups "weewx-user" group. To unsubscribe from this group and stop receiving emails from it, send an email to weewx-user+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[weewx-user] Re: Noob question... where to find the actual data (temp) within weewx?
1) If you have another program wanting the temperature you can read it from the archive table in the database or 2) Create a template called temp.txt.tmpl containing $current.outTemp - and have cheetah create a file called temp.txt every archive interval which you can then read into your other program. or 3) Create a service, bound to loop records, to extract the outTemp from the loop record and create a text file every loop record On Sunday, 30 October 2016 23:29:29 UTC+2, Jim W. wrote: > Ok... Maybe if I ask the question in a more clear form... Can someone > explain how I can pass the current outdoor temp to a variable so I can us > it in another program? > > > > > On Saturday, October 29, 2016 at 4:50:59 PM UTC-4, Jim W. wrote: >> >> I have very little Linux (or other programming) experience... Decades >> ago I did a little Visual Basic programming but that is a dim memory. I >> have managed (with the generous help of this forum) to setup and run weewx >> on a Rpi3b. WS2080 WU and Motion sending images to WU. >> >> My next project is to add overlays of temperature and wind speed and >> direction to the images I'm sending to WU. Most of it I have figured out >> but what I don't know is where to find the actual data (temp) within weewx? >> >> Thanks! >> > -- You received this message because you are subscribed to the Google Groups "weewx-user" group. To unsubscribe from this group and stop receiving emails from it, send an email to weewx-user+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[weewx-user] Re: Noob question... where to find the actual data (temp) within weewx?
Ok... Maybe if I ask the question in a more clear form... Can someone explain how I can pass the current outdoor temp to a variable so I can us it in another program? On Saturday, October 29, 2016 at 4:50:59 PM UTC-4, Jim W. wrote: > > I have very little Linux (or other programming) experience... Decades ago > I did a little Visual Basic programming but that is a dim memory. I have > managed (with the generous help of this forum) to setup and run weewx on a > Rpi3b. WS2080 WU and Motion sending images to WU. > > My next project is to add overlays of temperature and wind speed and > direction to the images I'm sending to WU. Most of it I have figured out > but what I don't know is where to find the actual data (temp) within weewx? > > Thanks! > -- You received this message because you are subscribed to the Google Groups "weewx-user" group. To unsubscribe from this group and stop receiving emails from it, send an email to weewx-user+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.