Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Next Version #47

Merged
merged 136 commits into from
Aug 20, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
136 commits
Select commit Hold shift + click to select a range
f9ab06f
clear log when toggled
g3gg0 Aug 4, 2023
6be01f1
add mqtt and home assistant support
g3gg0 Aug 4, 2023
f103669
fix ip resolve not settings ip address length
g3gg0 Aug 4, 2023
edd5845
use os* routines
g3gg0 Aug 4, 2023
a9459a8
add missing function for windows build
g3gg0 Aug 4, 2023
f9920c6
remove warning log
g3gg0 Aug 4, 2023
3fc1edc
add TagValid for CC boxes
g3gg0 Aug 5, 2023
6ff038c
fix socket timeout being handled as seconds instead of milliseconds, …
g3gg0 Aug 5, 2023
51bdd15
fix TagValid/Invalid for CC boxes
g3gg0 Aug 5, 2023
49184c2
use configurable MQTT prefix
g3gg0 Aug 5, 2023
07a4982
use os* functions
g3gg0 Aug 5, 2023
2a6a2a8
handle event sending a bit differently
g3gg0 Aug 5, 2023
d069285
fix comment
g3gg0 Aug 5, 2023
30c9fae
added ESP32 volume levels
g3gg0 Aug 5, 2023
ebec7a7
fix possible disconnect issues with claim handler
g3gg0 Aug 5, 2023
4fb8eaf
added FlexTonies, which can get reassigned dynamically
g3gg0 Aug 5, 2023
468d9b4
automatically handle FlexTonies as .live
g3gg0 Aug 5, 2023
78cdf2b
properly sanitize paths, code cleanups
g3gg0 Aug 5, 2023
558044f
further code cleanups
g3gg0 Aug 5, 2023
3853da7
further cleanups
g3gg0 Aug 5, 2023
26365ce
add missing declaration
g3gg0 Aug 5, 2023
328a1cb
split server settings and box status for HA
g3gg0 Aug 6, 2023
19619f8
Add core.sslkeylogfile to log SSL/TLS master keys
manuelm Aug 6, 2023
e8a7e50
added per-box HA entities
g3gg0 Aug 6, 2023
27ea0c1
add charger state
g3gg0 Aug 6, 2023
f1c4212
added LastSeen field
g3gg0 Aug 6, 2023
1cd972d
limit MQTT traffic when sending same topic or payload
g3gg0 Aug 6, 2023
1c6867d
use mutex manager for mqtt
SciLor Aug 7, 2023
0836d7f
add new mutex to mutex_manager
SciLor Aug 7, 2023
5c38b29
move host url to core
SciLor Aug 7, 2023
cfdd53f
Add QoS to settings
SciLor Aug 7, 2023
86f1864
Increase QoS lvl for sub + online/last will
SciLor Aug 7, 2023
857bde8
RTNL Add log3 enum
SciLor Aug 7, 2023
7e77896
use rtnl enums
SciLor Aug 7, 2023
44744df
Prepare overlayed settings detection
SciLor Aug 7, 2023
33e5b12
add notifications for last cloud activities
g3gg0 Aug 7, 2023
919fb69
increase http throughput
g3gg0 Aug 7, 2023
61c1571
save overlay settings (changes tbd)
SciLor Aug 7, 2023
154ed3a
Merge branch 'develop' of https://github.com/toniebox-reverse-enginee…
SciLor Aug 7, 2023
c609a08
Allow change of overlay settings and save it.
SciLor Aug 7, 2023
4eef261
init overlayed during settings reload
SciLor Aug 7, 2023
164f663
update web
SciLor Aug 7, 2023
ca7563f
init config_init as false and init overlay@ load
SciLor Aug 7, 2023
1557c0e
auto-create overlay + add mising overlayed on set
SciLor Aug 7, 2023
8b2505e
disallow "" as overlay id
SciLor Aug 7, 2023
bacb1b0
allow to override settings with ?overlay=NAME
SciLor Aug 7, 2023
db8e5bf
Merge pull request #43 from manuelm/sslkeylogfile
SciLor Aug 8, 2023
cd066bd
add SSLKEYLOGFILE to ignore
SciLor Aug 8, 2023
6232988
Add description elements to config (not available via api, buggy)
SciLor Aug 8, 2023
2b012d6
make logging of full auth optional
SciLor Aug 8, 2023
915e805
added logging of MQTT box details
g3gg0 Aug 8, 2023
fc5195c
Add /api/getBoxes for overlays
SciLor Aug 8, 2023
f1eb4d0
ignore .vs directory
g3gg0 Aug 8, 2023
5dd467e
Merge branch 'develop' of https://github.com/toniebox-reverse-enginee…
g3gg0 Aug 8, 2023
41cc11f
Use client_ctx in more places + cleanup
SciLor Aug 8, 2023
376fff1
fix standard mqtt port
SciLor Aug 8, 2023
45f24b2
fix ha_box_instance->id
SciLor Aug 8, 2023
b4a5f11
Add event / device trigger to hass header
SciLor Aug 8, 2023
3f81141
add new rtnl enum entries
SciLor Aug 9, 2023
b2540e4
optimize code structure + add volume for cc3200 and audio id for cc32…
SciLor Aug 9, 2023
0216864
retain last will (the same as status online)
SciLor Aug 9, 2023
f015b22
Add audio id to HA + tonies.json parsing
SciLor Aug 9, 2023
1fa3c5c
increased MQTT_CLIENT_MAX_WILL_TOPIC_LEN
g3gg0 Aug 10, 2023
181c967
initialize context to defined values
g3gg0 Aug 10, 2023
9418beb
added image element, added fallback names
g3gg0 Aug 10, 2023
2980136
changed default name
g3gg0 Aug 10, 2023
39f6e13
Remove markCustomTagByUid config option
SciLor Aug 10, 2023
f9dd44c
remove unused get_box_id
SciLor Aug 10, 2023
e3113a7
Add boxName, config used to config,rename config items, sanitizise co…
SciLor Aug 10, 2023
b6ecff1
Merge branch 'develop' of https://github.com/toniebox-reverse-enginee…
g3gg0 Aug 10, 2023
fec4961
fix corner case issues
g3gg0 Aug 10, 2023
b326f60
change descriptive name of a box
g3gg0 Aug 10, 2023
1ba915a
switched to mqtt event types for certain events
g3gg0 Aug 10, 2023
901e5fe
added empty icon for HA
g3gg0 Aug 10, 2023
32de870
added attribution for icons
g3gg0 Aug 10, 2023
f31d8e9
fix formatting
g3gg0 Aug 10, 2023
48d65df
added custom tonie icon
g3gg0 Aug 10, 2023
f359ce6
Update teddycloud_web submodule (forgotten on previous web update)
SciLor Aug 11, 2023
38a328e
fix volume dirs
SciLor Aug 11, 2023
fd443d9
fix gencerts.sh docs and docker start script
SciLor Aug 11, 2023
3318cba
add toniebox_firmware.h
SciLor Aug 11, 2023
1ba4b32
Merge branch 'develop' of https://github.com/toniebox-reverse-enginee…
SciLor Aug 11, 2023
e4af307
reduce HA chatter
g3gg0 Aug 11, 2023
9673d88
Fix Dockerfile volume (brackets)
SciLor Aug 11, 2023
4c3adca
Merge branch 'develop' of https://github.com/toniebox-reverse-enginee…
SciLor Aug 11, 2023
89c71ca
Test build windows
SciLor Aug 11, 2023
506dc80
add platform and dependency
SciLor Aug 11, 2023
0bfeb03
switch to snprintf
g3gg0 Aug 11, 2023
b7905de
Merge branch 'develop' of https://github.com/toniebox-reverse-enginee…
g3gg0 Aug 11, 2023
170d971
use bash for windows
SciLor Aug 11, 2023
fad73f1
Merge branch 'develop' of https://github.com/toniebox-reverse-enginee…
SciLor Aug 11, 2023
38e1cf9
windows github action build
SciLor Aug 12, 2023
0768d74
Add Build os, platform and arch to verison
SciLor Aug 12, 2023
db53822
add processor architecture to windows build
SciLor Aug 12, 2023
618cfdd
Testbuild on PR
SciLor Aug 12, 2023
f6c1706
disable log color on windows
SciLor Aug 12, 2023
eafc89f
Check color support of terminal
SciLor Aug 12, 2023
78da163
Merge branch 'master' into develop
SciLor Aug 12, 2023
913593e
fix windows/vs double path sep
SciLor Aug 12, 2023
e351652
add missing double quote to arch
SciLor Aug 12, 2023
d0f8cf5
add another variant for build_arch
SciLor Aug 12, 2023
79a0565
fix build_arch for ps
SciLor Aug 12, 2023
1d8f44e
fixed am64 for windows as workaround
SciLor Aug 12, 2023
db6e3db
move terminal color check to internal settings
SciLor Aug 12, 2023
4196d7f
Don't publish clients without overlay
SciLor Aug 12, 2023
4f403d0
dynamicly allocate memory for tonies.json Cache
SciLor Aug 12, 2023
6681c71
Double presses for the ears
SciLor Aug 12, 2023
f722f66
Reduce chatter of mutex
SciLor Aug 13, 2023
3e6dab9
Enable FFDHE for cc3235
SciLor Aug 13, 2023
6d89a84
Load overlay certs to internal vars (cloud passthrough)
SciLor Aug 13, 2023
274be42
enhance info for cc3235
SciLor Aug 13, 2023
b240440
Fix overlay boxName prefix + certs into overlay
SciLor Aug 13, 2023
e6068bf
add release zip to action artifacts
SciLor Aug 13, 2023
546a253
Move box prefix to settings completly
SciLor Aug 13, 2023
731e921
cc3200tool instead of cc.py
SciLor Aug 13, 2023
7b15b85
fix event_types for ears
SciLor Aug 13, 2023
99112e6
add additional rtnl event for audio id
SciLor Aug 13, 2023
624bec8
remove trailing slash from host_url
SciLor Aug 13, 2023
23de395
fix renamed rtnl2 enum
SciLor Aug 13, 2023
4af5744
updated instructions, incompatible noCerts
Aug 14, 2023
90611d3
adapted wording
hoyohayo Aug 14, 2023
64dc8a8
removed unclear useinstruction of sd folder copy
hoyohayo Aug 14, 2023
6f04467
mqtt_ctx to prevent threading related string access problems
SciLor Aug 14, 2023
507d469
fix memory leak
SciLor Aug 14, 2023
3b36642
Merge pull request #51 from hoyohayo/develop
SciLor Aug 14, 2023
6b68ce8
second frontend hint
SciLor Aug 14, 2023
6af4d54
use 32 bit type for settings
g3gg0 Aug 18, 2023
281caba
added win32 launch configuration
g3gg0 Aug 18, 2023
c6e6511
fix windows platform TCP timeout
g3gg0 Aug 18, 2023
cb46140
use 500ms timeout for MQTT loop, fetch config on connects
g3gg0 Aug 18, 2023
54f85a0
fix windows sockets not waiting for a timeout
g3gg0 Aug 18, 2023
f72bc4f
fix heap overflow by printing beyond buffer end
g3gg0 Aug 18, 2023
2f1b61e
free buffer, some fixes
g3gg0 Aug 18, 2023
cd33332
synchronize with win32 code
g3gg0 Aug 18, 2023
49dcf3a
allow native and wsl debugging from windows instances
g3gg0 Aug 19, 2023
fb82e68
reduce HTTP chatter
g3gg0 Aug 19, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
57 changes: 0 additions & 57 deletions .github/workflows/build_docker.yml

