summaryrefslogtreecommitdiffstats
path: root/recipes-demo
static const char _afb_description_v2_low_can[] =
    "{\"openapi\":\"3.0.0\",\"$schema\":\"http:iot.bzh/download/openapi/schem"
    "a-3.0/default-schema.json\",\"info\":{\"description\":\"\",\"title\":\"l"
    "ow-level-can-service\",\"version\":\"4.0\",\"x-binding-c-generator\":{\""
    "api\":\"low-can\",\"version\":2,\"prefix\":\"\",\"postfix\":\"\",\"start"
    "\":null,\"onevent\":null,\"init\":\"initv2\",\"scope\":\"\",\"private\":"
    "false}},\"servers\":[{\"url\":\"ws://{host}:{port}/api/monitor\",\"descr"
    "iption\":\"Low level CAN API.\",\"variables\":{\"host\":{\"default\":\"l"
    "ocalhost\"},\"port\":{\"default\":\"1234\"}},\"x-afb-events\":[{\"$ref\""
    ":\"#/components/schemas/afb-event\"}]}],\"components\":{\"schemas\":{\"a"
    "fb-reply\":{\"$ref\":\"#/components/schemas/afb-reply-v2\"},\"afb-event\""
    ":{\"$ref\":\"#/components/schemas/afb-event-v2\"},\"afb-reply-v2\":{\"ti"
    "tle\":\"Generic response.\",\"type\":\"object\",\"required\":[\"jtype\","
    "\"request\"],\"properties\":{\"jtype\":{\"type\":\"string\",\"const\":\""
    "afb-reply\"},\"request\":{\"type\":\"object\",\"required\":[\"status\"],"
    "\"properties\":{\"status\":{\"type\":\"string\"},\"info\":{\"type\":\"st"
    "ring\"},\"token\":{\"type\":\"string\"},\"uuid\":{\"type\":\"string\"},\""
    "reqid\":{\"type\":\"string\"}}},\"response\":{\"type\":\"object\"}}},\"a"
    "fb-event-v2\":{\"type\":\"object\",\"required\":[\"jtype\",\"event\"],\""
    "properties\":{\"jtype\":{\"type\":\"string\",\"const\":\"afb-event\"},\""
    "event\":{\"type\":\"string\"},\"data\":{\"type\":\"object\"}}}},\"x-perm"
    "issions\":{\"monitor\":{\"permission\":\"urn:AGL:permission:low-can:publ"
    "ic:monitor\"},\"write\":{\"permission\":\"urn:AGL:permission::platform:c"
    "an:write \"}},\"responses\":{\"200\":{\"description\":\"A complex object"
    " array response\",\"content\":{\"application/json\":{\"schema\":{\"$ref\""
    ":\"#/components/schemas/afb-reply\"}}}}}},\"paths\":{\"/subscribe\":{\"d"
    "escription\":\"Subscribe to CAN signals events\",\"parameters\":[{\"in\""
    ":\"query\",\"name\":\"event\",\"required\":false,\"schema\":{\"type\":\""
    "string\"}}],\"responses\":{\"200\":{\"$ref\":\"#/components/responses/20"
    "0\"}}},\"/unsubscribe\":{\"description\":\"Unsubscribe previously suscri"
    "bed signals.\",\"parameters\":[{\"in\":\"query\",\"name\":\"event\",\"re"
    "quired\":false,\"schema\":{\"type\":\"string\"}}],\"responses\":{\"200\""
    ":{\"$ref\":\"#/components/responses/200\"}}},\"/get\":{\"description\":\""
    "get a current value of CAN message\",\"parameters\":[{\"in\":\"query\",\""
    "name\":\"event\",\"required\":false,\"schema\":{\"type\":\"string\"}}],\""
    "responses\":{\"200\":{\"$ref\":\"#/components/responses/200\"}}},\"/list"
    "\":{\"description\":\"get a supported CAN message list\",\"responses\":{"
    "\"200\":{\"$ref\":\"#/components/responses/200\"}}},\"/auth\":{\"descrip"
    "tion\":\"Authenticate session to be raise Level Of Assurance.\",\"get\":"
    "{\"x-permissions\":{\"$ref\":\"#/components/x-permissions/write\"},\"res"
    "ponses\":{\"200\":{\"$ref\":\"#/components/responses/200\"}}}},\"/write\""
    ":{\"description\":\"Write a CAN messages to the CAN bus.\",\"get\":{\"x-"
    "permissions\":{\"LOA\":1},\"parameters\":[{\"in\":\"query\",\"name\":\"b"
    "us_name\",\"required\":false,\"schema\":{\"type\":\"string\"}},{\"in\":\""
    "query\",\"name\":\"frame\",\"required\":false,\"schema\":{\"type\":\"arr"
    "ay\"},\"parameters\":[{\"in\":\"query\",\"name\":\"can_id\",\"required\""
    ":false,\"schema\":{\"type\":\"string\"}},{\"in\":\"query\",
