Here is my script. The first line shows syntax error:
:local currentIP [/tool fetch url="http://icanhazip.com" as-value output=user]->"data";
:local timestamp [/system clock get time];
:local date [/system clock get date];
:local logEntry ("Public IP: $currentIP at $date $timestamp");
The first syntax error is give by this part of the script: “url="http://”. It helps if I remove replace it with "url=“http://”. However, I get error and it seems to be related to the very last part of the first line. Go figure…?