This file was deleted.

5 changes: 5 additions & 0 deletions .github/workflows/build_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,11 @@ jobs:
draft: true
prerelease: ${{ env.IS_PRERELEASE }}
if: github.event_name != 'pull_request'

- uses: actions/upload-artifact@master
with:
name: release.zip
path: ./install/zip/release.zip

- name: Upload Release Asset
id: upload-release-asset
Expand Down
169 changes: 0 additions & 169 deletions .github/workflows/build_release_multiarch.yml

This file was deleted.

12 changes: 7 additions & 5 deletions .github/workflows/build_release_test.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Build and zip windows/linux
name: Build and zip windows/linux Test

on:
workflow_dispatch:
Expand All @@ -16,23 +16,25 @@ jobs:

- name: Build windows
id: build-zip
run: make build
run: cmd /c "C:\"Program Files"\"Microsoft Visual Studio"\2022\Enterprise\VC\Auxiliary\Build\vcvars64.bat && make build PLATFORM=windows SHELL_ENV=bash"
shell: cmd
- name: Check windows executable existence
id: check_release
uses: andstor/file-existence-action@v1
with:
files: "./bin/teddybench.exe"
files: "bin/teddycloud.exe"
allow_failure: false
- name: File exist
if: steps.check_files.outputs.files_exists == 'true'
run: echo windows release zip exists!
- uses: actions/upload-artifact@master
with:
name: windows-exe
path: /bin/teddybench.exe
path: bin\*


