This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/mmeowlink/handlers/stick.py b/mmeowlink/handlers/stick.py | |
index a40dd9d..78340e6 100644 | |
--- a/mmeowlink/handlers/stick.py | |
+++ b/mmeowlink/handlers/stick.py | |
@@ -170,19 +170,12 @@ class Repeater (Sender): | |
buf = pkt.assemble( ) | |
log.debug('Sending repeated message %s' % (str(buf).encode('hex'))) | |
- self.link.write(buf, repetitions=repetitions) | |
+ self.link.write(buf, repetitions=repetitions, timeout=0.024 * repetitions) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
edison@ediscout2:~/myAps$ sudo openaps use veo2 model | |
"554" | |
<wait 2 minutes + some seconds> | |
edison@ediscout2:~/myAps$ sudo openaps use veo2 model | |
Traceback (most recent call last): | |
File "/usr/local/bin/openaps-use", line 6, in <module> | |
exec(compile(open(__file__).read(), __file__, 'exec')) | |
File "/home/edison/src/openaps/bin/openaps-use", line 63, in <module> | |
app( ) | |
File "/home/edison/src/openaps/openaps/cli/__init__.py", line 51, in __call__ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
+ sleep 2 | |
+ ./change_setting.py /dev/spidev5.1 0x06 0x00 | |
retry 0 | |
RileyLink OK | |
Version: subg_rfspy 0.8 | |
Resp | |
SUCCESS | |
+ sleep 0.5 | |
+ ./change_setting.py /dev/spidev5.1 0x0C 0x59 | |
retry 822 ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Requested rate: 0.075, Set rate: 0.050 | |
Requested rate: 0.150, Set rate: 0.125 | |
Requested rate: 0.175, Set rate: 0.150 | |
Requested rate: 0.300, Set rate: 0.275 | |
Requested rate: 0.350, Set rate: 0.325 | |
Requested rate: 0.475, Set rate: 0.450 | |
Requested rate: 0.575, Set rate: 0.550 | |
Requested rate: 0.600, Set rate: 0.575 | |
Requested rate: 0.700, Set rate: 0.675 | |
Requested rate: 0.725, Set rate: 0.700 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Instructions! | |
Get the voltage tool | |
``` | |
git clone https://github.com/cjo20/EdisonVoltage.git | |
cd EdisonVoltage.git | |
make voltage | |
cd .. | |
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
echo { \"_type\": \"AlarmSensor\", \ | |
\"_description\": \"Battery Percentage log\", \ | |
\"alarm_type\": 104, \ | |
\"alarm_description\": \"Battery\", \ | |
\"_body\" : \"\", \ | |
\"_head\": \"\", \ | |
\"enteredBy\": \"openaps://medtronic/554\", \ | |
\"eventType\" :\"Note\", \ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Author: Ben West, Maintainer: Scott Leibrand | |
# Written for decocare v0.0.17. Will need updating the the decocare json format changes. | |
HISTORY=${1-treatmenthistory.json} | |
OUTPUT=${2-treatmenthistory.ns.json} | |
#TZ=${3-$(date +%z)} | |
cat $HISTORY | \ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def add_option (self, k, v, secret=true): | |
self.fields[k] = v | |
if k not in self.required + self.optional: | |
self.optional.append(k) | |
if secret: | |
self.secret_fields.append(k) | |
def store (self, config): | |
if not config.has_section(self.section_name( )): | |
config.add_device(self) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import sys, os | |
import argparse | |
import argcomplete | |
import textwrap | |
class Base (object): | |
always_complete_options = True | |
def __init__ (self, args): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
E:\Src\Diabetes\comlink2-uart>node examples\usb_stick.js | |
got bunyan | |
howdy | |
{ _readableState: | |
{ highWaterMark: 0, | |
buffer: [], | |
length: 0, | |
pipes: null, | |
pipesCount: 0, | |
flowing: false, |
NewerOlder