Skip to content

Commit

Permalink
log device types
Browse files Browse the repository at this point in the history
  • Loading branch information
hobbyquaker committed Jan 17, 2020
1 parent a06a626 commit b31b315
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
7 changes: 7 additions & 0 deletions addon_files/redmatic/bin/deviceTypes
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/bin/sh

ADDON_DIR=/usr/local/addons/redmatic

source $ADDON_DIR/home/.profile

$ADDON_DIR/bin/jq -r '.types[] | keys[]' $ADDON_DIR/var/ccu_localhost.json | grep '-' | sort -f | jo -a
2 changes: 1 addition & 1 deletion addon_files/redmatic/bin/redmaticVersions
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ do
JO_ARGS="$JO_ARGS $PKG=`jq -r '.version' $LOCAL_MODULES/$PKG/package.json`"
done

jo -p ccu=`cat /VERSION | jo` \
jo -p ccu=`(cat /VERSION && echo -n "deviceTypes=" && $ADDON_DIR/bin/deviceTypes) | jo` \
redmatic=$VERSION_ADDON \
nodejs=`node --version | cut -c 2-` \
$JO_ARGS
Expand Down

0 comments on commit b31b315

Please sign in to comment.