Skip to content

hkim0331/withings-client

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Withings-Client

withings token manager.

🔥UNDER CONSTRUCTION🔥

generated using Luminus version "4.40"

% lein new luminus withings-client +site +reagent +mysql

Prerequisites

  • Leiningen 2.0 or above installed.
  • mariadb 10.3 or later.
  • npm (maybe nodejs)

Prep

  • create user
  • create database

develop

not MariaDB 11. use 10.*. (2023-12-16, 10.6)

or in VScode,

Run kohhoh

Use /home/ubuntu/withings-client/{start,stop,restart}.sh.

Usage

% wc-login.sh user password % wc-lastupdate.sh | wc-date-value.clj

bin/

  • wc-login.sh login password -- to start a session. must be executed before before any of operations bellow.
  • wc-users.sh -- get all users
  • wc-toggle-valid.sh id -- toggle users validity
  • wc-lastupdate.sh id date -- fetch user id's last updated data.
  • wc-start-end.sh id startdate enddate -- fetch user id's data between startdate and enddate.
  • wc-refresh-all-auto.sh
  • wc-refresh-all.sh -- refresh all existent tokens
  • wc-refresh.sh id -- refresh user id's token

License

Copyright © 2022 Hiroshi Kimura