I have a little project based on an ESP8266 and an OLED display. They are both integrated in the same PCB:
https://www.banggood.com/fr/Nodemcu-Wif ... 54759.html
I'm learning how to use ESPeasy and have been looking into the "Rules" possibilities.
I have a simple request for which I need your help:
I declared 2 devices, one switch and one OLED SSD1306. I'm now trying to display a countdown of 1 hour.
I put the following rule which works well (I know, it's very basic but I'm learning!):
Code: Select all
On Pushbutton#Statepush do If [Pushbutton#Statepush]=0 TimerSet,1,1 Let,1,3600 Else TimerSet,1,0 Endif Endon On Rules#Timer=1 Do Let,1,[VAR#1]-1 If [VAR#1]=0 //coundown stops at 0 TimerSet,1,0 Else TimerSet,1,1 Endif EndOn
But I now would like that it's displayed in minutes, not seconds. So I'm seeking how to convert seconds in minutes.
How can I do that ?
Many thanks in advance!