isaacrlevin / presencelight

PresenceLight is a solution to broadcast your various statuses to light bulbs.
MIT License
419 stars 77 forks source link

Custom API - REST API Body Support #848

Closed stefanstranger closed 6 months ago

stefanstranger commented 7 months ago

Thanks for creating presenselight.

I want to use the Custom API functionality to send Teams presence information to my Ulanzi Pixel Clock flashed with Awtrix.

The REST API of the Awtrix expects a REST API body to be send for notifications.

Is there an option to include a REST API body message for the Custom API REST methods in PresenceLight?

Regards, Stefan

isaacrlevin commented 7 months ago

Currently the CustomApi mechanism only has support for querystring parameters. I am more than happy to review a PR to add a REST body to that functionality.

stefanstranger commented 7 months ago

Hi Isaac,

I'm not a developer but when I've time I can try to have a go. I already forked the repo. So that part is already done ;-)

Can you provide some more guidance on how to get started when I want to contribute? Like what are the pre-requisites etc to get the existing version working in Visual Studio?

/Stefan

stefanstranger commented 7 months ago

Got it working! Will do some more tests before submitting the PR.

presencelightrestapibody

isaacrlevin commented 7 months ago

Functionality added in #850. Will close when Release published

isaacrlevin commented 6 months ago

Closing