i want to display uptime in days hours and seconds, but when adding this
%c_m2dhm%(%uptime%)
as formula, it still shows amount of minutes, notyhing changes
%c_m2dhm%(%uptime%) does nothing
Moderators: grovkillen, Stuntteam, TD-er
- grovkillen
- Core team member
- Posts: 3621
- Joined: 19 Jan 2017, 12:56
- Location: Hudiksvall, Sweden
- Contact:
Re: %c_m2dhm%(%uptime%) does nothing
Sorry, you cannot use that in formula, only in rules.
ESP Easy Flasher [flash tool and wifi setup at flash time]
ESP Easy Webdumper [easy screendumping of your units]
ESP Easy Netscan [find units]
Official shop: https://firstbyte.shop/
Sponsor ESP Easy, we need you

ESP Easy Webdumper [easy screendumping of your units]
ESP Easy Netscan [find units]
Official shop: https://firstbyte.shop/
Sponsor ESP Easy, we need you



Re: %c_m2dhm%(%uptime%) does nothing
could he use it in a rule and write the value to a dummy item and run the formula on the dummy?
- grovkillen
- Core team member
- Posts: 3621
- Joined: 19 Jan 2017, 12:56
- Location: Hudiksvall, Sweden
- Contact:
Re: %c_m2dhm%(%uptime%) does nothing
Yes but the formula would be done by the rules in that case, not formula.
ESP Easy Flasher [flash tool and wifi setup at flash time]
ESP Easy Webdumper [easy screendumping of your units]
ESP Easy Netscan [find units]
Official shop: https://firstbyte.shop/
Sponsor ESP Easy, we need you

ESP Easy Webdumper [easy screendumping of your units]
ESP Easy Netscan [find units]
Official shop: https://firstbyte.shop/
Sponsor ESP Easy, we need you



Re: %c_m2dhm%(%uptime%) does nothing
As suggested you can use rules to calculate/store the three %uptime% derived values to dummy variables. Then use the three dummy values to create the dd:hh:mm message for your display. Or skip the dummy's and directly send the calculated values.i want to display uptime in days hours and seconds...
If you need additional advice then please tell us where you want to display the values. Include the details to any plugins and controllers you are using.
- Thomas
-
- Normal user
- Posts: 307
- Joined: 06 Nov 2016, 13:45
Re: %c_m2dhm%(%uptime%) does nothing
For those who are also lost with %c_m2dhm%
See:
https://www.letscontrolit.com/wiki/inde ... asyFormula end of page.

See:
https://www.letscontrolit.com/wiki/inde ... asyFormula end of page.


30+ ESP units for production and test. Ranging from control of heating equipment, flow sensing, floor temp sensing, energy calculation, floor thermostat, water usage, to an interactive "fun box" for my grandson. Mainly Wemos D1.
Re: %c_m2dhm%(%uptime%) does nothing
Another source for standard conversion formulas (and other useful things) is from ESPEasy's Tools menu: Tools->SystemVariables
http://IP_ADDR/sysvars
- Thomas
http://IP_ADDR/sysvars
- Thomas
Who is online
Users browsing this forum: No registered users and 24 guests