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
Copy file name to clipboardExpand all lines: README.md
+70-1Lines changed: 70 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -84,7 +84,7 @@ The basic structure of the config.json file is as follows:
84
84
85
85
`title`: The name of this field
86
86
87
-
`type`: One of "text", "number", "boolean", "range", "select", "counter", "image", "timer", or "multiselect". Describes the type of input this is.
87
+
`type`: One of "text", "number", "boolean", "range", "select", "counter", "timer", "multi-select", or "image". Describes the type of input this is.
88
88
89
89
`required`: a boolean indicating if this must be filled out before the QRCode is generated. If any field with this set to true is not filled out, QRScout will not generate a QRCode when the commit button is pressed.
90
90
@@ -192,3 +192,72 @@ For example, in a game where robots can score in multiple locations, you might c
192
192
```
193
193
194
194
This allows scouts to quickly record all locations where a robot successfully scored during a match.
195
+
196
+
### Using Image Input
197
+
198
+
The image input type allows you to display static images in your scouting form. This is useful for showing field layouts, robot diagrams, game piece locations, or any visual reference that helps scouts accurately record data.
199
+
200
+
#### Configuration in config.json
201
+
202
+
To configure an image field in your `config.json`:
-**defaultValue**: The URL to the statically hosted image. This should be a publicly accessible URL.
222
+
-**width** (optional): The width of the image in pixels. If not specified, the image will use responsive sizing.
223
+
-**height** (optional): The height of the image in pixels. If not specified, the image will maintain its aspect ratio.
224
+
-**alt** (optional): Alternative text for the image for accessibility. If not provided, it will use the title.
225
+
226
+
#### Interactive Features
227
+
228
+
-**Click to Enlarge**: Users can click on any image to open a full-size version in a dialog. This is particularly useful for detailed diagrams or when images need to be examined more closely.
229
+
230
+
#### Best Practices for Image Input
231
+
232
+
1.**Host Images Reliably**: Ensure your images are hosted on a reliable service that will be accessible during competition, even with limited internet connectivity.
233
+
2.**Optimize Image Size**: Use appropriately sized and compressed images to ensure fast loading times, especially on tablets or devices with slower connections.
234
+
3.**Consider Offline Use**: For critical reference images, consider embedding them directly in your application or providing a local fallback.
235
+
4.**Use Descriptive Alt Text**: Provide meaningful alternative text to ensure accessibility for all users.
236
+
5.**Provide Context**: Let users know they can click on images to view them in full size, especially for detailed diagrams or maps.
237
+
238
+
#### FRC Scouting Examples
239
+
240
+
Image inputs are particularly useful for FRC scouting in scenarios like:
241
+
242
+
-**Field Layout Reference**: Show the competition field with labeled zones for more accurate position reporting
243
+
-**Robot Diagram**: Display a diagram of a robot with numbered components for reference
244
+
-**Scoring Locations**: Visualize different scoring positions or game elements
245
+
-**Strategy Diagrams**: Show predefined strategies or paths that scouts should watch for
246
+
-**Game Piece Identification**: Display images of the current season's game pieces for reference
247
+
248
+
For example, to include a field diagram in your scouting form:
249
+
250
+
```json
251
+
{
252
+
"title": "Field Reference",
253
+
"type": "image",
254
+
"required": false,
255
+
"code": "fieldReference",
256
+
"description": "Use this diagram to identify field positions",
0 commit comments