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

convert JSON to pymsteams #57

Open
nuketownhf opened this issue Oct 22, 2019 · 1 comment
Open

convert JSON to pymsteams #57

nuketownhf opened this issue Oct 22, 2019 · 1 comment
Labels

Comments

@nuketownhf
Copy link

nuketownhf commented Oct 22, 2019

Hello,
I tried converting following JSON into your pymsteams logic:
PICTURE

{
    "@type": "MessageCard",
    "@context": "http://schema.org/extensions",
    "themeColor": "86bb0b",
    "summary": "Eingehende Ring Doorbell Benachrichtigung!",
    "sections": [{
        "activityTitle": "ACHTUNG!",
        "activitySubtitle": "von RealRing API v1",
        "activityImage": "data:image/jpeg;base64,/9j/4.....",
        "facts": [{
            "name": "Ort",
            "value": "%s"
        }, {
            "name": "Zeitpunkt",
            "value": "%s" 
            
        }],
        "markdown": true
    }],
    "potentialAction": [{
        "@type": "ActionCard",
        "name": "LIVESTREAM",
        "@type": "openUri",
         "targets": [
    { "os": "default", "uri": "https://f6f7a6ef2.ngrok.io/..." }

]
        
        
    
    }, {
        "@type": "ActionCard",
        "name": "Zutritt erlauben",
        "actions": [{
            "@type": "HttpPOST",
            "name": "Genehmigen",
            "target": "https://f6f76aef2.ngrok.io.....",
            "bodyContentType":"application/json",
            "body": '{
                "id" : "%s"
                }'
        }]
    }]
}

But somehow I cant figure out how I can remake this.
Just by the way, with this JSON i don't get the button which says "LIVESTREAM" on mobile phone so basically on mobile I can only see the button called "Zutritt erlauben", do you possibly know why?

thanks

@nuketownhf nuketownhf added the bug label Oct 22, 2019
@mpg-data
Copy link

Hello, how do you convert the JSON to pymsteams?

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

No branches or pull requests

2 participants