Is there a hot key combination to open the backup camera?
Has anyone successfully used the backup sense connection on the CarPiHat to activate the backup camera?
Thanx Again!
More noob questions on USB Camera activation
Re: More noob questions on USB Camera activation
In Hudiy, there are essentially two ways to display the reverse camera view. The first is using the built-in camera view, and the second is using HTML/JavaScript.
Built-in camera view
For the built-in camera view, you can use actions (show_reverse_camera/hide_reverse_camera) to show/hide the view. You can trigger these actions via the API or using shortcuts/menus. You can also use dedicated SetReverseCameraStatus message.
The API example for triggering reverse camera is available on our GitHub: https://github.com/wiboma/hudiy/blob/ma ... eCamera.py
https://github.com/wiboma/hudiy/blob/ma ... proto#L121
To trigger, for example, show_reverse_camera via the menu or shortcuts, you simply need to add the appropriate entry to applications_menu.json or shortcuts.json.
https://github.com/wiboma/hudiy/blob/ma ... ed-actions
https://github.com/wiboma/hudiy/blob/ma ... plications
https://github.com/wiboma/hudiy/blob/ma ... #shortcuts
The built-in camera view uses GStreamer to render the camera feed. You can customize the pipeline to your needs in main_configuration.json: https://github.com/wiboma/hudiy/blob/ma ... ersecamera
HTML/JavaScript
An example of displaying the camera feed using HTML/JavaScript is also available on our GitHub. You can integrate it into Hudiy as an application or an overlay, and show or hide it via the API, shortcuts, or menus.
https://github.com/wiboma/hudiy/blob/ma ... amera.html
If you configure it as an overlay, its visibility can also be controlled via the API: https://github.com/wiboma/hudiy/blob/ma ... ibility.py
https://github.com/wiboma/hudiy/blob/ma ... proto#L701
https://github.com/wiboma/hudiy/blob/ma ... d#overlays
There is also a topic on the forum about HTML/JavaScript camera view with guidelines: viewtopic.php?t=38
Config examples
applications.json
applications_menu.json
shortcuts.json
Built-in camera view
For the built-in camera view, you can use actions (show_reverse_camera/hide_reverse_camera) to show/hide the view. You can trigger these actions via the API or using shortcuts/menus. You can also use dedicated SetReverseCameraStatus message.
The API example for triggering reverse camera is available on our GitHub: https://github.com/wiboma/hudiy/blob/ma ... eCamera.py
https://github.com/wiboma/hudiy/blob/ma ... proto#L121
To trigger, for example, show_reverse_camera via the menu or shortcuts, you simply need to add the appropriate entry to applications_menu.json or shortcuts.json.
https://github.com/wiboma/hudiy/blob/ma ... ed-actions
https://github.com/wiboma/hudiy/blob/ma ... plications
https://github.com/wiboma/hudiy/blob/ma ... #shortcuts
The built-in camera view uses GStreamer to render the camera feed. You can customize the pipeline to your needs in main_configuration.json: https://github.com/wiboma/hudiy/blob/ma ... ersecamera
HTML/JavaScript
An example of displaying the camera feed using HTML/JavaScript is also available on our GitHub. You can integrate it into Hudiy as an application or an overlay, and show or hide it via the API, shortcuts, or menus.
https://github.com/wiboma/hudiy/blob/ma ... amera.html
If you configure it as an overlay, its visibility can also be controlled via the API: https://github.com/wiboma/hudiy/blob/ma ... ibility.py
https://github.com/wiboma/hudiy/blob/ma ... proto#L701
https://github.com/wiboma/hudiy/blob/ma ... d#overlays
There is also a topic on the forum about HTML/JavaScript camera view with guidelines: viewtopic.php?t=38
Config examples
applications.json
Code: Select all
{
"applications": [
{
"action": "web_reverse_camera",
"url": "file:///full/path/to/hudiy/examples/camera.html"
}
]
}Code: Select all
{
"categories": [
{
"isDefault": true,
"iconFontFamily": "Material Symbols Rounded",
"iconName": "call",
"label": "Phone"
},
{
"iconFontFamily": "Material Symbols Rounded",
"iconName": "library_music",
"label": "Music"
},
{
"iconFontFamily": "Hudiy Symbols",
"iconName": "\ue900",
"label": "Android Auto"
},
{
"iconFontFamily": "Material Symbols Rounded",
"iconName": "general_device",
"label": "Autobox"
},
{
"iconFontFamily": "Material Symbols Rounded",
"iconName": "apps",
"label": "Hudiy"
}
],
"items": [
{
"categories": [
"Phone"
],
"iconFontFamily": "Material Symbols Rounded",
"iconName": "contacts",
"action": "contacts",
"label": "Contacts"
},
{
"categories": [
"Phone"
],
"iconFontFamily": "Material Symbols Rounded",
"iconName": "contacts",
"action": "favorite_contacts",
"label": "Favorites"
},
{
"categories": [
"Phone"
],
"iconFontFamily": "Material Symbols Rounded",
"iconName": "dialpad",
"action": "dialpad",
"label": "Dialpad"
},
{
"categories": [
"Phone"
],
"iconFontFamily": "Material Symbols Rounded",
"iconName": "call_log",
"action": "calls_history",
"label": "Call log"
},
{
"categories": [
"Phone"
],
"iconFontFamily": "Material Symbols Rounded",
"iconName": "phone_in_talk",
"action": "active_call",
"label": "Active call"
},
{
"categories": [
"Phone"
],
"iconFontFamily": "Material Symbols Rounded",
"iconName": "notifications",
"action": "phone_notifications",
"label": "Notifications"
},
{
"categories": [
"Music"
],
"iconFontFamily": "Material Symbols Rounded",
"iconName": "audio_file",
"action": "storage_music_player",
"label": "Storage Music"
},
{
"categories": [
"Music"
],
"iconFontFamily": "Material Symbols Rounded",
"iconName": "cell_tower",
"action": "fm_radio_player",
"label": "FM Radio"
},
{
"categories": [
"Music"
],
"iconFontFamily": "Material Symbols Rounded",
"iconName": "media_bluetooth_on",
"action": "a2dp_music_player",
"label": "A2DP"
},
{
"categories": [
"Music"
],
"iconFontFamily": "Material Symbols Rounded",
"iconName": "general_device",
"action": "autobox_player",
"label": "Autobox Music"
},
{
"categories": [
"Music"
],
"iconFontFamily": "Hudiy Symbols",
"iconName": "\ue900",
"action": "android_auto_player",
"label": "Android Auto"
},
{
"categories": [
"Hudiy"
],
"iconFontFamily": "Material Symbols Rounded",
"iconName": "web_asset",
"action": "background_applications",
"label": "Active apps"
},
{
"categories": [
"Hudiy"
],
"iconFontFamily": "Material Symbols Rounded",
"iconName": "settings",
"action": "settings_menu",
"label": "Settings"
},
{
"categories": [
"Hudiy"
],
"iconFontFamily": "Material Symbols Rounded",
"iconName": "videocam",
"action": "show_reverse_camera",
"label": "Camera"
},
{
"categories": [
"Hudiy"
],
"iconFontFamily": "Material Symbols Rounded",
"iconName": "videocam",
"action": "web_reverse_camera",
"label": "Web Camera"
},
{
"categories": [
"Hudiy"
],
"iconFontFamily": "Material Symbols Rounded",
"iconName": "cancel_presentation",
"action": "quit_hudiy",
"label": "Quit"
},
{
"categories": [
"Android Auto"
],
"iconFontFamily": "Material Symbols Rounded",
"iconName": "usb",
"action": "connect_android_auto_usb",
"label": "Connect USB"
},
{
"categories": [
"Android Auto"
],
"iconFontFamily": "Material Symbols Rounded",
"iconName": "wifi",
"action": "connect_android_auto_wifi",
"label": "Connect WiFi"
},
{
"categories": [
"Android Auto"
],
"iconFontFamily": "Material Symbols Rounded",
"iconName": "redo",
"action": "resume_android_auto_projection",
"label": "Resume"
},
{
"categories": [
"Android Auto"
],
"iconFontFamily": "Material Symbols Rounded",
"iconName": "cancel_presentation",
"action": "quit_android_auto",
"label": "Quit"
},
{
"categories": [
"Autobox"
],
"iconFontFamily": "Material Symbols Rounded",
"iconName": "wifi",
"action": "connect_autobox_wifi",
"label": "Connect WiFi"
},
{
"categories": [
"Autobox"
],
"iconFontFamily": "Material Symbols Rounded",
"iconName": "redo",
"action": "resume_autobox_projection",
"label": "Resume"
}
]
}Code: Select all
{
"shortcuts": [
{
"iconFontFamily": "Material Symbols Rounded",
"iconName": "volume_mute",
"action": "toggle_output_muted"
},
{
"iconFontFamily": "Material Symbols Rounded",
"iconName": "volume_down",
"action": "output_volume_down"
},
{
"iconFontFamily": "Material Symbols Rounded",
"iconName": "volume_up",
"action": "output_volume_up"
},
{
"iconFontFamily": "Material Symbols Rounded",
"iconName": "videocam",
"action": "show_reverse_camera"
},
{
"iconFontFamily": "Material Symbols Rounded",
"iconName": "videocam",
"action": "web_reverse_camera"
}
]
}Re: More noob questions on USB Camera activation
Thanx. Success. I will be tweaking the sixe of the overlay but that can wait. Thanx Again