Skip to content
Closed
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
32 changes: 32 additions & 0 deletions .github/ISSUE_TEMPLATE/--bug-report.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
---
name: "\U0001F41BBug report"
about: Create a report to help us fix things

---

**Describe the bug**
A clear and concise description of what the bug is.

**To Reproduce**
Steps to reproduce the behavior:
1. Go to '...'
2. Click on '....'
3. Scroll down to '....'
4. See error

**Expected behavior**
A clear and concise description of what you expected to happen.

**Screenshots**
If applicable, add screenshots to help explain your problem.

**Smartphone (please complete the following information):**

**Setup Information (please complete the following information):**
* Pump type (e.g. Medtronic 722, v. 2.4A firmware)
* CGM type (e.g. Dexcom G4 via xDrip+)
* Rig type (e.g. Edison/Explorer Board rig)
* oref0 version (e.g. oref0 0.6.2 master, or 0.7.0-dev)

**Additional context**
Add any other context about the problem here.
17 changes: 17 additions & 0 deletions .github/ISSUE_TEMPLATE/--feature-request--.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
---
name: "\U0001F4A1Feature request\U0001F4A1"
about: Suggest an idea for this project

---

**Is your feature request related to a problem? Please describe.**
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

**Describe the solution you'd like**
A clear and concise description of what you want to happen.

**Describe alternatives you've considered**
A clear and concise description of any alternative solutions or features you've considered.

**Additional context**
Add any other context or screenshots about the feature request here.
9 changes: 9 additions & 0 deletions .github/ISSUE_TEMPLATE/--individual-troubleshooting-help.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---
name: "\U0001F198Individual troubleshooting help"
about: Getting help with your own individual setup - let's hop into Gitter at https://gitter.im/nightscout/intend-to-bolus

---

Are you having an issue with your individual rig/setup?

