Page 1 of 5

Re: Connecting a TM1637 4-Digit Display

Posted: 10 Oct 2017, 23:08
by freijn
ronald wrote: 10 Oct 2017, 11:34 O, that's great! I really want to try it.
I must admit that I don't know how to test it though. I know how to flash my unit and how to upgrade to new versions/ test versions of the software, but I have never added a new plugin.
I can't find how to do it... Can you tell where to find that? :oops:
Same problem here :-(

I have found the plugin
https://github.com/letscontrolit/ESPEasy/pull/534/files

No idea about the next step , is there a how to plugin wiki ? link?

Re: Connecting a TM1637 4-Digit Display

Posted: 11 Oct 2017, 09:49
by papperone
I will post BIN later today with dev12 plus this plugin; I will compile only for 4096 module if ok for you....

Re: Connecting a TM1637 4-Digit Display

Posted: 11 Oct 2017, 09:52
by ronald
Great, Papperone!
4096 is ok for me.

Re: Connecting a TM1637 4-Digit Display

Posted: 11 Oct 2017, 13:22
by papperone
here it is! please let me know your feeback...
ESPEasy-v2.0.0-dev12+P073.rar
(344.61 KiB) Downloaded 1410 times

Re: Connecting a TM1637 4-Digit Display

Posted: 11 Oct 2017, 14:22
by ronald
Hi Papperone
I already tried the device (a TM1637) and for me it is working great!
I tried these modes:
clock blinking
clock not blinking
date
manual command 7dn
7dn,-1000 = ----
7dn,-999 = -999
7dn,9999 = 9999
7dn,99999 = ----
manual command 7dt
- positive number gives me "22:2o" (with the degree symbol in the upper half of course!)
- negative number gives me "-10o"

Display output is working ok.

I would welcome commands to switch the device on or off, like the LCD has.

I tried it on a Witty Cloud version of the esp8266, which is a bit of a pain in the b*t, because so many of the I/O pins are already taken, but my other device were not available.
I hooked it up to D0 (DIO) and D4 (CLK) and that worked.
Thanks for your effort!

Re: Connecting a TM1637 4-Digit Display

Posted: 11 Oct 2017, 17:09
by papperone
Thanks Ronald, probably you should read this previous comment --> http://www.letscontrolit.com/forum/view ... =30#p19744
You have already "7don" "7doff" and "7db,<brightness>" commands implemented... :mrgreen:

Re: Connecting a TM1637 4-Digit Display

Posted: 11 Oct 2017, 20:03
by ronald
papperone wrote: 11 Oct 2017, 17:09 Thanks Ronald, probably you should read this previous comment --> http://www.letscontrolit.com/forum/view ... =30#p19744
You have already "7don" "7doff" and "7db,<brightness>" commands implemented... :mrgreen:
Ah, missed that one! I'm really happy with the result :D

Re: Connecting a TM1637 4-Digit Display

Posted: 12 Oct 2017, 12:19
by freijn
Downloaded ...

I try to open it with WinRar, but it throws an error... How do I uncompress is?? :-(


MANY THANKS !!!!

Frank

Re: Connecting a TM1637 4-Digit Display

Posted: 12 Oct 2017, 17:37
by papperone
freijn wrote: 12 Oct 2017, 12:19 Downloaded ...

I try to open it with WinRar, but it throws an error... How do I uncompress is?? :-(


MANY THANKS !!!!

Frank
no idea, I tryed myself to donwload and open it and I got no errors; as well ronald download and installed it without issue it seems...

Re: Connecting a TM1637 4-Digit Display

Posted: 12 Oct 2017, 19:10
by grovkillen
Try 7-zip.

Re: Connecting a TM1637 4-Digit Display

Posted: 12 Oct 2017, 19:38
by ronald
I used the free utility UnRAR. Worked like a charm.

Re: Connecting a TM1637 4-Digit Display

Posted: 12 Oct 2017, 20:38
by papperone
I have WinRAR full license and it works as I wrote...

Re: Connecting a TM1637 4-Digit Display

Posted: 12 Oct 2017, 21:33
by freijn
Ok will try zip7.

Cheers

Re: Connecting a TM1637 4-Digit Display

Posted: 13 Oct 2017, 23:52
by grovkillen
Will dot matrix displays powered by MAX7216 be supported? Just curious.

Re: Connecting a TM1637 4-Digit Display

Posted: 14 Oct 2017, 00:31
by papperone
grovkillen wrote: 13 Oct 2017, 23:52 Will dot matrix displays powered by MAX7216 be supported? Just curious.
it's in my "to-do" list but probably as a separate plugin as this matrix led can be more flexible and customizable ;)

Re: Connecting a TM1637 4-Digit Display

Posted: 14 Oct 2017, 06:29
by grovkillen
Drool! You're awesome! 8-)

Re: Connecting a TM1637 4-Digit Display

Posted: 14 Oct 2017, 10:19
by Shardan
+1

Re: Connecting a TM1637 4-Digit Display

Posted: 16 Oct 2017, 11:24
by freijn
Guys,

Sorry for the stupid questions.... :-(

How do you know how to connect the display ?

Is there a how-to page where I can find how to compile a plugin into easyesp ?
I have the tm1638 ,would that work as well? At least the display?

p.s.
with the zip7 I managed to unpack. THanks !

Frank

Re: Connecting a TM1637 4-Digit Display

Posted: 16 Oct 2017, 11:27
by papperone
freijn wrote: 16 Oct 2017, 11:24 Guys,

Sorry for the stupid questions.... :-(

How do you know how to connect the display ?

Is there a how-to page where I can find how to compile a plugin into easyesp ?
I have the tm1638 ,would that work as well? At least the display?

p.s.
with the zip7 I managed to unpack. THanks !

Frank
I guess not as plugin has been written using the TM1637 datasheet for the implementation.
I don't have a TM1638 handy but looking at google it seems a fair different module with 8 digits, 8 buttons and 8 LEDs...

Re: Connecting a TM1637 4-Digit Display

Posted: 17 Oct 2017, 12:19
by freijn
Hey Papperone

First, many thanks for your great work here!!

Do you know, is there a wiki or good place to start to get a plugin compiled in EspEasy ?

I have seen the developers wiki , but nothing on Plugin's

Somehow I can't get started. :-(

Again, many thanks for your work here

Frank

Re: Connecting a TM1637 4-Digit Display

Posted: 17 Oct 2017, 13:52
by grovkillen
I will make a wiki that is a simplified version of the development wiki.

Re: Connecting a TM1637 4-Digit Display

Posted: 17 Oct 2017, 16:34
by freijn
You are all GREAT people !

Thanks !

Re: Connecting a TM1637 4-Digit Display

Posted: 17 Oct 2017, 16:53
by papperone
freijn wrote: 17 Oct 2017, 12:19 Hey Papperone

First, many thanks for your great work here!!

Do you know, is there a wiki or good place to start to get a plugin compiled in EspEasy ?

I have seen the developers wiki , but nothing on Plugin's

Somehow I can't get started. :-(

Again, many thanks for your work here

Frank
If you need this plugin only you can find the BIN of 2.0.0dev12 with P073 attached in one of my previous posts.
About how to complie plugins, if you are familiar with Arduino IDE or PlatformIO it's just a matter to copy the file into the main folder of ESPEasy source files and open it from there in order to complie (assumign you have all the libraries with the right version installed of course :) )

Re: Connecting a TM1637 4-Digit Display

Posted: 17 Oct 2017, 21:26
by grovkillen
I just added a section to the official Platformio wiki.

https://www.letscontrolit.com/wiki/inde ... ed_plugins

Not alot but essentially its not that much different from compiling the official FW.

Re: Connecting a TM1637 4-Digit Display

Posted: 17 Oct 2017, 23:07
by freijn
cheers!!!!

Will try this tomorrow.

Frank

Re: Connecting a TM1637 4-Digit Display

Posted: 17 Nov 2017, 19:59
by ronald
I'm trying to get the temperature from a sensor that's on the same ESP.
I have never used rules before, just don't know how to get them working.
Anyway, I tried and did this:
- Switch the TM1637 to manual mode
- The Temparature sensor is called 'TempPres'
- I switched on rules and created this rule: on TempPres#Temperature do 7dt,[TempPres#Temperature]
- Does nothing....

When I send a http command it works fine, so obviously there is something wrong. But what? Who can tell me how to do it. And can it be done anyway?
I could send the value I get from Domoticz back to the esp, but I hope to get it done with rules this time.

Re: Connecting a TM1637 4-Digit Display

Posted: 17 Nov 2017, 20:13
by grovkillen
Send screenshots.

Re: Connecting a TM1637 4-Digit Display

Posted: 17 Nov 2017, 23:41
by ronald
Here are pictures of the screens I use:
https://ibb.co/m0cfTR
https://ibb.co/imwJF6
https://ibb.co/cGgUNm

Re: Connecting a TM1637 4-Digit Display

Posted: 18 Nov 2017, 08:09
by grovkillen
Seems correct. What does the log look like? Does it trigger at all?

Re: Connecting a TM1637 4-Digit Display

Posted: 18 Nov 2017, 08:31
by ronald
No, nothing happens. The display stays dark. When I send a command by http it works.

Re: Connecting a TM1637 4-Digit Display

Posted: 18 Nov 2017, 08:34
by grovkillen
Try this rule:

Code: Select all

On TempPres#Temperature do
 7dt,[TempPres#Temperature]
EndOn
Your code should work but just as a test.

And please send a log file screenshot for us to see.

Re: Connecting a TM1637 4-Digit Display

Posted: 18 Nov 2017, 12:14
by ronald
It works!!!
The EndOn must have been the problem.
Or maybe the style of coding.
Anyway, it works now and I'm very glad it does.
Thank you for your help!

Re: Connecting a TM1637 4-Digit Display

Posted: 18 Nov 2017, 14:39
by grovkillen
I updated the wiki accordingly. Thanks for feedback!

Re: Connecting a TM1637 4-Digit Display

Posted: 02 Dec 2017, 23:33
by grovkillen

Re: Connecting a TM1637 4-Digit Display

Posted: 03 Dec 2017, 00:01
by papperone
grovkillen wrote: 02 Dec 2017, 23:33 https://www.letscontrolit.com/wiki/inde ... nt_display

wiki updated with this plugin.
Great Job grovkillen!
As far as I've one running since more than a month without issue I woudl consider to move this to NORMAL instead of TESTING but I'd like to have at least some confirmation of stability from other users who maybe using it permanently on their devices...

Re: Connecting a TM1637 4-Digit Display

Posted: 03 Dec 2017, 00:03
by grovkillen
Papperone, thanks!!

I've been using it for a day now :)

I do miss some log output though. And as I asked on GitHub, is the 4 digit display with dots also supported or is it only the "clock" version?

Re: Connecting a TM1637 4-Digit Display

Posted: 03 Dec 2017, 09:27
by papperone
grovkillen wrote: 03 Dec 2017, 00:03 Papperone, thanks!!

I've been using it for a day now :)

I do miss some log output though. And as I asked on GitHub, is the 4 digit display with dots also supported or is it only the "clock" version?
Let me know which LOG and I'll add them and will evaluate to move to NORMAL plugins...
As per GitHub discussion I will add more displays support to the next release of the plugin (once they will arrive from China ;) )

Re: Connecting a TM1637 4-Digit Display

Posted: 03 Dec 2017, 10:58
by grovkillen
papperone wrote: 03 Dec 2017, 09:27
grovkillen wrote: 03 Dec 2017, 00:03 Papperone, thanks!!

I've been using it for a day now :)

I do miss some log output though. And as I asked on GitHub, is the 4 digit display with dots also supported or is it only the "clock" version?
Let me know which LOG and I'll add them and will evaluate to move to NORMAL plugins...
As per GitHub discussion I will add more displays support to the next release of the plugin (once they will arrive from China ;) )
When I add numbers manually the log is not populated with this. Commands 7don, 7doff and 7db,<value> are not reported. Just that stuff :)

Re: Connecting a TM1637 4-Digit Display

Posted: 03 Dec 2017, 12:43
by papperone
grovkillen wrote: 03 Dec 2017, 10:58
papperone wrote: 03 Dec 2017, 09:27
grovkillen wrote: 03 Dec 2017, 00:03 Papperone, thanks!!

I've been using it for a day now :)

I do miss some log output though. And as I asked on GitHub, is the 4 digit display with dots also supported or is it only the "clock" version?
Let me know which LOG and I'll add them and will evaluate to move to NORMAL plugins...
As per GitHub discussion I will add more displays support to the next release of the plugin (once they will arrive from China ;) )
When I add numbers manually the log is not populated with this. Commands 7don, 7doff and 7db,<value> are not reported. Just that stuff :)
Ah ok, that's simple... I normally use logs only during developping/testing then I remove them to optimize but you are right, you can always change logs level/reporting from the advanced settings ;)
I will add it soon and submit a PR :D

Re: Connecting a TM1637 4-Digit Display

Posted: 03 Dec 2017, 12:52
by grovkillen
Great! 😀

Re: Connecting a TM1637 4-Digit Display

Posted: 03 Dec 2017, 15:35
by grovkillen
papperone wrote: 03 Dec 2017, 12:43 ....
Is it possible to have the plugin handle multipel devices (four maybe) add the rotary encoder plugin for example?

Re: Connecting a TM1637 4-Digit Display

Posted: 03 Dec 2017, 17:30
by papperone
grovkillen wrote: 03 Dec 2017, 15:35
papperone wrote: 03 Dec 2017, 12:43 ....
Is it possible to have the plugin handle multipel devices (four maybe) add the rotary encoder plugin for example?
not sure I understood... you want the plugin to control like 4 displays and change the contents using a rotary encoder?
can you clarify?

Re: Connecting a TM1637 4-Digit Display

Posted: 03 Dec 2017, 17:43
by grovkillen
No, I want to be able to use more than one display together with one esp. The rotary we just used as an example, sorry for not being clear. :?

Re: Connecting a TM1637 4-Digit Display

Posted: 03 Dec 2017, 17:48
by papperone
grovkillen wrote: 03 Dec 2017, 17:43 No, I want to be able to use more than one display together with one esp. The rotary we just used as an example, sorry for not being clear. :?
ok you are right, I still need to figure it out why multiple istances of same plugin make the ESP unstable; while adding the LOG will try to understand it...

Re: Connecting a TM1637 4-Digit Display

Posted: 03 Dec 2017, 17:54
by grovkillen
papperone wrote: 03 Dec 2017, 17:48
grovkillen wrote: 03 Dec 2017, 17:43 No, I want to be able to use more than one display together with one esp. The rotary we just used as an example, sorry for not being clear. :?
ok you are right, I still need to figure it out why multiple istances of same plugin make the ESP unstable; while adding the LOG will try to understand it...
Thanks, and yes, it's an overall problem with ESP Easy. We need to try to find the root cause of the instability. :roll:

Re: Connecting a TM1637 4-Digit Display

Posted: 26 Dec 2017, 14:50
by sentinel
Hi guys,
I am fairly new to EspEasy. I was also looking for a way to use a TM1637 display, so I wanted to thank Papperone for the work!
Happy New Year to all!

Re: Connecting a TM1637 4-Digit Display

Posted: 28 Dec 2017, 13:43
by papperone
sentinel wrote: 26 Dec 2017, 14:50 Hi guys,
I am fairly new to EspEasy. I was also looking for a way to use a TM1637 display, so I wanted to thank Papperone for the work!
Happy New Year to all!
Thanks and Happy New Year!!!

PS: my new displays to expand this plugin are still "in transit" from China; hope to getit soon and be able to release new version of plugin!

Re: Connecting a TM1637 4-Digit Display

Posted: 28 Dec 2017, 14:58
by sentinel
I have added a timer on the rules. When the module boots, I get the following:

5236 : WIFI : Connected! IP: <IP> (<name>)
5331 : EVENT: System#Boot
5336 : ACT : timerSet,1,5
5402 : FS : Error while reading/writing config.dat in 926
5502 : WD : Uptime 0 ConnectFailures 0 FreeMem 22808
5518 : EVENT: Clock#Time=Thu,15:39
7339 : DS : Temperature: 41.50 (28-ff-37-e2-0-17-3-b3)
7339 : EVENT: DSTemp#Temperature=41.50
7404 : ACT : 7dt,41.5
17976 : EVENT: Clock#Time=Thu,15:40

And the timer never expires. Can this error be related to your code?
My Rules are:

Code: Select all

On System#Boot do
  timerSet,1,5
endon

On DSTemp#Temperature do
  7dt,[DSTemp#Temperature]
endon

On Rules#Timer=1 do
 SendToHTTP <IP_2>,80,/control?cmd=lcd,1,1,test123
 timerSet,1,5
endon
IP_2 is the address of another module.

Re: Connecting a TM1637 4-Digit Display

Posted: 28 Dec 2017, 15:46
by grovkillen
This is a bug: https://github.com/letscontrolit/ESPEasy/issues/588

It is fixed in current code but no "dev release" yet. You can compile current code if you know how to or wait for it to be released.

Re: Connecting a TM1637 4-Digit Display

Posted: 28 Dec 2017, 16:36
by sentinel
thanks for the quick response! (I'll check the list of issues next time)