-
Notifications
You must be signed in to change notification settings - Fork 26
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
How to reference JSON key with whitespace #112
Comments
Does the sensor supply JSON or just the text you supplied? |
Sensor supplies it in JSON format, which is what I pasted (but I couldn't figure out how to maintain the spacing). |
Screen shot? |
So there's an attribute for each day? Can you put this in your
|
I'm not an expert, but I don't think you can do this directly. However, I've come up with two options. One is to display them in a single row: The card definition is:
If there are fewer than four tides, those columns will show as blank. The second method is to convert the JSON into a structure that
Then the card definition is:
I realize neither of these is ideal, but perhaps it will give you some inspiration. And if anyone else has a better solution, please chime in! |
This is great, thanks very much! |
I have a sensor that spits out the following (for example):
I've tried a few ways to reference, e.g., day_1.Tides."1st Tide".Time but I can't seem to get it to work...
The text was updated successfully, but these errors were encountered: