Sorry for the maybe "noob" question but as I'm not able to search forum with keyword "mqtt" (it says it's a too common word!) I did not find anythign that can help me on this issue.
Basically I want to be able when a specific even occurrs to publish an MQTT topic (which I can do already) but I want the content of the topic to be the current timestamp, and apparently I can send only fixed text.
Any clue/help on how this can be achieved on ESPEasy without creating script/rules on my mqtt server/broker?
Send timestamp on event via MQTT
Moderators: grovkillen, Stuntteam, TD-er
Send timestamp on event via MQTT
My TINDIE Store where you can find all ESP8266 boards I manufacture --> https://www.tindie.com/stores/GiovanniCas/
My Wiki Project page with self-made PCB/devices --> https://www.letscontrolit.com/wiki/inde ... :Papperone
My Wiki Project page with self-made PCB/devices --> https://www.letscontrolit.com/wiki/inde ... :Papperone
Re: Send timestamp on event via MQTT
NO, will try soon... but how do I find some documentation about all those "tricks"?Martinus wrote:Have you tried sending %systime% ?
I've the feeling ESPEasy is great but with eventually many "hidden" features coudl be even better!!!
My TINDIE Store where you can find all ESP8266 boards I manufacture --> https://www.tindie.com/stores/GiovanniCas/
My Wiki Project page with self-made PCB/devices --> https://www.letscontrolit.com/wiki/inde ... :Papperone
My Wiki Project page with self-made PCB/devices --> https://www.letscontrolit.com/wiki/inde ... :Papperone
Re: Send timestamp on event via MQTT
it does not work
I have this rule setup:
but the topic contents after boot is ",0:00" (yes, including the comma)...
is it a bug or I'm doing somethign wrong?
I have this rule setup:
Code: Select all
On System#Boot do
Publish /%sysname%/lastboot,%systime%
endon
is it a bug or I'm doing somethign wrong?
My TINDIE Store where you can find all ESP8266 boards I manufacture --> https://www.tindie.com/stores/GiovanniCas/
My Wiki Project page with self-made PCB/devices --> https://www.letscontrolit.com/wiki/inde ... :Papperone
My Wiki Project page with self-made PCB/devices --> https://www.letscontrolit.com/wiki/inde ... :Papperone
Re: Send timestamp on event via MQTT
It's a specific bug for system time on boot events...papperone wrote:is it a bug or I'm doing somethign wrong?
Will be fixed with the next build.
Re: Send timestamp on event via MQTT
Thanks for the quick answer, will wait for the fix
My TINDIE Store where you can find all ESP8266 boards I manufacture --> https://www.tindie.com/stores/GiovanniCas/
My Wiki Project page with self-made PCB/devices --> https://www.letscontrolit.com/wiki/inde ... :Papperone
My Wiki Project page with self-made PCB/devices --> https://www.letscontrolit.com/wiki/inde ... :Papperone
Who is online
Users browsing this forum: Bing [Bot] and 52 guests