Android Recipe

Material Setting

{#if loadedRecipePath}

Loaded: {loadedRecipePath}

{/if}
Total materials
{materials.length}
Active materials
{activeMaterialCount}
Channels in use
{channelSummary.length}
{existingMaterial ? 'Edit Material' : 'Add Material'} Create or update one MaterialSetting entry. The JSON preview shows the payload before saving to Android.
{existingMaterial ? 'Edit Material' : 'Add Material'} {#if existingMaterial}
Material ID {form.id} already exists. Saving will update this MaterialSetting.
{/if}

Examples: refill=$bag,sum=$gram,rec=$gram, refill=$L,sum=$ml,rec=$ml

Preview JSON Payload that will be upserted into MaterialSetting.
{previewJson}
Existing Materials Use Edit to update a material, or Delete to remove it after confirmation.
{#each channelSummary as channel} {channel.label}: {channel.count} {/each}
{#if loading}
Loading materials from Android...
{:else if !devRecipe}
Connect and load recipe first.
{:else if filteredMaterials.length === 0}
No materials found.
{:else}
{#each filteredMaterials as material}
{material.id} {material.materialName || '-'} {material.materialOtherName || '-'} {material.pathOtherName || '-'} {(material.isUse as boolean) !== false ? 'Use' : 'Not use'}
{/each}
{/if}
Delete Material? This will remove the material from MaterialSetting in the Android recipe JSON. {#if pendingDeleteMaterial}
Material
{pendingDeleteMaterial.id}
{pendingDeleteMaterial.materialName || pendingDeleteMaterial.materialOtherName || 'Unnamed'}
{/if}