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.

Reply via email to