نصف توثيق ميزان Decent
18 شباط 2025
1. البدء
الاستخدام الأساسي لميزان Half Decent
تشغيل وإيقاف التشغيل
لتشغيل الميزان:
لتشغيل الميزان مع تعطيل البلوتوث:
لتشغيل الميزان في وضع الإعداد (SETUP):
لإيقاف تشغيل الميزان:
الوزن والتوقيت
لإجراء التاري (TARE) (إعادة تعيين الوزن إلى الصفر)
لاستخدام المؤقت:
للوزن أثناء التوصيل عبر USB-C:
معنى الرموز
رمز البلوتوث
رمز البطارية
وضع السكون
مواضيع أجهزة أخرى
الأقدام المطاطية
زر إعادة الضبط
لمزيد من المعلومات:
ميزات مثيرة للاهتمام في ميزان Half Decent
بعض الأمور المثيرة للاهتمام حول ميزان "نصف لائق" والتي نعتقد أنها تميزه بشكل كبير عن الموازين الأخرى:
خيارات قائمة مقياس نصف اللائق (HDS)، موضحة
يشرح هذا المستند جميع نقاط القائمة في قسم "إعدادات HDS" في ميزان Half Decent Scale (HDS) الخاص بك.
كيفية الوصول إلى إعدادات HDS
تابع القراءة للاطلاع على خيارات القائمة
خيارات القائمة حتى البرنامج الثابت 3.1.14
1. التنقل والنظام
2. إعدادات الجهاز والتخصيص
3. الاتصال والبلوتوث (BLE)
4. إعدادات WiFi
ملاحظة: يتطلب إعادة تشغيل الطاقة (إيقاف/تشغيل) بعد التفعيل لبث نقطة الاتصال المحلية وعرض أيقونة WiFi.
5. الطاقة والأداء
خيارات القائمة من البرنامج الثابت 3.1.14 فصاعدًا
يستبدل الإصدار 3.1.14 قائمة الإعداد الطويلة والمسطحة بقائمة ضحلة قائمة على الفئات.
تجمع القائمة الرئيسية الإعدادات تحت:
لاحظ أنه إذا رأيت حرف O خلف أحد الإعدادات، فهذا يعني أنه في وضع إيقاف التشغيل. وإذا رأيت حرف X خلف أحد الإعدادات، فهذا يعني أنه في وضع تشغيل.
إليك الخيارات التي تحصل عليها إذا اخترت إحدى نقاط القائمة أعلاه:
الميزان
الاتصالات
العرض
الطاقة
معلومات
خروج
The Half Decent Scale (HDS) care guide
While your HDS is built to withstand the occasional splash of water that happens at a coffee bar, it remains a high-precision electronic instrument. Follow these four pillars of maintenance to ensure it keeps working and stays accurate for years to come.
1. Daily cleaning
The outer surface of the scale is made of tempered glass, meaning it is designed for quick cleanup.
2. The magnetic USB port
The charging interface is highly moisture-tolerant, but "tolerant" doesn't mean waterproof.
3. Moisture & internal integrity
The internal circuit boards (PCBs) have a protective coating, but direct liquid ingress should still be avoided.
4. Protecting the load cell
The load cell is the "brain" that measures weight. While it handles humidity well, direct saturation (soaking) can drift your calibration.
Pro Tip: Oxidation is the silent killer of electronics. A quick 5-second wipe after your morning brew session is the best way to prevent long-term damage to the magnetic charging pins.
2. الإعداد
كيفية معايرة وزن ميزان Half Decent
سيوضح لك هذا البرنامج التعليمي كيفية معايرة وزن ميزان Half Decent Scale، بحيث يصبح أكثر دقة لإعداداتك.
ستحتاج إلى وزن معاير بقيمة 50 جم أو 100 جم أو 200 جم أو 500 جم.
للدخول إلى وضع الإعداد (SETUP MODE):
لمعايرة الميزان الخاص بك:
How to use WiFi on the Half Decent Scale (HDS)
1. Enable WiFi on your Half Decent Scale
2. Connect to the Half Decent Scale with your browser
a) If you did not configure the Wi-Fi settings before, Half Decent Scale will create its own Wi-Fi network.
b) If you have previously configured the WiFi settings for HDS to connect to your existing WiFi network, check that the chain link icon (⛓️) is displayed next to the Bluetooth indicator on the scale display.
Note that if you don't manage to connect to the scale with your mobile phone, try changing it to aviation mode. Then, re-try.
3. Optional: Connect the scale to your home network
Note that you should keep the prefilled address unless the scale shows a different current IP. If it does, enter the new IP address before clicking on "Continue."
If the connection Fails: The scale keeps the previous Wi-Fi settings and attempts to reconnect to the original network. Rejoin that network and reopen the scale page.
Note that if the original network is unavailable, connect to DecentScale, using password 12345678, and open http://192.168.1.1. Enter the network name and password manually.
How to set up HDS Grind by Weight
HDS Grind by weight lets your Half Decent Scale (HDS) automatically control a grinder through a compatible Tasmota smart plug (picture on the right).
Once everything is set up, the scale can turn the grinder plug on, monitor the weight of the coffee being ground, switch the grinder off near your target dose, and prepare itself for the next dose.
This guide walks through the setup in simple steps.
What you need
Before starting, make sure you have:
The required smart-plug firmware is available from Decent Espresso's tasmota-auto-doser project.
Step 1: Set up the smart plug
Install the required firmware on your Tasmota smart plug.
Then connect the plug to the same Wi-Fi network that your HDS scale will use.
For now, keep your grinder's physical power switch OFF. You will test the system safely before allowing the grinder motor to run.
Step 2: Enable Grind by weight on the scale
On your HDS scale:
The scale identifies the plug using its MAC address. Its hostname and IP address are only stored to help find it faster later.
Step 3: Do the first test with the grinder switched off
Do not turn on the grinder's physical switch yet.
This first test confirms that the scale and smart plug are communicating correctly without actually starting the grinder.
After leaving the menu, the scale should eventually display:
Tare to arm
Now:
Only turn on the grinder's physical switch after this test works reliably.
Step 4: Choose your target dose
The default settings are:
The most important setting for normal use is Target g.
For example, if you normally want to grind 18 grams of coffee, set:
Target g = 18.0
When Grind by weight is enabled, you can open its menu from the normal weight screen by holding both buttons for about 500 ms.
Step 5: Understand the Safety setting
The grinder does not normally switch off exactly at the target weight.
Instead, the cutoff is calculated as:
Target weight − Safety weight
For example:
15.0 g target − 2.0 g safety = 13.0 g cutoff
This means the grinder is told to stop at about 13 g.
Why so early?
Because coffee grounds can continue falling into the cup for a short time after power is removed from the grinder. The earlier cutoff helps the finished dose land closer to the actual target.
You generally do not need to constantly adjust this yourself. The system can learn a better safety value from normal completed doses.
Step 6: Make your first real dose
Once the dry test is working correctly, turn on the grinder's physical switch.
For the first grind:
That completes one Grind by weight cycle.
Important — grinders with a latching physical switch:
A latching switch can stay in the ON position even after the smart plug cuts power. Move the grinder's physical switch back to OFF before returning the empty cup to the scale. Otherwise, when Grind by weight rearms and the smart plug turns on again, the grinder can start immediately.
Step 7: Prepare for the next dose
You do not normally need to press tare after every grind.
After removing the full dosing cup:
With the default settings, the cup needs to remain stable around zero for about one second before the system rearms.
Remember: when the system rearms, the smart plug can supply power again. If a latching grinder switch has been left ON, the grinder may start as soon as the plug rearms.
What the display messages mean
Here are the most useful messages to know.
WiFi wait
The scale is waiting for Wi-Fi.
Check that the scale can connect to its saved network.
Plug wait
The scale cannot currently reach the selected smart plug.
Check that the plug is powered and connected to the same network.
Tare to arm
The scale has found the plug, but the grinder is being kept safely off.
Put the empty dosing cup on the scale and press tare.
Zero wait
The scale is waiting for a stable zero reading.
Leave the empty cup alone until the reading settles.
Ready
Everything is armed and ready to grind.
The plug relay is ON.
If your grinder uses a latching physical switch, remember that leaving that switch ON can make the grinder start as soon as the system reaches this state.
Grinding
The scale has detected a normal-looking increase in coffee weight.
Let the grind continue.
Stopping
The scale has sent the OFF command and is waiting for confirmation.
Remove cup
The dose has finished.
Remove the filled dosing cup.
Await zero
The scale is waiting for the empty cup to return.
Before returning it, make sure a latching grinder switch has been moved back to OFF.
Then put the empty cup back and leave it still.
Busy
Another scale or client is already using the smart plug.
Disconnect the other client or restart the plug.
Error
Grind by weight has entered its fail-safe state.
Check the smart plug and reconnect Grind by weight.
How automatic learning works
Grind by weight can adjust its Safety value automatically.
Suppose your target is:
15.0 g
but your finished dose repeatedly ends at:
15.3 g
The system can increase the safety value for future doses so that it switches the grinder off slightly earlier.
It uses the most recent three valid recommendations when calculating the adaptive value.
It will avoid learning from unusual doses, such as when:
This helps prevent a mistake or unusual grind from affecting future doses.
If the scale will not rearm
After a dose, Grind by weight needs three things before it becomes ready again:
The default zero-hold time is 1000 ms, or one second.
If the scale still will not rearm, make sure the empty cup is actually close to zero and is sitting completely still.
Before trying to rearm, also make sure a grinder with a latching physical switch has been switched back to OFF.
If the scale says Plug wait
The selected plug cannot currently be reached.
Check:
If the plug's IP address has changed and the scale cannot find it again automatically, open the menu and run Select Plug again.
If the scale says Tare to arm
This is normally a safety feature, not a fault.
The plug connection is working, but the grinder will remain off until you perform a deliberate tare.
Place the empty dosing cup on the scale and press tare.
Automatic startup or recovery tares do not arm the grinder.
Important safety points
A few rules are worth remembering.
Always perform the first test with the grinder's physical switch off.
The scale controls power to the smart plug. It does not operate the grinder's physical switch.
>If your grinder has a latching physical switch, always return that switch to OFF after the plug stops the grinder and before returning the empty cup.
Cutting power at the smart plug does not change the position of a physical latching switch. If that switch remains ON, the grinder can start immediately when the empty cup is returned, the system rearms, and power is restored.
Also, once the display says Ready, the scale only knows that weight is being added. It cannot tell whether that weight is coffee or another object.
If you change the cup, move the setup, or place something different on the scale, tare again before grinding.
The system is also designed so that losing the active plug connection causes the plug to switch off rather than continue running.
Everyday workflow
Once everything is configured, normal operation is simple:
1. Put down the empty cup.
2. Tare if the scale asks you to.
3. Wait for Ready.
4. Start the grinder.
5. Let the scale cut power at the target.
6. Remove the filled cup.
7. If the grinder has a latching switch, move it back to OFF.
8. Empty and return the cup.
9. Wait for Ready.
10. Repeat.
The key safety habit is simple:
Grinder stops → physical switch OFF → empty cup returns.
After the initial setup, most of the networking, cutoff calculation, adaptive safety, and rearming happens automatically in the background.
3. البرامج الثابتة
ما الجديد في إصدار 1.1 من ميزان Half Decent (HDS)
لقد استمعنا إلى ملاحظات العملاء خلال مرحلة الاختبار التجريبي وكذلك إصدار v1.0 من ميزان Half Decent Scale. لذا، يجلب الإصدار v1.1 تحسينات جوهرية على جميع الجبهات.
إليك ما هو جديد في Half Decent Scale v1.1
1. تصميم جديد للغلاف الخارجي
تم إعادة تصميم الغلاف الخارجي لميزان Half Decent Scale لمعالجة العديد من مشاكل البداية التي أبلغ عنها مستخدمو كل من الإصدار التجريبي والإصدار v1.0.
2. موصل شحن معاد تصميمه
كان موصل الشحن USB السابق يسبب عدم انتظام في القياس عند توصيله بالكهرباء. كما كان سببًا محتملاً للتلف الناتج عن الماء.
ملاحظة: الكابل المغناطيسي الجديد كبير جدًا بالنسبة لصينية التنقيط المخصصة من Euan Lake ويجب عليك شراء كابل USBC المرن المباع على موقعنا الإلكتروني لهذا الغرض.
3. تصميم محسّن للوحة الدوائر الإلكترونية
تمت معالجة بعض المشكلات المتعلقة بلوحة الدوائر الإلكترونية وحلها في الإصدار v1.1 أيضًا. من بين أمور أخرى، لم يكن HDS يستشعر سعة البطارية بشكل صحيح في بعض الأحيان، ولم يعلن عن نفسه بشكل صحيح عبر USB.
4. نقش ليزري جديد
يساعد نقش ليزري جديد على الميزان الآن في التعرف بسرعة على إصدار HDS الخاص بك.
1.
يوصى باستخدام شاحن USB عالي الجودة لتقليل التداخل الوزني عند استخدام HDS أثناء توصيله بالشاحن.
2.
في السابق، ذكرنا خطأً وجود طلاء معدني لامع جديد للغلاف. يظل اللون مطابقًا للإصدار 1.0.
أداة تحديث ميزان Half Decent
ابحث عن الأداة في صفحات الدعم الخاصة بنا.
يسعى برنامج Half Decent Updater إلى تبسيط عملية تحديث البرامج الثابتة لميزان Half Decent الخاص بك.
كيفية تحديث ميزان Half Decent الخاص بك
ما تحتاجه
الخطوة 1: اختر إصدارًا
افتح صفحة المحدّث واختر الإصدار الذي تريده من القائمة المنسدلة الإصدار. إذا ظهرت قائمة منسدلة ثانية باسم نوع لوحة الدائرة المطبوعة (PCB Variant)، فتحقق من الملصق الموجود على لوحة الدائرة الكهربائية لميزانك واختر الخيار المطابق.
الخطوة 2: التنزيل
انقر على زر تنزيل. سيتم حفظ ملف على جهاز الكمبيوتر الخاص بك — تذكر مكان حفظه (عادةً في مجلد التنزيلات الخاص بك).
الخطوة 3: تحميل الملف
الخطوة 4: توصيل الميزان الخاص بك
انقر على توصيل الجهاز. سيعرض متصفحك نافذة منبثقة تطلب منك اختيار جهاز — حدد الميزان الخاص بك من القائمة وانقر على توصيل.
ملاحظة: ستظهر الإصدارات الأقدم من الموازين كالتالي:
wchusbserial
أو على نظام Windows:
COMx (حيث X هو رقم من 1 إلى 10)
أما الإصدارات الأحدث فستظهر كالتالي:
Half Decent Scale
الخطوة 5: التحديث
انقر على وميض البرنامج الثابت وانتظر. سترى شريط تقدم — لا تفصل الميزان أو تغلق الصفحة أثناء تشغيله.
عندما تظهر الرسالة "تمت عملية الوميض بنجاح!" باللون الأخضر، تكون قد انتهيت. سيعاد تشغيل الميزان تلقائيًا مع البرنامج الجديد.
هل هناك شيء لا يعمل؟
كيفية استخدام USB-C لتحديث البرامج الثابتة لميزان Half Decent
هل تبحث عن تعليمات الترقية إلى الإصدار 3.0.0؟
بينما نوصي باستخدام الواي فاي لتحديث برنامج الميزان الثابت، إلا أن هناك أوقاتًا يكون فيها استخدام USB-C أكثر ملاءمة أو ضرورة.
على سبيل المثال، إذا قمت بالترقية إلى برنامج ثابت تجريبي يحتوي على خطأ كبير، فقد يتعطل الميزان لديك ("يتحول إلى طوبة") ولا يتمكن حتى من التشغيل. تحديث البرنامج الثابت عبر USB-C سيعيد الميزان إلى الحياة.
إليك مقطع فيديو يوضح العملية بأكملها:
فيما يلي الخطوات:
4. للمطورين والصانعين
دليل المبرمجين لميزان Half Decent
* عبر البلوتوث، يجب إرسال هذه الأوامر بصيغة ثنائية (binary)
ميزة 'نبض القلب' الجديدة تحل مشكلات الاتصال مع Android 9 والإصدارات الأقدم.
الأوامر التي يمكن لـ HDS استقبالها (v2.5.8)
03 0F TARE (مع المجموع الاختباري)
(يرجى قراءة الملاحظة أعلاه بخصوص ميزة نبض القلب)
03 0A 00 إيقاف تشغيل oled
03 0A 01 تشغيل oled
(يرجى قراءة الملاحظة أعلاه بخصوص ميزة نبض القلب)
03 0A 02 إيقاف التشغيل
03 0A 03 00 الخروج من وضع الطاقة، سطوع oled عادي
03 0A 03 01 الدخول في وضع الطاقة، أدنى سطوع oled
03 0B 00 إيقاف المؤقت
03 0B 02 إعادة تعيين المؤقت
03 0B 03 بدء المؤقت
03 1A 00 المعايرة اليدوية
03 1A 01 المعايرة الذكية
03 1B تحديث OTA عبر واي فاي
03 1D 00 تعيين العينة إلى 1
03 1D 01 تعيين العينة إلى 2
03 1D 02 تعيين العينة إلى 4
03 1E 00 00 إخفاء القائمة
03 1E 00 01 إظهار القائمة
03 1E 01 00 إخفاء معلومات "حول"
03 1E 01 01 إظهار معلومات "حول"
03 1E 02 00 إخفاء معلومات التصحيح
03 1E 02 01 إظهار معلومات التصحيح
03 1F إعادة تعيين
03 20 00 تعطيل الوزن عبر USB
03 20 01 تمكين الوزن عبر USB
03 22 إرسال بيانات جهد البطارية مرة واحدة
الوزن:
data[0] = modelByte;
data[1] = 0xCE; // بايت النوع للوزن المستقر
data[2] = weightByte1;
data[3] = weightByte2;
data[4] = 0x00;
data[5] = 0x00;
data[6] = calculateXOR(data, 6); // البايت الأخير هو التحقق من XOR
حدث الزر:
data[0] = modelByte;
data[1] = 0xAA; // بايت النوع للوزن المستقر
data[2] = buttonNumber;//1 للزر O، 2 للزر ▢
data[3] = buttonShortPress;//1 للضغط القصير، 2 للضغط الطويل
// املأ الباقي ببيانات وهمية أو حقيقية حسب الحاجة
data[4] = 0x00;
data[5] = 0x00;
data[6] = calculateXOR(data, 6); // البايت الأخير هو التحقق من XOR
حدث إيقاف التشغيل:
data[0] = modelByte;
data[1] = 0x2A;
data[2] = buttonNumber;
data[3] = buttonShortPress;
data[4] = 0x00;
data[5] = 0x00;
data[6] = calculateXOR(data, 6); // البايت الأخير هو التحقق من XOR
جهد البطارية:
data[0] = modelByte;
data[1] = 0x22;
data[2] = voltageByte1;
data[3] = voltageByte2;
data[4] = 0x00;
data[5] = 0x00;
data[6] = calculateXOR(data, 6); // البايت الأخير هو التحقق من XOR
التصحيح عبر USB
يمكنك توصيل كابل USBC واستخدام برنامج مثل Serial مع إعدادات 115200,8,N,1 لمشاهدة الميزان أثناء التشغيل. هذا يجعل التصحيح سهلاً للغاية.
تقديم تطبيقات الويب لميزان Half Decent
تطبيقات ويب نصف لائقة
تضم هذه المجموعة ثلاثة تطبيقات ويب تم بناؤها باستخدام JavaScript وHTML وCSS العادية. وهي توضح وظائف متنوعة متاحة عبر تقنية Bluetooth منخفضة الطاقة للويب (Web BLE) وشبكة Wi-Fi وUSB للويب (Web USB). ستفتح هذه التطبيقات طرقًا جديدة للتفاعل مع ميزان Half Decent الخاص بك. فهي توفر أدوات قوية لمراقبة الجودة والوزن الدقيق والجرعات المبسطة مباشرة من متصفح الويب الخاص بك.
جرّب التطبيقات: عروض توضيحية حية
تعمّق في استخدام أدوات الويب لدينا. تعمل هذه الأدوات في متصفحات أجهزة الكمبيوتر المكتبية والمحمولة وعلى هواتف وأجهزة Android اللوحية. وعلى iPhone وiPad تعمل في Safari بعد تثبيت تطبيق Beacio المجاني الذي يضيف البلوتوث إلى Safari. ويمكن لأي جهاز أيضًا الاتصال عبر شبكة Wi-Fi الخاصة بالميزان.
وزن وحفظ: تطبيقك المفضل لمهام الوزن العامة. قم بقياس العناصر بدقة خلال إطار زمني محدد وقم بتصدير النتائج بسهولة للتحليل أو حفظ السجلات.
مساعد مراقبة الجودة: مثالي لضمان الاتساق. يسمح لك هذا التطبيق بوزن نفس العناصر بشكل متكرر، مما يبسط تتبع البيانات وفحوصات الجودة.
مساعد الجرعات: بسّط عملية الجرعات الخاصة بك بواجهة بديهية مصممة لتحقيق قياسات دقيقة وقابلة للتكرار.
صانع الكوكتيل : سيرشدك هذا التطبيق التفاعلي خلال جميع خطوات صنع الكوكتيلات الكلاسيكية من كتاب "PDT Cocktail Book" الشهير.
البدء: كيفية الاتصال والاستخدام
الاتصال بميزان Half Decent الخاص بك لتطبيقات الويب لدينا هو أمر بسيط. اتبع هذه الخطوات:
من الضروري التحقق من المتصفح. على الكمبيوتر أو Android، استخدم أحدث إصدار من Google Chrome (الإصدار 136 أو أحدث) أو Microsoft Edge (الإصدار 136 أو أحدث). وعلى iPhone أو iPad، ثبّت تطبيق Beacio المجاني واستخدم Safari، فعلى iOS لا يدعم الإضافات إلا Safari.
انتقل إلى أحد روابط التطبيقات المذكورة أعلاه.
ضع ميزان Half Decent الخاص بك في وضع الاقتران عبر Bluetooth.
بمجرد الاتصال، سيتحول زر "اتصال" إلى اللون الأحمر وسيتغير نصه إلى "قطع الاتصال". سترى أيضًا تحديثات الوزن المباشرة من ميزانك معروضة على الشاشة.
انقر على زر "بدء" واتبع التعليمات التي تظهر على الشاشة الخاصة بالتطبيق الذي تستخدمه.
استخدام اتصال USB-C :
تطبيقاتنا تدعم أيضًا اتصال USB-C المباشر. إذا اخترت هذه الطريقة:
استخدام اتصال Wi-Fi (يتطلب البرنامج الثابت 3.0.0) :
يستخدم ميزان Half Decent الآن شبكة Wi-Fi لميزات واتصالات إضافية.
يمكنك تمكين أو تعطيل Wi-Fi هناك وعرض تفاصيل Wi-Fi الحالية.
سيفتح HDS شبكة Wi-Fi خاصة به، تسمى "Decent Scale". وهي محمية بكلمة مرور: '12345678.'
قم بتوصيل HDS بشبكة Wi-Fi المنزلية الخاصة بك (2.4 جيجاهرتز) بالذهاب إلى صفحة hds.local وإدخال معرف Wi-Fi وكلمة المرور الخاصة بك.
أعد تشغيل الميزان لتطبيق الإعدادات الجديدة. قم بتخزين إعدادات Wi-Fi الخاصة بك بشكل صحيح وحافظ على HDS ضمن نطاق الإشارة. إذا لم تفعل ذلك، فسيعود إلى شبكة Wi-Fi الخاصة به (Decent Scale)، مما يسمح لك بتغيير الإعدادات مرة أخرى إذا لزم الأمر.
الغرض والجمهور المستهدف
تخدم تطبيقات الويب هذه هدفين رئيسيين:
هذه التطبيقات مثالية لـ:
للمطورين: الغوص التقني المتعمق
هيكل الكود والوحدات الرئيسية
تم تصميم قاعدة الكود لتكون مفهومة وقابلة للتكيف. تتميز ميزات "وزن وحفظ" و"مساعد الجرعات" بهيكل معياري، بينما يستخدم "مساعد مراقبة الجودة" هيكلًا متجانسًا، مما يقدم نظرة عامة أبسط محتملة لتفاعلات الوظائف.
وحدات JavaScript الرئيسية وأدوارها:
scale.js: يتعامل مع بروتوكول BLE، والتواصل مع ميزان Half Decent (HDS)، ووظيفة وضع الجرعات الأساسية.constants.js: يخزن رسائل 10 بايت المبرمجة مسبقًا للتواصل مع HDS وقيم العتبة المختلفة.state-machine.js: ينفذ المنطق الأساسي لـ "مساعد الجرعات" و"مساعد مراقبة الجودة" باستخدام نموذج آلة الحالة المحدودة.export.js: يدير وظيفة تصدير قراءات الوزن وبيانات التقييم كملفات CSV أو JSON.presets.js: يسمح للمستخدمين في "مساعد الجرعات" و"مساعد مراقبة الجودة" بحفظ الأوزان المستهدفة كإعدادات مسبقة، مخزنة مؤقتًا محليًا بواسطة المتصفح.ui-controller.js: يدير التحديثات والتغييرات على واجهة HTML.modules/connection : يحتوي على التطبيقات المحددة لطرق اتصال BLE وUSB.modules/reconnecting-websocket.js/ : وحدة بسيطة لمساعدتك في إعادة الاتصال بـ websocket تلقائيًا، يوصى باستخدامها إذا كانت قوة Wi-Fi غير كافية.راجع دليل المبرمج لميزان Half Decent للحصول على تفاصيل شاملة حول بروتوكولات الاتصال بالميزان.
إعداد التطوير
اتبع هذه الخطوات البسيطة للحصول على نسخة محلية وتشغيلها:
web_apps: لا يوفر GitHub تنزيلًا مباشرًا للأدلة الفرعية. استخدم أداة متخصصة لذلك. إليك خياران:web_apps على GitHub: https://github.com/decentespresso/openscale/tree/main/web_apps cd web_apps/dosing_assistant
نظرًا لأن هذه تطبيقات ويب تستخدم Web BLE، فيجب تقديمها عبر https:// أو http://localhost
يمكنك استخدام خادم NPX HTTP بسيط أو أي خادم محلي آخر تفضله.
http.server الخاص بـ NPX: npx http-server -p 8000
ثم، افتح متصفح Chrome وانتقل إلى أحد:
http://localhost:8000/weigh_save.html
http://localhost:8000/dosing_assistant.html
هذا المشروع هو مصدر مفتوح، ونحن نشجع المطورين بشدة على استكشاف قاعدة الكود والتعلم منها والمساهمة فيها.
HDS Custom Build - how to use it
We now offer a new service for Half Decent Scale, called HDS Custom Build. This lets you choose between features and approved add-ons for your scale.
The way this works is that you simply choose the features and add-ons you want on your scale. HDS Custom Build then takes care of the technical details, prepares the software, and gives you one file to install by USB. Features that are required for your choices to run are added automatically.
Note that only add-ons and features approved by us can be added. Community-created contributions first have to go through a review process before they're approved. Also, you need to be on firmware 3.1.14. to be able to use this feature.
Here's how to get started:
Step 1: Go to the HDS Custom Build page
You can find the HDS Custom Build page here: https://decentespresso.github.io/openscale/custom-build
Step 2: Choose your firmware version
HDS Custom Build was introduced starting at firmware version 3.1.14. But if you have an older firmware version, don't worry. Just choose the firmware version you want in the dropdown, and your scale will be upgraded to it once you install the features and add-ons you want.
Step 3: Choose how to upgrade
You can either upgrade using WiFi or USB-C. Choose which option you prefer. To learn how to enable WiFi on your scale, read this document. For USBC, read this document.
Step 4: Choose the features you want
Scroll down a little now and choose from the available features those that you want to run on your scale. For example, you can add WiFi, Energy Saving features or wireless updates to your scale. Just hover over the "i" on the right-hand side of the feature titles to see a description of what the feature does.
Step 5: Choose from the available plugins
Scroll down to the bottom, and you'll find a list of plugins that you can select for use on your Half Decent Scale. Again, just hover over the "i" to see a description of what they do.
Note that some plugins cannot be used together. For example, Pressensor and Grind by Weight don't work together. Also, choosing a plugin will automatically put checkmarks into all the features that are needed to run it. So don't be surprised if by choosing Grind by Weight, WiFi and other features are also suddenly checkmarked.
In other words, the service automatically checks if the plugins and features you want to use work together.
Step 6: Reuse or prepare
If someone else used the same combination of features and plugins you chose before, you can now simply download the .zip file.
If you're the first to use this combination, click "Request build" on the right-hand side now. HDS Custom Build will then prepare a new .zip file for download.
Step 7: Save the build (WiFi-only)
Now, if you chose WiFi, click on "Save build." If you chose USB, go to step 9.
Step 8: Add your scale (WiFi-only)
If you selected to download the build via WiFi, you now need to pair your scale to the website. In order to do so:
Step 9: Download and install
Via USB Updater
You can now simply download the .zip file and use HDS Updater to install it by USB.
Via WiFi
Now that you paired your scale to the website, you can choose the build below, select your scale and click "assign to selected." That will assign the chosen build to your selected scale.
Now, on your scale, go into the menu again. Select Connections > Custom Build. Now, the scale will check for updates. Hold ▢ to update and wait for the update to finish.
Note that if you update the firmware using another updating option, your custom build will be erased and you'll have to simply re-install it. You can use the same build that you downloaded before. If you changed your firmware version (be it downgrade or upgrade), you'll have to re-create the build using HDS Custom Build and use the new file.
ملفات STL و CAD لميزان Half Decent
فيما يلي ملفات STL CAD لميزان Half Decent. باستخدامها، يمكنك طباعة أجزاء العلبة الخاصة بك.
5. المزيد عن الميزان
منشورات المدونة:
#decentscale #toc #manual #overview










































