docs: add todo's for later
This commit is contained in:
parent
7a4f8bb48d
commit
57c0bb660c
@ -4,6 +4,7 @@ namespace CasaBotApp;
|
||||
|
||||
public class ShinobiConnector
|
||||
{
|
||||
//TODO move class to auto scan library
|
||||
private readonly ILogger<ShinobiConnector> _logger;
|
||||
private readonly string _shinobivUrl = "https://shinobi.francelsoft.com";
|
||||
private readonly string _apikey = "OGD6nsGGzA1NL48M5Tg7Wbzto62oPl";
|
||||
@ -19,13 +20,12 @@ public class ShinobiConnector
|
||||
|
||||
public async Task FetchLastVideo(string filename = "2025-02-12T08-00-01.mp4")
|
||||
{
|
||||
//fetch video from shinobi endpoint using example file "2025-02-12T08-00-01.mp4"
|
||||
const string fetchVideoEndpoint = "/{0}/videos/{1}/{2}/{3}";
|
||||
var endpoint = string.Format(_shinobivUrl+fetchVideoEndpoint, _apikey, _groupId, _monitorId, filename);
|
||||
_logger.LogInformation("Fetching video from endpoint: {Endpoint}", endpoint);
|
||||
|
||||
//fetch video
|
||||
const string mediaPath = @".\media\"; // Replace with your desired file path
|
||||
const string mediaPath = @".\media\"; //TODO. Use options
|
||||
var videoPath = mediaPath + filename;
|
||||
|
||||
try
|
||||
|
Loading…
Reference in New Issue
Block a user