I’m looking to improve the netatmo service (which is in PR).
Netatmo has a webhook service that allows you to retrieve events such as the last person seen by a camera, or the last movement detected by a camera, and the goal is to retrieve an image from the camera. This would greatly improve the service.
To do this, you need to open gladys to the outside. Hence the interest of Gladys Plus!
Question for you then @pierre-gilles, is it easy to contribute to Gladys Plus, have you planned for this kind of case?
const data = {
user_id: 'XXXXXXXXX' // The uuid of the user making the request. Probably unnecessary in your case.
netatmo_data: {} // The body of the netatmo webhook
};
Don’t forget to create the « EVENTS.GATEWAY.NEW_MESSAGE_NETATMO » in the constants, and voila, you should receive an event when a webhook is received
I couldn’t test it much in real conditions, so it’s possible we’ll discover things: is the netatmo payload too heavy or not serializable?
Well, I can’t really comment too much on this topic, but it’s true that it’s an option to consider for people who have a Gladys instance exposed on the internet. After all, it’s not for everyone (security, etc. :)).
So, as a developer, I assume we’re using gladys more. But if someone develops a feature like webhooks on local gladys, why not, I’ll use it