Hi @samarchri, this is helpful though I encountered issues while copying your sketch
The first was off cource my French language skills (seulement un pitit en ecole) and an error in the sketch caused by likely our different keyboard settings where " became “ ” and produced an error. Secondly missed an important line:
Cayenne.begin(username, password, clientID, ssid, wifiPassword);
Bit confusing to delete this one.
I also did this while there was likely some maintenance and numorous errors batterred me including the most simple:
Error downloading http://arduino.esp8266.com/stable/package_esp8266com_index.json
Back to your sketch:
Your frequency to refresh this is 30 seconds so why display seconds?
Your “hour”-routine becomes rather lengthy, my version (skipping the seconds) would only take an 1-liner:
time_now_d = dateTime.hour * 1.0 + ( dateTime.minute / 100.0);
Your transform string part was good ecucation for me (hope to remember it) so thanks for your input.