colorsChar = ({
navy: "#2C3E50",
teal: "#16A085",
orange: "#E67E22",
blue: "#3498DB",
gray: "#7F8C8D",
purple: "#9B59B6",
red: "#E74C3C"
})
// Project type selector
viewof projectType = Inputs.select(
["Custom", "Smart Home", "Industrial IoT", "Medical Wearable", "Smart Agriculture", "Commercial Building"],
{label: "Project Type (presets available)", value: "Custom"}
)
// Importance sliders for each characteristic
viewof ubiquitousImportance = Inputs.range([1, 10], {
label: "Ubiquitous (works everywhere)",
step: 1,
value: projectType === "Smart Home" ? 7 : projectType === "Industrial IoT" ? 5 : projectType === "Medical Wearable" ? 6 : projectType === "Smart Agriculture" ? 4 : projectType === "Commercial Building" ? 6 : 5
})
viewof smartImportance = Inputs.range([1, 10], {
label: "Smart (intelligent decisions)",
step: 1,
value: projectType === "Smart Home" ? 8 : projectType === "Industrial IoT" ? 9 : projectType === "Medical Wearable" ? 7 : projectType === "Smart Agriculture" ? 6 : projectType === "Commercial Building" ? 7 : 5
})
viewof agileImportance = Inputs.range([1, 10], {
label: "Agile (adapts quickly)",
step: 1,
value: projectType === "Smart Home" ? 6 : projectType === "Industrial IoT" ? 9 : projectType === "Medical Wearable" ? 5 : projectType === "Smart Agriculture" ? 5 : projectType === "Commercial Building" ? 6 : 5
})
viewof onDemandImportance = Inputs.range([1, 10], {
label: "On Demand (instant response)",
step: 1,
value: projectType === "Smart Home" ? 9 : projectType === "Industrial IoT" ? 7 : projectType === "Medical Wearable" ? 6 : projectType === "Smart Agriculture" ? 3 : projectType === "Commercial Building" ? 7 : 5
})
viewof blendImportance = Inputs.range([1, 10], {
label: "Blend into Background (unobtrusive)",
step: 1,
value: projectType === "Smart Home" ? 8 : projectType === "Industrial IoT" ? 5 : projectType === "Medical Wearable" ? 7 : projectType === "Smart Agriculture" ? 8 : projectType === "Commercial Building" ? 6 : 5
})
viewof secureImportance = Inputs.range([1, 10], {
label: "Secure (protected)",
step: 1,
value: projectType === "Smart Home" ? 8 : projectType === "Industrial IoT" ? 10 : projectType === "Medical Wearable" ? 10 : projectType === "Smart Agriculture" ? 6 : projectType === "Commercial Building" ? 9 : 5
})
viewof lowMaintenanceImportance = Inputs.range([1, 10], {
label: "Low Maintenance (self-sufficient)",
step: 1,
value: projectType === "Smart Home" ? 7 : projectType === "Industrial IoT" ? 8 : projectType === "Medical Wearable" ? 9 : projectType === "Smart Agriculture" ? 10 : projectType === "Commercial Building" ? 8 : 5
})
viewof fastImportance = Inputs.range([1, 10], {
label: "Fast (low latency)",
step: 1,
value: projectType === "Smart Home" ? 7 : projectType === "Industrial IoT" ? 10 : projectType === "Medical Wearable" ? 9 : projectType === "Smart Agriculture" ? 3 : projectType === "Commercial Building" ? 6 : 5
})
viewof upgradableImportance = Inputs.range([1, 10], {
label: "Upgradable (OTA updates)",
step: 1,
value: projectType === "Smart Home" ? 9 : projectType === "Industrial IoT" ? 8 : projectType === "Medical Wearable" ? 8 : projectType === "Smart Agriculture" ? 7 : projectType === "Commercial Building" ? 9 : 5
})
viewof growingImportance = Inputs.range([1, 10], {
label: "Growing (scalable)",
step: 1,
value: projectType === "Smart Home" ? 4 : projectType === "Industrial IoT" ? 9 : projectType === "Medical Wearable" ? 5 : projectType === "Smart Agriculture" ? 10 : projectType === "Commercial Building" ? 9 : 5
})
viewof adaptableImportance = Inputs.range([1, 10], {
label: "Adaptable (flexible integrations)",
step: 1,
value: projectType === "Smart Home" ? 9 : projectType === "Industrial IoT" ? 7 : projectType === "Medical Wearable" ? 5 : projectType === "Smart Agriculture" ? 8 : projectType === "Commercial Building" ? 8 : 5
})
// Calculate scores
characteristics = [
{name: "Ubiquitous", score: ubiquitousImportance},
{name: "Smart", score: smartImportance},
{name: "Agile", score: agileImportance},
{name: "On Demand", score: onDemandImportance},
{name: "Blend into Background", score: blendImportance},
{name: "Secure", score: secureImportance},
{name: "Low Maintenance", score: lowMaintenanceImportance},
{name: "Fast", score: fastImportance},
{name: "Upgradable", score: upgradableImportance},
{name: "Growing", score: growingImportance},
{name: "Adaptable", score: adaptableImportance}
]
sortedChars = characteristics.sort((a, b) => b.score - a.score)
topThree = sortedChars.slice(0, 3)
bottomThree = sortedChars.slice(-3).reverse()
// Visualization
html`
<div style="margin-top: 20px;">
<h4 style="color: ${colorsChar.navy};">Your Priority Ranking</h4>
<div style="display: grid; gap: 8px;">
${sortedChars.map((char, idx) => {
const isTop = idx < 3
const isBottom = idx >= 8
const barColor = isTop ? colorsChar.teal : isBottom ? colorsChar.gray : colorsChar.blue
const width = (char.score / 10) * 100
return `
<div style="display: flex; align-items: center; gap: 10px; flex-wrap: wrap;">
<div style="width: 30px; text-align: right; font-weight: bold; color: ${colorsChar.navy}; flex: 0 0 30px;">${idx + 1}.</div>
<div style="flex: 1 1 220px; min-width: 0;">
<div style="display: flex; align-items: center; gap: 10px; flex-wrap: wrap;">
<div style="flex: 1 1 9rem; min-width: min(9rem, 100%); font-weight: ${isTop ? 'bold' : 'normal'};">${char.name}</div>
<div style="flex: 2 1 11rem; min-width: min(11rem, 100%); background: #e0e0e0; border-radius: 4px; height: 24px; position: relative;">
<div style="background: ${barColor}; width: ${width}%; height: 100%; border-radius: 4px; transition: width 0.3s;"></div>
<div style="position: absolute; right: 8px; top: 50%; transform: translateY(-50%); color: ${width > 50 ? 'white' : colorsChar.navy}; font-weight: bold;">${char.score}/10</div>
</div>
</div>
</div>
</div>
`
}).join('')}
</div>
</div>
<div style="margin-top: 25px; padding: 20px; background: linear-gradient(135deg, ${colorsChar.teal} 0%, ${colorsChar.blue} 100%); color: white; border-radius: 8px;">
<h4 style="margin-top: 0; color: white;">Top 3 Priorities for Your Project</h4>
<ol style="margin: 10px 0; padding-left: 20px; font-size: 1.1em;">
${topThree.map(char => `<li><strong>${char.name}</strong> (${char.score}/10)</li>`).join('')}
</ol>
<p style="margin-bottom: 0; font-size: 0.95em; opacity: 0.9;">
<strong>Design Principle:</strong> Focus your engineering effort on excelling at these top 3 characteristics rather than achieving mediocrity across all eleven.
</p>
</div>
<div style="margin-top: 15px; padding: 15px; background: #fff3cd; border-left: 4px solid ${colorsChar.orange}; border-radius: 4px;">
<p style="margin: 0; color: ${colorsChar.navy};"><strong>Acceptable Trade-offs:</strong> Lower-priority characteristics (${bottomThree.map(c => c.name).join(', ')}) can be de-prioritized to achieve excellence in your top 3.</p>
</div>
`IoT Priority Scoring
IoT Priority Scoring
animation
iot
requirements
Try Change Secure (protected) from 5 to 10.
Observe Watch Secure move in Your Priority Ranking when its score changes to 10.
Explain Explain why a score of 10 moves Secure above characteristics scored 5.
Technical boundaries. Your Priority Ranking sorts the eleven selected importance scores. Project type presets supply scores; the ranking does not measure whether a project meets its requirements.
IoT Priority Scoring
Score your IoT project requirements against the eleven ideal characteristics:
How to use:
- Select your project type for preset values, or choose “Custom”
- Adjust sliders to reflect your specific requirements
- Review your top 3 priorities - these should drive your design decisions
- Accept trade-offs on bottom-ranked characteristics