#!/usr/sbin/blassic '/var/www/cgi-bin/solar_web_plot/choose_the_plot.bas 'DATE$ is mm-dd-yyyy mydate$ = DATE$ month$ = LEFT$(mydate$, 2): day$ = MID$(mydate$, 4, 2): year$ = RIGHT$(mydate$, 4) PlotPathBasic$ = "http://192.168.0.52:8052/solar_webpage_builder/" string1$ = PROGRAMARG$(1) IF string1$ = "today" THEN GOTO PrintTodayPlot IF string1$ = "yesterday" THEN GOTO PrintYesterdayPlot ' string1$ must be a date number so send an archived page PlotPath$ = PlotPathBasic$ + string1$ + "_solar_plot.html" PRINT"hop" PRINT"" SYSTEM ' string1 is today LABEL PrintTodayPlot PlotPath$ = PlotPathBasic$ + year$ + month$ + day$ + "_solar_plot.html" PRINT"hop" PRINT"" SYSTEM 'string1 is yesterday LABEL PrintYesterdayPlot yesterday$ = STR$(((VAL(day$)) - 1)) PlotPath$ = PlotPathBasic$ + year$ + month$ + yesterday$ + "_solar_plot.html" PRINT"hop" PRINT"" SYSTEM