AgeCommit message (Collapse)AuthorFilesLines
2022-07-19html5-aquarium, html5-youtube addedJose Dapena Paz5-0/+70
Added two web demos (WebGL aquarium and Youtube launcher). Bug-AGL: SPEC-4392, SPEC-4248 Change-Id: I3e1e7a098d432d5d1c8de4640780ef05abf0e9f2 Signed-off-by: Jose Dapena Paz <jdapena@igalia.com>
2022-07-11recipes-demo: update application's .desktop files for systemd executionDenys Dmytriyenko8-0/+48
Initial version of applaunchd with systemd_manager still uses .desktop files for enumeration purposes and requires DBusActivatable=true to indicate apps that should be launched as systemd services. This will be addressed in the new revision of applaunchd and hopefully .desktop files dropped completely. Bug-AGL: SPEC-4466 Signed-off-by: Denys Dmytriyenko <denys@konsulko.com> Change-Id: I3bcea79ec653fc834a39be4135ed4c008d5979db
2022-07-06simple_can_simulator: support different interface for LIN messagesScott Murray1-1/+6
Add a "--lin-interface" option to simple_can_simulator.py to allow specifying a different CAN interface for the cruise control LIN messages from the steering wheel in the demo setup. This allows pointing at the sllin0 interface in the full demo setup that is configured with the agl-demo-preload feature. Previously the CAN messages for the LIN events were bridged to the primary CAN interface, but this has proven unreliable in practice. Bug-AGL: SPEC-4431 Signed-off-by: Scott Murray <scott.murray@konsulko.com> Change-Id: I1bb0e429b849ed1e25cbd9ee8fb887e973d33081
2022-07-06agl-service-audiomixer: add updated recipeScott Murray3-0/+41
Add recipes to build the new incarnation of VIS client daemon version of agl-service-audiomixer that will serve as the base for future API development. As well, add the new package to the appropriate packagegroup. Bug-AGL: SPEC-4409 Signed-off-by: Scott Murray <scott.murray@konsulko.com> Change-Id: I9f69fedb13050807fc4390bf9ba278062969b973
2022-07-06agl-service-hvac: add updated recipesScott Murray6-0/+77
Add recipes to build the new incarnation of VIS client daemon version of agl-service-hvac and for installing associated demo platform configuration files for the full AGL demo setup. As well, add the new packages from these recipes to the appropriate packagegroups. Bug-AGL: SPEC-4409 Signed-off-by: Scott Murray <scott.murray@konsulko.com> Change-Id: I34fae0a6e2c3ed387757eb01a9c8042ba14fbd0f
2022-07-06Update vehicle signal using app recipesScott Murray22-13/+158
Update the recipes for the Qt demo applications that were previously using signal-composer either directly or indirectly to work with the new VehicleSignals API in libqtappfw. For most of them this means updating their SRCREV to pick up the application changes, and installing the new configuration file and associated JSON web token file for KUKSA.val authorization. At present all the apps are using one of the default read-write tokens from the KUKSA.val install, but ideally this will end up migrated to app specific tokens with appropriate permissions JSON down the road, potentially obtained via OAuth or similar mechanism. Additionally, the tbtnavi recipe has been updated to install a systemd unit to start it at boot. Bug-AGL: SPEC-4409, SPEC-4426 Signed-off-by: Scott Murray <scott.murray@konsulko.com> Change-Id: I46be098fc31be02852e7888ba0ffd14674efa12b
2022-07-06libqtappfw: update SRCREVScott Murray1-1/+1
Update libqtappfw SRCREV to pick up: a2d991a Merge "Reimplement HVAC API with VIS signals" b2cb90d Reimplement HVAC API with VIS signals fc9399e Reimplement navigation API with VIS signals 607f2b6 Add VIS vehicle signal support Bug-AGL: SPEC-4408 Signed-off-by: Scott Murray <scott.murray@konsulko.com> Change-Id: I09fab479d5d672823d05d9ae784f323b2dfe34d6
2022-07-06libqtappfw: add qtwebsockets dependencyScott Murray1-0/+1
At least for the near future, the KUKSA.val support for vehicle signals in libqtappfw will use the VISS standard websocket interface scheme, so add qtwebsockets as a build dependency. Bug-AGL: SPEC-4408 Signed-off-by: Scott Murray <scott.murray@konsulko.com> Change-Id: I5c5b5e187651d0f30d267e1f21c0196c270859f0
2022-06-29Remove use of AGL_APP_REVISIONJan-Simon Moeller16-16/+16
We did use the variable AGL_APP_REVISION to change between the HEAD of the branch via to the fixed tag at release time (regs/tags/xyz) . While this worked well previously, it turns out that bitbake will query git every time it runs for either or tags likewise. For tags it cannot trust whatever is known locally is actually the latest tags as there can be force pushed tags. To fix this we use a well-defined SRCREV for apps/* in the same way as we do it for src/* . Bug-AGL: SPEC-4455 Signed-off-by: Jan-Simon Moeller <jsmoeller@linuxfoundation.org> Change-Id: I97fc125d40b36b7ac5e069018a8973384f61d0b7
2022-06-16html5-mixer: recover HTML5 mixer demo application.Jose Dapena Paz2-0/+53
Add updated html5-mixer: * Fixes build with new application framework providing audiomixer mock. * Updates NPM dependencies. * Updates recipe for kirkstone. Bug-AGL: SPEC-4248 Signed-off-by: Jose Dapena Paz <jdapena@igalia.com> Change-Id: Ie0ac5edb0be83a26cf627b962472d7ac7208e1c5
2022-06-16html5-mediaplayer: recover HTML5 mediaplayer demo application.Jose Dapena Paz2-0/+53
Add updated html5-mediaplayer: * Fixes build with new application framework providing mediaplayer mock. * Updates NPM dependencies. * Updates recipe for kirkstone. Bug-AGL: SPEC-4248 Signed-off-by: Jose Dapena Paz <jdapena@igalia.com> Change-Id: Iabc5944771a0aa7ef09b0464c6c2602f0a31c9ec
2022-06-10html5-settings: recover HTML5 settings application.Jose Dapena Paz2-0/+535-8/+101
Adapt to use again html5-homescreen and html5-background: * Added html5-background and html5-homescreen. * Now only html5-homescreen is launched from systemd, while html5-launcher and html5-background are launched from html5-homescreen logic. * Use landscape weston configuration as expected in HTML5 demo. * Pass --agl-shell-appid=homescreen to WebAppMgr script so it knows which application implements the UI of agl_shell wayland protocol. chromium: bc1410d..fa99cf3344 fa99cf3344 [op][agl][wayland] Activate applications when requested from applaunchd ab1a4cf05d [op][agl][injection] AGL D-Bus implementation of PAL appservice e5f6143e55 [op][agl][injection] Add application service injection wam: b0c1e46..8dd3f17 8dd3f17 [op][agl][wayland] Remove unused role code. defc5af [op][agl][wayland] Fix: do not ignore Panel shell surface type. 6683b08 [op][agl][wayland] Set AGL application ID in all cases 0bb9814 [op][agl][wayland] Properly adapt dimensions for web apps using panel 9af0d23 [op][agl][wayland] Properly pass surface size, type and edge to chromium e6df86b [op][agl][injection] Declare in web app XML the required injections Bug-AGL: SPEC-4250 Change-Id: Ie1b1181f3a67ea2ada1912db53e360178a4cf443 Signed-off-by: Jose Dapena Paz <jdapena@igalia.com>
2022-03-07Add back HTML5 launcher to HTML5 demoJose Dapena Paz2-0/+55
Add the web-based launcher to the HTML5 demo dropping original launcher. It includes changes to the launcher to match the new navigator.appservice API and JS injection and drops agl-js-api. Bug-AGL: SPEC-4249 Change-Id: I02a68fc81693a56aa19e213e8ee200c0ec4e3f42 Signed-off-by: Jose Dapena Paz <jdapena@igalia.com>
2022-03-01libqtappfw: Add Bluetooth media control supportScott Murray1-1/+1
Update the libqtappfw SRCREV to pick up: 1332cc7 Add Bluetooth media control support and bump the bluez-glib SRCREV to pick up the following addition is that a prerequisite: 045d4a1 Media control enablement and bug fixes Bug-AGL: SPEC-4231 Signed-off-by: Scott Murray <scott.murray@konsulko.com> Change-Id: I039be0742c7566cac8c03f80fb162bf4cc6f5355
2022-02-21Add mediaplayer, radio, phone, and messaging apps backScott Murray7-0/+142
Add updated recipes for the mediaplayer, radio, phone, and messaging apps that build the updated versions that do not use the previous application framework. The mediaplayer currently only has local media playback support via libqtappfw, the other apps are somewhat placeholders for now as their application framework usage via libqtappfw has been stubbed out for now. Bug-AGL: SPEC-4182 Signed-off-by: Scott Murray <scott.murray@konsulko.com> Change-Id: Ia7aca1698a7e2c8381d4e257d447bcfbe3bce42e
2022-02-15libqtappfw: Re-enable mediaplayer and other librariesScott Murray1-1/+1
Bump SRCREV to pick up: 0de8ac8 Re-enable telephony and radio stub libraries 3f384d3 Rework mediaplayer support to use mpd Bug-AGL: SPEC-4182 Signed-off-by: Scott Murray <scott.murray@konsulko.com> Change-Id: I70a3c8c8bfa344e39fd9f07958ae4bf568cf11f4
2022-02-15libqtappfw: enable building mpd based mediaplayer supportScott Murray1-1/+10
Update libqtappfw recipe to pull in libmpdclient dependency for building the reworked mediaplayer support, and also add a RRECOMMENDS definition that pulls in bluez5, connman, and mpd to make the relationship more explicit. The intent is to split the libqtappfw-X libraries into separate packages with some follow-on rework and have these dependencies be more fine-grained at that point. Bug-AGL: SPEC-4182 Signed-off-by: Scott Murray <scott.murray@konsulko.com> Change-Id: If7fcd57dab89a22dfee81017d0411854b1f16bda
2022-02-01Add html5-hvac application.Jose Dapena Paz2-0/+49
Add back the html5-hvac application, adapting installation to the new application framework: - It provides a valid .desktop file. - It does not use the .wgt file, and just deployes to /usr/lib/wam_apps/html5-hvac the application files. Bug-AGL: SPEC-4224 Change-Id: Icee2d6bfdbd69265614581b731a76a6742036720 Signed-off-by: Jose Dapena Paz <jdapena@igalia.com>
2022-01-31libqtappfw: Re-enable network supportScott Murray1-2/+2
Bump SRCREV to pick up: 5ef90db Re-enable network support and also add connman-glib as a dependency in libqtappfw recipe, so that it can be used in the reworked network API implementation. Bug-AGL: SPEC-4182 Signed-off-by: Scott Murray <scott.murray@konsulko.com> Change-Id: Ie3db1930079a696afaaca00914f54bba6c04b59a
2022-01-31homescreen: restore libqtappfw dependencyScott Murray1-0/+2
Restore libqtappfw build and run-time dependency in homescreen app recipe to allow to re-enabling the commented out usage in it and regain Bluetooth and Wifi status support. Bug-AGL: SPEC-4182 Signed-off-by: Scott Murray <scott.murray@konsulko.com> Change-Id: I320853efe8130d34e5a1da5e9f0e2380a50e9f2c
2021-12-22bluez-glib libqtappfw: fix S definitionsScott Murray1-2/+2
Bitbake in poky master now warns if the path in the S variable definition has a trailing '/', remove a couple of occurrences that were recently added by accident to reduce "next" branch maintenance. Bug-AGL: SPEC-3819 Signed-off-by: Scott Murray <scott.murray@konsulko.com> Change-Id: I038c6e4c821f331d458255b66660d46eb895c4b9
2021-12-21homescreen: import environment file on service startArnaud Ferraris1-0/+1
`homescreen` relies on `/etc/default/homescreen` to contain its environment variables, however this feature was lost when we switched to systemd services. This commit restores this feature by instructing systemd to source `/etc/default/homescreen` if it exists. Bug-AGL: SPEC-4161 Signed-off-by: Arnaud Ferraris <arnaud.ferraris@collabora.com> Change-Id: I62c8597eac7d14d9d5166f9c559a1538398cd0c8
2021-12-21Add updated demo applications backScott Murray7-0/+177
Add updated recipes for the dashboard, hvac, ondemandnavi, and settings Qt demo applications, as well as for the libqtappfw library they use and its new dependency bluez-glib. The applications are added back to the packagegroup-agl-demo-platform as they were before. Also remove a couple of leftover things in the packagegroup recipe to clean up. Bug-AGL: SPEC-4182 Signed-off-by: Scott Murray <scott.murray@konsulko.com> Change-Id: I0ea36c809d9126284c597cd79eded8ab031205da
2021-12-21qtquickcontrols2-agl-style: remove QT_QUICK_CONTROLS_STYLE settingScott Murray1-5/+0
QT_QUICK_CONTROLS_STYLE was being set with a mechanism specific to the old application framework, remove the now redundant snippet that was doing so. Setting the style will be handled by the applications that require it going forward. Bug-AGL: SPEC-4182 Signed-off-by: Scott Murray <scott.murray@konsulko.com> Change-Id: I3f4303c1d8bbb9df85071668db85d0c649f5bfc3
2021-12-21recipes-demo: restore launcher applicationArnaud Ferraris2-0/+59
While launcher hasn't been merged into homescreen, we should restore it as a default application. Bug-AGL: SPEC-4159 Signed-off-by: Arnaud Ferraris <arnaud.ferraris@collabora.com> Change-Id: I772142beec717b0f244b1c1a9c128baf843827fd
2021-12-21homescreen: convert to using the new App FWArnaud Ferraris2-11/+11
Bug-AGL: SPEC-4161 Signed-off-by: Arnaud Ferraris <arnaud.ferraris@collabora.com> Change-Id: I3f53c4d9143baad15fee59110f5f9fbf64290d6c
2021-11-04homescreen: update recipeScott Murray2-11/+29
Rework homescreen demo app recipe for building a version of it with the application framework usage removed. A simple systemd unit to start it has been added as a placeholder until the new application scheme has been added. This will at least produce something on screen for testing, and the HOMESCREEN_DEMO_CI environment variable can be defined via /etc/default/homescreen to potentially re-enable the CI startup test. Bug-AGL: SPEC-4121 Signed-off-by: Scott Murray <scott.murray@konsulko.com> Change-Id: I510873d428dc98286775722e23b34cd4a9862258