Skip to content

Commit

Permalink
🧪 test (log): Add log for in and out udp and tcp packets. TMP Solution
Browse files Browse the repository at this point in the history
  • Loading branch information
dianlight committed Apr 20, 2024
1 parent 72360d2 commit 2ab0da2
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions besim/rootfs/etc/s6-overlay/s6-rc.d/besim/run
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ if bashio::config.true 'work_as_proxy'; then
args="${args} -p $(bashio::config upstream_dns)"
fi

# FIXME: Add parameter or remove after data collection
args="${args} --datalog-udp-path /config/upd.csv --datalog-tcp-path /config/tcp.csv"

if bashio::config.has_value 'zone_entity'; then
COORS=$(curl -s -X GET -H "Authorization: Bearer ${SUPERVISOR_TOKEN}" -H "Content-Type: application/json" http://supervisor/core/api/states/$(bashio::config 'zone_entity') | jq --raw-output '[.attributes.latitude, .attributes.longitude]|join(" ")')
if [ -z "${COORS//['\t\r\n ']/}" ]; then
Expand Down

0 comments on commit 2ab0da2

Please sign in to comment.