Geolocation of a sensor and display live stream using the demodriver sample

i am trying to add geolocation to a sensor(sensor monitor plugin )like when i add a camera to the recording server .Is there anyway to do it ?

I want also to be able to display a live stream video in the custom driver . I am trying to display this live stream in the public override GetLiveFrameResult GetLiveFrame(Guid sessionId, TimeSpan timeout) in Cepton_driverStreamManager but the stream is not appearing and i am getting a no video even though .

Yes.

You can read and modify the GisPoint value for a sensor or controller from the the sample, and you can do it for items of your own type. You can do so using the Rest API, the Configuration API as SOAP or the Configuration API strongly typed classes (VideoOS.Platform.ConfigurationItems). I will further illustarte how to do it using the latter.

You can read controllers in this way:

private readonly Guid _SensorMonitorPluginId = new Guid("2a13d169-8803-4ab2-b45b-5c1f1c453c93");
private readonly Guid _controllerKind = new Guid("57D0ED4B-3BAF-4FC0-AA1B-D333A82F2F12");
 
private void ReadControllers()
{
	var folder = new MIPItemFolder(EnvironmentManager.Instance.CurrentSite.ServerId, GetFolderPath("MIPKind", _controllerKind));
	foreach (var item in folder.MIPItems)
	{
		label1.Text += item.Name + " " + item.GisPoint + Environment.NewLine;
	}
}
 
private string GetFolderPath(string itemSpecification, Guid id)
{
	return string.Format(CultureInfo.InvariantCulture, "{0}[{1}]/MIPItemFolder", itemSpecification, id);
}

You can also write these values:

private void WriteGisPointToController(Guid GuidOfControllerToChange)
{
    var myController = new MIPItem(EnvironmentManager.Instance.CurrentSite.ServerId, GuidOfControllerToChange);
 
    myController.GisPoint = "POINT(12.5192138956928 55.699602100661)";
    myController.Save();
    label1.Text += "Conf - GisPoint set for " + myController.Name + Environment.NewLine;
}

Please don’t mix unrelated questions. The usability and searchability of this forum will be far better if we all keep to one question per thread.

It is recommended that you start your new driver by using the template not just changing the sample. If you did this you can still use the sample code as inspiration In your situation it would be nice to confirm whether the unmodified DemoDriver sample works for you.. Please post a new question on this driver issue and then please elaborate a little further on what you have put in the GetLiveFrameResult method.