From a372745a81613f849f581b59a95cba1c58b6d9bf Mon Sep 17 00:00:00 2001 From: Noah Date: Wed, 29 Apr 2026 21:56:52 -0400 Subject: [PATCH 1/6] feat: new app steamsales Co-authored-by: Copilot --- apps/steamsales/manifest.yaml | 9 ++ apps/steamsales/steamsales.gif | Bin 0 -> 4669 bytes apps/steamsales/steamsales.star | 176 ++++++++++++++++++++++++++++++++ 3 files changed, 185 insertions(+) create mode 100644 apps/steamsales/manifest.yaml create mode 100644 apps/steamsales/steamsales.gif create mode 100644 apps/steamsales/steamsales.star diff --git a/apps/steamsales/manifest.yaml b/apps/steamsales/manifest.yaml new file mode 100644 index 000000000..95c9943c4 --- /dev/null +++ b/apps/steamsales/manifest.yaml @@ -0,0 +1,9 @@ +--- +id: steamsales +name: Steam Sales +summary: Displays current Steam sales +desc: Shows your steam's app sales, and wishlists +author: dinosaursrarr +fileName: steamsales.star +packageName: steamsales +recommended_interval: 5 diff --git a/apps/steamsales/steamsales.gif b/apps/steamsales/steamsales.gif new file mode 100644 index 0000000000000000000000000000000000000000..0c32543787a58b811450f43f77ecfc40f80a7044 GIT binary patch literal 4669 zcmV-D62k3ANk%w1VSoZa0RR91A^8LV1poj5EC2ui0DuBO0fGRk|NsC000030ssI50 z0000000000000C3D7xJKFv>}*y*TU5yZ>M)j$~<`XsWJk>%MR-&vb3yc&_h!@BhG{ za7Zi~kI1BQ$!t2G(5Q4uty-_xtai)odcWYXcuX#v&*-#z&2GEj@VI4bvgQ!veQ^t-+K7te^awL(GCjFpH31lV9WgK57j46{L&6*FB;WT(t;;^4ONdO%h ziv!W4Kan9#x*^I+LSE>va*c2 z%>egk+PYKC;>G%9Z(h1*)e05dcP<92e&q%o;g_$7#)=!)8Vfga+z4o+65eO{0^+@v zi)xlUc{JY8r2ldT-FC5q%!9?QbsggK>DHxVr?#cLF6z{j$^KT|05;>z*g9LV?Hl*y z-n)rG7w$ZI@UX+BKQR6nITx+8mnW{y`*`%S=5OmguYI+8z~L8gukC#c_}uW{A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-HFIC>&cqz#Ct5UpzNxK+Q+C%%J6E+hpfj5tIDywzMRajx_qp!%))y-%EG(^ zl{^ZU9L$-#%P!o?pZu^R%gjC;z`i@lHE_(Lkj&5w%fSo9c)ZPzOtQ+X!@XRtv>XK3 z917Zuw9DMhyzI>449@NBy0VPC*4)9iY{{r>&fzT0tQ^UXYksaQ&*VJJR*Sz(kj|j6 z&H)|G?%d1(-N^#|%&eNKK;``9n?ZS)I?p>Mt#&soz#y4mjD1et2vU< literal 0 HcmV?d00001 diff --git a/apps/steamsales/steamsales.star b/apps/steamsales/steamsales.star new file mode 100644 index 000000000..402af3305 --- /dev/null +++ b/apps/steamsales/steamsales.star @@ -0,0 +1,176 @@ +load("http.star", "http") +load("render.star", "render") +load("schema.star", "schema") +load("time.star", "time") + +# Your specific Game Info +DATES_URL = "https://partner.steam-api.com/IPartnerFinancialsService/GetChangedDatesForPartner/v001/" +SALES_URL = "https://partner.steam-api.com/IPartnerFinancialsService/GetDetailedSales/v001/" +WISHLIST_URL = "https://partner.steam-api.com/IPartnerFinancialsService/GetAppWishlistReporting/v001/" + +def main(config): + salesData = [] + wishlistData = [] + + today = time.now().format("2000-01-01") + + game_name = config.get("game_name", "Your Game") + api_key = config.get("api_key") + app_id = config.get("app_id") + if not api_key: + return render.Root( + child = render.Column( + expanded = True, + main_align = "space_around", + cross_align = "center", + children = [ + render.Text("set api key", color="#ffaa00", font="6x10"), + render.Row( + children = [ + render.Text("Sales: ", color="#fff"), + render.Text(str(0), color="#00ff00"), + ] + ), + render.Row( + children = [ + render.Text("Wishlists: ", color="#fff"), + render.Text(str(0), color="#00aaff"), + ] + ), + ], + ) + ) + if not app_id: + return render.Root( + child = render.Column( + expanded = True, + main_align = "space_around", + cross_align = "center", + children = [ + render.Text("set app id", color="#ffaa00", font="6x10"), + render.Row( + children = [ + render.Text("0: ", color="#fff"), + render.Text(str(sales), color="#00ff00"), + ] + ), + render.Row( + children = [ + render.Text("Wishlists: ", color="#fff"), + render.Text(str(0), color="#00aaff"), + ] + ), + ], + ) + ) + + # get total sales + # res = http.get(DATES_URL, params={"key": api_key, "highwatermark": "0"}) + # if res.status_code != 200: + # return render.Root( + # child = render.WrappedText("Error fetching Steam data 1") + # ) + + # data = res.json()["response"] + # available_dates = data["dates"] if "dates" in data else [] + # if not available_dates: + # return render.Root( + # child = render.WrappedText("No available dates for sales data") + # ) + + # for date in available_dates: + # print("Available date:", date) + + # params={ + # "key": api_key, + # "appid": app_id, + # "date": date, + # "highwatermark_id": "0", + # } + # print("sending", params) + # res = http.get(SALES_URL, params=params) + # if res.status_code == 200: + # data = res.json()["response"] + # print(data) + # for result in data["results"]: + # salesData.append(result) + + params={ + "key": api_key, + "appid": app_id, + "date": today, + "highwatermark_id": "0", + } + res = http.get(SALES_URL, params=params) + if res.status_code == 200: + data = res.json()["response"] + for result in data.get("results", []): + salesData.append(result) + + params={ + "key": api_key, + "appid": app_id, + "date": today, + } + res = http.get(WISHLIST_URL, params=params) + if res.status_code == 200: + data = res.json()["response"] + for result in data.get("results", []): + wishlistData.append(result) + + sales = 0 + wishlistAdds = 0 + for sale in salesData: + print("Sales data:", sale) + sales += sale.get("gross_units_sold", 0) + for wishlist in wishlistData: + print("Wishlist data:", wishlist) + wishlistAdds += wishlist.get("wishlist_summary", {}).get("wishlist_adds", 0) + + return render.Root( + child = render.Column( + expanded = True, + main_align = "space_around", + cross_align = "center", + children = [ + render.Text(game_name, color="#ffaa00", font="6x10"), + render.Row( + children = [ + render.Text("Sales: ", color="#fff"), + render.Text(str(sales), color="#00ff00"), + ] + ), + render.Row( + children = [ + render.Text("Wishlists: ", color="#fff"), + render.Text(str(wishlistAdds), color="#00aaff"), + ] + ), + ], + ) + ) + +def get_schema(): + return schema.Schema( + version = "1", + fields = [ + schema.Text( + id = "game_name", + name = "Game Name", + desc = "The name of your game", + icon = "gamepad", + ), + schema.Text( + id = "api_key", + name = "Steam Partner API Key", + desc = "Your IPartnerFinancialsService compatible key", + icon = "key", + ), + schema.Text( + id = "app_id", + name = "Steam App ID", + desc = "The App ID of your game on Steam", + icon = "gamepad", + ) + ], + ) \ No newline at end of file From 8e108b0bd03969bb8cd91ec8735dbdfb926b5597 Mon Sep 17 00:00:00 2001 From: Noah Date: Wed, 29 Apr 2026 21:59:26 -0400 Subject: [PATCH 2/6] update author --- apps/steamsales/manifest.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/steamsales/manifest.yaml b/apps/steamsales/manifest.yaml index 95c9943c4..1d77f8189 100644 --- a/apps/steamsales/manifest.yaml +++ b/apps/steamsales/manifest.yaml @@ -3,7 +3,7 @@ id: steamsales name: Steam Sales summary: Displays current Steam sales desc: Shows your steam's app sales, and wishlists -author: dinosaursrarr +author: noahpodgurski fileName: steamsales.star packageName: steamsales recommended_interval: 5 From d9d64c19facac9815f8de723fb2e1235f11ad78b Mon Sep 17 00:00:00 2001 From: Noah Date: Wed, 29 Apr 2026 22:02:16 -0400 Subject: [PATCH 3/6] lint fixes --- apps/steamsales/manifest.yaml | 4 +- apps/steamsales/steamsales.star | 66 ++++++++++++++++----------------- 2 files changed, 35 insertions(+), 35 deletions(-) diff --git a/apps/steamsales/manifest.yaml b/apps/steamsales/manifest.yaml index 1d77f8189..2c7f5b3c7 100644 --- a/apps/steamsales/manifest.yaml +++ b/apps/steamsales/manifest.yaml @@ -1,8 +1,8 @@ --- id: steamsales name: Steam Sales -summary: Displays current Steam sales -desc: Shows your steam's app sales, and wishlists +summary: Displays Steam sales +desc: Shows your steam's app sales, and wishlists. Requires steam api key and app id. author: noahpodgurski fileName: steamsales.star packageName: steamsales diff --git a/apps/steamsales/steamsales.star b/apps/steamsales/steamsales.star index 402af3305..30d2024a4 100644 --- a/apps/steamsales/steamsales.star +++ b/apps/steamsales/steamsales.star @@ -24,21 +24,21 @@ def main(config): main_align = "space_around", cross_align = "center", children = [ - render.Text("set api key", color="#ffaa00", font="6x10"), + render.Text("set api key", color = "#ffaa00", font = "6x10"), render.Row( children = [ - render.Text("Sales: ", color="#fff"), - render.Text(str(0), color="#00ff00"), - ] + render.Text("Sales: ", color = "#fff"), + render.Text(str(0), color = "#00ff00"), + ], ), render.Row( children = [ - render.Text("Wishlists: ", color="#fff"), - render.Text(str(0), color="#00aaff"), - ] + render.Text("Wishlists: ", color = "#fff"), + render.Text(str(0), color = "#00aaff"), + ], ), ], - ) + ), ) if not app_id: return render.Root( @@ -47,21 +47,21 @@ def main(config): main_align = "space_around", cross_align = "center", children = [ - render.Text("set app id", color="#ffaa00", font="6x10"), + render.Text("set app id", color = "#ffaa00", font = "6x10"), render.Row( children = [ - render.Text("0: ", color="#fff"), - render.Text(str(sales), color="#00ff00"), - ] + render.Text("0: ", color = "#fff"), + render.Text(str(0), color = "#00ff00"), + ], ), render.Row( children = [ - render.Text("Wishlists: ", color="#fff"), - render.Text(str(0), color="#00aaff"), - ] + render.Text("Wishlists: ", color = "#fff"), + render.Text(str(0), color = "#00aaff"), + ], ), ], - ) + ), ) # get total sales @@ -94,30 +94,30 @@ def main(config): # print(data) # for result in data["results"]: # salesData.append(result) - - params={ + + params = { "key": api_key, "appid": app_id, "date": today, "highwatermark_id": "0", } - res = http.get(SALES_URL, params=params) + res = http.get(SALES_URL, params = params) if res.status_code == 200: data = res.json()["response"] for result in data.get("results", []): salesData.append(result) - - params={ + + params = { "key": api_key, "appid": app_id, "date": today, } - res = http.get(WISHLIST_URL, params=params) + res = http.get(WISHLIST_URL, params = params) if res.status_code == 200: data = res.json()["response"] for result in data.get("results", []): wishlistData.append(result) - + sales = 0 wishlistAdds = 0 for sale in salesData: @@ -133,21 +133,21 @@ def main(config): main_align = "space_around", cross_align = "center", children = [ - render.Text(game_name, color="#ffaa00", font="6x10"), + render.Text(game_name, color = "#ffaa00", font = "6x10"), render.Row( children = [ - render.Text("Sales: ", color="#fff"), - render.Text(str(sales), color="#00ff00"), - ] + render.Text("Sales: ", color = "#fff"), + render.Text(str(sales), color = "#00ff00"), + ], ), render.Row( children = [ - render.Text("Wishlists: ", color="#fff"), - render.Text(str(wishlistAdds), color="#00aaff"), - ] + render.Text("Wishlists: ", color = "#fff"), + render.Text(str(wishlistAdds), color = "#00aaff"), + ], ), ], - ) + ), ) def get_schema(): @@ -171,6 +171,6 @@ def get_schema(): name = "Steam App ID", desc = "The App ID of your game on Steam", icon = "gamepad", - ) + ), ], - ) \ No newline at end of file + ) From dd1bc504a8c3b4b2dfc7251fc663416459080282 Mon Sep 17 00:00:00 2001 From: Noah Podgurski <42069075+noahpodgurski@users.noreply.github.com> Date: Wed, 29 Apr 2026 22:02:44 -0400 Subject: [PATCH 4/6] Update apps/steamsales/steamsales.star Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com> --- apps/steamsales/steamsales.star | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/steamsales/steamsales.star b/apps/steamsales/steamsales.star index 30d2024a4..0d039937a 100644 --- a/apps/steamsales/steamsales.star +++ b/apps/steamsales/steamsales.star @@ -12,7 +12,7 @@ def main(config): salesData = [] wishlistData = [] - today = time.now().format("2000-01-01") + today = time.now().format("2006-01-02") game_name = config.get("game_name", "Your Game") api_key = config.get("api_key") From 8663604f7af1f5ffd4cd128cc46ebbdbcbc5cbfa Mon Sep 17 00:00:00 2001 From: Noah Date: Wed, 29 Apr 2026 22:05:15 -0400 Subject: [PATCH 5/6] addr comments Co-authored-by: Copilot --- apps/steamsales/steamsales.star | 40 ++++----------------------------- 1 file changed, 4 insertions(+), 36 deletions(-) diff --git a/apps/steamsales/steamsales.star b/apps/steamsales/steamsales.star index 0d039937a..a74ff9a52 100644 --- a/apps/steamsales/steamsales.star +++ b/apps/steamsales/steamsales.star @@ -50,7 +50,7 @@ def main(config): render.Text("set app id", color = "#ffaa00", font = "6x10"), render.Row( children = [ - render.Text("0: ", color = "#fff"), + render.Text("Sales: ", color = "#fff"), render.Text(str(0), color = "#00ff00"), ], ), @@ -64,44 +64,13 @@ def main(config): ), ) - # get total sales - # res = http.get(DATES_URL, params={"key": api_key, "highwatermark": "0"}) - # if res.status_code != 200: - # return render.Root( - # child = render.WrappedText("Error fetching Steam data 1") - # ) - - # data = res.json()["response"] - # available_dates = data["dates"] if "dates" in data else [] - # if not available_dates: - # return render.Root( - # child = render.WrappedText("No available dates for sales data") - # ) - - # for date in available_dates: - # print("Available date:", date) - - # params={ - # "key": api_key, - # "appid": app_id, - # "date": date, - # "highwatermark_id": "0", - # } - # print("sending", params) - # res = http.get(SALES_URL, params=params) - # if res.status_code == 200: - # data = res.json()["response"] - # print(data) - # for result in data["results"]: - # salesData.append(result) - params = { "key": api_key, "appid": app_id, "date": today, "highwatermark_id": "0", } - res = http.get(SALES_URL, params = params) + res = http.get(SALES_URL, params = params, ttl_seconds=300) if res.status_code == 200: data = res.json()["response"] for result in data.get("results", []): @@ -112,7 +81,7 @@ def main(config): "appid": app_id, "date": today, } - res = http.get(WISHLIST_URL, params = params) + res = http.get(WISHLIST_URL, params = params, ttl_seconds=300) if res.status_code == 200: data = res.json()["response"] for result in data.get("results", []): @@ -121,10 +90,8 @@ def main(config): sales = 0 wishlistAdds = 0 for sale in salesData: - print("Sales data:", sale) sales += sale.get("gross_units_sold", 0) for wishlist in wishlistData: - print("Wishlist data:", wishlist) wishlistAdds += wishlist.get("wishlist_summary", {}).get("wishlist_adds", 0) return render.Root( @@ -165,6 +132,7 @@ def get_schema(): name = "Steam Partner API Key", desc = "Your IPartnerFinancialsService compatible key", icon = "key", + secret = True, ), schema.Text( id = "app_id", From 48399c9d5755ac6dc6fa0fb076b1f59b92e7a61a Mon Sep 17 00:00:00 2001 From: Noah Date: Wed, 29 Apr 2026 23:12:22 -0400 Subject: [PATCH 6/6] format --- apps/steamsales/steamsales.star | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/steamsales/steamsales.star b/apps/steamsales/steamsales.star index a74ff9a52..915907e8a 100644 --- a/apps/steamsales/steamsales.star +++ b/apps/steamsales/steamsales.star @@ -70,7 +70,7 @@ def main(config): "date": today, "highwatermark_id": "0", } - res = http.get(SALES_URL, params = params, ttl_seconds=300) + res = http.get(SALES_URL, params = params, ttl_seconds = 300) if res.status_code == 200: data = res.json()["response"] for result in data.get("results", []): @@ -81,7 +81,7 @@ def main(config): "appid": app_id, "date": today, } - res = http.get(WISHLIST_URL, params = params, ttl_seconds=300) + res = http.get(WISHLIST_URL, params = params, ttl_seconds = 300) if res.status_code == 200: data = res.json()["response"] for result in data.get("results", []):