OK, I think I got it working
I changed my prior new field in the program from a text field to a slider like this:
.AddFeature("Media.IpCamera", "Sensor", "IpCamera.Orientation", "Orientation (0 for Landscape, 1 for Portrait)", "slider:0:1:0")
And in the JacaScript code for the Generic IP Camera Widget, just above the // set the camera image url line I updated my code like this:
// Set the Orientation
var Orient = $$.module.prop('IpCamera.Orientation').Value;
if ($$.module.prop('IpCamera.Orientation').Value > 0) $$.field('camerapicturepreview').css({'transform': 'rotate(90deg)'});
else $$.field('camerapicturepreview').css({'transform': 'rotate(0deg)'});
I believe the problem with the code I posted earlier today was that I was missing the .Value at the end of the var = Orient line (which I noticed based on your last post)
So when viewing HG on my desktop pc with Chrome, the camera I have defiend with a 1 in the Orientation field displays vertical and the others still appear landscape.
I restarted the HG service and reloaded HG in my browser to make sure it still is working as I expected (I also exported copies of the Generic IP Camera program and Widget for backup purposes).
Only think now is in the Android App (full version) they are not appearing as they do in the browser but still all landscape - not sure if I need to update the program and widget in the app somehow ?