AmpliPi
AmpliPi copied to clipboard
Show firmware version in web UI
Currently the AmpliPi software version is shown at the bottom of the web UI, we should add the firmware version as well and report it in our logs to give full visibility to the fw version.
Our API currently reports the version in the info field.
- [ ] Visualize the fw versions (if any) on the settings/About page (web/src/pages/Settings/About/About.*)
- [ ] Report the fw versions (if any) in the logs (the FW version is read in
ctrl.reinit()
in amplipi/ctrl.py)
The Info model can be found in amplipi/models.py
Here's what it looks like on a main unit without an expander:
{
"version": "0.3.5+b09fc53-update-spotifyd",
"config_file": "house.json",
"mock_ctrl": false,
"mock_streams": false,
"is_streamer": false,
"online": true,
"latest_release": "0.3.5",
"access_key": "",
"lms_mode": false,
"fw": [
{
"version": "1.8",
"git_hash": "1743bfb",
"git_dirty": false
}
],
"stream_types_available": [
"rca",
"airplay",
"spotify",
"internetradio",
"dlna",
"pandora",
"plexamp",
"aux",
"fileplayer",
"lms"
]
Here's what it looks like on an expander:
{
"version": "0.3.1",
"config_file": "house.json",
"mock_ctrl": false,
"mock_streams": false,
"is_streamer": true,
"online": true,
"latest_release": "0.3.5",
"access_key": "",
"lms_mode": false,
"fw": []
}
Also for browsing the API I suggest using either insomnia or our hosted interactive api docs. They can be found at settings->about->Browsable API
@linknum23, should we consider showing up to 6 expansion unit firmware versions?
Definitely!
On Fri, Aug 19, 2022 at 5:42 PM Michael Lohrer @.***> wrote:
@linknum23 https://github.com/linknum23, should we consider showing up to 6 expansion unit firmware versions?
— Reply to this email directly, view it on GitHub https://github.com/micro-nova/AmpliPi/issues/350#issuecomment-1221112869, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAEZPO34USTT53PMZ73CFWTVZ75TTANCNFSM53HWK3EQ . You are receiving this because you were mentioned.Message ID: @.***>
The backend support for this is being added in #356