{"name":"Carbon Clock","headerTitle":"Carbon Clock","version":1,"accentColor":"#B6E599","appearance":{"colorScheme":"dark"},"theme":{"accentColor":"#B6E599","accentGradient":["#B6E599","#73D8C8"],"pageBackgroundGradient":["#0A111D","#122132"],"cornerRadius":20,"fontDesign":"rounded","cardPadding":12,"borderWidth":0.5,"tabBarTint":"#B6E599"},"tabs":[{"title":"Overview","icon":"bolt.fill","grid":{"columns":4,"rows":12,"mode":"flow"},"children":[{"type":"label","id":"carbon-clock-2","position":[0,0],"span":[1,4],"label":"","controlHeight":112,"tint":"#B6E599","text":"How does today's GB electricity carbon intensity vary?","style":"large-mono","align":"leading"},{"type":"statusLight","id":"carbon-clock-1","position":[1,0],"span":[1,4],"label":"Source response","controlHeight":46,"tint":"#B6E599","style":"badge","defaultValue":"WAITING","statusColors":{"READY":"#A8DFC3","EMPTY":"#DBC990","STALE":"#F2BA81","UNAVAILABLE":"#F59B9F","WAITING":"#A9B5C8"},"pulse":false,"sync":[{"method":"http","url":"https://carterbeaudoin.net/api/template-feed/carbon-clock","interval":1800,"valuePath":"status"}]},{"type":"label","id":"carbon-clock-3","position":[2,0],"span":[1,4],"label":"","controlHeight":64,"tint":"#B6E599","text":"Waiting for first successful retrieval","style":"mono","align":"leading","sync":[{"method":"http","url":"https://carterbeaudoin.net/api/template-feed/carbon-clock","interval":1800,"valuePath":"freshness"}]},{"type":"chart","id":"carbon-clock-4","position":[3,0],"span":[1,4],"label":"Today's actual and forecast · gCO₂/kWh · UTC","controlHeight":320,"tint":"#B6E599","chartConfig":{"showXAxis":true,"showYAxis":true,"showGrid":true,"showLegend":true,"scrub":true,"smooth":false},"defaultValue":"{\"series\":[]}","sync":[{"method":"http","url":"https://carterbeaudoin.net/api/template-feed/carbon-clock","interval":1800,"valuePath":"chart"}]},{"type":"label","id":"carbon-clock-5","position":[4,0],"span":[1,4],"label":"","controlHeight":68,"tint":"#B6E599","text":"Drag across the plot to inspect a value.","style":"mono","align":"leading"},{"type":"flipCard","id":"carbon-clock-13","position":[5,0],"span":[1,4],"label":"","controlHeight":270,"tint":"#B6E599","panels":[{"type":"group","id":"carbon-clock-panel-9","label":"Reading","position":[0,0],"grid":{"columns":4,"rows":3,"mode":"flow"},"children":[{"type":"label","id":"carbon-clock-6","position":[0,0],"span":[1,4],"label":"","controlHeight":62,"tint":"#B6E599","text":"Latest reported actual · gCO₂/kWh","style":"mono","align":"leading"},{"type":"label","id":"carbon-clock-7","position":[1,0],"span":[1,4],"label":"","controlHeight":112,"tint":"#B6E599","text":"Waiting for source","style":"large-mono","align":"leading","sync":[{"method":"http","url":"https://carterbeaudoin.net/api/template-feed/carbon-clock","interval":1800,"valuePath":"metric1"}]},{"type":"label","id":"carbon-clock-8","position":[2,0],"span":[1,4],"label":"","controlHeight":32,"tint":"#B6E599","text":"Tap for context ↻","style":"mono","align":"leading"}]},{"type":"group","id":"carbon-clock-panel-12","label":"Meaning","position":[0,0],"grid":{"columns":4,"rows":2,"mode":"flow"},"children":[{"type":"label","id":"carbon-clock-10","position":[0,0],"span":[1,4],"label":"","controlHeight":158,"tint":"#B6E599","text":"Forecast and actual are different series; an absent actual must not turn into zero.","style":"mono","align":"leading"},{"type":"label","id":"carbon-clock-11","position":[1,0],"span":[1,4],"label":"","controlHeight":32,"tint":"#B6E599","text":"Tap to return ↻","style":"mono","align":"leading"}]}],"flipAxis":"horizontal","flipTrigger":"tap","defaultValue":0,"containerAnimation":{"profile":"smooth"}},{"type":"flipCard","id":"carbon-clock-21","position":[6,0],"span":[1,4],"label":"","controlHeight":270,"tint":"#B6E599","panels":[{"type":"group","id":"carbon-clock-panel-17","label":"Reading","position":[0,0],"grid":{"columns":4,"rows":3,"mode":"flow"},"children":[{"type":"label","id":"carbon-clock-14","position":[0,0],"span":[1,4],"label":"","controlHeight":62,"tint":"#B6E599","text":"Forecast for that interval · gCO₂/kWh","style":"mono","align":"leading"},{"type":"label","id":"carbon-clock-15","position":[1,0],"span":[1,4],"label":"","controlHeight":112,"tint":"#B6E599","text":"Waiting for source","style":"large-mono","align":"leading","sync":[{"method":"http","url":"https://carterbeaudoin.net/api/template-feed/carbon-clock","interval":1800,"valuePath":"metric2"}]},{"type":"label","id":"carbon-clock-16","position":[2,0],"span":[1,4],"label":"","controlHeight":32,"tint":"#B6E599","text":"Tap for context ↻","style":"mono","align":"leading"}]},{"type":"group","id":"carbon-clock-panel-20","label":"Meaning","position":[0,0],"grid":{"columns":4,"rows":2,"mode":"flow"},"children":[{"type":"label","id":"carbon-clock-18","position":[0,0],"span":[1,4],"label":"","controlHeight":158,"tint":"#B6E599","text":"Great Britain electricity system; values describe generation carbon intensity, not your personal emissions.","style":"mono","align":"leading"},{"type":"label","id":"carbon-clock-19","position":[1,0],"span":[1,4],"label":"","controlHeight":32,"tint":"#B6E599","text":"Tap to return ↻","style":"mono","align":"leading"}]}],"flipAxis":"horizontal","flipTrigger":"tap","defaultValue":0,"containerAnimation":{"profile":"smooth"}},{"type":"label","id":"carbon-clock-22","position":[7,0],"span":[1,4],"label":"","controlHeight":82,"tint":"#B6E599","text":"Observation time not supplied","style":"mono","align":"leading","sync":[{"method":"http","url":"https://carterbeaudoin.net/api/template-feed/carbon-clock","interval":1800,"valuePath":"source_time"}]},{"type":"label","id":"carbon-clock-23","position":[8,0],"span":[1,4],"label":"","controlHeight":104,"tint":"#B6E599","text":"Great Britain electricity system; values describe generation carbon intensity, not your personal emissions.","style":"mono","align":"leading"},{"type":"label","id":"carbon-clock-24","position":[9,0],"span":[1,4],"label":"","controlHeight":68,"tint":"#B6E599","text":"Source: NESO Carbon Intensity API · links in Learn","style":"mono","align":"leading"}]},{"title":"Explore","icon":"square.grid.2x2","grid":{"columns":4,"rows":7,"mode":"flow"},"children":[{"type":"label","id":"carbon-clock-25","position":[0,0],"span":[1,4],"label":"","controlHeight":112,"tint":"#B6E599","text":"Same source. Another useful view.","style":"large-mono","align":"leading"},{"type":"heatmap","id":"carbon-clock-26","position":[1,0],"span":[1,4],"label":"Forecast intensity · half-hour windows","controlHeight":240,"tint":"#B6E599","heatmapConfig":{"editable":false,"drag":false,"showScale":true,"showRowLabels":true,"showColLabels":true,"colors":["#172639","#B6E599"],"cellGap":3},"defaultValue":"{\"rows\":[],\"cols\":[],\"values\":[]}","sync":[{"method":"http","url":"https://carterbeaudoin.net/api/template-feed/carbon-clock","interval":1800,"valuePath":"heatmap"}]},{"type":"label","id":"carbon-clock-27","position":[2,0],"span":[1,4],"label":"","controlHeight":75,"tint":"#B6E599","text":"Source notes","style":"mono","align":"leading","sync":[{"method":"http","url":"https://carterbeaudoin.net/api/template-feed/carbon-clock","interval":1800,"valuePath":"detail"}]},{"type":"list","id":"carbon-clock-28","position":[3,0],"span":[1,4],"label":"Selected source records","controlHeight":420,"tint":"#B6E599","listColumns":[{"key":"title","label":"Record"},{"key":"detail","label":"Context"},{"key":"value","label":"Reading / date"}],"defaultValue":"[]","sync":[{"method":"http","url":"https://carterbeaudoin.net/api/template-feed/carbon-clock","interval":1800,"valuePath":"rows"}]},{"type":"accordion","id":"carbon-clock-35","position":[4,0],"span":[1,4],"label":"A little context","controlHeight":320,"tint":"#B6E599","accordionMode":"single","expandedIndex":0,"showChevron":true,"panels":[{"type":"group","id":"carbon-clock-panel-30","label":"What this teaches","position":[0,0],"grid":{"columns":4,"rows":1,"mode":"flow"},"children":[{"type":"label","id":"carbon-clock-29","position":[0,0],"span":[1,4],"label":"","controlHeight":125,"tint":"#B6E599","text":"Forecast and actual are different series; an absent actual must not turn into zero.","style":"mono","align":"leading"}]},{"type":"group","id":"carbon-clock-panel-32","label":"Read before using","position":[0,0],"grid":{"columns":4,"rows":1,"mode":"flow"},"children":[{"type":"label","id":"carbon-clock-31","position":[0,0],"span":[1,4],"label":"","controlHeight":145,"tint":"#B6E599","text":"Great Britain electricity system; values describe generation carbon intensity, not your personal emissions.","style":"mono","align":"leading"}]},{"type":"group","id":"carbon-clock-panel-34","label":"Where the data comes from","position":[0,0],"grid":{"columns":4,"rows":1,"mode":"flow"},"children":[{"type":"label","id":"carbon-clock-33","position":[0,0],"span":[1,4],"label":"","controlHeight":180,"tint":"#B6E599","text":"NESO Carbon Intensity API\nCC BY 4.0 plus NESO API terms; processed and visualized by this sample.","style":"mono","align":"leading"}]}],"containerAnimation":{"profile":"smooth"}}]},{"title":"Learn","icon":"book.closed","grid":{"columns":4,"rows":3,"mode":"flow"},"children":[{"type":"webView","id":"carbon-clock-36","position":[0,0],"span":[1,4],"label":"A one-minute walkthrough","controlHeight":780,"tint":"#B6E599","url":"https://carterbeaudoin.net/CAR-TER/templates/open-data/carbon-clock.html","webInteractive":true,"webScrollEnabled":true}]}]}