Code Monkey home page Code Monkey logo

biometric's People

Contributors

dependabot[bot] avatar obriensystems avatar

Stargazers

 avatar

Watchers

 avatar  avatar

biometric's Issues

Revisit REST API

Use as a target for un-authenticated rest calls for now

micha@p1gen6 MINGW64 /c/wse_github/gpu-burn (master)
$ curl biometric.elasticbeanstalk.com/FrontController?action=activeid
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100    19    0    19    0     0    195      0 --:--:-- --:--:-- --:--:--   197
{ "id" : 20231101}


micha@p1gen6 MINGW64 /c/wse_github/gpu-burn (master)
$ curl biometric.elasticbeanstalk.com/rest/read/json/latest/20231101
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   904  100   904    0     0   9185      0 --:--:-- --:--:-- --:--:--  9319

{"accelerometerX":"-0.072617","accelerometerY":"-0.323486","accelerometerZ":"-0.969345","accuracy":3.535534,"altitude":100.189117,"bearing":354,"geohash":"f21czytge1v2","gravityX":"0.000000","gravityY":"0.000000","gravityZ":"0.000000","gyroscopeX":null,"gyroscopeY":null,"gyroscopeZ":null,"heartRate1":null,"heartRate2":null,"heartRateDevice1":null,"heartRateDevice2":null,"humidity":null,"id":null,"lattitude":45.343933,"light":null,"linearAccelerationX":"-0.072617","linearAccelerationY":"-0.323486","linearAccelerationZ":"-0.969345","longitude":-75.940454,"pressure":null,"provider":"17.000000","proximity":null,"recvSeq":1360579,"rotationVectorX":"-0.199743","rotationVectorY":"-0.501810","rotationVectorZ":"-0.514806","sendSeq":1,"speed":0.0,"temp":null,"teslaX":"11.355644","teslaY":"-22.135445","teslaZ":"-64.630409","tsStart":1698859814955,"tsStop":1698859814984,"userId":20231101,"version":null}

Add BLE reg/callback for pulse oximeter: SpO2 (O2 saturation) and PI (Perfusion index)

Masimo now has an LE capable oximiter that works very well
http://www.apple.com/ca/shop/product/HK9Q2VC/A/masimo-mightysat-fingertip-pulse-oximeter-bluetooth-le

Oxygen Saturation (SpO2)
A measure of the oxygen saturation in the arterial blood, a higher SpO2 indicates an elevated level of oxygen. SpO2 can change due to a number of factors, including lung or heart function and altitude.

Perfusion Index (PI)
Measures your peripheral blood flow; a higher PI indicates greater blood flow.

docker before cloud native

mysql dump

osx
ssh -L 3406:prod.clck32qqdksy.us-east-1.rds.amazonaws.com:3306 [email protected]

Running: /Applications/MySQLWorkbench.app/Contents/MacOS/mysqldump --defaults-file="/var/folders/rj/kcxp4sbj2y18fnl4sq1gdvj40000gn/T/tmpzieuv1uh/extraparams.cnf"  --host=127.0.0.1 --port=3406 --default-character-set=utf8 --user=ob...bs --protocol=tcp --skip-triggers --skip-column-statistics "biom" "gps_record"


michaelobrien@mbp7 main % docker run --name biometric_web -d -p 8888:8080 -v ~/Dropbox/env/mbp4/biometric/tomcat-users.xml:/usr/local/tomcat/conf/tomcat-users.xml \
  -v ~/Dropbox/env/mbp4/biometric/setenv.sh:/usr/local/tomcat/bin/setenv.sh \
-e os.environment.configuration.dir=/ \
-e os.environment.db.biometric.schema=biometric \
-e os.environment.db.url=jdbc:mysql://127.0.0.1:3406 \
-e os.environment.db.username=ob...s \
-e os.environment.db.password=O*C* \
-e os.environment.discriminator=biometric \
-e os.environment.ecosystem=prod biometric-web:latest
d92663e8d21848a8d1f650856f8978dd9c03033231528aaeb12619ba254f4b3b
michaelobrien@mbp7 main % 


