Google Firebase with webhooks tutorial


#42

I followed the tutorial and of course struggled getting the Particle CLI installed on this new Mac.

Once I got Particle CLI working I was able to create the WebHook:

{
    "event": "Environment Read",
    "url": "hsdfgsdfgsdfgsdfgsdfgsdfg.com/environmentdata/data.json",
    "requestType": "POST",
    "query": {
        "auth": "rfdgsdfgsdfgsdfgsdfgsdfgsdfgsdfgsdfg"
    },
    "json": {
        "Temperature": "{{temp}}",
        "Humididty": "{{humidity}}",
        "Voltage": "{{voltage}}",
        "Device": "{{device}}",
        "ts": "{{PARTICLE_PUBLISHED_AT}}"
    },
    "mydevices": true,
    "noDefaults": true
}

Which gives me this in the database:

Makes me wonder why the data didn’t go into the right fields. You’ll notice the empty strings.

Cheers,