-
Hi, I am trying to store some values that are in arrays in the incoming json. Here is an example:
In this case, the 35 should map to soilTemp1, and so on. I can't see how that is done and would appreciate any pointers to docs. If there aren't any, I am happy to add to the complete json example. |
Beta Was this translation helpful? Give feedback.
Replies: 10 comments 13 replies
-
Unfortunately this format is currently not supported. I am thinking the configuration would look like this.
I haven't touched the json parser in a long time, so I'm not sure how long it will take to implement. I'll keep you updated on the progress. |
Beta Was this translation helpful? Give feedback.
-
I would *love* to help vet alpha, then beta. I have a nice side by side
install of weewx talking to a Wifi Logger 2 via WeatherLink and one that
pushes MQTT - they are both listening to the same ISS.
…--
Tom Mitchell
***@***.***
Real Time Beverly, MA Weather
http://weather.tom.org
"The whole problem with the world
is that fools and fanatics are
always so certain of themselves,
and wiser people so full of doubts."
- Bertrand Russell
On Thu, Mar 31, 2022 at 9:52 PM Rich Bell ***@***.***> wrote:
That’s the current thought.
Also, all ‘field’ options would be supported ‘under’ subfields. subfields
would inherit fields options and could override them.
i’ve god a pretty good plan on how to implement this. Let me know if you
are interested in any alpha or beta code. alpha code would pass current
tests and pass the eye test for the new function. beta would pass basic
tests for new function, but not all edge cases.
rich
—
Reply to this email directly, view it on GitHub
<#148 (reply in thread)>,
or unsubscribe
</~https://github.com/notifications/unsubscribe-auth/AAAM2EVHTXL6EXL7GIO64KDVCZJF3ANCNFSM5SDSNJ6Q>
.
You are receiving this because you authored the thread.Message ID:
<bellrichm/WeeWX-MQTTSubscribe/repo-discussions/148/comments/2482557@
github.com>
|
Beta Was this translation helpful? Give feedback.
-
I've got something running...
And this configuration
I got this output
|
Beta Was this translation helpful? Give feedback.
-
That worked. So it's running and I will fold in the array elements to test
later, probably not until tomorrow.
…--
Tom Mitchell
***@***.***
Real Time Beverly, MA Weather
http://weather.tom.org
"The whole problem with the world
is that fools and fanatics are
always so certain of themselves,
and wiser people so full of doubts."
- Bertrand Russell
On Sun, Apr 3, 2022 at 10:30 AM Rich Bell ***@***.***> wrote:
I’ve never done it, but you should be able to just run wee_extension
against the zip file or if cloned, the WeeWX-MQTTSubscribe directory.
—
Reply to this email directly, view it on GitHub
<#148 (reply in thread)>,
or unsubscribe
</~https://github.com/notifications/unsubscribe-auth/AAAM2ERQHP6WGDY7EKZZDL3VDGTQRANCNFSM5SDSNJ6Q>
.
You are receiving this because you authored the thread.Message ID:
<bellrichm/WeeWX-MQTTSubscribe/repo-discussions/148/comments/2495048@
github.com>
|
Beta Was this translation helpful? Give feedback.
-
Quick update: I have this installed and configured this on two sites: https://weewx-dev-classic.tom.org/ - this depends on my laptop's connection to the web (where mqtt is running) as well as a local database. Very much pure experimentation and local development. Also, no use of the soil temp or moisture sensors yet. These two sites run against the same station/topics. One is seasons skin and one is Belchertown. Both run in the cloud on Kubernetes/Docker. More stable and where I will test. Uses soilTemp1-4 and soilMoist3. https://vtwx-dev-classic.tom.org/ - Seasons skin |
Beta Was this translation helpful? Give feedback.
-
I have added a check that the length of the array is the same as the number of subfields. |
Beta Was this translation helpful? Give feedback.
-
Subfields should now inherit configuration options. |
Beta Was this translation helpful? Give feedback.
-
OK, I'll get a PR ready for ya. Assuming a well-commented weewx.conf is
what you're looking for in the exampleConfigs directory is what you're
looking for or should I do a subdirectory under it where I can document how
to config the WFL and also weewx?
…--
Tom Mitchell
***@***.***
Real Time Beverly, MA Weather
http://weather.tom.org
"The whole problem with the world
is that fools and fanatics are
always so certain of themselves,
and wiser people so full of doubts."
- Bertrand Russell
On Tue, Apr 5, 2022 at 11:57 AM Rich Bell ***@***.***> wrote:
Subfields should now inherit configuration options.
I’d consider code now beta. I don’t plan on any updates unless you find
something that doesn’t work or doesn’t make sense.
—
Reply to this email directly, view it on GitHub
<#148 (comment)>,
or unsubscribe
</~https://github.com/notifications/unsubscribe-auth/AAAM2EWLHKCSQAVI7PLTT4DVDRPHLANCNFSM5SDSNJ6Q>
.
You are receiving this because you authored the thread.Message ID:
<bellrichm/WeeWX-MQTTSubscribe/repo-discussions/148/comments/2509387@
github.com>
|
Beta Was this translation helpful? Give feedback.
-
Rich, is this working now, including soil moisture? |
Beta Was this translation helpful? Give feedback.
-
Yeah I got that one out of the blue too. I appreciate your work and will be
cutting some weewx over. Please let me know how I can do more to help.
…On Tue, Oct 11, 2022, 10:42 Rich Bell ***@***.***> wrote:
You did. But I got an email from GitHub this morning with that comment…
I was confused, but thought maybe you wanted to add/update.
As far as I’m concerned, we are all set
—
Reply to this email directly, view it on GitHub
<#148 (reply in thread)>,
or unsubscribe
</~https://github.com/notifications/unsubscribe-auth/AAAM2ERQP4VDEQ6SVHM4WIDWCV4HHANCNFSM5SDSNJ6Q>
.
You are receiving this because you authored the thread.Message ID:
<bellrichm/WeeWX-MQTTSubscribe/repo-discussions/148/comments/3851353@
github.com>
|
Beta Was this translation helpful? Give feedback.
Subfields should now inherit configuration options.
I’d consider code now beta. I don’t plan on any updates unless you find something that doesn’t work or doesn’t make sense.