I am using the Rebble Agenda app and I noticed some weird artefacts (see attachment, event name redacted for privacy).
After further investigation, I saw that the artefacts actually come from the android.calendar.json file provided from Gadgetbridge.
Here is an example of an event with such artefacts:
{t:"calendar",id:85,type:0,timestamp:1711371600,durationInSeconds:3600,title:"redacted",description:"-::~:~::~:~:~:~:~:~:~:~:~:~:~:~:~:~:~:~:~:~:~:~:~:~:~:~:~:~:~:~:~:~:~:~:~:~:~:~::~:~::-\nParticiper via Google\xA0Meet\xA0: https://meet.google.com/redacted\nOu composez le\xA0: (FR) redacted Cod...",location:"",calName:"redacted",color:-6299161,allDay:false}
It looks like events that come from Google Workspace with a Google Meet invitation include some weird -::~:~::~:~:~:~:~:~:~:~:~:~:~:~:~:~:~:~:~:~:~:~:~:~:~:~:~:~:~:~:~:~:~:~:~:~:~:~::~:~::- separators that completely mess up the UI.
Another event is difficult to read because it has HTML tags in it:
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
Hello,
I am using the Rebble Agenda app and I noticed some weird artefacts (see attachment, event name redacted for privacy).
After further investigation, I saw that the artefacts actually come from the
android.calendar.json
file provided from Gadgetbridge.Here is an example of an event with such artefacts:
It looks like events that come from Google Workspace with a Google Meet invitation include some weird
-::~:~::~:~:~:~:~:~:~:~:~:~:~:~:~:~:~:~:~:~:~:~:~:~:~:~:~:~:~:~:~:~:~:~:~:~:~:~::~:~::-
separators that completely mess up the UI.Another event is difficult to read because it has HTML tags in it:
Would it be possible to "sanitize" this data coming from Gadgetbridge, maybe using a regex to remove HTML tags and separators?
It would subsequently fix all the apps that require the JSON file.
Thanks
1 Attachment