Skip to content
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

special characters like brackets as tag values #15

Open
h4de5 opened this issue Mar 1, 2021 · 0 comments
Open

special characters like brackets as tag values #15

h4de5 opened this issue Mar 1, 2021 · 0 comments

Comments

@h4de5
Copy link

h4de5 commented Mar 1, 2021

I am trying to put more flexibility into home-assistant and rhasspy. one part of this is to define more complex rules and parameters:

[FetchUrl]
how is the weather [today|outside] (:){url:https://www.zamg.ac.at/cms/de/wetter/wetter-oesterreich} (:){xpath://*[@id="prognosenText"]/p/text()}

above is just one example - here I send an url and path within the content of that website, to be retrieved by a script in home-assistant.

I can't find a way to set the tag xpath to include characters like: ()[]=

i assume it breaks while during parsing:

"No group preceeding literal",

I know it is quite a stretch to ask - but is it possible to allow more characters as tag values?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant