Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] When using Display Text in Colored Fragments in a custom app, you can't go back #464

Closed
DennisDeKoster opened this issue Jan 3, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@DennisDeKoster
Copy link

DennisDeKoster commented Jan 3, 2024

Bug report

Describe the bug

When using a custom app and send text in colored fragments, you cannot change back to a single color.
The other way around is not a problem: When displaying text in single color, you can update the app with colored fragmented text without issue.

Additional information

  • Devices involved:
    • Model: Ulanzi Awtrix Smart Pixel Clock 2882 (TC001)
    • AWTRIX-LIGHT version: v0.93

To Reproduce

Create or update a custom app with colored text fragments:

{
    "text": [{
        "t": "example text 1",
        "c": "FFFFFF"
    },
    {
        "t": " example text 2",
        "c": "FF0000"
    }]
}

Then update the app with normal text:

{
    "text": "example text 3",
    "color": "FFFFFF"
}

The app doesn't update and still displays the previous colored fragments text.

Expected behavior

I expect to display the text as sent in the payload, regardless of the previous.

Screenshots

Logs

-

Additional context

@DennisDeKoster DennisDeKoster added the bug Something isn't working label Jan 3, 2024
@MarcoRemy
Copy link

I can confirm this. Text can only be changed with fragments.
v0.94

@Blueforcer
Copy link
Owner

It's fixed in the latest beta.

Blueforcer added a commit that referenced this issue Mar 12, 2024
- Rebranding AWTRIX Light to AWTRIX 3

- **Enhancements:**
  - Implemented median and mean filters for more accurate processing of raw data from LDR and BATT sensors.
  - Added Cyrillic support, limited to UPPERCASE letters. Issue #467 closed. 🇷🇺
  - Introduced overlays for weather animations accessible via the /settings API or customapp/notifications. Available overlays: clear, snow, drizzle, rain, storm, thunder, frost.  closes #454

- **Features:**
  - Added AP Mode timeout configuration via dev.json. ⏱️
  - The hostname isnt the same as the MQTT prefix anymore.  Instead you can set "hostname" in your dev.json.  🏠
  - Supports SSIDs with 32 characters. 🔒
  - Web port can now be changed via dev.json. 🌐
  - Unified firmware versions for peripherals, allowing Ulanzi firmware to control DFPlayer and read temperature sensors and vice versa. Only port mapping differs. DFPlayer can be enabled in dev.json. 🔄

- **Bug Fixes:**
  - Resolved issue where using custom apps and sending text in colored fragments prevented reverting to a single color. Issue #464 closed. 🐛
  - Fixed URL forwarding in the web interface. Issue #501 closed. 🔗

- **Miscellaneous:**
  - Added functionality to control the volume of the buzzer or DFPlayer via on-screen menu or settings API. 🔊
  - Enabled reset button on the back of Ulanzi; holding it for 5 seconds initiates a full reset of the AWTRIX firmware. 🔧
Blueforcer added a commit that referenced this issue Mar 12, 2024
- Rebranding AWTRIX Light to AWTRIX 3

- **Enhancements:**
  - Implemented median and mean filters for more accurate processing of raw data from LDR and BATT sensors.
  - Added Cyrillic support, limited to UPPERCASE letters. Issue #467 closed. 🇷🇺
  - Introduced overlays for weather animations accessible via the /settings API or customapp/notifications. Available overlays: clear, snow, drizzle, rain, storm, thunder, frost.  closes #454

- **Features:**
  - Added AP Mode timeout configuration via dev.json. ⏱️
  - The hostname isnt the same as the MQTT prefix anymore.  Instead you can set "hostname" in your dev.json.  🏠
  - Supports SSIDs with 32 characters. 🔒
  - Web port can now be changed via dev.json. 🌐
  - Unified firmware versions for peripherals, allowing Ulanzi firmware to control DFPlayer and read temperature sensors and vice versa. Only port mapping differs. DFPlayer can be enabled in dev.json. 🔄

- **Bug Fixes:**
  - Resolved issue where using custom apps and sending text in colored fragments prevented reverting to a single color. Issue #464 closed. 🐛
  - Fixed URL forwarding in the web interface. Issue #501 closed. 🔗

- **Miscellaneous:**
  - Added functionality to control the volume of the buzzer or DFPlayer via on-screen menu or settings API. 🔊
  - Enabled reset button on the back of Ulanzi; holding it for 5 seconds initiates a full reset of the AWTRIX firmware. 🔧
Blueforcer added a commit that referenced this issue Mar 12, 2024
- Rebranding AWTRIX Light to AWTRIX 3

- **Enhancements:**
  - Implemented median and mean filters for more accurate processing of raw data from LDR and BATT sensors.
  - Added Cyrillic support, limited to UPPERCASE letters. Issue #467 closed. 🇷🇺
  - Introduced overlays for weather animations accessible via the /settings API or customapp/notifications. Available overlays: clear, snow, drizzle, rain, storm, thunder, frost.  closes #454

- **Features:**
  - Added AP Mode timeout configuration via dev.json. ⏱️
  - The hostname isnt the same as the MQTT prefix anymore.  Instead you can set "hostname" in your dev.json.  🏠
  - Supports SSIDs with 32 characters. 🔒
  - Web port can now be changed via dev.json. 🌐
  - Unified firmware versions for peripherals, allowing Ulanzi firmware to control DFPlayer and read temperature sensors and vice versa. Only port mapping differs. DFPlayer can be enabled in dev.json. 🔄

- **Bug Fixes:**
  - Resolved issue where using custom apps and sending text in colored fragments prevented reverting to a single color. Issue #464 closed. 🐛
  - Fixed URL forwarding in the web interface. Issue #501 closed. 🔗

- **Miscellaneous:**
  - Added functionality to control the volume of the buzzer or DFPlayer via on-screen menu or settings API. 🔊
  - Enabled reset button on the back of Ulanzi; holding it for 5 seconds initiates a full reset of the AWTRIX firmware. 🔧
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants