<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>sync &#8211; www.musings.ch</title>
	<atom:link href="https://www.musings.ch/tag/sync/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.musings.ch</link>
	<description></description>
	<lastBuildDate>Wed, 19 May 2021 08:18:09 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=7.0</generator>

<image>
	<url>https://www.musings.ch/wp-content/uploads/2020/02/cropped-56884-200-2-32x32.png</url>
	<title>sync &#8211; www.musings.ch</title>
	<link>https://www.musings.ch</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>withings-sync on debian buster</title>
		<link>https://www.musings.ch/2021/05/19/garmin-withings-sync-on-debian-buster-python3/</link>
		
		<dc:creator><![CDATA[random individual]]></dc:creator>
		<pubDate>Wed, 19 May 2021 06:24:46 +0000</pubDate>
				<category><![CDATA[fitness]]></category>
		<category><![CDATA[garmin]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[withings]]></category>
		<category><![CDATA[buster]]></category>
		<category><![CDATA[debian]]></category>
		<category><![CDATA[python3]]></category>
		<category><![CDATA[sync]]></category>
		<category><![CDATA[weight]]></category>
		<guid isPermaLink="false">https://www.musings.ch/?p=861</guid>

					<description><![CDATA[Since Withings migrates to OAuth 2.0 by 2021-09, I felt it was time to update the flaky sync solution I had running so far. Now running https://github.com/jaroslawhartman/withings-sync with debian&#8217;s virtualenv: (get token, then set up a regular job to sync)]]></description>
										<content:encoded><![CDATA[
<p class="wp-block-paragraph">Since Withings migrates to OAuth 2.0 by 2021-09, I felt it was time to update the flaky sync solution I had running so far.</p>



<p class="wp-block-paragraph">Now running <a href="https://github.com/jaroslawhartman/withings-sync">https://github.com/jaroslawhartman/withings-sync</a> with debian&#8217;s virtualenv:</p>



<pre class="wp-block-code"><code>apt install virtualenv python3-virtualenv</code></pre>



<pre class="wp-block-code"><code>virtualenv -p python3 withings-sync</code></pre>



<pre class="wp-block-code"><code>source withings-sync/bin/activate</code></pre>



<pre class="wp-block-code"><code>pip install withings-sync</code></pre>



<pre class="wp-block-code"><code>export WITHINGS_USER=you</code></pre>



<pre class="wp-block-code"><code>withings-sync</code></pre>



<p class="wp-block-paragraph">(get token, then set up a regular job to sync)</p>



<pre class="wp-block-code"><code>$ cat sync.sh
#!/bin/bash
source withings-sync/bin/activate
export WITHINGS_USER=you
export GARMIN_USERNAME=you-but-on-garmin
export GARMIN_PASSWORD=your-garmin-password
withings-sync
$ chmod 700 sync.sh</code></pre>



<pre class="wp-block-code"><code>crontab -e</code></pre>



<pre class="wp-block-code"><code>12 4 * * * cronic /home/you/sync.sh</code></pre>
]]></content:encoded>
					
		
		
			</item>
	</channel>
</rss>
