Water Flow Sensor for Tasmota #15302
Replies: 15 comments 9 replies
-
Only detail available clicking on that link is |
Beta Was this translation helpful? Give feedback.
-
Hi @trlafleur I had a short look at your code, not from the functional point of view but globally as Tasmota Driver good rules of implementation
Thanks |
Beta Was this translation helpful? Give feedback.
-
Thanks for the update, I will look at making changes to implement your thoughts... as there is no document on building a driver, I was somewhat in the dark on how to develop this... but everything makes sense. Are there any examples of using boot-rule or autoexec.bat to save and restore settings structures?? The global Settings structure, as you pointed out is almost full... what are the plans if any, to solve this issue as Tasmota keeps growing... volatile in the ISR was an oversight when I move them from a global to the ISR Thanks for your help... |
Beta Was this translation helpful? Give feedback.
-
I have implemented most of your suggestions, but when I run the code with dynamic allocation of the struct, the system crashes on startup... can't seem to resolve this...
|
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
ok, found the issue, I was using a variable that was in the struct prior to allocating the struct... a lot of effort to save 92 bytes when in the esp32, we still have over 263k or ram remaining... but, a good learning experience... thanks... |
Beta Was this translation helpful? Give feedback.
-
What causes the Settings (TSettings) struct to be saved?? |
Beta Was this translation helpful? Give feedback.
-
Thanks, That's what I expected.... |
Beta Was this translation helpful? Give feedback.
-
I want to store defaults in Settings.h at the first startup of new code... how can I tell if 1st startup or a reboot |
Beta Was this translation helpful? Give feedback.
-
Thanks for the help... You may want to look over what I have done, to see if I have complied with the needed Tasmota standards. If you find my project of interest, I could do a pull request in the future. At this point, I have only tested with ESP32, and ESP32S3. I have 8 Tasmota devices running with this code connected to water meters and flow sensors. |
Beta Was this translation helpful? Give feedback.
-
I have updated my code base to ver 1.4 under Tasmota 12.3.1.1
|
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
I’m in Africa, back home end of September
There are command via serial or web to change everything
~~ _/) ~~~~ _/) ~~~~ _/) ~~~~ _/) ~~
Tom Lafleur
…On Sun, Sep 1, 2024 at 1:10 PM sfromis ***@***.***> wrote:
Details depend on what you specifically mean by "customize the paramters
to metric", as defaults are already metric. For temperature there is
SetOption8 with SetOption24 for atmospheric pressure.
—
Reply to this email directly, view it on GitHub
<#15302 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABC4EK6RFHHN6BDKE3JSUGDZULY4HAVCNFSM6AAAAABL5YR6NCVHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTANJRGE3DMMA>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
Not south africa by chance? Thank you.
…On Sun, 1 Sept 2024 at 18:33, Tom Lafleur ***@***.***> wrote:
I’m in Africa, back home end of September
There are command via serial or web to change everything
~~ _/) ~~~~ _/) ~~~~ _/) ~~~~ _/) ~~
Tom Lafleur
On Sun, Sep 1, 2024 at 1:10 PM sfromis ***@***.***> wrote:
> Details depend on what you specifically mean by "customize the paramters
> to metric", as defaults are already metric. For temperature there is
> SetOption8 with SetOption24 for atmospheric pressure.
>
> —
> Reply to this email directly, view it on GitHub
> <
#15302 (comment)>,
> or unsubscribe
> <
https://github.com/notifications/unsubscribe-auth/ABC4EK6RFHHN6BDKE3JSUGDZULY4HAVCNFSM6AAAAABL5YR6NCVHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTANJRGE3DMMA>
> .
> You are receiving this because you were mentioned.Message ID:
> ***@***.***>
>
—
Reply to this email directly, view it on GitHub
<#15302 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AE32SYVMB37JIM642APDMSLZUM6T5AVCNFSM6AAAAABL5YR6NCVHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTANJRGMZDQNA>
.
You are receiving this because you commented.Message ID:
***@***.***>
--
Etienne Fourie
|
Beta Was this translation helpful? Give feedback.
-
Yes, I’m Zimbabwe
~~ _/) ~~~~ _/) ~~~~ _/) ~~~~ _/) ~~
Tom Lafleur
…On Sun, Sep 1, 2024 at 8:24 PM Moominza ***@***.***> wrote:
Not south africa by chance? Thank you.
On Sun, 1 Sept 2024 at 18:33, Tom Lafleur ***@***.***> wrote:
> I’m in Africa, back home end of September
>
> There are command via serial or web to change everything
>
>
>
>
> ~~ _/) ~~~~ _/) ~~~~ _/) ~~~~ _/) ~~
>
>
> Tom Lafleur
>
>
>
> On Sun, Sep 1, 2024 at 1:10 PM sfromis ***@***.***> wrote:
>
> > Details depend on what you specifically mean by "customize the
paramters
> > to metric", as defaults are already metric. For temperature there is
> > SetOption8 with SetOption24 for atmospheric pressure.
> >
> > —
> > Reply to this email directly, view it on GitHub
> > <
>
#15302 (comment)>,
>
> > or unsubscribe
> > <
>
https://github.com/notifications/unsubscribe-auth/ABC4EK6RFHHN6BDKE3JSUGDZULY4HAVCNFSM6AAAAABL5YR6NCVHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTANJRGE3DMMA>
>
> > .
> > You are receiving this because you were mentioned.Message ID:
> > ***@***.***>
> >
>
> —
> Reply to this email directly, view it on GitHub
> <
#15302 (comment)>,
> or unsubscribe
> <
https://github.com/notifications/unsubscribe-auth/AE32SYVMB37JIM642APDMSLZUM6T5AVCNFSM6AAAAABL5YR6NCVHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTANJRGMZDQNA>
> .
> You are receiving this because you commented.Message ID:
> ***@***.***>
>
--
Etienne Fourie
—
Reply to this email directly, view it on GitHub
<#15302 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABC4EK25EGYL273GYKPBDUDZUNLWHAVCNFSM6AAAAABL5YR6NCVHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTANJRGM4TEMQ>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
This is a pre-release copy of my water Flow Sensor for TASMOTA...
I have been using it for a few weeks now and it works well in my system feeding data to Grafana and NodeRed.
I started the development using the "xsns_01_counter.ino" as my guide.
I'm open to suggestions on what I may need to change or what I should modify in this code.
Detailed information is here:
https://github.com/trlafleur/Flow-Sensor-Tasmota
Beta Was this translation helpful? Give feedback.
All reactions