Hi Tim,
Lots of good questions, thanks. Let me try to answer them!
But also why is it always showing MY IP Address, rather than theirs? Even though I am using “steps.trigger.event.client_ip” and not “steps.clockify…”
I can see how that’s confusing - but remember the end user isn’t calling your Pipedream HTTP endpoint directly from their browser, it’s Clockify that’s performing the webhook.
The steps.trigger.event.client_ip
is Clockify’s server IP address that’s performing the webhook. That’s why it’s not changing from event to event.
And is there a way to use their Discord (or Clockify) Profile Picture rather than mine or the PipeDream logo?
I assume you’re referring to the last step in your workflow, which is to send a message to Discord. Have you tried passing a URL to the Avatar URL prop in the Send Message pre-built action?
The Clockify action should include a photo photo URL under the profilePicture
export. Full path would be steps.clockify.$return_value.profilePicture
.
Also is there a way so that when it spits out…
“START Time: 2022-07-26T21:07:48Z
END Time: 2022-07-26T23:10:39Z
Duration: PT2H2M51S”
I could clean it up a bit? Such as change it to a 12 hour day rather than 24, and just remove the Seconds all together, to make it look more like…
“START Time: 2022-07-26 9:07 pm
END Time: 2022-07-26 11:10 pm
Duration: 2 Hours 2 Min”
And also how do I get it synced to be on a set time zone that I actual choose?
Good question! When it comes to time formatting, I’m a big fan of date-fns
We covered how to use date-fns
in a Node.js code step in this video in our University series:
Follow that video as an example to format your timestamps into an easier to read format and to convert it to your own timezone instead of UTC.