the construction of an information page about my Fritzbox is making progress. I would also like to influence the output of the “avmfritz_CallList” item. At the moment the result looks like this:
I would like to insert “callerNumber” and “calledNumber” and format the date and time differently (date: 06.11.2021. Time: 18:05). However, at the moment I don’t know how to do that.
I’ve done a little research and think adding the JavaScript transform is done as shown. The file is then saved under …/transform. I still have a problem with formulating the .js file. There are certainly differences for date and time or “callerNumber” and “calledNumber”.
Suggestion for …? What is your transformation like now? What did you expect it to do? What is it doing instead?
Key point of interest. The channel state update will get passed to your JS as a string. If you want to handle it as a datetime or something, you’ll need to parse the string first.