From DIY case to M5Stack

Moderators: grovkillen, Stuntteam, TD-er

Post Reply
Message
Author
martinus
Normal user
Posts: 129
Joined: 15 Feb 2020, 16:57

From DIY case to M5Stack

#1 Post by martinus » 29 Feb 2020, 16:24

It has been a while since working on my Home Automation stuff, but i'm trying to catch up a bit recently.
I thought it was time to upgrade my old display unit (it was built years back...):

Old.png
Old.png (83.57 KiB) Viewed 8018 times

to a newer model:

new.png
new.png (263.02 KiB) Viewed 8018 times

It even has built-in sound...
Maybe turn in into an alarm-clock?
I also think that the newer model would be better accepted in the living-room. Much better WAF :D

This demo took a few simple rule lines:

Code: Select all

on M5Display=1 do
  m5lcdcmd clear
  m5lcdcmd color,CYAN
  m5lcd 20,70,2,%systm_hm%
  m5lcdcmd color,GREEN
  m5lcd 0,140,1,In
  m5lcdcmd color,YELLOW
  m5lcd 90,140,2,[var#1#D2.1]
  m5lcdcmd color,GREEN
  m5lcd 0,210,1,Out
  m5lcdcmd color,YELLOW
  m5lcd 90,210,2,[var#2#D2.1]
endon
Still have to find my way around all the new features since R120. Maybe someone could help with two remaining (small) issues:
1 - Looking for HH:MM format to display. %systime% has seconds which i do not want and %systm_tm% has no leading '0' if <10 hours.
2 - I would like the temperature to show a fixed number of digits with a leading ' ' (space) instead of a leading '0' for temp <10 degrees

Also searching the forum on M5Stack surprisingly did not result in many hits (only some old ones from 2018). No one using this device lately?

TD-er
Core team member
Posts: 8750
Joined: 01 Sep 2017, 22:13
Location: the Netherlands
Contact:

Re: From DIY case to M5Stack

#2 Post by TD-er » 29 Feb 2020, 16:51

Looks nice :)
What did you use for the display support?

I've a couple of these here in my drawer, but when I bought them ESP32 support was still very limited and my m5stack is not really stable.
Looks like an issue with the connected battery and voltage regulator.
Without battery it will not boot and with battery it may crash as soon as you slightly touch the USB connector.

Oh and for formatting, see the documentation: https://espeasy.readthedocs.io/en/lates ... red-values

Also have a look at the system variables page of your unit to see other examples for formatting.

martinus
Normal user
Posts: 129
Joined: 15 Feb 2020, 16:57

Re: From DIY case to M5Stack

#3 Post by martinus » 01 Mar 2020, 20:28

TD-er wrote: 29 Feb 2020, 16:51 What did you use for the display support?
Just the standard M5Stack library. Makes plugin development quite 'EASY'

Post Reply

Who is online

Users browsing this forum: No registered users and 128 guests