Please first go to Gitter (https://gitter.im/nightscout/intend-to-bolus) and post there, with details of your setup (pump/CGM/CGM data path/rig type/oref0 version) and the issue you're observing.
3 changes: 2 additions & 1 deletion bin/openaps-packages.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
# TODO: remove the `-o Acquire::ForceIPv4=true` once Debian's mirrors work reliably over IPv6
apt-get -o Acquire::ForceIPv4=true install -y sudo
sudo apt-get -o Acquire::ForceIPv4=true update && sudo apt-get -o Acquire::ForceIPv4=true -y upgrade
sudo apt-get -o Acquire::ForceIPv4=true install -y git python python-dev software-properties-common python-numpy python-pip nodejs-legacy npm watchdog strace tcpdump screen acpid vim locate jq lm-sensors && \
sudo apt-get -o Acquire::ForceIPv4=true install -y git python python-dev software-properties-common python-numpy python-pip npm watchdog strace tcpdump screen acpid vim locate jq lm-sensors && \
if getent passwd edison > /dev/null; then sudo apt-get -o Acquire::ForceIPv4=true install -y nodejs-legacy; fi && \
sudo pip install -U openaps && \
sudo pip install -U openaps-contrib && \
sudo openaps-install-udev-rules && \
Expand Down
13 changes: 9 additions & 4 deletions bin/oref0-setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -137,8 +137,8 @@ case $i in
esac
done

if ! [[ ${CGM,,} =~ "g4-upload" || ${CGM,,} =~ "g5" || ${CGM,,} =~ "g5-upload" || ${CGM,,} =~ "mdt" || ${CGM,,} =~ "shareble" || ${CGM,,} =~ "xdrip" || ${CGM,,} =~ "g4-local" ]]; then
echo "Unsupported CGM. Please select (Dexcom) G4-upload (default), G4-local-only, G5, G5-upload, MDT or xdrip."
if ! [[ ${CGM,,} =~ "g4-upload" || ${CGM,,} =~ "g5" || ${CGM,,} =~ "g5-upload" || ${CGM,,} =~ "g6" || ${CGM,,} =~ "g6-upload" || ${CGM,,} =~ "mdt" || ${CGM,,} =~ "shareble" || ${CGM,,} =~ "xdrip" || ${CGM,,} =~ "g4-local" ]]; then
echo "Unsupported CGM. Please select (Dexcom) G4-upload (default), G4-local-only, G5, G5-upload, G6, G6-upload, MDT or xdrip."
echo
DIR="" # to force a Usage prompt
fi
Expand Down Expand Up @@ -179,7 +179,9 @@ if [[ -z "$DIR" || -z "$serial" ]]; then
echo "G4-upload: will use and upload BGs from a plugged in G4 receiver to Nightscout"
echo "G4-local-only: will use BGs from a plugged in G4, but will *not* upload them"
echo "G5: will use BGs from a plugged in G5, but will *not* upload them (the G5 app usually does that)"
echo "G5-upload: will use and upload BGs from a plugged in G5 receiver to Nightscout"
echo "G5-upload: will use and upload BGs from a plugged in non-touchscreen G5 receiver to Nightscout"
echo "G6: will use BGs from a plugged in G5/G6 touchscreen receiver, but will *not* upload them (the G6 app usually does that)"
echo "G6-upload: will use and upload BGs from a plugged in G5/G6 touchscreen receiver to Nightscout"
echo "MDT: will use and upload BGs from an Enlite sensor paired to your pump"
echo "xdrip: will work with an xDrip receiver app on your Android phone"
echo "Note: no matter which option you choose, CGM data will also be downloaded from NS when available."
Expand Down Expand Up @@ -682,6 +684,9 @@ if [[ $REPLY =~ ^[Yy]$ ]]; then
if [[ ${CGM,,} =~ "g5" || ${CGM,,} =~ "g5-upload" ]]; then
openaps use cgm config --G5
openaps report add raw-cgm/raw-entries.json JSON cgm oref0_glucose --hours "24.0" --threshold "100" --no-raw
elif [[ ${CGM,,} =~ "g6" || ${CGM,,} =~ "g6-upload" ]]; then
openaps use cgm config --G6
openaps report add raw-cgm/raw-entries.json JSON cgm oref0_glucose --hours "24.0" --threshold "100" --no-raw
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Will need to add set_pref_string .cgm_loop_path "$directory" in this function to make sure oref0-monitor-cgm.sh runs in the right place. See: #1149 and #1211

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for fixing this bug! I ran into it a while ago and gave up on it because I couldn't track it down in the time I had. I'm closing this PR and opening a new one that both adds setup support for touchscreen receivers, fixes this bug, and makes some changes to oref0-cron-every-minute to make the CGM loop work with the new receivers too.

elif [[ ${CGM,,} =~ "shareble" ]]; then
echo Checking Adafruit_BluefruitLE installation
if ! python -c "import Adafruit_BluefruitLE" 2>/dev/null; then
Expand Down Expand Up @@ -1052,7 +1057,7 @@ if [[ $REPLY =~ ^[Yy]$ ]]; then
(crontab -l; crontab -l | grep -q "killall -g --older-than 30m oref0" || echo '* * * * * ( killall -g --older-than 30m openaps; killall -g --older-than 30m oref0-pump-loop; killall -g --older-than 30m openaps-report )') | crontab -
# kill pump-loop after 5 minutes of not writing to pump-loop.log
(crontab -l; crontab -l | grep -q "killall -g --older-than 5m oref0" || echo '* * * * * find /var/log/openaps/pump-loop.log -mmin +5 | grep pump && ( killall -g --older-than 5m openaps; killall -g --older-than 5m oref0-pump-loop; killall -g --older-than 5m openaps-report )') | crontab -
if [[ ${CGM,,} =~ "g5-upload" ]]; then
if [[ ${CGM,,} =~ "g5-upload" || ${CGM,,} =~ "g6-upload" ]]; then
(crontab -l; crontab -l | grep -q "oref0-upload-entries" || echo "* * * * * cd $directory && oref0-upload-entries" ) | crontab -
fi
if [[ ${CGM,,} =~ "shareble" || ${CGM,,} =~ "g4-upload" ]]; then
Expand Down