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

Feature request, titlemap to accept json objects from the message payload. #35

Closed
matbor opened this issue Mar 16, 2014 · 3 comments
Closed

Comments

@matbor
Copy link
Contributor

matbor commented Mar 16, 2014

If the message payload has json objects in it, and you want some of them to pass thru to the title/subject in 'titlemap'

For example I want to past the {fcast_town} json object thru to the title, this object exists in the payload message.

titlemap = {
    'monitoring/icinga/#'   : 'Info',
    'notification/warn'     : 'Warning',
    'notification/error'    : 'Error',
    '/software/bom_forecast2mqtt/forecast/#' : 'Weather Forecast for {fcast_town}',
}
@jpmens
Copy link
Collaborator

jpmens commented Mar 16, 2014

This will be done for newconfig as soon as we've clarified some stuff.
On Mar 16, 2014 12:06 PM, "matbor" notifications@github.com wrote:

If the message payload has json objects in it, and you want some of them
to pass thru to the title/subject in 'titlemap'

For example I want to past the {fcast_town} json object thru to the
title, this object exists in the payload message.

titlemap = {
'monitoring/icinga/#' : 'Info',
'notification/warn' : 'Warning',
'notification/error' : 'Error',
'/software/bom_forecast2mqtt/forecast/#' : 'Weather Forecast for {fcast_town}',
}

Reply to this email directly or view it on GitHubhttps://github.com//issues/35
.

@jpmens
Copy link
Collaborator

jpmens commented Mar 16, 2014

Note to self: title = func()

@matbor
Copy link
Contributor Author

matbor commented Mar 16, 2014

Cool, thought so, should have a chance to have a play with newconfig for you tmr at work.

@jpmens jpmens closed this as completed in 993de58 Mar 17, 2014
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

2 participants