7 segment display: toggle modes?
Moderators: grovkillen, Stuntteam, TD-er
7 segment display: toggle modes?
I looked through the code of the respective plugin (_P073_7DGT.ino) but I may have missed it: is there a command to toggle between one of the clock modes and 'manual' modes?
Re: 7 segment display: toggle modes?
Have you tried the commands listed in the documentation? https://espeasy.readthedocs.io/en/lates ... -available
Re: 7 segment display: toggle modes?
Yes, of course but there is no command mentioned to switch modes. I tried the one to set the time but that does not really activate the clock mode.TD-er wrote: ↑05 Oct 2021, 21:43 Have you tried the commands listed in the documentation? https://espeasy.readthedocs.io/en/lates ... -available
Re: 7 segment display: toggle modes?
Ah, you need a '7output,<output>' command. I'll see what I can do about that ![Idee :idea:](./images/smilies/icon_idea.gif)
Edit: Changed 7mode to 7output.
![Idee :idea:](./images/smilies/icon_idea.gif)
Edit: Changed 7mode to 7output.
/Ton (PayPal.me)
Re: 7 segment display: toggle modes?
Thanks for looking into this. Take your time. A workaround for me is that I generate and send the text via MQTT from Node RED every 30 seconds, alternating between time and temperature.
Re: 7 segment display: toggle modes?
Well, that can also be achieved by some rules "magic" (well, not really magic, just rules
)
![Lachend :lol:](./images/smilies/icon_lol.gif)
Code: Select all
on system#boot do
LooptimerSet,1,30
endon
on Rules#Timer=1 do
if %v1%=0
7dst,%syshour%,%sysmin%
else
7dt,[BME280#Temperature]
endif
let,1,!%v1% // Invert
endon
/Ton (PayPal.me)
Re: 7 segment display: toggle modes?
Thanks. My sensor#value would be bmx280#temperature but it seems the command isn't working. I publish '7dt,[bmx280#temperature]' to the board's cmd topic and nothing is happening. The firmware is quite old (mega-20190817), I guess I'll freshen it once your pull request is implemented.
Re: 7 segment display: toggle modes?
I can supply a .bin here if you state what type of ESP (CPU and Flash size, just type the name of the currently used .bin file) you are using.
/Ton (PayPal.me)
Re: 7 segment display: toggle modes?
My module is a Wemos D1 mini with a 4M bin. If I remember correctly, I built the image myself since the IR receiver plugin wasn't part of the normal binary. It looks like it is now.
Re: 7 segment display: toggle modes?
The P073 (7DGT) plugin is not included in the custom_IR or minimal_IR builds, so I either have to create a special custom_IR build for you, or you get that PR local and build it yourself.
Or you could test on a normal build, but that'll be missing the IR plugins.
Normal build (NO IR INCLUDED!)
Or you could test on a normal build, but that'll be missing the IR plugins.
Normal build (NO IR INCLUDED!)
/Ton (PayPal.me)
Re: 7 segment display: toggle modes?
Thanks. I think I don't have my build environment anymore so I might test the binary on a different module. I thought that TSOP4838 IR receiver support is part of the normal build now.
Re: 7 segment display: toggle modes?
Hmm, no it isn't, actually, the documentation is wrong there (should state 'IR' instead of 'NORMAL'). I'll try to fix that soon.
I'll create a custom_IR build including P073 in the evening (CET).
I'll create a custom_IR build including P073 in the evening (CET).
/Ton (PayPal.me)
Re: 7 segment display: toggle modes?
I tested mode switching successfully. I can switch from clock mode to manual to temperature mode and back to clock mode via command without issues. Thanks for your efforts.
Re: 7 segment display: toggle modes?
I've done some small changes, so when 7output or 7db commands are used, the new setting is reflected in the configuration (7font already did that), and a save command would then save the new settings.
Here's a minimal_IRext build with the 7digit plugin included:
Here's a minimal_IRext build with the 7digit plugin included:
/Ton (PayPal.me)
Re: 7 segment display: toggle modes?
Thank you again. Since minimal does not include all my sensors I will dig out my old cloned repository, sift through the configs and try to refresh it.
Re: 7 segment display: toggle modes?
You can provide a list of plugins you require, and I can create a build with those (adding them to the minimal_IR build for now, that's quite easy (for me) to do).
Not sure if that will be a regular configuration though, as the IR plugins have been moved out of the 'normal' and 'test' builds because of the size of the plugins and the required libraries (the .bin file became too big).
Not sure if that will be a regular configuration though, as the IR plugins have been moved out of the 'normal' and 'test' builds because of the size of the plugins and the required libraries (the .bin file became too big).
/Ton (PayPal.me)
Re: 7 segment display: toggle modes?
Thank you for the kind offer. I use these sensors/plugins:
Environment - BMx280,
Light/Lux - TSL2561,
Output - NeoPixel (Basic),
Switch input - Switch,
Communication - TSOP4838,
and, of course,
Display - 7-segment display.
Environment - BMx280,
Light/Lux - TSL2561,
Output - NeoPixel (Basic),
Switch input - Switch,
Communication - TSOP4838,
and, of course,
Display - 7-segment display.
Re: 7 segment display: toggle modes?
I've based this on the 'custom_IR' configuration, and included the plugins mentioned:
/Ton (PayPal.me)
Re: 7 segment display: toggle modes?
It works perfectly, thank you @Ath. I can now switch between modes via command, this is perfect.
Interestingly, the web gui also seems much more responsive in comparison to my version from two years ago.
Interestingly, the web gui also seems much more responsive in comparison to my version from two years ago.
Re: 7 segment display: toggle modes?
Great.
Please keep in mind that this a quite specialist, lets call it customized-custom, build. And strangely enough, the 'custom_IR' build didn't include the IR receiver and sender plugins
There have been many improvements to ESPEasy since 2019, and one of them, mostly done in 2021, is the quite improved UI responsiveness, achieved mostly by many WiFi improvements. TD-er has been quite busy![Lach :)](./images/smilies/icon_e_smile.gif)
Please keep in mind that this a quite specialist, lets call it customized-custom, build. And strangely enough, the 'custom_IR' build didn't include the IR receiver and sender plugins
![Geschokt :shock:](./images/smilies/icon_eek.gif)
There have been many improvements to ESPEasy since 2019, and one of them, mostly done in 2021, is the quite improved UI responsiveness, achieved mostly by many WiFi improvements. TD-er has been quite busy
![Lach :)](./images/smilies/icon_e_smile.gif)
/Ton (PayPal.me)
Re: 7 segment display: toggle modes?
I feel special.
![Beschaamd :oops:](./images/smilies/icon_redface.gif)
Minor observations: either I can't find the log view or it is missing in the special build. Where would it be? Additionally, it seems that the IP address is no longer logged to the serial console or I need to raise the log level. Both are no issues for me since I can forward the output to a syslog host and can find the IP from my DHCP server.
Re: 7 segment display: toggle modes?
I think you forgot to re-set the timer. For posterity, here's what is working for me:Ath wrote: ↑05 Oct 2021, 22:33 Well, that can also be achieved by some rules "magic" (well, not really magic, just rules)
Code: Select all
on system#boot do LooptimerSet,1,30 endon on Rules#Timer=1 do if %v1%=0 7dst,%syshour%,%sysmin% else 7dt,[BME280#Temperature] endif let,1,!%v1% // Invert endon
Code: Select all
on system#boot do
timerSet,2,1
7output,0
endon
on Rules#timer=2 do
if %v1%=0
7dst,%syshour%,%sysmin%
timerSet,2,10
else
7dt,[bmx280#temperature]
timerSet,2,5
endif
let,1,!%v1% // Invert
endon
Re: 7 segment display: toggle modes?
No, I used the LoopTimerSet command, that is re-fired at the configured interval, but has been added in a 2020-somewhere release
https://espeasy.readthedocs.io/en/lates ... optimerset
![Erg Blij :D](./images/smilies/icon_e_biggrin.gif)
/Ton (PayPal.me)
Re: 7 segment display: toggle modes?
I stand corrected and I apologize. I've been literally out of the loop about all the improvements. It seems that now I can flash my RGB LEDs in shorter intervals than just in seconds, cool.
Re: 7 segment display: toggle modes?
And lots and lots of other new features
![Lach :)](./images/smilies/icon_e_smile.gif)
Who is online
Users browsing this forum: Bing [Bot] and 33 guests