build-linux-amd64:
needs: build-windows-amd64
runs-on: ubuntu-latest
outputs:
upload_url: ${{ steps.set_data1.outputs.upload_url }}
Expand Down Expand Up @@ -68,7 +70,7 @@ jobs:
- uses: actions/download-artifact@master
with:
name: windows-exe
path: /bin/teddybench.exe
path: ./bin/

- name: Build and zip amd64
id: build-zip
Expand Down
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,5 @@ contrib/certs/server/teddy-key.pem
contrib/certs/client/teddy-cert.pem
contrib/certs/client/teddy-key.csr
contrib/certs/client/teddy-key.pem
.vs/
SSLKEYLOGFILE
22 changes: 22 additions & 0 deletions .vscode/c_cpp_properties.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
"configurations": [
{
"name": "Win32",
"includePath": [
"${workspaceFolder}/**"
],
"defines": [
"_DEBUG",
"UNICODE",
"_UNICODE"
],
"windowsSdkVersion": "10.0.22000.0",
"compilerPath": "cl.exe",
"cStandard": "c17",
"cppStandard": "c++17",
"intelliSenseMode": "windows-msvc-x64",
"configurationProvider": "ms-vscode.makefile-tools"
}
],
"version": 4
}
44 changes: 42 additions & 2 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"configurations": [
{
"name": "Launch Server",
"name": "[linux] teddyCloud",
"type": "cppdbg",
"request": "launch",
"program": "${workspaceFolder}/bin/teddycloud",
Expand All @@ -16,7 +16,7 @@
},
},
{
"name": "Launch Cloud Time Test",
"name": "[linux] teddyCloud Time Test",
"type": "cppdbg",
"request": "launch",
"program": "${workspaceFolder}/bin/teddycloud",
Expand All @@ -31,6 +31,46 @@
"linux": {
"MIMode": "gdb",
},
},
{
"name": "[wsl] teddyCloud",
"type": "cppdbg",
"request": "launch",
"program": "bin/teddycloud",
"args": [],
"cwd": ".",
"MIMode": "gdb",
"setupCommands": [
{
"description": "Enable pretty-printing for gdb",
"text": "-enable-pretty-printing",
"ignoreFailures": true
}
],
"pipeTransport": {
"pipeProgram": "wsl",
"pipeArgs": [ "--cd", "${workspaceFolder}", "-e", "bash", "-c" ]
},
"preLaunchTask": "[wsl] build",
"logging": {
"programOutput": true,
"engineLogging": true,
"trace": false,
"traceResponse": false,
"exceptions": false
}
},
{
"name": "[win32] teddyCloud",
"type": "cppvsdbg",
"request": "launch",
"program": "${workspaceFolder}/bin/teddycloud.exe",
"args": [],
"stopAtEntry": false,
"cwd": "${workspaceFolder}/",
"environment": [],
"externalConsole": true,
"preLaunchTask": "[win32] build"
}
]
}
Loading
Loading