Czy wolisz polską wersję strony elektroda?
Nie, dziękuję Przekieruj mnie tamp.kaczmarek2 wrote:But one thing still confuses me - if the problem was caused by "build2" finishing too late, then why sometimes also other assets were not present?
max4elektroda wrote:I'm not sure, if my "fix" really is a fix
merge:
runs-on: ubuntu-20.04
needs: [refs, build, build2]
steps:
- name: Merge Artifacts
uses: actions/upload-artifact/merge@v4
with:
name: ${{ env.APP_NAME }}_${{ needs.refs.outputs.version }}
delete-merged: true
- name: Cache Python packages
uses: actions/cache@v3
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }}
restore-keys: |
${{ runner.os }}-pip-
- name: Install Python dependencies
run: pip3 install -r requirements.txt- name: Cache APT packages
uses: actions/cache@v3
with:
path: /var/cache/apt
key: ${{ runner.os }}-apt-cache
restore-keys: |
${{ runner.os }}-apt-cachemax4elektroda wrote:So my conclusion, if I didn't miss something: Nice idea, but not reachable with a reasonable afford.
max4elektroda wrote:What do you think about this "timeout"?
DeDaMrAz wrote:Unfortunately I only have DS18B20 sensors to play with right now
max4elektroda wrote:If you refer to my posting about DS1820: This is just laziness in my writing- I don't have any DS1820, only DS18B20, too but simply just "ignore" the "B" in my posts...
p.kaczmarek2 wrote:Just don't' call SetChannel if there is no new value read.
TL;DR: “Writing a driver straight on the OBK device is much more flexible than scripting” [p.kaczmarek2, #21095505]. In test logs 65 % of DS18B20 packets passed CRC on first try [divadiow, #21165112]. Follow the new pre-build override and chart drivers to patch and visualise data without local toolchains.
Why it matters: These tweaks cut build friction, expose sensor faults early and keep OTA binaries under the 700 KB safety limit.
• DS18B20 range −55 °C to +125 °C; 0.0625 °C max resolution [Maxim DS18B20 datasheet].
• Typical OBK OTA image: 560–680 KB per platform [GitHub artifacts].
• Online CI builds ~8 min (six platforms, simulator) [workflow logs].
• Pre-build override path: platforms/
#ifdef WINDOWS … #endif [p.kaczmarek2, #21095505]. The pre-processor then strips unused code so OTA size stays <700 KB [workflow logs].sh
cp platforms/BK7231N/override/sdk/.../BkDriverFlash.c \
sdk/OpenBK7231N/platforms/.../BkDriverFlash.c
CHANNEL_Set so HA marks the entity unavailable* instead of replaying the last value [max4elektroda, #21295662].needs: [build, build2] and a merge step so simulator and XR809 zips are always published [max4elektroda, #21280901].ini
startDriver charts
chart_create 48 2 2
chart_setVar 0 "Voltage" axv
chart_setVar 1 "Current" axc
addRepeatingEvent 5 -1 chart_addNow $voltage $current
[max4elektroda, #21243725].