You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
msgbox( message + '\nClick OK or press Enter to continue.',g);
72
84
}
73
85
74
86
function highlight_inputs() {
75
87
76
-
generate_pagenotes();
77
-
78
88
highlight_color = 'yellow';
79
89
highlight_transparency = 70;
80
90
transp();
81
91
92
+
go = yesno( 'Highlight Inputs Instructions.\nIf you click Yes below, SAM will switch to each input page required to run the macro, highlight each minimum required input on the page, and show brief explanation of the input. It then runs and displays results based on the current inputs so you can see how the macro works.\n\nAfter the macro finishes, you can clear the Highlight Inputs check box and go back to those pages to enter the data for your project and rerun the macro.\n\nContinue?', [100,100,400,200]);
93
+
if (!go) {
94
+
outln('Exiting script');
95
+
exit;
96
+
}
97
+
82
98
ok = show_page('Location and Resource');
83
99
if (ok) {
84
-
highlight('in_location');
85
-
highlight('btn_download');
100
+
highlight('in_location', 'Type the project street address or city and state.');
101
+
highlight('btn_download', 'Click Download and Add to Library to download the weather file.');
86
102
}
87
103
else {
88
104
msgbox('Input page error!\nThis case does not have a Location and Resource page. The Solar for All Calculator macro is designed to work with the PVWatts/Residential configuration.');
89
105
}
90
106
ok = show_page('System Design');
91
107
if (ok) {
92
-
highlight('system_capacity');
93
-
highlight('tilt');
94
-
highlight('azimuth');
95
-
highlight('array_type');
108
+
highlight('system_capacity', 'Type the system size in DC kilowatts.');
109
+
highlight('tilt', 'Type the array tilt angle from horizontal (20 is a typical value).');
110
+
highlight('azimuth', 'Type the array azimuth angle in degrees east of north. (180 is south-facing).');
111
+
highlight('array_type', 'For a ground- or roof-mounted array that allows air to flow beneath the array, choose Fixed Open Rack.');
96
112
}
97
113
else {
98
114
msgbox('Input page error!\nThis case does not have a System Design page. The Solar for All Calculator macro is designed to work with the PVWatts/Residential configuration.');
99
115
}
100
116
ok = show_page('Electricity Rates');
101
117
if (ok) {
102
-
highlight('btnQueryOpenEI');
118
+
highlight('btnQueryOpenEI', 'Click Search for Rates to download electricity rate data for the project location. If data is not available, enter the rates for fixed, energy, and demand charges data by hand.');
119
+
highlight('ur_metering_option', 'Choose the correct option for compensation of excess generation. See Help for a detailed description of each option.');
120
+
highlight('ur_monthly_fixed_charge', 'Verify the fixed monthly charge value.');
121
+
// energy charge table requires special treatment
122
+
g = widgetpos('ur_ec_tou_mat');
123
+
g[2] = g[2]*0.66; // highlight width
124
+
g[3] = g[3]*0.33; // highlight height
125
+
transp(g, 'yellow', 70);
126
+
g[0] = g[0] + g[2]+5; // popup horizontal position (position to right of highlight)
127
+
g[1] = g[1] - g[3]*0.9; // popup vertical position (position above highlight to minimize risk of hiding popup)
128
+
g[2] = 400; // popup width
129
+
msgbox( 'Verify the rates for energy charges.\nIf your rate structure also includes demand charges, scroll to the bottom of the page and expand the Demand Charges panel to verify those values.' + '\n\nClick OK or press Enter to continue.',g);
103
130
}
104
131
else {
105
132
msgbox('Input page error!\nThis case does not have an Electricity Rates page. The Solar for All Calculator macro is designed to work with the PVWatts/Residential configuration.');
106
133
}
107
134
ok = show_page('Electric Load');
108
135
if (ok) {
109
-
highlight('load_user_data');
110
-
highlight('normalize_to_utility_bill');
111
-
highlight('utility_bill_data');
136
+
highlight('load_user_data', 'Click Edit Array to import hourly load data.');
137
+
highlight('normalize_to_utility_bill', 'Check Scale Electric Load Profile to Monthly Usage if you have monthly total consumption data.');
138
+
highlight('utility_bill_data', 'Click Edit Values to enter the total consumption in kWh for each month.');
112
139
}
113
140
else {
114
141
msgbox('Input page error!\nThis case does not have an Electricity Rates page. The Solar for All Calculator macro is designed to work with the PVWatts/Residential configuration.');
115
142
}
116
143
transp(); // clear highight
144
+
show_page('Macros');
117
145
}
118
146
119
147
function generate_pagenotes() {
148
+
120
149
ok = show_page('Location and Resource');
121
150
if (ok) {
122
151
pagenote('## Solar for All Macro Instructions ##\n\n' +
123
152
'Location and Resource Page\n\n' +
124
-
'1. Type the project street address or city and state in the box under Download Weather Files.\n' +
125
-
'2. Click Download and Add to Library.\n' +
126
-
'3. When the download finishes, review the data under Weather Data Information to verify the data.\n' +
153
+
'1. Type the project street address or city and state in the box under Download Weather Files.\n\n' +
154
+
'2. Click Download and Add to Library.\n\n' +
155
+
'3. When the download finishes, review the data under Weather Data Information to verify the data.\n\n' +
127
156
'4. Go to the System Design page.');
128
157
129
158
}
@@ -134,10 +163,10 @@ function generate_pagenotes() {
134
163
if (ok) {
135
164
pagenote('## Solar for All Macro Instructions ##\n\n' +
136
165
'System Design Page\n\n' +
137
-
'1. For System Nameplate Capacity, type the system size in DC kilowatts.\n' +
138
-
'2. For Tilt, type the photovoltaic array tilt angle in degrees from horizontal (20 degrees is a typical value).\n' +
139
-
'3. For Azimuth, type the photovoltaic array azimuth angle in degrees East of North (180 degrees, or facing south, is a typical value).\n' +
140
-
'4. If you are modeling a ground-mounted or roof-mounted array that allows air to flow beneath the array, for Array Type, choose Fixed Open Rack.\n' +
166
+
'1. For System Nameplate Capacity, type the system size in DC kilowatts.\n\n' +
167
+
'2. For Tilt, type the photovoltaic array tilt angle in degrees from horizontal (20 degrees is a typical value).\n\n' +
168
+
'3. For Azimuth, type the photovoltaic array azimuth angle in degrees East of North (180 degrees, or facing south, is a typical value).\n\n' +
169
+
'4. If you are modeling a ground-mounted or roof-mounted array that allows air to flow beneath the array, for Array Type, choose Fixed Open Rack.\n\n' +
141
170
'5. Go to the Electricity Rates page.');
142
171
}
143
172
else {
@@ -147,11 +176,11 @@ function generate_pagenotes() {
147
176
if (ok) {
148
177
pagenote('## Solar for All Macro Instructions ##\n\n' +
149
178
'Electricity Rates Page\n\n' +
150
-
'1. Click Search for Rates.\n' +
151
-
'2. Type the project zip code and click Search by Zip Code, or if you know the name of the electric service provider, type a few letters of the provider name to filter the list.\n' +
152
-
'3. Click the name of the electric service provider in the list, you should see a list of residential rates appear.\n' +
153
-
'4. Choose the appropriate rate from the list.\n' +
154
-
' If the service provider or rate is not available, you will need to enter rate data manually from the appropriate rate sheet.\n' +
179
+
'1. Click Search for Rates.\n\n' +
180
+
'2. Type the project zip code and click Search by Zip Code, or if you know the name of the electric service provider, type a few letters of the provider name to filter the list.\n\n' +
181
+
'3. Click the name of the electric service provider in the list, you should see a list of residential rates appear.\n\n' +
182
+
'4. Choose the appropriate rate from the list.\n\n' +
183
+
' If the service provider or rate is not available, you will need to enter rate data manually from the appropriate rate sheet.\n\n' +
155
184
'5. Go to the Electric Load page.');
156
185
}
157
186
else {
@@ -161,11 +190,11 @@ function generate_pagenotes() {
161
190
if (ok) {
162
191
pagenote('## Solar for All Macro Instructions ##\n\n' +
163
192
'Electricity Load Page\n\n' +
164
-
'1. Click Search for Rates.\n' +
165
-
'2. Type the project zip code and click Search by Zip Code, or if you know the name of the electric service provider, type a few letters of the provider name to filter the list.\n' +
166
-
'3. Click the name of the electric service provider in the list, you should see a list of residential rates appear.\n' +
167
-
'4. Choose the appropriate rate from the list.\n' +
168
-
' If the service provider or rate is not available, you will need to enter rate data manually from the appropriate rate sheet.\n' +
193
+
'1. Click Search for Rates.\n\n' +
194
+
'2. Type the project zip code and click Search by Zip Code, or if you know the name of the electric service provider, type a few letters of the provider name to filter the list.\n\n' +
195
+
'3. Click the name of the electric service provider in the list, you should see a list of residential rates appear.\n\n' +
196
+
'4. Choose the appropriate rate from the list.\n\n' +
197
+
' If the service provider or rate is not available, you will need to enter rate data manually from the appropriate rate sheet.\n\n' +
0 commit comments