Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
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
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,7 @@ You can edit the following options values in the configuration file (~/myopenaps
{"watchdog":true or false}, Optional - Default is true. If set to true then Logger will automatically reboot the rig to resolve bluetooth issues if no glucose is seen from the transmitter in more than 14 minutes.
{"utc":true or false}, Optional - Default is true. If set to true then Logger will assume UTC date/time strings coming from the curls to NightScout.
{"fakemeter_only_offline":true or false}, Optional - Default is false. If set to false then Logger will not attempt to call fakemeter unless the rig is offline.
{"note_not_announcement":true or false}, Optional - Default is false. If set to true then Logger will post an Announcement as a Note.

## Getting Started
First, make sure you've checked the Prerequisites above and completed the Installation steps. Afterwords, perform the following steps:
Expand Down
9 changes: 8 additions & 1 deletion xdrip-get-entries.sh
Original file line number Diff line number Diff line change
Expand Up @@ -1267,7 +1267,14 @@ function postAnnouncementToNS()
{
local announcement=$1

echo "[{\"enteredBy\":\"Logger\",\"eventType\":\"Announcement\",\"notes\":\"$announcement\"}]" > ${LDIR}/status-change.json
note_not_announcement=$(cat ${CONF_DIR}/xdripjs.json | jq -M -r '.note_not_announcement')
if [ "$note_not_announcement" == true ]; then
eventtype="Note"
else
eventtype="Announcement"
fi

echo "[{\"enteredBy\":\"Logger\",\"eventType\":\"$eventtype\",\"notes\":\"$announcement\"}]" > ${LDIR}/status-change.json
/usr/local/bin/cgm-post-ns ${LDIR}/status-change.json treatments && (echo; log "Upload to NightScout of Announcment worked - $announcement") || (echo; log "Upload of Announcement to NS did not work - $announcement")
}

Expand Down