java 11 upgrade - add jaxb 2.3.0

the following classes were removed as part of JAXB from java 11
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlType;

 

<jaxb.version>2.3.0</jaxb.version>

  javax.xml.bind  jaxb-api  ${jaxb.version}   com.sun.xml.bind  jaxb-core  ${jaxb.version}   com.sun.xml.bind  jaxb-impl  ${jaxb.version}

http://jira.obrienlabs.cloud/browse/OBRIENLABS-18

Add SSL Forcing

https://tomcat.apache.org/tomcat-8.0-doc/ssl-howto.html

/usr/lib/jvm/jre-1.8.0-openjdk/bin
[root@nuc12-i7 ~]# vi ~/.bashrc
[root@nuc12-i7 ~]# source ~/.bashrc
[root@nuc12-i7 ~]# echo $JAVA_HOME
/usr/lib/jvm/jre-1.8.0-openjdk
[root@nuc12-i7 ~]# $JAVA_HOME/bin/keytool -genkey -alias tomcat -keyalg RSA
Enter keystore password: 
Re-enter new password: 
What is your first and last name?
[Unknown]: michael
What is the name of your organizational unit?
[Unknown]: obrienlabs
What is the name of your organization?
[Unknown]: obrienlabs.org
What is the name of your City or Locality?
[Unknown]: ottawa
What is the name of your State or Province?
[Unknown]: on
What is the two-letter country code for this unit?
[Unknown]: ca
Is CN=michael, OU=obrienlabs, O=obrienlabs.org, L=ottawa, ST=on, C=ca correct?
[no]: y
Enter key password for <tomcat>
(RETURN if same as keystore password): 
Re-enter new password:
<Connector port="8443" protocol="org.apache.coyote.http11.Http11NioProtocol"
maxThreads="150" SSLEnabled="true" scheme="https" secure="true"
clientAuth="false"
keystoreFile="/root/.keystore"
keystorePass="8"
sslProtocol="TLS" />

25-Apr-2016 15:06:26.823 INFO [http-nio-8080-exec-9] org.apache.coyote.http11.AbstractHttp11Processor.process Error parsing HTTP request header
Note: further occurrences of HTTP header parsing errors will be logged at DEBUG level.
java.lang.IllegalArgumentException: Invalid character (CR or LF) found in method name
at org.apache.coyote.http11.AbstractNioInputBuffer.parseRequestLine(AbstractNioInputBuffer.java:228)
at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1009)
at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:672)
at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1502)
at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1458)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
at java.lang.Thread.run(Thread.java:745)
try
<!-Listener className="org.apache.catalina.core.AprLifecycleListener" SSLEngine="on" /->

Add JPA unique identifer pattern

IdentifiableObject should prefix id's in memory with size + classId + id
and store a registrar setting
Put the following in the @PostConstruct method of a @component
IdentifiableObject.registerClass(int, class)
Store the following maps on the root jpa class (not on the InheritableThreadLocal)
private static Map<Integer, Class<? extends DbObject>> entityMap = Collections.synchronizedMap(new HashMap<Integer, Class<? extends DbObject>>());
private static Map<Class<? extends DbObject>, Integer> keyMap = Collections.synchronizedMap(new HashMap<Class<? extends DbObject>, Integer>());

upgrade to maven=compiler-plugin 3.10 from 3.2 and maven-war-plugin 3.3.2

      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-compiler-plugin</artifactId>
        <!-- version>3.2</version-->
        <version>3.10.1</version>
        <configuration>
          <source>1.8</source>
          <target>1.8</target>
        </configuration>
      </plugin>
       <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-war-plugin</artifactId>
        <!-- version>3.2</version-->
        <version>3.3.2</version>
        <configuration>
          <source>1.8</source>
          <target>1.8</target>
        </configuration>
      </plugin>

edit readme

Heart rate tracking is done via Bluetooth 4.0 LE (Smart)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.