# Read pannrum if sheeva down
#0     * * * * josefk ssh n_rpi "/home/josefk/bin/check_sheeva"
#30    * * * * josefk ssh n_rpi "/home/josefk/bin/check_sheeva"
#5 10  * * * * josefk ssh n_rpi "tdtool --on 5"
#5 18  * * * * josefk ssh n_rpi "tdtool --off 5"


# Nättsjö outdoor
*/10 * * * * http-user /home/josefk/bin/temp/tempplot.pl "nattsjo_outdoor1" "/home/http-user/temp-root/nattsjo/plots"
*/10 * * * * http-user /home/josefk/bin/temp/tempplot.pl "nattsjo_outdoor1" "/home/http-user/temp-root/nattsjo/plots_f" 0 "Europe/Berlin" f

# SF Bayview
2 * * * * http-user /home/josefk/bin/temp/tempplot.pl "sf_bayview_indoor1" "/home/http-user/temp-root/sf_bayview_indoor1/plots" "now()" "America/Los_Angeles"
32 * * * * http-user /home/josefk/bin/temp/tempplot.pl "sf_bayview_indoor1" "/home/http-user/temp-root/sf_bayview_indoor1/plots" "now()" "America/Los_Angeles"
2 * * * * http-user /home/josefk/bin/temp/tempplot.pl "sf_bayview_indoor1" "/home/http-user/temp-root/sf_bayview_indoor1/plots_f" "now()" "America/Los_Angeles" f
32 * * * * http-user /home/josefk/bin/temp/tempplot.pl "sf_bayview_indoor1" "/home/http-user/temp-root/sf_bayview_indoor1/plots_f" "now()" "America/Los_Angeles" f

*/10  * * * * http-user /home/josefk/bin/temp/tempplot.pl "sf_bayview_outdoor1" "/home/http-user/temp-root/sf_bayview/plots" "now()" "America/Los_Angeles"
*/10  * * * * http-user /home/josefk/bin/temp/tempplot.pl "sf_bayview_outdoor1" "/home/http-user/temp-root/sf_bayview/plots_f" "now()" "America/Los_Angeles" f



# Plot Nättsjö
# DATE(NOW() - INTERVAL 1 DAY) 
# `date -d yesterday  +"%Y-%m-%d"`

# Nättsjö indoor et al
1 * * * * http-user /home/josefk/bin/temp/tempplot.pl "nattsjo_indoor1" "/home/http-user/temp-root/nattsjo_indoor1/plots"
1 * * * * http-user /home/josefk/bin/temp/tempplot.pl "nattsjo_ack1" "/home/http-user/temp-root/nattsjo_ack1/plots"
1 * * * * http-user /home/josefk/bin/temp/tempplot.pl "nattsjo_solarin" "/home/http-user/temp-root/nattsjo_solarin/plots" 
1 * * * * http-user /home/josefk/bin/temp/tempplot.pl "nattsjo_solarout" "/home/http-user/temp-root/nattsjo_solarout/plots" 

1 * * * * http-user /home/josefk/bin/temp/tempplot.pl "nattsjo_indoor1" "/home/http-user/temp-root/nattsjo_indoor1/plots_f" 0 "Europe/Berlin" f
1 * * * * http-user /home/josefk/bin/temp/tempplot.pl "nattsjo_ack1" "/home/http-user/temp-root/nattsjo_ack1/plots_f" 0 "Europe/Berlin" f
1 * * * * http-user /home/josefk/bin/temp/tempplot.pl "nattsjo_solarin" "/home/http-user/temp-root/nattsjo_solarin/plots_f" 0 "Europe/Berlin" f
1 * * * * http-user /home/josefk/bin/temp/tempplot.pl "nattsjo_solarout" "/home/http-user/temp-root/nattsjo_solarout/plots_f" 0 "Europe/Berlin" f



# Yesterdays plot, get value for 24:00
5 0 * * * http-user /home/josefk/bin/temp/tempplot.pl "nattsjo_outdoor1" "/home/http-user/temp-root/nattsjo/plots" -1

5 0 * * * http-user /home/josefk/bin/temp/tempplot.pl "nattsjo_indoor1" "/home/http-user/temp-root/nattsjo_indoor1/plots" -1
5 0 * * * http-user /home/josefk/bin/temp/tempplot.pl "nattsjo_ack1" "/home/http-user/temp-root/nattsjo_ack1/plots" -1
5 0 * * * http-user /home/josefk/bin/temp/tempplot.pl "nattsjo_solarin" "/home/http-user/temp-root/nattsjo_solarin/plots" -1
5 0 * * * http-user /home/josefk/bin/temp/tempplot.pl "nattsjo_solarout" "/home/http-user/temp-root/nattsjo_solarout/plots" -1

5 9 * * * http-user /home/josefk/bin/temp/tempplot.pl "sf_bayview_indoor1" "/home/http-user/temp-root/sf_bayview_indoor1/plots" "-1" "America/Los_Angeles"
5 9 * * * http-user /home/josefk/bin/temp/tempplot.pl "sf_bayview_outdoor1" "/home/http-user/temp-root/sf_bayview/plots" "-1" "America/Los_Angeles"

5 0 * * * http-user /home/josefk/bin/temp/tempplot.pl "nattsjo_indoor1" "/home/http-user/temp-root/nattsjo_indoor1/plots_f" -1 "Europe/Berlin" f
5 0 * * * http-user /home/josefk/bin/temp/tempplot.pl "nattsjo_ack1" "/home/http-user/temp-root/nattsjo_ack1/plots_f" -1 "Europe/Berlin" f
5 0 * * * http-user /home/josefk/bin/temp/tempplot.pl "nattsjo_solarin" "/home/http-user/temp-root/nattsjo_solarin/plots_f" -1 "Europe/Berlin" f
5 0 * * * http-user /home/josefk/bin/temp/tempplot.pl "nattsjo_solarout" "/home/http-user/temp-root/nattsjo_solarout/plots_f" -1 "Europe/Berlin" f

5 9 * * * http-user /home/josefk/bin/temp/tempplot.pl "sf_bayview_indoor1" "/home/http-user/temp-root/sf_bayview_indoor1/plots_f" -1 "America/Los_Angeles"
5 9 * * * http-user /home/josefk/bin/temp/tempplot.pl "sf_bayview_outdoor1" "/home/http-user/temp-root/sf_bayview/plots_f" -1 "America/Los_Angeles"



# Make composite plot
2 * * * * http-user /home/josefk/bin/temp/plot_nattsjo_composite.pl
#3 * * * * http-user /home/josefk/bin/temp/tempplot_solar.sh


# Delete illegal DB entries