Jump to content

HomeSEER Plugin? WebHooks


Sammy

Recommended Posts

Sammy

I have long been wanting to move from Vera Plus to HomeSEER and right now HomeSEER Pro for Windows is on sale at the ridiculously low price of $99 vs normal $359 or BF, maybe $180 so I'm going to grab it and a Z-Wave Stick for $20.

https://shop.homeseer.com/collections/hs4-pro/products/hs4pro-smart-home-automation-software

I haven't seen it but is there an Emby Plugin for HomeSEER?

Will someone like @chef want to work with me to create one?

I haven't used the Emby WebHooks Plugin but HomeSEER supports it as I've found here but this is pretty slim information.

https://docs.homeseer.com/pages/viewpage.action?pageId=17466355

Any assistance would be great but at this price I'm going to grab it while the grabbing is good!

Link to comment
Share on other sites

Sammy

When starting a movie or episode it can dim the lights or turn on back lighting behind the TV. Vera currently does this sort of thing..

  • Thanks 1
Link to comment
Share on other sites

bakes82
On 4/10/2022 at 12:24 PM, Sammy said:

When starting a movie or episode it can dim the lights or turn on back lighting behind the TV. Vera currently does this sort of thing..

if (!string.IsNullOrEmpty(Plugin.Instance.Configuration.DiscordWebhookMessage))
                            parameters = new Dictionary<string, string>
                                         {
                                             {
                                                 "content",
                                                 $"User {user.Name} : {Plugin.Instance.Configuration.DiscordWebhookMessage}"
                                             }
                                         };

                        var json = _jsonSerializer.SerializeToString(parameters);

                        var content = json.ToCharArray();

                        await _httpClient.Post(new HttpRequestOptions
                                               {
                                                   Url                = Plugin.Instance.Configuration.DiscordWebhookUri,
                                                   RequestContentType = "application/json",
                                                   RequestContent     = content
                                               });
private void PlaybackStart(object sender, PlaybackProgressEventArgs e)
        {
//Do user/library checks here then call your endpoint
}

If you look at my HEVC killer code you can see how to do the Playback start/end/progress stuff:  Then you just need to inject the json/http interfaces and call your endpoint

https://github.com/bakes82/Emby.HEVCTranscodeKiller/blob/master/Emby.HEVCTranscodeKiller/ServerEntryPoint.cs

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...