Amazfit运动追踪器和表盘资源生成
Amazfit activity tracker and watch face asset generation

原始链接: https://blog.gingerbeardman.com/2025/04/11/amazfit-activity-tracker-and-watch-face-asset-generation/

我最近买了一款经济实惠的Amazfit Band 7,用来追踪心率和睡眠模式。它令人印象深刻的18天电池续航和基于Javascript的表盘功能激发了我创建自定义表盘的兴趣。 由于导出每个数字和符号的单个图像的过程非常繁琐,我开发了一个基于网络的工具,网址是gingerbeardman.com/amazfit/。该工具允许用户自定义字体、大小、颜色和对齐方式,然后只需单击一下即可下载所有图像,这些图像已针对表盘开发进行了优化。 我的第一个作品名为DIN,它使用了Datto和Charles Nix提供的免费字体D-DIN Condensed Bold。我生成了不同尺寸的数字和符号图像,并使用了两种颜色。虽然文本在某些显示器上可能看起来较暗,但在Amazfit Band 7的OLED屏幕上清晰可见。该工具并非特定于Amazfit,可以用于任何图像生成需求。您可以通过iOS或Android上的AmazFaces应用程序安装以此方式创建的表盘。

Hacker News 最新 | 过去 | 评论 | 提问 | 展示 | 招聘 | 提交 登录 Amazfit 活动追踪器和表盘素材生成 (gingerbeardman.com) 9 分 msephton 1小时前 | 隐藏 | 过去 | 收藏 | 讨论 加入我们,参加 6 月 16-17 日在旧金山举办的 AI 初创公司学校! 指南 | 常见问题 | 列表 | API | 安全 | 法律 | 申请 YC | 联系我们 搜索:

原文

I recently wanted to track my heart rate and sleeping patterns, but do not want an Apple Watch. So I ended up buying a cheap Amazfit Band 7 from Decathlon sports store. The one I bought was reduced because of a damaged box—I love a good bargain!

It’s a cool little thing and goes for an unbelievable 18 days on a single charge with default settings. Since I bought it I’ve had to charge it once! Even more amazing is that this little thing runs apps and watch faces powered by JavaScript, has an OLED screen, senses heart rate, step count, blood oxygen, sleep patterns, and lots more features I’ll never use. And it still gets multiple weeks on a single charge! The app it comes with is fairly low-nag if you don’t want to buy into the ecosystem.

Anyway, I found some nice watch faces but if anything they were all a little bit busy for me. Ideally I’d make my own but it seemed like a lot of work—I would need to create images for every digit at every size as well as any other things I want on the face—so I put it on the rainy day list.


OK, Computer

Today it isn’t raining but I do have some time on my hands, which is the next best thing. I didn’t want to spend time in Figma exporting images over and over again. I get cold shivers thinking about slicing images in Fireworks. So I wondered if I could create a tool that would make light work of generating the images I need from a font of my choosing.

It was pretty straightforward and I ended up with what you see below, where you can customise: font, size, color, alignment, filename prefix, and required characters/phrases/symbols. And then you can download all the images in one click! NICE.

I do my best to adhere to the specs required by the most common watch face building tools, and in almost all cases I’ve been able to use the images exactly as they come out of the tool. There is some extraneous padding, which means you have to use quite large negative spacing (equivalent to kerning) but it all works well in practice.

There’s nothing that ties the assets being generated to the Amazfit Band 7, so feel free to use the tool for other purposes if you want to just generate some digits, text, or symbols as images.

The web app tool is at gingerbeardman.com/amazfit/ if you want to try it out.

IMG


Here’s one I made earlier

This is the first face I created using the tool: DIN. I’m generating images of numbers, and a few other things, in a few different sizes and two colours. The darker text might look too dark on your display, but on the OLED display of the device it’s plenty bright enough for secondary information. I used a Windows tool to lay things out and generate the package, and installed it locally in developer mode on my device. You can install the watch face using the AmazFaces app on iOS or Android.

IMG

The typeface is D-DIN Condensed Bold—a cool cut of DIN and it’s free and released under SIL Open Font License. Thanks very much to Datto and to the type designer, Charles Nix at Monotype!

联系我们 contact @ memedata.com