-
Notifications
You must be signed in to change notification settings - Fork 4.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow setting of TIME_DST and TIME_STD values from Tasmota Console #2721
Comments
Agree. |
what approach you think would be good to accomplish that? a command for each part? like DST_MONTH DST_HOUR ? |
It will have to be a compromise between code size and functionality. The problem with these parameters are that many user input errors need to be prevented. Allowing only numbers saves a lot of code space wasted on string comparison but is less user friendly... Your approach of separate commands sounds good. Let me think about a way to store all possible values in as small as possible Settings value(s). |
Well, right now, users need to set it manually and compile it. So, there is no option at all. Perhaps someone could wrote a small python script that allows you to calculate the number that Tasmota is using and you enter that value. Would that not prevent an increase in memory? We could make that the v.1 deliverable and work further on refining it and making it more user friendly. Just exposing it to the console for manipulation would be an improvement. |
@ascillato just uploaded an updated settings.h with room for STD/DST. |
😄 👍 |
Wow! so fast! I was just looking how this can be done and PUFF! you have it! Amazing. It is almost done. Thanks. |
I used to set STD/DST in user_config_override.h file and compile. |
You have to set your DST and STD on user_config.h
El lun., 14 de may. de 2018 11:03, qingz2004 <[email protected]>
escribió:
… I used to set STD/DST in user_config_override.h file and compile.
Yesterday, I updated to v5.13.1b, and all of the sudden, my time is off.
How can I set it in console or GUI without compiling and uploading again?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#2721 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/Ahw-h0jyi49SO7k5049Ofk5NpCDhtTWuks5tyY61gaJpZM4T8056>
.
|
I was able to set DST and STD in user_config_override.h, and it worked fine with all previous versions. |
5.13.1c * Add user entry DST/STD using commands TimeStd and TimeDst with options like 0,0,3,1,2,120 (#2721)
Tested and work great! 👍 Thanks Added also to the wiki the |
@apastuszak please test it and if works close the issue. Thanks |
@ascillato I will need to compile in the morning and flash something. Also, don't see anything in the wiki. |
Please, check it again. It is there on commands. |
I did a search for TimeDST instead of Time_DST. It's 11:00 PM in my corner of the world, so I will test in the morning. |
Ups. my bad. The command is TimeDST. updating the wiki Thanks 👍 |
That will make my morning. Less frustrating! :-) |
😆 |
I'm getting a compilation error on sonoff_minimal:
|
@apastuszak expected with pio. Just start the compilation again and if still fails remove the .pioenvs folder |
Compiled and worked good. |
Still won't compile for me.
|
You'll need to update the TasmotaSerial library too (now 2.0.0) |
Try on the menu platform.io the option rebuild c/c++
El mar., 15 de may. de 2018 10:15, apastuszak <[email protected]>
escribió:
… Still won't compile for me.
F:/Andy/Downloads/Sonoff-Tasmota-development/sonoff/xdrv_03_energy.ino: In function 'void EnergySnsInit()':
F:/Andy/Downloads/Sonoff-Tasmota-development/sonoff/xdrv_03_energy.ino:1046:75: error: no matching function for call to 'TasmotaSerial::TasmotaSerial(uint8_t&, uint8_t&, int)'
PzemSerial = new TasmotaSerial(pin[GPIO_PZEM_RX], pin[GPIO_PZEM_TX], 1);
^
F:/Andy/Downloads/Sonoff-Tasmota-development/sonoff/xdrv_03_energy.ino:1046:75: note: candidates are:
In file included from F:/Andy/Downloads/Sonoff-Tasmota-development/sonoff/xdrv_03_energy.ino:415:0:
lib\TasmotaSerial-1.2.0\src/TasmotaSerial.h:40:5: note: TasmotaSerial::TasmotaSerial(int, int)
TasmotaSerial(int receive_pin, int transmit_pin);
^
lib\TasmotaSerial-1.2.0\src/TasmotaSerial.h:40:5: note: candidate expects 2 arguments, 3 provided
lib\TasmotaSerial-1.2.0\src/TasmotaSerial.h:38:7: note: constexpr TasmotaSerial::TasmotaSerial(const TasmotaSerial&)
class TasmotaSerial : public Stream {
^
lib\TasmotaSerial-1.2.0\src/TasmotaSerial.h:38:7: note: candidate expects 1 argument, 3 provided
lib\TasmotaSerial-1.2.0\src/TasmotaSerial.h:38:7: note: constexpr TasmotaSerial::TasmotaSerial(TasmotaSerial&&)
lib\TasmotaSerial-1.2.0\src/TasmotaSerial.h:38:7: note: candidate expects 1 argument, 3 provided
F:/Andy/Downloads/Sonoff-Tasmota-development/sonoff/xdrv_03_energy.ino:1048:23: error: 'class TasmotaSerial' has no member named 'hardwareSerial'
if (PzemSerial->hardwareSerial()) { ClaimSerial(); }
^
F:/Andy/Downloads/Sonoff-Tasmota-development/sonoff/xsns_15_mhz19.ino: In function 'void MhzInit()':
F:/Andy/Downloads/Sonoff-Tasmota-development/sonoff/xsns_15_mhz19.ino:287:74: error: no matching function for call to 'TasmotaSerial::TasmotaSerial(uint8_t&, uint8_t&, int)'
MhzSerial = new TasmotaSerial(pin[GPIO_MHZ_RXD], pin[GPIO_MHZ_TXD], 1);
^
F:/Andy/Downloads/Sonoff-Tasmota-development/sonoff/xsns_15_mhz19.ino:287:74: note: candidates are:
In file included from F:/Andy/Downloads/Sonoff-Tasmota-development/sonoff/xdrv_03_energy.ino:415:0:
lib\TasmotaSerial-1.2.0\src/TasmotaSerial.h:40:5: note: TasmotaSerial::TasmotaSerial(int, int)
TasmotaSerial(int receive_pin, int transmit_pin);
^
lib\TasmotaSerial-1.2.0\src/TasmotaSerial.h:40:5: note: candidate expects 2 arguments, 3 provided
lib\TasmotaSerial-1.2.0\src/TasmotaSerial.h:38:7: note: constexpr TasmotaSerial::TasmotaSerial(const TasmotaSerial&)
class TasmotaSerial : public Stream {
^
lib\TasmotaSerial-1.2.0\src/TasmotaSerial.h:38:7: note: candidate expects 1 argument, 3 provided
lib\TasmotaSerial-1.2.0\src/TasmotaSerial.h:38:7: note: constexpr TasmotaSerial::TasmotaSerial(TasmotaSerial&&)
lib\TasmotaSerial-1.2.0\src/TasmotaSerial.h:38:7: note: candidate expects 1 argument, 3 provided
F:/Andy/Downloads/Sonoff-Tasmota-development/sonoff/xsns_15_mhz19.ino:289:22: error: 'class TasmotaSerial' has no member named
'hardwareSerial'
if (MhzSerial->hardwareSerial()) { ClaimSerial(); }
^
F:/Andy/Downloads/Sonoff-Tasmota-development/sonoff/xsns_17_senseair.ino: In function 'void SenseairInit()':
F:/Andy/Downloads/Sonoff-Tasmota-development/sonoff/xsns_17_senseair.ino:196:78: error: no matching function for call to 'TasmotaSerial::TasmotaSerial(uint8_t&, uint8_t&, int)'
SensairSerial = new TasmotaSerial(pin[GPIO_SAIR_RX], pin[GPIO_SAIR_TX], 1);
^
F:/Andy/Downloads/Sonoff-Tasmota-development/sonoff/xsns_17_senseair.ino:196:78: note: candidates are:
In file included from F:/Andy/Downloads/Sonoff-Tasmota-development/sonoff/xdrv_03_energy.ino:415:0:
lib\TasmotaSerial-1.2.0\src/TasmotaSerial.h:40:5: note: TasmotaSerial::TasmotaSerial(int, int)
TasmotaSerial(int receive_pin, int transmit_pin);
^
lib\TasmotaSerial-1.2.0\src/TasmotaSerial.h:40:5: note: candidate expects 2 arguments, 3 provided
lib\TasmotaSerial-1.2.0\src/TasmotaSerial.h:38:7: note: constexpr TasmotaSerial::TasmotaSerial(const TasmotaSerial&)
class TasmotaSerial : public Stream {
^
lib\TasmotaSerial-1.2.0\src/TasmotaSerial.h:38:7: note: candidate expects 1 argument, 3 provided
lib\TasmotaSerial-1.2.0\src/TasmotaSerial.h:38:7: note: constexpr TasmotaSerial::TasmotaSerial(TasmotaSerial&&)
lib\TasmotaSerial-1.2.0\src/TasmotaSerial.h:38:7: note: candidate expects 1 argument, 3 provided
F:/Andy/Downloads/Sonoff-Tasmota-development/sonoff/xsns_17_senseair.ino:198:26: error: 'class TasmotaSerial' has no member named 'hardwareSerial'
if (SensairSerial->hardwareSerial()) { ClaimSerial(); }
^
F:/Andy/Downloads/Sonoff-Tasmota-development/sonoff/xsns_18_pms5003.ino: In function 'void PmsInit()':
F:/Andy/Downloads/Sonoff-Tasmota-development/sonoff/xsns_18_pms5003.ino:105:59: error: no matching function for call to 'TasmotaSerial::TasmotaSerial(uint8_t&, int, int)'
PmsSerial = new TasmotaSerial(pin[GPIO_PMS5003], -1, 1);
^
F:/Andy/Downloads/Sonoff-Tasmota-development/sonoff/xsns_18_pms5003.ino:105:59: note: candidates are:
In file included from F:/Andy/Downloads/Sonoff-Tasmota-development/sonoff/xdrv_03_energy.ino:415:0:
lib\TasmotaSerial-1.2.0\src/TasmotaSerial.h:40:5: note: TasmotaSerial::TasmotaSerial(int, int)
TasmotaSerial(int receive_pin, int transmit_pin);
^
lib\TasmotaSerial-1.2.0\src/TasmotaSerial.h:40:5: note: candidate expects 2 arguments, 3 provided
lib\TasmotaSerial-1.2.0\src/TasmotaSerial.h:38:7: note: constexpr TasmotaSerial::TasmotaSerial(const TasmotaSerial&)
class TasmotaSerial : public Stream {
^
lib\TasmotaSerial-1.2.0\src/TasmotaSerial.h:38:7: note: candidate expects 1 argument, 3 provided
lib\TasmotaSerial-1.2.0\src/TasmotaSerial.h:38:7: note: constexpr TasmotaSerial::TasmotaSerial(TasmotaSerial&&)
lib\TasmotaSerial-1.2.0\src/TasmotaSerial.h:38:7: note: candidate expects 1 argument, 3 provided
F:/Andy/Downloads/Sonoff-Tasmota-development/sonoff/xsns_18_pms5003.ino:107:22: error: 'class TasmotaSerial' has no member named 'hardwareSerial'
if (PmsSerial->hardwareSerial()) { ClaimSerial(); }
^
F:/Andy/Downloads/Sonoff-Tasmota-development/sonoff/xsns_20_novasds.ino: In function 'void NovaSdsInit()':
F:/Andy/Downloads/Sonoff-Tasmota-development/sonoff/xsns_20_novasds.ino:87:62: error: no matching function for call to 'TasmotaSerial::TasmotaSerial(uint8_t&, int, int)'
NovaSdsSerial = new TasmotaSerial(pin[GPIO_SDS0X1], -1, 1);
^
F:/Andy/Downloads/Sonoff-Tasmota-development/sonoff/xsns_20_novasds.ino:87:62: note: candidates are:
In file included from F:/Andy/Downloads/Sonoff-Tasmota-development/sonoff/xdrv_03_energy.ino:415:0:
lib\TasmotaSerial-1.2.0\src/TasmotaSerial.h:40:5: note: TasmotaSerial::TasmotaSerial(int, int)
TasmotaSerial(int receive_pin, int transmit_pin);
^
lib\TasmotaSerial-1.2.0\src/TasmotaSerial.h:40:5: note: candidate expects 2 arguments, 3 provided
lib\TasmotaSerial-1.2.0\src/TasmotaSerial.h:38:7: note: constexpr TasmotaSerial::TasmotaSerial(const TasmotaSerial&)
class TasmotaSerial : public Stream {
^
lib\TasmotaSerial-1.2.0\src/TasmotaSerial.h:38:7: note: candidate expects 1 argument, 3 provided
lib\TasmotaSerial-1.2.0\src/TasmotaSerial.h:38:7: note: constexpr TasmotaSerial::TasmotaSerial(TasmotaSerial&&)
lib\TasmotaSerial-1.2.0\src/TasmotaSerial.h:38:7: note: candidate expects 1 argument, 3 provided
F:/Andy/Downloads/Sonoff-Tasmota-development/sonoff/xsns_20_novasds.ino:89:26: error: 'class TasmotaSerial' has no member named 'hardwareSerial'
if (NovaSdsSerial->hardwareSerial()) { ClaimSerial(); }
^
F:/Andy/Downloads/Sonoff-Tasmota-development/sonoff/xsns_23_sdm120.ino: In function 'void SDM120Init()':
F:/Andy/Downloads/Sonoff-Tasmota-development/sonoff/xsns_23_sdm120.ino:208:81: error: no matching function for call to 'TasmotaSerial::TasmotaSerial(uint8_t&, uint8_t&, int)'
SDM120Serial = new TasmotaSerial(pin[GPIO_SDM120_RX], pin[GPIO_SDM120_TX], 1);
^
F:/Andy/Downloads/Sonoff-Tasmota-development/sonoff/xsns_23_sdm120.ino:208:81: note: candidates are:
In file included from F:/Andy/Downloads/Sonoff-Tasmota-development/sonoff/xdrv_03_energy.ino:415:0:
lib\TasmotaSerial-1.2.0\src/TasmotaSerial.h:40:5: note: TasmotaSerial::TasmotaSerial(int, int)
TasmotaSerial(int receive_pin, int transmit_pin);
^
lib\TasmotaSerial-1.2.0\src/TasmotaSerial.h:40:5: note: candidate expects 2 arguments, 3 provided
lib\TasmotaSerial-1.2.0\src/TasmotaSerial.h:38:7: note: constexpr TasmotaSerial::TasmotaSerial(const TasmotaSerial&)
class TasmotaSerial : public Stream {
^
lib\TasmotaSerial-1.2.0\src/TasmotaSerial.h:38:7: note: candidate expects 1 argument, 3 provided
lib\TasmotaSerial-1.2.0\src/TasmotaSerial.h:38:7: note: constexpr TasmotaSerial::TasmotaSerial(TasmotaSerial&&)
lib\TasmotaSerial-1.2.0\src/TasmotaSerial.h:38:7: note: candidate expects 1 argument, 3 provided
F:/Andy/Downloads/Sonoff-Tasmota-development/sonoff/xsns_23_sdm120.ino:214:25: error: 'class TasmotaSerial' has no member named 'hardwareSerial'
if (SDM120Serial->hardwareSerial()) { ClaimSerial(); }
^
*C** [.pioenvs\sonoff\src\sonoff.ino.cpp.o] Error 1ompiling .pioenvs\sonoff\lib4dd\ESP8266WiFi\ESP8266WiFiMulti.cpp.o
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#2721 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/Ahw-h5ojbZRiIBaNJpzyCZuqMdZ8XanLks5tytTfgaJpZM4T8056>
.
|
@arendst Need some hand-holding on how how to do that. |
Copy from the repository lib folder the (new) TasmotaSerial-2.0.0 folder to your local lib folder. Remove the current TasmotaSerial-1.2.0 folder |
@arendst Had both 1.2 and 2.0 folders. Deleted 1.2 and I think it's OK. Thanks. |
OK, got everything to compile. Flashed Sonoff minimal without issue. Flashes full Sonoff and device rebooted and I get a rapidly flashing green light. Flashed with WIFI_MANAGER option. It's not coming up with it's own wifi network to connect to. I held the button down for 10 seconds to do a wipe and it still won't come up or show a wifi network. I'm going to need to flash using the serial adapter. Sorry for the delay. |
Ok flashed to 5.12.0. Then tried to do an OTA to 5.14.0 using Sonoff minimal and am once again am getting flashing green light every second on a Sonoff Basic. I'll need to take it apart again to flash serially. |
Ok, FINALLY managed to flash 5.14.0 using Visual Studio Code and Platform I/O over serial. DST settings seem to be working fine. Thank you much for implementing this so quickly! Closing issue. |
Prep for user entry STD/DST (arendst#2721)
Prep for user entry STD/DST (arendst#2721)
Prep for user entry DST/STD (arendst#2721)
5.13.1c * Add user entry DST/STD using commands TimeStd and TimeDst with options like 0,0,3,1,2,120 (arendst#2721)
Have you look for this feature in other issues and in the wiki?
Yes
Is your feature request related to a problem? Please describe.
I am unable to use local time to set timers without recompiling Tasmota myself. The provided binaries do not work well for me, since they're compiled with UTC+1.
Describe the solution you'd like
Be able to set TIME_DST and TIME_STD from the console, the way you can other paramters.
Describe alternatives you've considered
I can't think of an alternative, since I was told these values can only be set at compile time.
Additional context
I think the binaries available for download should be as generic as possible. Not being able to configure timezone rules after install from the console makes the supplied binaries on Github more difficult to use.
(Please, remember to close the issue when the problem has been addressed)
The text was updated successfully, but these errors were encountered: