console.log('Daylight prognosis SolarProgMonthUntilToday in January is: '+SolarProgMonthUntilToday);//Just logging for control purposes
console.log('Daylight prognosis SolarProgYearUntilToday in January is: '+SolarProgYearUntilToday);//Just logging for control purposes
console.log(SolarProgJanuary, SolarProgFebruary, SolarProgMarch, SolarProgApril, SolarProgMay, SolarProgJune, SolarProgJuly, SolarProgAugust, SolarProgSeptember, SolarProgOctober, SolarProgNovember, SolarProgDecember);//Just logging for control purposes
break;}}
case 2:{SolarProgThisMonth = SolarProgFebruary
if (SolarDayPrognosis === false){//Determine wich prognosis should be used
var SolarProgMonthUntilToday = (SolarProgThisMonth/(GetDaysInMonth(2, Year))*Day);
var SolarProgYearUntilToday = ((SolarProgJanuary) + (SolarProgThisMonth/(GetDaysInMonth(2, Year))*Day));
console.log('Standard prognosis SolarProgMonthUntilToday in February is: '+SolarProgMonthUntilToday);//Just logging for control purposes
console.log('Standard prognosis SolarProgYearUntilToday in February is: '+SolarProgYearUntilToday);//Just logging for control purposes
console.log(SolarProgJanuary, SolarProgFebruary, SolarProgMarch, SolarProgApril, SolarProgMay, SolarProgJune, SolarProgJuly, SolarProgAugust, SolarProgSeptember, SolarProgOctober, SolarProgNovember, SolarProgDecember);//Just logging for control purposes
break;}
if (SolarDayPrognosis === true){//Determine wich prognosis should be used
var SolarProgMonthUntilToday = ((SolarProgThisMonth/SolarDayLightMonth)*SolarDayLightUntilToday);
var SolarProgYearUntilToday = ((SolarProgJanuary) + (SolarProgThisMonth/SolarDayLightMonth)*SolarDayLightUntilToday);
console.log('Daylight prognosis SolarProgMonthUntilToday in February is: '+SolarProgMonthUntilToday);//Just logging for control purposes
console.log('Daylight prognosis SolarProgYearUntilToday in February is: '+SolarProgYearUntilToday);//Just logging for control purposes
console.log(SolarProgJanuary, SolarProgFebruary, SolarProgMarch, SolarProgApril, SolarProgMay, SolarProgJune, SolarProgJuly, SolarProgAugust, SolarProgSeptember, SolarProgOctober, SolarProgNovember, SolarProgDecember);//Just logging for control purposes
break;}}
case 3:{SolarProgThisMonth = SolarProgMarch
if (SolarDayPrognosis === false){//Determine wich prognosis should be used
var SolarProgMonthUntilToday = (SolarProgThisMonth/(GetDaysInMonth(3, Year))*Day);
var SolarProgYearUntilToday = ((SolarProgJanuary + SolarProgFebruary) + (SolarProgThisMonth/(GetDaysInMonth(3, Year))*Day));
console.log('Standard prognosis SolarProgMonthUntilToday in March is: '+SolarProgMonthUntilToday);//Just logging for control purposes
console.log('Standard prognosis SolarProgYearUntilToday in March is: '+SolarProgYearUntilToday);//Just logging for control purposes
console.log(SolarProgJanuary, SolarProgFebruary, SolarProgMarch, SolarProgApril, SolarProgMay, SolarProgJune, SolarProgJuly, SolarProgAugust, SolarProgSeptember, SolarProgOctober, SolarProgNovember, SolarProgDecember);//Just logging for control purposes
break;}
if (SolarDayPrognosis === true){//Determine wich prognosis should be used
var SolarProgMonthUntilToday = ((SolarProgThisMonth/SolarDayLightMonth)*SolarDayLightUntilToday);
var SolarProgYearUntilToday = ((SolarProgJanuary + SolarProgFebruary) + (SolarProgThisMonth/SolarDayLightMonth)*SolarDayLightUntilToday);
console.log('Daylight prognosis SolarProgMonthUntilToday in March is: '+SolarProgMonthUntilToday);//Just logging for control purposes
console.log('Daylight prognosis SolarProgYearUntilToday in March is: '+SolarProgYearUntilToday);//Just logging for control purposes
console.log(SolarProgJanuary, SolarProgFebruary, SolarProgMarch, SolarProgApril, SolarProgMay, SolarProgJune, SolarProgJuly, SolarProgAugust, SolarProgSeptember, SolarProgOctober, SolarProgNovember, SolarProgDecember);//Just logging for control purposes
break;}}
case 4:{SolarProgThisMonth = SolarProgApril
if (SolarDayPrognosis === false){//Determine wich prognosis should be used
var SolarProgMonthUntilToday = (SolarProgThisMonth/(GetDaysInMonth(4, Year))*Day)
var SolarProgYearUntilToday = ((SolarProgJanuary + SolarProgFebruary + SolarProgMarch) + (SolarProgThisMonth/(GetDaysInMonth(4, Year))*Day))
console.log('Standard prognosis SolarProgMonthUntilToday in April is: '+SolarProgMonthUntilToday);//Just logging for control purposes
console.log('Standard prognosis SolarProgYearUntilToday in April is: '+SolarProgYearUntilToday);//Just logging for control purposes
console.log(SolarProgJanuary, SolarProgFebruary, SolarProgMarch, SolarProgApril, SolarProgMay, SolarProgJune, SolarProgJuly, SolarProgAugust, SolarProgSeptember, SolarProgOctober, SolarProgNovember, SolarProgDecember);//Just logging for control purposes
break;}
if (SolarDayPrognosis === true){//Determine wich prognosis should be used
var SolarProgMonthUntilToday = ((SolarProgThisMonth/SolarDayLightMonth)*SolarDayLightUntilToday);
var SolarProgYearUntilToday = ((SolarProgJanuary + SolarProgFebruary + SolarProgMarch) + (SolarProgThisMonth/SolarDayLightMonth)*SolarDayLightUntilToday);
console.log('Daylight prognosis SolarProgMonthUntilToday in April is: '+SolarProgMonthUntilToday);//Just logging for control purposes
console.log('Daylight prognosis SolarProgYearUntilToday in April is: '+SolarProgYearUntilToday);//Just logging for control purposes
console.log(SolarProgJanuary, SolarProgFebruary, SolarProgMarch, SolarProgApril, SolarProgMay, SolarProgJune, SolarProgJuly, SolarProgAugust, SolarProgSeptember, SolarProgOctober, SolarProgNovember, SolarProgDecember);//Just logging for control purposes
break;}}
case 5:{SolarProgThisMonth = SolarProgMay
if (SolarDayPrognosis === false){//Determine wich prognosis should be used
var SolarProgMonthUntilToday = (SolarProgThisMonth/(GetDaysInMonth(5, Year))*Day)
var SolarProgYearUntilToday = ((SolarProgJanuary + SolarProgFebruary + SolarProgMarch + SolarProgApril) + (SolarProgThisMonth/(GetDaysInMonth(5, Year))*Day));
console.log('Standard prognosis SolarProgMonthUntilToday in May is: '+SolarProgMonthUntilToday);//Just logging for control purposes
console.log('Standard prognosis SolarProgYearUntilToday in May is: '+SolarProgYearUntilToday);//Just logging for control purposes
console.log(SolarProgJanuary, SolarProgFebruary, SolarProgMarch, SolarProgApril, SolarProgMay, SolarProgJune, SolarProgJuly, SolarProgAugust, SolarProgSeptember, SolarProgOctober, SolarProgNovember, SolarProgDecember);//Just logging for control purposes
break;}
if (SolarDayPrognosis === true){//Determine wich prognosis should be used
var SolarProgMonthUntilToday = ((SolarProgThisMonth/SolarDayLightMonth)*SolarDayLightUntilToday);
var SolarProgYearUntilToday = ((SolarProgJanuary + SolarProgFebruary + SolarProgMarch + SolarProgApril) + (SolarProgThisMonth/SolarDayLightMonth)*SolarDayLightUntilToday);
console.log('Daylight prognosis SolarProgMonthUntilToday in May is: '+SolarProgMonthUntilToday);//Just logging for control purposes
console.log('Daylight prognosis SolarProgYearUntilToday in May is: '+SolarProgYearUntilToday);//Just logging for control purposes
console.log(SolarProgJanuary, SolarProgFebruary, SolarProgMarch, SolarProgApril, SolarProgMay, SolarProgJune, SolarProgJuly, SolarProgAugust, SolarProgSeptember, SolarProgOctober, SolarProgNovember, SolarProgDecember);//Just logging for control purposes
break;}}
case 6:{SolarProgThisMonth = SolarProgJune
if (SolarDayPrognosis === false){//Determine wich prognosis should be used
var SolarProgMonthUntilToday = (SolarProgThisMonth/(GetDaysInMonth(6, Year))*Day)
var SolarProgYearUntilToday = ((SolarProgJanuary + SolarProgFebruary + SolarProgMarch + SolarProgApril + SolarProgMay) + (SolarProgThisMonth/(GetDaysInMonth(6, Year))*Day));
console.log('Standard prognosis SolarProgMonthUntilToday in June is: '+SolarProgMonthUntilToday);//Just logging for control purposes
console.log('Standard prognosis SolarProgYearUntilToday in June is: '+SolarProgYearUntilToday);//Just logging for control purposes
console.log(SolarProgJanuary, SolarProgFebruary, SolarProgMarch, SolarProgApril, SolarProgMay, SolarProgJune, SolarProgJuly, SolarProgAugust, SolarProgSeptember, SolarProgOctober, SolarProgNovember, SolarProgDecember);//Just logging for control purposes
break;}
if (SolarDayPrognosis === true){//Determine wich prognosis should be used
var SolarProgMonthUntilToday = ((SolarProgThisMonth/SolarDayLightMonth)*SolarDayLightUntilToday);
var SolarProgYearUntilToday = ((SolarProgJanuary + SolarProgFebruary + SolarProgMarch + SolarProgApril + SolarProgMay) + (SolarProgThisMonth/SolarDayLightMonth)*SolarDayLightUntilToday);
console.log('Daylight prognosis SolarProgMonthUntilToday in May is: '+SolarProgMonthUntilToday);//Just logging for control purposes
console.log('Daylight prognosis SolarProgYearUntilToday in May is: '+SolarProgYearUntilToday);//Just logging for control purposes
console.log(SolarProgJanuary, SolarProgFebruary, SolarProgMarch, SolarProgApril, SolarProgMay, SolarProgJune, SolarProgJuly, SolarProgAugust, SolarProgSeptember, SolarProgOctober, SolarProgNovember, SolarProgDecember);//Just logging for control purposes
break;}}
case 7:{SolarProgThisMonth = SolarProgJuly
if (SolarDayPrognosis === false){//Determine wich prognosis should be used
var SolarProgMonthUntilToday = (SolarProgThisMonth/(GetDaysInMonth(7, Year))*Day)
var SolarProgYearUntilToday = ((SolarProgJanuary + SolarProgFebruary + SolarProgMarch + SolarProgApril + SolarProgMay + SolarProgJune) + (SolarProgThisMonth/(GetDaysInMonth(7, Year))*Day));
console.log('Standard prognosis SolarProgMonthUntilToday in July is: '+SolarProgMonthUntilToday);//Just logging for control purposes
console.log('Standard prognosis SolarProgYearUntilToday in July is: '+SolarProgYearUntilToday);//Just logging for control purposes
console.log(SolarProgJanuary, SolarProgFebruary, SolarProgMarch, SolarProgApril, SolarProgMay, SolarProgJune, SolarProgJuly, SolarProgAugust, SolarProgSeptember, SolarProgOctober, SolarProgNovember, SolarProgDecember);//Just logging for control purposes
break;}
if (SolarDayPrognosis === true){//Determine wich prognosis should be used
var SolarProgMonthUntilToday = ((SolarProgThisMonth/SolarDayLightMonth)*SolarDayLightUntilToday);
var SolarProgYearUntilToday = ((SolarProgJanuary + SolarProgFebruary + SolarProgMarch + SolarProgApril + SolarProgMay + SolarProgJune) + (SolarProgThisMonth/SolarDayLightMonth)*SolarDayLightUntilToday);
console.log('Daylight prognosis SolarProgMonthUntilToday in July is: '+SolarProgMonthUntilToday);//Just logging for control purposes
console.log('Daylight prognosis SolarProgYearUntilToday in July is: '+SolarProgYearUntilToday);//Just logging for control purposes
console.log(SolarProgJanuary, SolarProgFebruary, SolarProgMarch, SolarProgApril, SolarProgMay, SolarProgJune, SolarProgJuly, SolarProgAugust, SolarProgSeptember, SolarProgOctober, SolarProgNovember, SolarProgDecember);//Just logging for control purposes
break;}}
case 8:{SolarProgThisMonth = SolarProgAugust
if (SolarDayPrognosis === false){//Determine wich prognosis should be used
var SolarProgMonthUntilToday = (SolarProgThisMonth/(GetDaysInMonth(8, Year))*Day);
var SolarProgYearUntilToday = ((SolarProgJanuary + SolarProgFebruary + SolarProgMarch + SolarProgApril + SolarProgMay + SolarProgJune + SolarProgJuly) + (SolarProgThisMonth/(GetDaysInMonth(8, Year))*Day));
console.log('Standard prognosis SolarProgMonthUntilToday in August is: '+SolarProgMonthUntilToday);//Just logging for control purposes
console.log('Standard prognosis SolarProgYearUntilToday in August is: '+SolarProgYearUntilToday);//Just logging for control purposes
console.log(SolarProgJanuary, SolarProgFebruary, SolarProgMarch, SolarProgApril, SolarProgMay, SolarProgJune, SolarProgJuly, SolarProgAugust, SolarProgSeptember, SolarProgOctober, SolarProgNovember, SolarProgDecember);//Just logging for control purposes
break;}
if (SolarDayPrognosis === true){//Determine wich prognosis should be used
var SolarProgMonthUntilToday = ((SolarProgThisMonth/SolarDayLightMonth)*SolarDayLightUntilToday);
var SolarProgYearUntilToday = ((SolarProgJanuary + SolarProgFebruary + SolarProgMarch + SolarProgApril + SolarProgMay + SolarProgJune + SolarProgJuly) + (SolarProgThisMonth/SolarDayLightMonth)*SolarDayLightUntilToday);
console.log('Daylight prognosis SolarProgMonthUntilToday in August is: '+SolarProgMonthUntilToday);//Just logging for control purposes
console.log('Daylight prognosis SolarProgYearUntilToday in August is: '+SolarProgYearUntilToday);//Just logging for control purposes
console.log(SolarProgJanuary, SolarProgFebruary, SolarProgMarch, SolarProgApril, SolarProgMay, SolarProgJune, SolarProgJuly, SolarProgAugust, SolarProgSeptember, SolarProgOctober, SolarProgNovember, SolarProgDecember);//Just logging for control purposes
break;}}
case 9: {SolarProgThisMonth = SolarProgSeptember
if (SolarDayPrognosis === false){//Determine wich prognosis should be used
var SolarProgMonthUntilToday = (SolarProgThisMonth/(GetDaysInMonth(9, Year))*Day);
var SolarProgYearUntilToday = ((SolarProgJanuary + SolarProgFebruary + SolarProgMarch + SolarProgApril + SolarProgMay + SolarProgJune + SolarProgJuly + SolarProgAugust) + (SolarProgThisMonth/(GetDaysInMonth(9, Year))*Day));
console.log('Standard prognosis SolarProgMonthUntilToday in September is: '+SolarProgMonthUntilToday);//Just logging for control purposes
console.log('Standard prognosis SolarProgYearUntilToday in September is: '+SolarProgYearUntilToday);//Just logging for control purposes
console.log(SolarProgJanuary, SolarProgFebruary, SolarProgMarch, SolarProgApril, SolarProgMay, SolarProgJune, SolarProgJuly, SolarProgAugust, SolarProgSeptember, SolarProgOctober, SolarProgNovember, SolarProgDecember);//Just logging for control purposes
break;}
if (SolarDayPrognosis === true){//Determine wich prognosis should be used
var SolarProgMonthUntilToday = ((SolarProgThisMonth/SolarDayLightMonth)*SolarDayLightUntilToday);
var SolarProgYearUntilToday = ((SolarProgJanuary + SolarProgFebruary + SolarProgMarch + SolarProgApril + SolarProgMay + SolarProgJune + SolarProgJuly + SolarProgAugust) + (SolarProgThisMonth/SolarDayLightMonth)*SolarDayLightUntilToday);
console.log('Daylight prognosis SolarProgMonthUntilToday in September is: '+SolarProgMonthUntilToday);//Just logging for control purposes
console.log('Daylight prognosis SolarProgYearUntilToday in September is: '+SolarProgYearUntilToday);//Just logging for control purposes
console.log(SolarProgJanuary, SolarProgFebruary, SolarProgMarch, SolarProgApril, SolarProgMay, SolarProgJune, SolarProgJuly, SolarProgAugust, SolarProgSeptember, SolarProgOctober, SolarProgNovember, SolarProgDecember);//Just logging for control purposes
break;}}
case 10:{SolarProgThisMonth = SolarProgOctober
if (SolarDayPrognosis === false){//Determine wich prognosis should be used
var SolarProgMonthUntilToday = (SolarProgThisMonth/(GetDaysInMonth(10, Year))*Day);
var SolarProgYearUntilToday = ((SolarProgJanuary + SolarProgFebruary + SolarProgMarch + SolarProgApril + SolarProgMay + SolarProgJune + SolarProgJuly + SolarProgAugust + SolarProgSeptember) + (SolarProgThisMonth/(GetDaysInMonth(10, Year))*Day));
console.log('Standard prognosis SolarProgMonthUntilToday in October is: '+SolarProgMonthUntilToday);//Just logging for control purposes
console.log('Standard prognosis SolarProgYearUntilToday in October is: '+SolarProgYearUntilToday);//Just logging for control purposes
console.log(SolarProgJanuary, SolarProgFebruary, SolarProgMarch, SolarProgApril, SolarProgMay, SolarProgJune, SolarProgJuly, SolarProgAugust, SolarProgSeptember, SolarProgOctober, SolarProgNovember, SolarProgDecember);//Just logging for control purposes
break;}
if (SolarDayPrognosis === true){//Determine wich prognosis should be used
var SolarProgMonthUntilToday = ((SolarProgThisMonth/SolarDayLightMonth)*SolarDayLightUntilToday);
var SolarProgYearUntilToday = ((SolarProgJanuary + SolarProgFebruary + SolarProgMarch + SolarProgApril + SolarProgMay + SolarProgJune + SolarProgJuly + SolarProgAugust + SolarProgSeptember) + (SolarProgThisMonth/SolarDayLightMonth)*SolarDayLightUntilToday);
console.log('Daylight prognosis SolarProgMonthUntilToday in October is: '+SolarProgMonthUntilToday);//Just logging for control purposes
console.log('Daylight prognosis SolarProgYearUntilToday in October is: '+SolarProgYearUntilToday);//Just logging for control purposes
console.log(SolarProgJanuary, SolarProgFebruary, SolarProgMarch, SolarProgApril, SolarProgMay, SolarProgJune, SolarProgJuly, SolarProgAugust, SolarProgSeptember, SolarProgOctober, SolarProgNovember, SolarProgDecember);//Just logging for control purposes
break;}}
case 11:{SolarProgThisMonth = SolarProgNovember
if (SolarDayPrognosis === false){//Determine wich prognosis should be used
var SolarProgMonthUntilToday = (SolarProgThisMonth/(GetDaysInMonth(11, Year))*Day);
var SolarProgYearUntilToday = ((SolarProgJanuary + SolarProgFebruary + SolarProgMarch + SolarProgApril + SolarProgMay + SolarProgJune + SolarProgJuly + SolarProgAugust + SolarProgSeptember + SolarProgOctober) + (SolarProgThisMonth/(GetDaysInMonth(11, Year))*Day));
console.log('Standard prognosis SolarProgMonthUntilToday in November is: '+SolarProgMonthUntilToday);//Just logging for control purposes
console.log('Standard prognosis SolarProgYearUntilToday in November is: '+SolarProgYearUntilToday);//Just logging for control purposes
console.log(SolarProgJanuary, SolarProgFebruary, SolarProgMarch, SolarProgApril, SolarProgMay, SolarProgJune, SolarProgJuly, SolarProgAugust, SolarProgSeptember, SolarProgOctober, SolarProgNovember, SolarProgDecember);//Just logging for control purposes
break;}
if (SolarDayPrognosis === true){//Determine wich prognosis should be used
var SolarProgMonthUntilToday = ((SolarProgThisMonth/SolarDayLightMonth)*SolarDayLightUntilToday);
var SolarProgYearUntilToday = ((SolarProgJanuary + SolarProgFebruary + SolarProgMarch + SolarProgApril + SolarProgMay + SolarProgJune + SolarProgJuly + SolarProgAugust + SolarProgSeptember + SolarProgOctober) + (SolarProgThisMonth/SolarDayLightMonth)*SolarDayLightUntilToday);
console.log('Daylight prognosis SolarProgMonthUntilToday in November is: '+SolarProgMonthUntilToday);//Just logging for control purposes
console.log('Daylight prognosis SolarProgYearUntilToday in November is: '+SolarProgYearUntilToday);//Just logging for control purposes
console.log(SolarProgJanuary, SolarProgFebruary, SolarProgMarch, SolarProgApril, SolarProgMay, SolarProgJune, SolarProgJuly, SolarProgAugust, SolarProgSeptember, SolarProgOctober, SolarProgNovember, SolarProgDecember);//Just logging for control purposes
break;}}
case 12:{SolarProgThisMonth = SolarProgDecember
if (SolarDayPrognosis === false){//Determine wich prognosis should be used
var SolarProgMonthUntilToday = (SolarProgThisMonth/(GetDaysInMonth(12, Year))*Day);
var SolarProgYearUntilToday = ((SolarProgJanuary + SolarProgFebruary + SolarProgMarch + SolarProgApril + SolarProgMay + SolarProgJune + SolarProgJuly + SolarProgAugust + SolarProgSeptember + SolarProgOctober + SolarProgNovember) + (SolarProgThisMonth/(GetDaysInMonth(12, Year))*Day));
console.log('Standard prognosis SolarProgMonthUntilToday in December is: '+SolarProgMonthUntilToday);//Just logging for control purposes
console.log('Standard prognosis SolarProgYearUntilToday in December is: '+SolarProgYearUntilToday);//Just logging for control purposes
console.log(SolarProgJanuary, SolarProgFebruary, SolarProgMarch, SolarProgApril, SolarProgMay, SolarProgJune, SolarProgJuly, SolarProgAugust, SolarProgSeptember, SolarProgOctober, SolarProgNovember, SolarProgDecember);//Just logging for control purposes
break;}
if (SolarDayPrognosis === true){//Determine wich prognosis should be used
var SolarProgMonthUntilToday = ((SolarProgThisMonth/SolarDayLightMonth)*SolarDayLightUntilToday);
var SolarProgYearUntilToday = ((SolarProgJanuary + SolarProgFebruary + SolarProgMarch + SolarProgApril + SolarProgMay + SolarProgJune + SolarProgJuly + SolarProgAugust + SolarProgSeptember + SolarProgOctober + SolarProgNovember) + (SolarProgThisMonth/SolarDayLightMonth)*SolarDayLightUntilToday);
console.log('Daylight prognosis SolarProgMonthUntilToday in December is: '+SolarProgMonthUntilToday);//Just logging for control purposes
console.log('Daylight prognosis SolarProgYearUntilToday in December is: '+SolarProgYearUntilToday);//Just logging for control purposes
console.log(SolarProgJanuary, SolarProgFebruary, SolarProgMarch, SolarProgApril, SolarProgMay, SolarProgJune, SolarProgJuly, SolarProgAugust, SolarProgSeptember, SolarProgOctober, SolarProgNovember, SolarProgDecember);//Just logging for control purposes
break;}}}
var SolarDifferenceYear = (SolarYear - SolarProgYear).toFixed(2);//Calculating differences between the prognosis and realized production
console.log('Difference between the Year prognosis and production including todays production untill now: '+SolarDifferenceYear);//Just logging for control purposes