feat: 워치에 주변 축제 표시 (앱 축제 장, 스킨 날짜 밑 한 줄)

- /v1/watch/summary 에 events 2개: 진행 중 먼저, 이름 앞 [주최] 괄호 제거, 4초 넘으면 축제만 빼고 응답
- 앱: 내 각 다음에 근처 축제 장 (이름 · 상태 · 장소와 그날 날씨)
- 스킨: 날짜 밑 "🎉 주변 축제 · 이름" 한 줄 (EventComplicationService, LONG_TEXT, 행사 없으면 숨김)
- 스킨 배치: 해 구슬 162→136, 해·링 묶음 24px 아래로, 기온·비 칩 y 366

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
HyeongBaeYangandClaude Opus 5.5 committed 2026-10-07 11:21:50 +09:00
1 parent a6a738ae61
commit b4d028a91b
10 files changed
+208 -46

No files matched your search

+8
View File
@@ -27,6 +27,13 @@ class WatchSlot(WebPacketProtocol):
rain_prob: Optional[int] = None rain_prob: Optional[int] = None
class WatchEvent(WebPacketProtocol):
name: str
place_name: str
status_label: str
fit: Optional[str] = None
class WatchTimeline(WebPacketProtocol): class WatchTimeline(WebPacketProtocol):
start_at: datetime start_at: datetime
kind: Literal["gak", "sunset"] kind: Literal["gak", "sunset"]
@@ -45,3 +52,4 @@ class Res_WatchSummary(Res_WebPacketProtocol):
sunset: Optional[WatchSunset] = None sunset: Optional[WatchSunset] = None
slots: list[WatchSlot] = [] slots: list[WatchSlot] = []
timeline: list[WatchTimeline] = [] timeline: list[WatchTimeline] = []
events: list[WatchEvent] = []
+27 -3
View File
@@ -1,4 +1,5 @@
import asyncio import asyncio
import re
from datetime import datetime, timedelta from datetime import datetime, timedelta
from typing import Optional from typing import Optional
@@ -6,9 +7,10 @@ from fastapi import APIRouter, Depends, Query
from common.database.model.models import SkyScore from common.database.model.models import SkyScore
from common.enums import ErrorType, SkyGrade from common.enums import ErrorType, SkyGrade
from common.logger import LOG
from common.models.errors import error_info from common.models.errors import error_info
from common.utils.kma_time import KST, now_kst from common.utils.kma_time import KST, now_kst
from router.v1.watch.protocol import Res_WatchSummary, WatchNow, WatchSlot, WatchSunset, WatchTimeline from router.v1.watch.protocol import Res_WatchSummary, WatchEvent, WatchNow, WatchSlot, WatchSunset, WatchTimeline
from services.calc.sky_score import GRADE_LABEL from services.calc.sky_score import GRADE_LABEL
from services.calc.sun import sun_times from services.calc.sun import sun_times
from services.feed_service import _SUNSET_FULL, _top, feed_ttl_sec, slot_of from services.feed_service import _SUNSET_FULL, _top, feed_ttl_sec, slot_of
@@ -16,18 +18,32 @@ from services.index_service import IndexService
from services.now_service import NowService from services.now_service import NowService
from services.sky_service import SkyService from services.sky_service import SkyService
from services.weather_service import WeatherService from services.weather_service import WeatherService
from services.week_service import EventItem, WeekService
router = APIRouter(prefix="/v1/watch", tags=["watch"]) router = APIRouter(prefix="/v1/watch", tags=["watch"])
MAX_PICKS = 3 MAX_PICKS = 3
# 워치 스킨이 큰 원(1위) + 둘레 링 6개(2~7위)를 채운다 # 워치 스킨이 큰 원(1위) + 둘레 링 6개(2~7위)를 채운다
TOP_N = 7 TOP_N = 7
MAX_EVENTS = 2
# 워치 readTimeout(10초) 안에 끝나도록. 첫 조회라 TourAPI 를 부르다 늦으면 이번 요약엔 축제를 빼고, 캐시는 다음 조회가 채운다
EVENTS_TIMEOUT_SEC = 4
# "[하트하트아트앤컬처] 마음의 각도" 처럼 이름 앞 주최·분류 괄호. 워치 칸이 좁아 뺀다
_NAME_PREFIX = re.compile(r"^(\[[^\]]*\]\s*)+")
def _best(score: SkyScore, kind: str) -> datetime: def _best(score: SkyScore, kind: str) -> datetime:
return datetime.fromisoformat(next(b["at"] for b in score.best_times if b["kind"] == kind)).astimezone(KST) return datetime.fromisoformat(next(b["at"] for b in score.best_times if b["kind"] == kind)).astimezone(KST)
async def _events(week: WeekService, region: str) -> tuple[ErrorType, list[EventItem]]:
try:
return await asyncio.wait_for(week.events(region, None), EVENTS_TIMEOUT_SEC)
except TimeoutError:
LOG.warning(f"[watch] events {region}: {EVENTS_TIMEOUT_SEC}초 넘어 생략")
return ErrorType.EXTERNAL_API_ERROR, []
def timeline(now: datetime, sunset: Optional[SkyScore], is_today: bool) -> list[WatchTimeline]: def timeline(now: datetime, sunset: Optional[SkyScore], is_today: bool) -> list[WatchTimeline]:
"""컴플리케이션이 언제 무엇을 보여줄지. 오늘 노을이 볼 만하면(60점 이상) 일몰 2시간 전부터 보랏빛 하늘까지 노을, 나머지는 각.""" """컴플리케이션이 언제 무엇을 보여줄지. 오늘 노을이 볼 만하면(60점 이상) 일몰 2시간 전부터 보랏빛 하늘까지 노을, 나머지는 각."""
if sunset is None or not is_today or sunset.score < _SUNSET_FULL: if sunset is None or not is_today or sunset.score < _SUNSET_FULL:
@@ -47,9 +63,10 @@ async def get_watch_summary(
now_service: NowService = Depends(), now_service: NowService = Depends(),
sky: SkyService = Depends(), sky: SkyService = Depends(),
index: IndexService = Depends(), index: IndexService = Depends(),
week: WeekService = Depends(),
) -> Res_WatchSummary: ) -> Res_WatchSummary:
(err_t, today), (err_n, now_w), (err_s, view), (err_i, board) = await asyncio.gather( (err_t, today), (err_n, now_w), (err_s, view), (err_i, board), (err_e, events) = await asyncio.gather(
weather.today(region), now_service.now(region), sky.view(region), index.board(region), weather.today(region), now_service.now(region), sky.view(region), index.board(region), _events(week, region),
) )
today = today if err_t is ErrorType.SUCCESS else None today = today if err_t is ErrorType.SUCCESS else None
now_w = now_w if err_n is ErrorType.SUCCESS else None now_w = now_w if err_n is ErrorType.SUCCESS else None
@@ -95,4 +112,11 @@ async def get_watch_summary(
sunset_at=_best(target, "sun"), best_at=_best(target, "peak"), sunset_at=_best(target, "sun"), best_at=_best(target, "peak"),
) )
res.timeline = timeline(now, target, is_today) res.timeline = timeline(now, target, is_today)
# 축제를 못 가져와도 요약은 그대로 낸다 (err_e 면 빈 목록)
if err_e is ErrorType.SUCCESS:
res.events = [
WatchEvent(name=_NAME_PREFIX.sub("", i.event.name) or i.event.name, place_name=i.event.place_name, status_label=i.status_label, fit=i.fit)
# 진행 중인 행사를 먼저 (스킨은 첫 번째 하나만 보여 준다). 같은 상태 안에서는 서버 순서(가까운 날짜·거리) 그대로
for i in sorted(events, key=lambda i: i.status != "live")[:MAX_EVENTS]
]
return res return res
+21 -1
View File
@@ -4,7 +4,8 @@ from types import SimpleNamespace
import pytest import pytest
from httpx import ASGITransport, AsyncClient from httpx import ASGITransport, AsyncClient
from common.utils.kma_time import KST import services.week_service as week_service
from common.utils.kma_time import KST, now_kst
from router.router import app from router.router import app
from router.v1.watch.watch import timeline from router.v1.watch.watch import timeline
@@ -12,6 +13,10 @@ REGION = "1141000000"
SUN = datetime(2026, 10, 6, 18, 0, tzinfo=KST) SUN = datetime(2026, 10, 6, 18, 0, tzinfo=KST)
async def _async(v):
return v
def _sunset(score: int) -> SimpleNamespace: def _sunset(score: int) -> SimpleNamespace:
return SimpleNamespace(score=score, best_times=[ return SimpleNamespace(score=score, best_times=[
{"at": SUN.isoformat(), "kind": "sun", "label": "해 져요"}, {"at": SUN.isoformat(), "kind": "sun", "label": "해 져요"},
@@ -53,6 +58,21 @@ async def test_watch_summary_bundles_now_top_picks_sunset(offline):
assert body["sunset"]["best_at"] > body["sunset"]["sunset_at"] assert body["sunset"]["best_at"] > body["sunset"]["sunset_at"]
assert all(s["at"] > body["issued_at"] for s in body["slots"]) assert all(s["at"] > body["issued_at"] for s in body["slots"])
assert body["timeline"][0]["start_at"] == body["issued_at"] assert body["timeline"][0]["start_at"] == body["issued_at"]
assert [(e["name"], e["status_label"]) for e in body["events"]] == [("테스트 축제", "진행 중")]
@pytest.mark.anyio
async def test_watch_summary_puts_live_event_first_without_bracket_prefix(offline, monkeypatch):
# 서버 순서는 시작일이 가까운 순이라 내일 시작이 먼저지만, 스킨에 하나만 띄우니 진행 중을 앞으로. 이름 앞 [주최] 는 뺀다
today = now_kst().date()
day = lambda n: (today + timedelta(days=n)).strftime("%Y%m%d")
monkeypatch.setattr(week_service, "fetch_festivals", lambda c, sido, since: _async([
{"contentid": "1", "title": "내일 축제", "addr1": "서울", "eventstartdate": day(1), "eventenddate": day(2)},
{"contentid": "2", "title": "[주최] 열리는 축제", "addr1": "서울", "eventstartdate": day(-3), "eventenddate": day(2)},
] if sido == "11" else []))
async with AsyncClient(transport=ASGITransport(app=app), base_url="http://test") as client:
body = (await client.get("/v1/watch/summary", params={"region": REGION})).json()
assert [e["name"] for e in body["events"]] == ["열리는 축제", "내일 축제"]
@pytest.mark.anyio @pytest.mark.anyio
+14
View File
@@ -140,6 +140,20 @@
<meta-data android:name="android.support.wearable.complications.UPDATE_PERIOD_SECONDS" android:value="1800" /> <meta-data android:name="android.support.wearable.complications.UPDATE_PERIOD_SECONDS" android:value="1800" />
</service> </service>
<!-- 워치 스킨 아래 축제 한 줄 -->
<service
android:name=".EventComplicationService"
android:exported="true"
android:icon="@drawable/ic_gak"
android:label="날씨각 근처 축제"
android:permission="com.google.android.wearable.permission.BIND_COMPLICATION_PROVIDER">
<intent-filter>
<action android:name="android.support.wearable.complications.ACTION_COMPLICATION_UPDATE_REQUEST" />
</intent-filter>
<meta-data android:name="android.support.wearable.complications.SUPPORTED_TYPES" android:value="LONG_TEXT" />
<meta-data android:name="android.support.wearable.complications.UPDATE_PERIOD_SECONDS" android:value="1800" />
</service>
<service <service
android:name=".GakTileService" android:name=".GakTileService"
android:exported="true" android:exported="true"
@@ -0,0 +1,32 @@
package kr.o2o.nalssigak
import android.app.PendingIntent
import android.content.Intent
import androidx.wear.watchface.complications.data.ComplicationData
import androidx.wear.watchface.complications.data.ComplicationType
import androidx.wear.watchface.complications.data.LongTextComplicationData
import androidx.wear.watchface.complications.data.NoDataComplicationData
import androidx.wear.watchface.complications.data.PlainComplicationText
import androidx.wear.watchface.complications.datasource.ComplicationRequest
import androidx.wear.watchface.complications.datasource.SuspendingComplicationDataSourceService
import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.withContext
/** 워치 스킨 아래 축제 한 줄: 글자 = 이름, 제목 = 상태("진행 중"·"D-3"). 서버가 진행 중인 행사를 앞에 둔다. 누르면 앱이 열린다. */
class EventComplicationService : SuspendingComplicationDataSourceService() {
override suspend fun onComplicationRequest(request: ComplicationRequest): ComplicationData? {
val s = withContext(Dispatchers.IO) { SummaryRepo.load(this@EventComplicationService) } ?: return null
// 행사가 끝나 목록이 비면 지난 줄이 남지 않게 "데이터 없음"으로 (공급원은 EMPTY 를 보낼 수 없다)
val e = s.events.firstOrNull() ?: return NoDataComplicationData()
return data(e.name, e.status)
}
override fun getPreviewData(type: ComplicationType): ComplicationData = data("불꽃축제", "진행 중")
private fun data(name: String, status: String): ComplicationData {
val open = PendingIntent.getActivity(this, 0, Intent(this, MainActivity::class.java), PendingIntent.FLAG_IMMUTABLE)
return LongTextComplicationData.Builder(PlainComplicationText.Builder(name).build(), PlainComplicationText.Builder("$name $status").build())
.setTitle(PlainComplicationText.Builder(status).build()).setTapAction(open).build()
}
}
@@ -50,7 +50,7 @@ class MainActivity : ComponentActivity() {
} }
} }
private enum class Page { DETAIL, SKY, TOP, PICKS, SUNSET, HOURS } private enum class Page { DETAIL, SKY, TOP, PICKS, EVENTS, SUNSET, HOURS }
@Composable @Composable
private fun App(s: Summary?, loading: Boolean, opened: String?, onRetry: () -> Unit) { private fun App(s: Summary?, loading: Boolean, opened: String?, onRetry: () -> Unit) {
@@ -72,6 +72,7 @@ private fun App(s: Summary?, loading: Boolean, opened: String?, onRetry: () -> U
add(Page.SKY) add(Page.SKY)
if (s.top.isNotEmpty()) add(Page.TOP) if (s.top.isNotEmpty()) add(Page.TOP)
if (s.picks.isNotEmpty()) add(Page.PICKS) if (s.picks.isNotEmpty()) add(Page.PICKS)
if (s.events.isNotEmpty()) add(Page.EVENTS)
if (s.sunset != null) add(Page.SUNSET) if (s.sunset != null) add(Page.SUNSET)
if (s.slots.isNotEmpty()) add(Page.HOURS) if (s.slots.isNotEmpty()) add(Page.HOURS)
} }
@@ -83,6 +84,7 @@ private fun App(s: Summary?, loading: Boolean, opened: String?, onRetry: () -> U
Page.SKY -> SkyPage(s, now) Page.SKY -> SkyPage(s, now)
Page.TOP -> GakListPage("오늘의 각", s.top.take(3), bgButter, medals = true, now) Page.TOP -> GakListPage("오늘의 각", s.top.take(3), bgButter, medals = true, now)
Page.PICKS -> GakListPage("내 각", s.picks, bgMint, medals = false, now) Page.PICKS -> GakListPage("내 각", s.picks, bgMint, medals = false, now)
Page.EVENTS -> EventsPage(s.events, now)
Page.SUNSET -> SunsetPage(s.sunset!!, now) Page.SUNSET -> SunsetPage(s.sunset!!, now)
Page.HOURS -> HoursPage(s, now) Page.HOURS -> HoursPage(s, now)
} }
@@ -335,6 +335,30 @@ private fun GakRow(g: Gak, medal: String?, open: Boolean, modifier: Modifier, on
} }
} }
@Composable
fun EventsPage(events: List<Event>, now: Instant) {
Box(Modifier.fillMaxSize().background(bgButter)) {
Clock(now, Tok.ink)
Column(
Modifier.fillMaxSize().padding(start = 22.dp, end = 22.dp, top = 34.dp),
horizontalAlignment = Alignment.CenterHorizontally,
verticalArrangement = Arrangement.spacedBy(6.dp),
) {
T("근처 축제", 14.sp, color = Tok.ink)
events.forEach { e ->
Column(Modifier.fillMaxWidth().mallang().padding(start = 10.dp, end = 10.dp, top = 5.dp, bottom = 8.dp)) {
Row(verticalAlignment = Alignment.CenterVertically) {
T(e.name, 13.sp, color = Tok.ink, modifier = Modifier.weight(1f), align = TextAlign.Start, maxLines = 1)
T(e.status, 9.sp, FontFamily.Default, Color.White, Modifier.padding(start = 4.dp).background(Tok.orange, CircleShape).padding(horizontal = 5.dp),
weight = FontWeight.ExtraBold, maxLines = 1)
}
T(listOfNotNull(e.place.takeIf { it.isNotBlank() }, e.fit).joinToString(" · "), 9.sp, FontFamily.Default, Tok.ink2, align = TextAlign.Start, weight = FontWeight.Bold, maxLines = 1)
}
}
}
}
}
// ───────────── 4. 노을 ───────────── // ───────────── 4. 노을 ─────────────
// 웹 .b-skyline::after 의 건물 윤곽 (x%, y%) // 웹 .b-skyline::after 의 건물 윤곽 (x%, y%)
@@ -22,6 +22,8 @@ data class Gak(val code: String, val name: String, val icon: String, val score:
data class Sunset(val isToday: Boolean, val score: Int, val grade: String, val sunsetAt: Instant, val bestAt: Instant) data class Sunset(val isToday: Boolean, val score: Int, val grade: String, val sunsetAt: Instant, val bestAt: Instant)
data class Slot(val at: Instant, val icon: String, val tempC: Double?, val rainProb: Int?) data class Slot(val at: Instant, val icon: String, val tempC: Double?, val rainProb: Int?)
data class Phase(val startAt: Instant, val kind: String) data class Phase(val startAt: Instant, val kind: String)
/** 근처 축제·행사. status 는 "진행 중", "이번 토요일", "D-12" */
data class Event(val name: String, val place: String, val status: String, val fit: String?)
data class Summary( data class Summary(
val regionName: String, val regionName: String,
@@ -39,6 +41,7 @@ data class Summary(
val sunset: Sunset?, val sunset: Sunset?,
val slots: List<Slot>, val slots: List<Slot>,
val timeline: List<Phase>, val timeline: List<Phase>,
val events: List<Event>,
) { ) {
/** 컴플리케이션·타일에 올릴 각: 내 각 첫 번째, 없으면 오늘 1위 */ /** 컴플리케이션·타일에 올릴 각: 내 각 첫 번째, 없으면 오늘 1위 */
val myGak: Gak? get() = picks.firstOrNull() ?: top.firstOrNull() val myGak: Gak? get() = picks.firstOrNull() ?: top.firstOrNull()
@@ -95,6 +98,7 @@ fun parseSummary(json: String): Summary {
}, },
slots = o.list("slots") { Slot(time(it.getString("at")), it.getString("icon"), it.dbl("temp_c"), it.int("rain_prob")) }, slots = o.list("slots") { Slot(time(it.getString("at")), it.getString("icon"), it.dbl("temp_c"), it.int("rain_prob")) },
timeline = o.list("timeline") { Phase(time(it.getString("start_at")), it.getString("kind")) }, timeline = o.list("timeline") { Phase(time(it.getString("start_at")), it.getString("kind")) },
events = o.list("events") { Event(it.getString("name"), it.getString("place_name"), it.getString("status_label"), it.str("fit")) },
) )
} }
@@ -134,7 +138,7 @@ object SummaryRepo {
private fun refreshSurfaces(context: Context) { private fun refreshSurfaces(context: Context) {
val sources = listOf(GakComplicationService::class.java, RainComplicationService::class.java, Rank1ComplicationService::class.java, val sources = listOf(GakComplicationService::class.java, RainComplicationService::class.java, Rank1ComplicationService::class.java,
Rank2ComplicationService::class.java, Rank3ComplicationService::class.java, Rank4ComplicationService::class.java, Rank2ComplicationService::class.java, Rank3ComplicationService::class.java, Rank4ComplicationService::class.java,
Rank5ComplicationService::class.java, Rank6ComplicationService::class.java, Rank7ComplicationService::class.java) Rank5ComplicationService::class.java, Rank6ComplicationService::class.java, Rank7ComplicationService::class.java, EventComplicationService::class.java)
sources.forEach { ComplicationDataSourceUpdateRequester.create(context, ComponentName(context, it)).requestUpdateAll() } sources.forEach { ComplicationDataSourceUpdateRequester.create(context, ComponentName(context, it)).requestUpdateAll() }
TileService.getUpdater(context).requestUpdate(GakTileService::class.java) TileService.getUpdater(context).requestUpdate(GakTileService::class.java)
} }
+29 -8
View File
@@ -3,9 +3,11 @@ HERE = os.path.dirname(os.path.abspath(__file__))
# 각 이름 → 아이콘. 시계 런타임이 점수 링 안의 작은 이미지를 그려 주지 않아, 이름을 보고 스킨에 넣은 아이콘을 고른다 # 각 이름 → 아이콘. 시계 런타임이 점수 링 안의 작은 이미지를 그려 주지 않아, 이름을 보고 스킨에 넣은 아이콘을 고른다
GAK_ICONS = [(d["name"], d["icon"]) for d in json.load(open(os.path.join(HERE, "../../backend/seed/index_definition.json"), encoding="utf-8"))] GAK_ICONS = [(d["name"], d["icon"]) for d in json.load(open(os.path.join(HERE, "../../backend/seed/index_definition.json"), encoding="utf-8"))]
W = 450 W = 450
CX, CY = 225, 235 # 해 구슬을 줄이고 조금 내려, 날짜 밑에 축제 줄 자리를 만든다
ORB = 162 CX, CY = 225, 252
RING, RR = 68, 148 ORB = 136
RING, RR = 68, 138
CHIP_Y = 366
ANGLES = [210, 330, 150, 30, 180, 0] ANGLES = [210, 330, 150, 30, 180, 0]
APP = "kr.o2o.nalssigak" APP = "kr.o2o.nalssigak"
INK, ORANGE, SHADE, CARD = "#FF28304A", "#FFFF7A45", "#FFD9E5F4", "#B8FFFFFF" INK, ORANGE, SHADE, CARD = "#FF28304A", "#FFFF7A45", "#FFD9E5F4", "#B8FFFFFF"
@@ -90,7 +92,7 @@ def text(x, y, w, h, family, size, color, expr, amb=False):
def orb_slot(): def orb_slot():
x, y = CX - ORB // 2, CY - ORB // 2 x, y = CX - ORB // 2, CY - ORB // 2
body = text(0, 30, ORB, 74, "bagel_fat_one", 58, "#FFFFFFFF", "[COMPLICATION.TEXT]") + text(14, 100, ORB - 28, 30, "jua", 21, "#FFFFFFFF", "[COMPLICATION.TITLE]") body = text(0, int(ORB * .19), ORB, int(ORB * .45), "bagel_fat_one", 50, "#FFFFFFFF", "[COMPLICATION.TEXT]") + text(14, int(ORB * .62), ORB - 28, 28, "jua", 19, "#FFFFFFFF", "[COMPLICATION.TITLE]")
return f'''<ComplicationSlot slotId="0" x="{x}" y="{y}" width="{ORB}" height="{ORB}" displayName="slot_rank1" supportedTypes="RANGED_VALUE SHORT_TEXT EMPTY" isCustomizable="TRUE"> return f'''<ComplicationSlot slotId="0" x="{x}" y="{y}" width="{ORB}" height="{ORB}" displayName="slot_rank1" supportedTypes="RANGED_VALUE SHORT_TEXT EMPTY" isCustomizable="TRUE">
<DefaultProviderPolicy defaultSystemProvider="EMPTY" defaultSystemProviderType="EMPTY" primaryProvider="{APP}/{APP}.Rank1ComplicationService" primaryProviderType="RANGED_VALUE"/> <DefaultProviderPolicy defaultSystemProvider="EMPTY" defaultSystemProviderType="EMPTY" primaryProvider="{APP}/{APP}.Rank1ComplicationService" primaryProviderType="RANGED_VALUE"/>
<BoundingOval x="0" y="0" width="{ORB}" height="{ORB}"/> <BoundingOval x="0" y="0" width="{ORB}" height="{ORB}"/>
@@ -145,12 +147,12 @@ def ring_slot(i, angle):
WEEKDAY = " : ".join(f'[DAY_OF_WEEK] == {n + 1} ? &quot;{d}&quot;' for n, d in enumerate("일월화수목금")) + " : &quot;토&quot;" WEEKDAY = " : ".join(f'[DAY_OF_WEEK] == {n + 1} ? &quot;{d}&quot;' for n, d in enumerate("일월화수목금")) + " : &quot;토&quot;"
def chip(x, w, icon, expr): def chip(x, w, icon, expr):
return f'''<PartDraw x="{x}" y="364" width="{w}" height="40">{AMB0} return f'''<PartDraw x="{x}" y="{CHIP_Y}" width="{w}" height="40">{AMB0}
<RoundRectangle x="0" y="0" width="{w}" height="40" cornerRadiusX="20" cornerRadiusY="20"><Fill color="{CARD}"/></RoundRectangle> <RoundRectangle x="0" y="0" width="{w}" height="40" cornerRadiusX="20" cornerRadiusY="20"><Fill color="{CARD}"/></RoundRectangle>
<RoundRectangle x="0" y="35" width="{w}" height="5" cornerRadiusX="2" cornerRadiusY="2"><Fill color="#E6D9E5F4"/></RoundRectangle> <RoundRectangle x="0" y="35" width="{w}" height="5" cornerRadiusX="2" cornerRadiusY="2"><Fill color="#E6D9E5F4"/></RoundRectangle>
</PartDraw> </PartDraw>
<PartImage x="{x + 8}" y="370" width="26" height="26">{AMB0}<Image resource="e_{icon}"/></PartImage> <PartImage x="{x + 8}" y="{CHIP_Y + 6}" width="26" height="26">{AMB0}<Image resource="e_{icon}"/></PartImage>
{text(x + 32, 369, w - 38, 30, "jua", 21, INK, expr, amb=True)}''' {text(x + 32, CHIP_Y + 5, w - 38, 30, "jua", 21, INK, expr, amb=True)}'''
def precip_slot(): def precip_slot():
"""화면 전체를 덮는 숨은 칸. 날씨각 앱(RainComplicationService)이 글자 = 기온, 제목 = 비 소식을 주면 """화면 전체를 덮는 숨은 칸. 날씨각 앱(RainComplicationService)이 글자 = 기온, 제목 = 비 소식을 주면
@@ -201,6 +203,24 @@ def precip_slot():
<Complication type="EMPTY"/> <Complication type="EMPTY"/>
</ComplicationSlot>''' </ComplicationSlot>'''
def event_slot():
"""날짜 밑 축제 한 줄. 날씨각 앱(EventComplicationService)이 글자 = 이름, 제목 = 상태를 준다. 행사가 없으면 빈 칸이라 안 그린다.
무엇인지 바로 알게 "주변 축제" 를 앞에 두고 긴 이름만 말줄임"""
x, y, w, h = 123, 124, 204, 30
return f'''<ComplicationSlot slotId="8" x="{x}" y="{y}" width="{w}" height="{h}" displayName="slot_event" supportedTypes="LONG_TEXT EMPTY" isCustomizable="FALSE">
<DefaultProviderPolicy defaultSystemProvider="EMPTY" defaultSystemProviderType="EMPTY" primaryProvider="{APP}/{APP}.EventComplicationService" primaryProviderType="LONG_TEXT"/>
<BoundingOval x="0" y="0" width="{w}" height="{h}"/>
<Complication type="LONG_TEXT">
<PartDraw x="0" y="0" width="{w}" height="{h}">{AMB0}
<RoundRectangle x="0" y="0" width="{w}" height="{h}" cornerRadiusX="{h // 2}" cornerRadiusY="{h // 2}"><Fill color="{CARD}"/></RoundRectangle>
</PartDraw>
<PartText x="8" y="2" width="{w - 16}" height="{h - 4}">{AMB0}
<Text align="CENTER" ellipsis="TRUE"><Font family="jua" size="17" color="{INK}"><Template><![CDATA[🎉 주변 축제 · %s]]><Parameter expression="[COMPLICATION.TEXT]"/></Template></Font></Text>
</PartText>
</Complication>
<Complication type="EMPTY"/>
</ComplicationSlot>'''
def date_line(ink): def date_line(ink):
return f'''<PartText x="0" y="92" width="{W}" height="30">{AMB0} return f'''<PartText x="0" y="92" width="{W}" height="30">{AMB0}
<Text align="CENTER"><Font family="jua" size="23" color="{ink}"><Template><![CDATA[%d월 %d일 %s요일]]><Parameter expression="[MONTH]"/><Parameter expression="[DAY]"/><Parameter expression="{WEEKDAY}"/></Template></Font></Text> <Text align="CENTER"><Font family="jua" size="23" color="{ink}"><Template><![CDATA[%d월 %d일 %s요일]]><Parameter expression="[MONTH]"/><Parameter expression="[DAY]"/><Parameter expression="{WEEKDAY}"/></Template></Font></Text>
@@ -210,7 +230,7 @@ exprs = "\n ".join(f'<Expression name="{k}"><![CDATA[{v[0].replace("&gt
compares = "\n ".join(f'<Compare expression="{k}">\n {mode_block(v[1], v[2], v[3])}\n </Compare>' for k, v in MODES.items()) compares = "\n ".join(f'<Compare expression="{k}">\n {mode_block(v[1], v[2], v[3])}\n </Compare>' for k, v in MODES.items())
xml = f'''<?xml version="1.0" encoding="UTF-8"?> xml = f'''<?xml version="1.0" encoding="UTF-8"?>
<!-- 날씨각 워치 스킨: 시간대 하늘, 해 구슬(1위), 둘레 링(2~7위), 아래 기온·비 칩. 링을 누르면 앱이 그 각 상세로 열린다. 점수는 날씨각 앱의 RankNComplicationService 가 공급한다. <!-- 날씨각 워치 스킨: 시간대 하늘, 해 구슬(1위), 둘레 링(2~7위), 날짜 밑 근처 축제 한 줄, 아래 기온·비 칩. 링을 누르면 앱이 그 각 상세로 열린다. 점수는 날씨각 앱의 RankNComplicationService 가 공급한다.
직접 고치지 말고 watch/watchface/gen_watchface.py 를 고친 뒤 다시 만든다: python3 gen_watchface.py src/main/res/raw/watchface.xml --> 직접 고치지 말고 watch/watchface/gen_watchface.py 를 고친 뒤 다시 만든다: python3 gen_watchface.py src/main/res/raw/watchface.xml -->
<WatchFace width="{W}" height="{W}"> <WatchFace width="{W}" height="{W}">
<Metadata key="CLOCK_TYPE" value="DIGITAL"/> <Metadata key="CLOCK_TYPE" value="DIGITAL"/>
@@ -237,6 +257,7 @@ xml = f'''<?xml version="1.0" encoding="UTF-8"?>
{clock("#FFFFFFFF", ambient_visible=True)} {clock("#FFFFFFFF", ambient_visible=True)}
{orb_slot()} {orb_slot()}
{"".join(ring_slot(i, a) for i, a in enumerate(ANGLES))} {"".join(ring_slot(i, a) for i, a in enumerate(ANGLES))}
{event_slot()}
</Scene> </Scene>
</WatchFace> </WatchFace>
''' '''
+45 -32
View File
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<!-- 날씨각 워치 스킨: 시간대 하늘, 해 구슬(1위), 둘레 링(2~7위), 아래 기온·비 칩. 링을 누르면 앱이 그 각 상세로 열린다. 점수는 날씨각 앱의 RankNComplicationService 가 공급한다. <!-- 날씨각 워치 스킨: 시간대 하늘, 해 구슬(1위), 둘레 링(2~7위), 날짜 밑 근처 축제 한 줄, 아래 기온·비 칩. 링을 누르면 앱이 그 각 상세로 열린다. 점수는 날씨각 앱의 RankNComplicationService 가 공급한다.
직접 고치지 말고 watch/watchface/gen_watchface.py 를 고친 뒤 다시 만든다: python3 gen_watchface.py src/main/res/raw/watchface.xml --> 직접 고치지 말고 watch/watchface/gen_watchface.py 를 고친 뒤 다시 만든다: python3 gen_watchface.py src/main/res/raw/watchface.xml -->
<WatchFace width="450" height="450"> <WatchFace width="450" height="450">
<Metadata key="CLOCK_TYPE" value="DIGITAL"/> <Metadata key="CLOCK_TYPE" value="DIGITAL"/>
@@ -371,20 +371,20 @@
</PartDraw> </PartDraw>
</Compare> </Compare>
</Condition> </Condition>
<PartDraw x="108" y="364" width="104" height="40"><Variant mode="AMBIENT" target="alpha" value="0"/> <PartDraw x="108" y="366" width="104" height="40"><Variant mode="AMBIENT" target="alpha" value="0"/>
<RoundRectangle x="0" y="0" width="104" height="40" cornerRadiusX="20" cornerRadiusY="20"><Fill color="#B8FFFFFF"/></RoundRectangle> <RoundRectangle x="0" y="0" width="104" height="40" cornerRadiusX="20" cornerRadiusY="20"><Fill color="#B8FFFFFF"/></RoundRectangle>
<RoundRectangle x="0" y="35" width="104" height="5" cornerRadiusX="2" cornerRadiusY="2"><Fill color="#E6D9E5F4"/></RoundRectangle> <RoundRectangle x="0" y="35" width="104" height="5" cornerRadiusX="2" cornerRadiusY="2"><Fill color="#E6D9E5F4"/></RoundRectangle>
</PartDraw> </PartDraw>
<PartImage x="116" y="370" width="26" height="26"><Variant mode="AMBIENT" target="alpha" value="0"/><Image resource="e_thermo"/></PartImage> <PartImage x="116" y="372" width="26" height="26"><Variant mode="AMBIENT" target="alpha" value="0"/><Image resource="e_thermo"/></PartImage>
<PartText x="140" y="369" width="66" height="30"><Variant mode="AMBIENT" target="alpha" value="0"/> <PartText x="140" y="371" width="66" height="30"><Variant mode="AMBIENT" target="alpha" value="0"/>
<Text align="CENTER" ellipsis="TRUE"><Font family="jua" size="21" color="#FF28304A"><Template><![CDATA[%s]]><Parameter expression="[COMPLICATION.TEXT]"/></Template></Font></Text> <Text align="CENTER" ellipsis="TRUE"><Font family="jua" size="21" color="#FF28304A"><Template><![CDATA[%s]]><Parameter expression="[COMPLICATION.TEXT]"/></Template></Font></Text>
</PartText> </PartText>
<PartDraw x="220" y="364" width="122" height="40"><Variant mode="AMBIENT" target="alpha" value="0"/> <PartDraw x="220" y="366" width="122" height="40"><Variant mode="AMBIENT" target="alpha" value="0"/>
<RoundRectangle x="0" y="0" width="122" height="40" cornerRadiusX="20" cornerRadiusY="20"><Fill color="#B8FFFFFF"/></RoundRectangle> <RoundRectangle x="0" y="0" width="122" height="40" cornerRadiusX="20" cornerRadiusY="20"><Fill color="#B8FFFFFF"/></RoundRectangle>
<RoundRectangle x="0" y="35" width="122" height="5" cornerRadiusX="2" cornerRadiusY="2"><Fill color="#E6D9E5F4"/></RoundRectangle> <RoundRectangle x="0" y="35" width="122" height="5" cornerRadiusX="2" cornerRadiusY="2"><Fill color="#E6D9E5F4"/></RoundRectangle>
</PartDraw> </PartDraw>
<PartImage x="228" y="370" width="26" height="26"><Variant mode="AMBIENT" target="alpha" value="0"/><Image resource="e_umbrella"/></PartImage> <PartImage x="228" y="372" width="26" height="26"><Variant mode="AMBIENT" target="alpha" value="0"/><Image resource="e_umbrella"/></PartImage>
<PartText x="252" y="369" width="84" height="30"><Variant mode="AMBIENT" target="alpha" value="0"/> <PartText x="252" y="371" width="84" height="30"><Variant mode="AMBIENT" target="alpha" value="0"/>
<Text align="CENTER" ellipsis="TRUE"><Font family="jua" size="21" color="#FF28304A"><Template><![CDATA[%s]]><Parameter expression="[COMPLICATION.TITLE]"/></Template></Font></Text> <Text align="CENTER" ellipsis="TRUE"><Font family="jua" size="21" color="#FF28304A"><Template><![CDATA[%s]]><Parameter expression="[COMPLICATION.TITLE]"/></Template></Font></Text>
</PartText> </PartText>
</Complication> </Complication>
@@ -393,18 +393,18 @@
<!-- 해 구슬은 비 막 위에 (밤엔 달빛) --> <!-- 해 구슬은 비 막 위에 (밤엔 달빛) -->
<Condition> <Condition>
<Expressions><Expression name="night"><![CDATA[[HOUR_0_23] < 5 || [HOUR_0_23] >= 21]]></Expression></Expressions> <Expressions><Expression name="night"><![CDATA[[HOUR_0_23] < 5 || [HOUR_0_23] >= 21]]></Expression></Expressions>
<Compare expression="night"><PartDraw x="144" y="154" width="162" height="162"><Variant mode="AMBIENT" target="alpha" value="0"/> <Compare expression="night"><PartDraw x="157" y="184" width="136" height="136"><Variant mode="AMBIENT" target="alpha" value="0"/>
<Ellipse x="0" y="0" width="162" height="162"><Fill color="#FFFF8E4E"><RadialGradient centerX="55" centerY="48" radius="155" colors="#FFFFFFFF #FFD9D3FF #FFA99FEA #FF7F75CC" positions="0 0.3 0.68 1"/></Fill></Ellipse> <Ellipse x="0" y="0" width="136" height="136"><Fill color="#FFFF8E4E"><RadialGradient centerX="46" centerY="40" radius="130" colors="#FFFFFFFF #FFD9D3FF #FFA99FEA #FF7F75CC" positions="0 0.3 0.68 1"/></Fill></Ellipse>
<Ellipse x="0" y="0" width="162" height="162"><Fill color="#00000000"><LinearGradient startX="72" startY="72" endX="162" endY="162" colors="#00AA3214 #57AA3214" positions="0 1"/></Fill></Ellipse> <Ellipse x="0" y="0" width="136" height="136"><Fill color="#00000000"><LinearGradient startX="61" startY="61" endX="136" endY="136" colors="#00AA3214 #57AA3214" positions="0 1"/></Fill></Ellipse>
</PartDraw></Compare> </PartDraw></Compare>
<Default><PartDraw x="113" y="123" width="225" height="225"><Variant mode="AMBIENT" target="alpha" value="0"/> <Default><PartDraw x="131" y="158" width="188" height="188"><Variant mode="AMBIENT" target="alpha" value="0"/>
<Line startX="202.5" startY="112.5" endX="216.4" endY="112.5"><Stroke thickness="9.9" color="#FFFFB347" cap="ROUND"/></Line><Line startX="190.4" startY="157.5" endX="202.5" endY="164.5"><Stroke thickness="9.9" color="#FFFFB347" cap="ROUND"/></Line><Line startX="157.5" startY="190.4" endX="164.5" endY="202.5"><Stroke thickness="9.9" color="#FFFFB347" cap="ROUND"/></Line><Line startX="112.5" startY="202.5" endX="112.5" endY="216.4"><Stroke thickness="9.9" color="#FFFFB347" cap="ROUND"/></Line><Line startX="67.5" startY="190.4" endX="60.5" endY="202.5"><Stroke thickness="9.9" color="#FFFFB347" cap="ROUND"/></Line><Line startX="34.6" startY="157.5" endX="22.5" endY="164.5"><Stroke thickness="9.9" color="#FFFFB347" cap="ROUND"/></Line><Line startX="22.5" startY="112.5" endX="8.5" endY="112.5"><Stroke thickness="9.9" color="#FFFFB347" cap="ROUND"/></Line><Line startX="34.6" startY="67.5" endX="22.5" endY="60.5"><Stroke thickness="9.9" color="#FFFFB347" cap="ROUND"/></Line><Line startX="67.5" startY="34.6" endX="60.5" endY="22.5"><Stroke thickness="9.9" color="#FFFFB347" cap="ROUND"/></Line><Line startX="112.5" startY="22.5" endX="112.5" endY="8.5"><Stroke thickness="9.9" color="#FFFFB347" cap="ROUND"/></Line><Line startX="157.5" startY="34.6" endX="164.5" endY="22.5"><Stroke thickness="9.9" color="#FFFFB347" cap="ROUND"/></Line><Line startX="190.4" startY="67.5" endX="202.5" endY="60.5"><Stroke thickness="9.9" color="#FFFFB347" cap="ROUND"/></Line> <Line startX="169.2" startY="94.0" endX="180.9" endY="94.0"><Stroke thickness="8.3" color="#FFFFB347" cap="ROUND"/></Line><Line startX="159.1" startY="131.6" endX="169.2" endY="137.4"><Stroke thickness="8.3" color="#FFFFB347" cap="ROUND"/></Line><Line startX="131.6" startY="159.1" endX="137.4" endY="169.2"><Stroke thickness="8.3" color="#FFFFB347" cap="ROUND"/></Line><Line startX="94.0" startY="169.2" endX="94.0" endY="180.9"><Stroke thickness="8.3" color="#FFFFB347" cap="ROUND"/></Line><Line startX="56.4" startY="159.1" endX="50.6" endY="169.2"><Stroke thickness="8.3" color="#FFFFB347" cap="ROUND"/></Line><Line startX="28.9" startY="131.6" endX="18.8" endY="137.4"><Stroke thickness="8.3" color="#FFFFB347" cap="ROUND"/></Line><Line startX="18.8" startY="94.0" endX="7.1" endY="94.0"><Stroke thickness="8.3" color="#FFFFB347" cap="ROUND"/></Line><Line startX="28.9" startY="56.4" endX="18.8" endY="50.6"><Stroke thickness="8.3" color="#FFFFB347" cap="ROUND"/></Line><Line startX="56.4" startY="28.9" endX="50.6" endY="18.8"><Stroke thickness="8.3" color="#FFFFB347" cap="ROUND"/></Line><Line startX="94.0" startY="18.8" endX="94.0" endY="7.1"><Stroke thickness="8.3" color="#FFFFB347" cap="ROUND"/></Line><Line startX="131.6" startY="28.9" endX="137.4" endY="18.8"><Stroke thickness="8.3" color="#FFFFB347" cap="ROUND"/></Line><Line startX="159.1" startY="56.4" endX="169.2" endY="50.6"><Stroke thickness="8.3" color="#FFFFB347" cap="ROUND"/></Line>
<Transform target="angle" value="360 * fract([SECOND_MILLISECOND] / 60)"/> <Transform target="angle" value="360 * fract([SECOND_MILLISECOND] / 60)"/>
</PartDraw><PartDraw x="144" y="154" width="162" height="162"><Variant mode="AMBIENT" target="alpha" value="0"/> </PartDraw><PartDraw x="157" y="184" width="136" height="136"><Variant mode="AMBIENT" target="alpha" value="0"/>
<Ellipse x="0" y="0" width="162" height="162"><Fill color="#FFFF8E4E"><RadialGradient centerX="55" centerY="48" radius="155" colors="#FFFFF5CF #FFFFC86E #FFFF8E4E #FFEE6436" positions="0 0.3 0.68 1"/></Fill></Ellipse> <Ellipse x="0" y="0" width="136" height="136"><Fill color="#FFFF8E4E"><RadialGradient centerX="46" centerY="40" radius="130" colors="#FFFFF5CF #FFFFC86E #FFFF8E4E #FFEE6436" positions="0 0.3 0.68 1"/></Fill></Ellipse>
<Ellipse x="0" y="0" width="162" height="162"><Fill color="#00000000"><LinearGradient startX="72" startY="72" endX="162" endY="162" colors="#00AA3214 #57AA3214" positions="0 1"/></Fill></Ellipse> <Ellipse x="0" y="0" width="136" height="136"><Fill color="#00000000"><LinearGradient startX="61" startY="61" endX="136" endY="136" colors="#00AA3214 #57AA3214" positions="0 1"/></Fill></Ellipse>
<Ellipse x="19" y="100" width="25" height="14"><Fill color="#73FF7A8A"/></Ellipse><Ellipse x="116" y="100" width="25" height="14"><Fill color="#73FF7A8A"/></Ellipse> <Ellipse x="16" y="84" width="21" height="12"><Fill color="#73FF7A8A"/></Ellipse><Ellipse x="97" y="84" width="21" height="12"><Fill color="#73FF7A8A"/></Ellipse>
</PartDraw></Default> </PartDraw></Default>
</Condition> </Condition>
<DigitalClock x="0" y="18" width="450" height="84"> <DigitalClock x="0" y="18" width="450" height="84">
@@ -412,26 +412,26 @@
<Font family="bagel_fat_one" size="68" color="#FFFFFFFF"/> <Font family="bagel_fat_one" size="68" color="#FFFFFFFF"/>
</TimeText> </TimeText>
</DigitalClock> </DigitalClock>
<ComplicationSlot slotId="0" x="144" y="154" width="162" height="162" displayName="slot_rank1" supportedTypes="RANGED_VALUE SHORT_TEXT EMPTY" isCustomizable="TRUE"> <ComplicationSlot slotId="0" x="157" y="184" width="136" height="136" displayName="slot_rank1" supportedTypes="RANGED_VALUE SHORT_TEXT EMPTY" isCustomizable="TRUE">
<DefaultProviderPolicy defaultSystemProvider="EMPTY" defaultSystemProviderType="EMPTY" primaryProvider="kr.o2o.nalssigak/kr.o2o.nalssigak.Rank1ComplicationService" primaryProviderType="RANGED_VALUE"/> <DefaultProviderPolicy defaultSystemProvider="EMPTY" defaultSystemProviderType="EMPTY" primaryProvider="kr.o2o.nalssigak/kr.o2o.nalssigak.Rank1ComplicationService" primaryProviderType="RANGED_VALUE"/>
<BoundingOval x="0" y="0" width="162" height="162"/> <BoundingOval x="0" y="0" width="136" height="136"/>
<Complication type="RANGED_VALUE"> <Complication type="RANGED_VALUE">
<PartText x="0" y="30" width="162" height="74"> <PartText x="0" y="25" width="136" height="61">
<Text align="CENTER" ellipsis="TRUE"><Font family="bagel_fat_one" size="58" color="#FFFFFFFF"><Template><![CDATA[%s]]><Parameter expression="[COMPLICATION.TEXT]"/></Template></Font></Text> <Text align="CENTER" ellipsis="TRUE"><Font family="bagel_fat_one" size="50" color="#FFFFFFFF"><Template><![CDATA[%s]]><Parameter expression="[COMPLICATION.TEXT]"/></Template></Font></Text>
</PartText><PartText x="14" y="100" width="134" height="30"> </PartText><PartText x="14" y="84" width="108" height="28">
<Text align="CENTER" ellipsis="TRUE"><Font family="jua" size="21" color="#FFFFFFFF"><Template><![CDATA[%s]]><Parameter expression="[COMPLICATION.TITLE]"/></Template></Font></Text> <Text align="CENTER" ellipsis="TRUE"><Font family="jua" size="19" color="#FFFFFFFF"><Template><![CDATA[%s]]><Parameter expression="[COMPLICATION.TITLE]"/></Template></Font></Text>
</PartText> </PartText>
</Complication> </Complication>
<Complication type="SHORT_TEXT"> <Complication type="SHORT_TEXT">
<PartText x="0" y="30" width="162" height="74"> <PartText x="0" y="25" width="136" height="61">
<Text align="CENTER" ellipsis="TRUE"><Font family="bagel_fat_one" size="58" color="#FFFFFFFF"><Template><![CDATA[%s]]><Parameter expression="[COMPLICATION.TEXT]"/></Template></Font></Text> <Text align="CENTER" ellipsis="TRUE"><Font family="bagel_fat_one" size="50" color="#FFFFFFFF"><Template><![CDATA[%s]]><Parameter expression="[COMPLICATION.TEXT]"/></Template></Font></Text>
</PartText><PartText x="14" y="100" width="134" height="30"> </PartText><PartText x="14" y="84" width="108" height="28">
<Text align="CENTER" ellipsis="TRUE"><Font family="jua" size="21" color="#FFFFFFFF"><Template><![CDATA[%s]]><Parameter expression="[COMPLICATION.TITLE]"/></Template></Font></Text> <Text align="CENTER" ellipsis="TRUE"><Font family="jua" size="19" color="#FFFFFFFF"><Template><![CDATA[%s]]><Parameter expression="[COMPLICATION.TITLE]"/></Template></Font></Text>
</PartText> </PartText>
</Complication> </Complication>
<Complication type="EMPTY"/> <Complication type="EMPTY"/>
</ComplicationSlot> </ComplicationSlot>
<ComplicationSlot slotId="1" x="62" y="127" width="68" height="68" displayName="slot_ring" supportedTypes="RANGED_VALUE SHORT_TEXT EMPTY" isCustomizable="TRUE"> <ComplicationSlot slotId="1" x="71" y="149" width="68" height="68" displayName="slot_ring" supportedTypes="RANGED_VALUE SHORT_TEXT EMPTY" isCustomizable="TRUE">
<DefaultProviderPolicy defaultSystemProvider="EMPTY" defaultSystemProviderType="EMPTY" primaryProvider="kr.o2o.nalssigak/kr.o2o.nalssigak.Rank2ComplicationService" primaryProviderType="RANGED_VALUE"/> <DefaultProviderPolicy defaultSystemProvider="EMPTY" defaultSystemProviderType="EMPTY" primaryProvider="kr.o2o.nalssigak/kr.o2o.nalssigak.Rank2ComplicationService" primaryProviderType="RANGED_VALUE"/>
<BoundingOval x="0" y="0" width="68" height="68"/> <BoundingOval x="0" y="0" width="68" height="68"/>
<Complication type="RANGED_VALUE"> <Complication type="RANGED_VALUE">
@@ -458,7 +458,7 @@
</PartText> </PartText>
</Complication> </Complication>
<Complication type="EMPTY"/> <Complication type="EMPTY"/>
</ComplicationSlot><ComplicationSlot slotId="2" x="319" y="126" width="68" height="68" displayName="slot_ring" supportedTypes="RANGED_VALUE SHORT_TEXT EMPTY" isCustomizable="TRUE"> </ComplicationSlot><ComplicationSlot slotId="2" x="310" y="148" width="68" height="68" displayName="slot_ring" supportedTypes="RANGED_VALUE SHORT_TEXT EMPTY" isCustomizable="TRUE">
<DefaultProviderPolicy defaultSystemProvider="EMPTY" defaultSystemProviderType="EMPTY" primaryProvider="kr.o2o.nalssigak/kr.o2o.nalssigak.Rank3ComplicationService" primaryProviderType="RANGED_VALUE"/> <DefaultProviderPolicy defaultSystemProvider="EMPTY" defaultSystemProviderType="EMPTY" primaryProvider="kr.o2o.nalssigak/kr.o2o.nalssigak.Rank3ComplicationService" primaryProviderType="RANGED_VALUE"/>
<BoundingOval x="0" y="0" width="68" height="68"/> <BoundingOval x="0" y="0" width="68" height="68"/>
<Complication type="RANGED_VALUE"> <Complication type="RANGED_VALUE">
@@ -485,7 +485,7 @@
</PartText> </PartText>
</Complication> </Complication>
<Complication type="EMPTY"/> <Complication type="EMPTY"/>
</ComplicationSlot><ComplicationSlot slotId="3" x="62" y="275" width="68" height="68" displayName="slot_ring" supportedTypes="RANGED_VALUE SHORT_TEXT EMPTY" isCustomizable="TRUE"> </ComplicationSlot><ComplicationSlot slotId="3" x="71" y="287" width="68" height="68" displayName="slot_ring" supportedTypes="RANGED_VALUE SHORT_TEXT EMPTY" isCustomizable="TRUE">
<DefaultProviderPolicy defaultSystemProvider="EMPTY" defaultSystemProviderType="EMPTY" primaryProvider="kr.o2o.nalssigak/kr.o2o.nalssigak.Rank4ComplicationService" primaryProviderType="RANGED_VALUE"/> <DefaultProviderPolicy defaultSystemProvider="EMPTY" defaultSystemProviderType="EMPTY" primaryProvider="kr.o2o.nalssigak/kr.o2o.nalssigak.Rank4ComplicationService" primaryProviderType="RANGED_VALUE"/>
<BoundingOval x="0" y="0" width="68" height="68"/> <BoundingOval x="0" y="0" width="68" height="68"/>
<Complication type="RANGED_VALUE"> <Complication type="RANGED_VALUE">
@@ -512,7 +512,7 @@
</PartText> </PartText>
</Complication> </Complication>
<Complication type="EMPTY"/> <Complication type="EMPTY"/>
</ComplicationSlot><ComplicationSlot slotId="4" x="319" y="275" width="68" height="68" displayName="slot_ring" supportedTypes="RANGED_VALUE SHORT_TEXT EMPTY" isCustomizable="TRUE"> </ComplicationSlot><ComplicationSlot slotId="4" x="310" y="287" width="68" height="68" displayName="slot_ring" supportedTypes="RANGED_VALUE SHORT_TEXT EMPTY" isCustomizable="TRUE">
<DefaultProviderPolicy defaultSystemProvider="EMPTY" defaultSystemProviderType="EMPTY" primaryProvider="kr.o2o.nalssigak/kr.o2o.nalssigak.Rank5ComplicationService" primaryProviderType="RANGED_VALUE"/> <DefaultProviderPolicy defaultSystemProvider="EMPTY" defaultSystemProviderType="EMPTY" primaryProvider="kr.o2o.nalssigak/kr.o2o.nalssigak.Rank5ComplicationService" primaryProviderType="RANGED_VALUE"/>
<BoundingOval x="0" y="0" width="68" height="68"/> <BoundingOval x="0" y="0" width="68" height="68"/>
<Complication type="RANGED_VALUE"> <Complication type="RANGED_VALUE">
@@ -539,7 +539,7 @@
</PartText> </PartText>
</Complication> </Complication>
<Complication type="EMPTY"/> <Complication type="EMPTY"/>
</ComplicationSlot><ComplicationSlot slotId="5" x="43" y="201" width="68" height="68" displayName="slot_ring" supportedTypes="RANGED_VALUE SHORT_TEXT EMPTY" isCustomizable="TRUE"> </ComplicationSlot><ComplicationSlot slotId="5" x="53" y="218" width="68" height="68" displayName="slot_ring" supportedTypes="RANGED_VALUE SHORT_TEXT EMPTY" isCustomizable="TRUE">
<DefaultProviderPolicy defaultSystemProvider="EMPTY" defaultSystemProviderType="EMPTY" primaryProvider="kr.o2o.nalssigak/kr.o2o.nalssigak.Rank6ComplicationService" primaryProviderType="RANGED_VALUE"/> <DefaultProviderPolicy defaultSystemProvider="EMPTY" defaultSystemProviderType="EMPTY" primaryProvider="kr.o2o.nalssigak/kr.o2o.nalssigak.Rank6ComplicationService" primaryProviderType="RANGED_VALUE"/>
<BoundingOval x="0" y="0" width="68" height="68"/> <BoundingOval x="0" y="0" width="68" height="68"/>
<Complication type="RANGED_VALUE"> <Complication type="RANGED_VALUE">
@@ -566,7 +566,7 @@
</PartText> </PartText>
</Complication> </Complication>
<Complication type="EMPTY"/> <Complication type="EMPTY"/>
</ComplicationSlot><ComplicationSlot slotId="6" x="339" y="201" width="68" height="68" displayName="slot_ring" supportedTypes="RANGED_VALUE SHORT_TEXT EMPTY" isCustomizable="TRUE"> </ComplicationSlot><ComplicationSlot slotId="6" x="329" y="218" width="68" height="68" displayName="slot_ring" supportedTypes="RANGED_VALUE SHORT_TEXT EMPTY" isCustomizable="TRUE">
<DefaultProviderPolicy defaultSystemProvider="EMPTY" defaultSystemProviderType="EMPTY" primaryProvider="kr.o2o.nalssigak/kr.o2o.nalssigak.Rank7ComplicationService" primaryProviderType="RANGED_VALUE"/> <DefaultProviderPolicy defaultSystemProvider="EMPTY" defaultSystemProviderType="EMPTY" primaryProvider="kr.o2o.nalssigak/kr.o2o.nalssigak.Rank7ComplicationService" primaryProviderType="RANGED_VALUE"/>
<BoundingOval x="0" y="0" width="68" height="68"/> <BoundingOval x="0" y="0" width="68" height="68"/>
<Complication type="RANGED_VALUE"> <Complication type="RANGED_VALUE">
@@ -594,5 +594,18 @@
</Complication> </Complication>
<Complication type="EMPTY"/> <Complication type="EMPTY"/>
</ComplicationSlot> </ComplicationSlot>
<ComplicationSlot slotId="8" x="123" y="124" width="204" height="30" displayName="slot_event" supportedTypes="LONG_TEXT EMPTY" isCustomizable="FALSE">
<DefaultProviderPolicy defaultSystemProvider="EMPTY" defaultSystemProviderType="EMPTY" primaryProvider="kr.o2o.nalssigak/kr.o2o.nalssigak.EventComplicationService" primaryProviderType="LONG_TEXT"/>
<BoundingOval x="0" y="0" width="204" height="30"/>
<Complication type="LONG_TEXT">
<PartDraw x="0" y="0" width="204" height="30"><Variant mode="AMBIENT" target="alpha" value="0"/>
<RoundRectangle x="0" y="0" width="204" height="30" cornerRadiusX="15" cornerRadiusY="15"><Fill color="#B8FFFFFF"/></RoundRectangle>
</PartDraw>
<PartText x="8" y="2" width="188" height="26"><Variant mode="AMBIENT" target="alpha" value="0"/>
<Text align="CENTER" ellipsis="TRUE"><Font family="jua" size="17" color="#FF28304A"><Template><![CDATA[🎉 주변 축제 · %s]]><Parameter expression="[COMPLICATION.TEXT]"/></Template></Font></Text>
</PartText>
</Complication>
<Complication type="EMPTY"/>
</ComplicationSlot>
</Scene> </Scene>
</WatchFace> </WatchFace>