Skip to content

Add Cadran clock for Bangle.js 2 - #4381

Open
Jeff-Nash wants to merge 20 commits into
espruino:masterfrom
Jeff-Nash:master
Open

Jeff-Nash wants to merge 20 commits into
espruino:masterfrom
Jeff-Nash:master

Conversation

@Jeff-Nash

Copy link
Copy Markdown

New French clock for Bangle.js 2, high readability, low power.

Add metadata for Cadran app including details like version, description, and supported devices.
@pavelmachek

Copy link
Copy Markdown
Contributor

Dunno. I guess the readme file should be at least dual french/english, so that people could see what is going on there...

Added English translation and improved formatting.
Updated the README to include detailed instructions and warnings for the Bangle.js 2 watch face, along with enhancements to the main and secondary screen descriptions.
@Jeff-Nash

Copy link
Copy Markdown
Author

Dunno. I guess the readme file should be at least dual french/english, so that people could see what is going on there...

Done, README is now bilingual French/English

@Jeff-Nash

Jeff-Nash commented Oct 11, 2026 via email

Copy link
Copy Markdown
Author

@RKBoss6

RKBoss6 commented Oct 12, 2026

Copy link
Copy Markdown
Contributor

I think some changes have made its way out of the cadran folder and in the main repo - looks as if all the files are also in the cadran folder, so perhaps just remove the changes/additions outside the cadran app folder?

@Jeff-Nash

Jeff-Nash commented Oct 12, 2026 via email

Copy link
Copy Markdown
Author

@bobrippling bobrippling left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Merci pour votre app! Je connais un peu le francais, alors je essaye d'ecrire en francais!

J'ai des commentaires, me poser des questions si vous en avez

Comment thread apps/cadran/cadran.xml

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ce ficher est difficile a comprendre, pourquoi est ce que les identifiants sont etranges? Par exemple, Opm,^XELbrgC1*+Jkj3h

Est-ce que ce fichier necessairement etre comme ca?

Comment thread apps/cadran/metadata.json
"shortName": "Cadran",
"icon": "app.png",
"version": "0.01",
"description": "Cadran de montre Bangle.js 2 personnalise en Francais a grande lisibilite, optimise pour une grande autonomie.",

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Je suis satisfait d'une description en francais, mais nous demandons au chef de projet:

@gfwilliams is it ok for a description to be in french, for an app that's in french?

Comment thread app-icon.js Outdated
Comment thread apps/cadran/app.js Outdated
// Code from Graphical Editor
var txt, largeur, hauteur, cum_cor, glyph, dizminpre, dizmin, dizheu, charge, dizdat, dizmoi, vit, d, nomjou, uniminpre, flash, uniheu, jou1, unidat, unimoi, BLE, gps, sec, jou, mode, recalage, vit_pre, jou2, min, z0, cor_int, interval_boucle, unimin, jou3, z1, chargeur, interval_cligno, z2, heu, dat, z3, chargeur_prec, moi, z4, z5, an, gps_listener, z6, z7, z8, z9, zA, zD, zE, zI, zJ, zL, zM, zN, zR, zS, zU, diff, zV, z2points, zBTon, zBTof, zAPPS, zSYNC, zGPS;

// Describe this function...

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Je ne sais pas si nous avons besoin de ces phrases avant chaque fonction

Comment thread apps/cadran/app.js Outdated
if (mode == 'montre') {
mode = 'menu';
vit_pre = vit;
eval("Bangle.on('touch', function(zone, e) {\n if (e.x >= 0 && e.x < 83 && e.y >= 0 && e.y < 52) {\n bluetooth();\n }\n});");

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Est-ce qu'on peut simplement utiliser du code, sans eval ?

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ce code est généré par le blockly de ESPRUINO qui est le fabricant de la montre, c'est un défaut connu, j'ai fait un nettoyage

Added eslint directive to disable no-unused-vars rule.
Refactor touch event handling and remove eval usage.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants