Need help with homeyscript

@robertklep Thanks! A little hacking and googling, this seems to work :slight_smile:

// Get the current Unix timestamp (epoch) in seconds

const unixTimestamp = Math.floor(Date.now() / 1000);

//console.log(unixTimestamp);

//console.log("Encoded string: "+ Buffer.from(unixTimestamp.toString()).toString('Base64'));

//console.log("Decoded string: ", decodedString);

return Buffer.from(unixTimestamp.toString()).toString('Base64');

Now, back to the search function for the rest of my query :slight_smile: