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

Several settings are displayed twice #654

Open
jarooij opened this issue Dec 25, 2024 · 8 comments
Open

Several settings are displayed twice #654

jarooij opened this issue Dec 25, 2024 · 8 comments
Labels
bug Something isn't working

Comments

@jarooij
Copy link

jarooij commented Dec 25, 2024

Several settings are displayed twice or more e.g. Icons, Auth, MQTT. When I press one of the duplicate settings the Restart ESP/Save configuration is displayed.

awtrix1
awtrix2

  • Devices involved:
    • Model: Ulanzi Awtrix Smart Pixel Clock 2882 (TC001)
    • awtrix3 version: 0.96

I cleared cache and did a restart on the Ulanzi without result.

@jarooij jarooij added the bug Something isn't working label Dec 25, 2024
@Blueforcer
Copy link
Owner

Remove the donottouch.json and restart awtrix(you need to setup Mqtt and time again, or remove the duplicates in this file

@jarooij
Copy link
Author

jarooij commented Dec 26, 2024

Thanx, that did the trick. Unfortunately I'm not able to upload icons

@Blueforcer
Copy link
Owner

In need more details

@jarooij
Copy link
Author

jarooij commented Dec 26, 2024

When I try to upload an icon from https://developer.lametric.com no confirmation message is displayed and the icon is not downloaded in the icon folder.

@Blueforcer
Copy link
Owner

Did you deleted the Json or did you manually removed the duplicated entries?

@jarooij
Copy link
Author

jarooij commented Dec 26, 2024

I deleted the entire json.

@overrider
Copy link

overrider commented Jan 2, 2025

Same issue here with menu entries getting shown twice somehow - never touched the DoNotTouch.json. Removing it, then rebooting the clock solved it for now. The issue appeared after i was editing my MQTT broker settings

@eku
Copy link

eku commented Jan 8, 2025

Looks like there's exactly one condition, when the duplicate entries for param-boxes are created in

if (isConnected)
{
mws.addOptionBox("Network");
mws.addOption("Static IP", NET_STATIC);
mws.addOption("Local IP", NET_IP);
mws.addOption("Gateway", NET_GW);
mws.addOption("Subnet", NET_SN);
mws.addOption("Primary DNS", NET_PDNS);
mws.addOption("Secondary DNS", NET_SDNS);
mws.addOptionBox("MQTT");
mws.addOption("Broker", MQTT_HOST);
mws.addOption("Port", MQTT_PORT);
mws.addOption("Username", MQTT_USER);
mws.addOption("Password", MQTT_PASS);
mws.addOption("Prefix", MQTT_PREFIX);
mws.addOption("Homeassistant Discovery", HA_DISCOVERY);
mws.addOptionBox("Time");
mws.addOption("NTP Server", NTP_SERVER);
mws.addOption("Timezone", NTP_TZ);
mws.addHTML("<p>Find your timezone at <a href='https://github.com/nayarsystems/posix_tz_db/blob/master/zones.csv' target='_blank' rel='noopener noreferrer'>posix_tz_db</a>.</p>", "tz_link");
mws.addOptionBox("Icons");
mws.addHTML(custom_html, "icon_html");
mws.addCSS(custom_css);
mws.addJavascript(custom_script);
mws.addOptionBox("Auth");

Look at

if (key.equals("param-box"))
{
key += numOptions;
it always creates a new one.

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

4 participants