<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="fr">
	<id>https://knowledge.pinon-hebert.fr/mediawiki/index.php?action=history&amp;feed=atom&amp;title=Python-xsense</id>
	<title>Python-xsense - Historique des versions</title>
	<link rel="self" type="application/atom+xml" href="https://knowledge.pinon-hebert.fr/mediawiki/index.php?action=history&amp;feed=atom&amp;title=Python-xsense"/>
	<link rel="alternate" type="text/html" href="https://knowledge.pinon-hebert.fr/mediawiki/index.php?title=Python-xsense&amp;action=history"/>
	<updated>2026-05-19T13:50:13Z</updated>
	<subtitle>Historique des versions pour cette page sur le wiki</subtitle>
	<generator>MediaWiki 1.43.6</generator>
	<entry>
		<id>https://knowledge.pinon-hebert.fr/mediawiki/index.php?title=Python-xsense&amp;diff=1944&amp;oldid=prev</id>
		<title>Jpinon le 28 mars 2026 à 23:08</title>
		<link rel="alternate" type="text/html" href="https://knowledge.pinon-hebert.fr/mediawiki/index.php?title=Python-xsense&amp;diff=1944&amp;oldid=prev"/>
		<updated>2026-03-28T23:08:37Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;fr&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Version précédente&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Version du 28 mars 2026 à 23:08&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l42&quot;&gt;Ligne 42 :&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Ligne 42 :&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;L&amp;#039;étude du code nous en apprendra beaucoup.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;L&amp;#039;étude du code nous en apprendra beaucoup.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;=== Repository GIT ===&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Un repo git est crée dans l&#039;environnement de dev.&amp;lt;syntaxhighlight lang=&quot;bash&quot;&amp;gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;git clone git:repo/python-xsense&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&amp;lt;/syntaxhighlight&amp;gt;Lire le README.MD il résume ce qui est dit ci-dessus et explique comment ça marche.&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Jpinon</name></author>
	</entry>
	<entry>
		<id>https://knowledge.pinon-hebert.fr/mediawiki/index.php?title=Python-xsense&amp;diff=911&amp;oldid=prev</id>
		<title>Jpinon : Page créée avec « L&#039;utilisation des capteurs x-sense en dehors des applications classiques est assez mal documentée. J&#039;ai seulement trouvé un module python : [https://github.com/theosnel/python-xsense/tree/develop python-xsense] sur github.  == Installation == Pour moi elle a été relativement douloureuse mais avec les infos ci-dessous ca va tout seul.  Il vaut mieux créer un environnement virtuel python pour cela.&lt;syntaxhighlight lang=&quot;bash&quot;&gt; python -m venv x-sense-env source... »</title>
		<link rel="alternate" type="text/html" href="https://knowledge.pinon-hebert.fr/mediawiki/index.php?title=Python-xsense&amp;diff=911&amp;oldid=prev"/>
		<updated>2025-02-21T18:37:42Z</updated>

		<summary type="html">&lt;p&gt;Page créée avec « L&amp;#039;utilisation des capteurs x-sense en dehors des applications classiques est assez mal documentée. J&amp;#039;ai seulement trouvé un module python : [https://github.com/theosnel/python-xsense/tree/develop python-xsense] sur github.  == Installation == Pour moi elle a été relativement douloureuse mais avec les infos ci-dessous ca va tout seul.  Il vaut mieux créer un environnement virtuel python pour cela.&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt; python -m venv x-sense-env source... »&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Nouvelle page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;L&amp;#039;utilisation des capteurs x-sense en dehors des applications classiques est assez mal documentée. J&amp;#039;ai seulement trouvé un module python : [https://github.com/theosnel/python-xsense/tree/develop python-xsense] sur github.&lt;br /&gt;
&lt;br /&gt;
== Installation ==&lt;br /&gt;
Pour moi elle a été relativement douloureuse mais avec les infos ci-dessous ca va tout seul.&lt;br /&gt;
&lt;br /&gt;
Il vaut mieux créer un environnement virtuel python pour cela.&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
python -m venv x-sense-env&lt;br /&gt;
source x-sense-env/bin/activate&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;On clone le repository git.&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git clone https://github.com/theosnel/python-xsense.git&lt;br /&gt;
cd python-xsense&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;On y est mais avant de lancer le test.py il y a beaucoup de modules a installer.&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
python -m pip install requests&lt;br /&gt;
python -m pip install boto3&lt;br /&gt;
python -m pip install pycognito&lt;br /&gt;
python -m pip install paho-mqtt&lt;br /&gt;
python -m pip install aiohttp&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;Attention pour paho. Le programme dit qu&amp;#039;il manque le module paho mais, si on le trouves pour windows, pour linux il faut bien préciser paho-mqtt!&lt;br /&gt;
&lt;br /&gt;
Ensuite on lance le programme de test avec les identifiants que l&amp;#039;on a entrés avec l&amp;#039;application lors de la création du compte.&amp;lt;syntaxhighlight lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
python test.py --username &amp;#039;mail@mondomaine.com&amp;#039; --password &amp;#039;monmotdepasse&amp;#039;&lt;br /&gt;
----[ Paris Eugène Millon (XXXX7AD2F07111EXXXX711521EXXXXAA) ]-----------------&lt;br /&gt;
Station de base (SBS50):&lt;br /&gt;
  serial  : 14BXXXX&lt;br /&gt;
  online  : yes&lt;br /&gt;
  values  : {&amp;#039;type&amp;#039;: &amp;#039;SBS50&amp;#039;, &amp;#039;stationSN&amp;#039;: &amp;#039;14B9XXXX&amp;#039;, &amp;#039;deviceSN&amp;#039;: &amp;#039;14B9XXXX&amp;#039;, &amp;#039;sw&amp;#039;: &amp;#039;v1.5.7&amp;#039;, &amp;#039;rfFreq&amp;#039;: &amp;#039;868&amp;#039;, &amp;#039;voiceVol&amp;#039;: &amp;#039;75&amp;#039;, &amp;#039;alarmVol&amp;#039;: &amp;#039;75&amp;#039;, &amp;#039;alarmTone&amp;#039;: &amp;#039;1&amp;#039;, &amp;#039;ledBrt&amp;#039;: &amp;#039;8&amp;#039;, &amp;#039;ssid&amp;#039;: &amp;#039;XXX&amp;#039;, &amp;#039;ip&amp;#039;: &amp;#039;X.Y.Z.101&amp;#039;, &amp;#039;mac&amp;#039;: &amp;#039;EC:C9:FF:7A:XX:XX&amp;#039;, &amp;#039;macBT&amp;#039;: &amp;#039;EC:C9:FF:7A:XX:XX&amp;#039;, &amp;#039;wifiRSSI&amp;#039;: &amp;#039;-61&amp;#039;}&lt;br /&gt;
# Station de base (XXXXE563F07111EFB406B141D849XXXX)&lt;br /&gt;
Thermo-hygromètre (STH51):&lt;br /&gt;
  serial  : 00000001&lt;br /&gt;
  online  : yes&lt;br /&gt;
  values  : {&amp;#039;type&amp;#039;: &amp;#039;STH51&amp;#039;, &amp;#039;batInfo&amp;#039;: 3, &amp;#039;rfLevel&amp;#039;: 3, &amp;#039;online&amp;#039;: &amp;#039;1&amp;#039;, &amp;#039;alarmStatus&amp;#039;: False, &amp;#039;temperature&amp;#039;: 19.8, &amp;#039;humidity&amp;#039;: 45.6, &amp;#039;temperatureUnit&amp;#039;: &amp;#039;1&amp;#039;, &amp;#039;temperatureRange&amp;#039;: [-20, 60], &amp;#039;humidityRange&amp;#039;: [0, 100], &amp;#039;alarmEnabled&amp;#039;: True, &amp;#039;continuedAlarm&amp;#039;: False, &amp;#039;time&amp;#039;: &amp;#039;20250221181904&amp;#039;}&lt;br /&gt;
Thermo-hygromètre 2 (STH51):&lt;br /&gt;
  serial  : 00000002&lt;br /&gt;
  online  : yes&lt;br /&gt;
  values  : {&amp;#039;type&amp;#039;: &amp;#039;STH51&amp;#039;, &amp;#039;batInfo&amp;#039;: 3, &amp;#039;rfLevel&amp;#039;: 3, &amp;#039;online&amp;#039;: &amp;#039;1&amp;#039;, &amp;#039;alarmStatus&amp;#039;: False, &amp;#039;temperature&amp;#039;: 18.4, &amp;#039;humidity&amp;#039;: 51.2, &amp;#039;temperatureUnit&amp;#039;: &amp;#039;1&amp;#039;, &amp;#039;temperatureRange&amp;#039;: [-20, 60], &amp;#039;humidityRange&amp;#039;: [0, 100], &amp;#039;alarmEnabled&amp;#039;: True, &amp;#039;continuedAlarm&amp;#039;: False, &amp;#039;time&amp;#039;: &amp;#039;20250221181904&amp;#039;}&lt;br /&gt;
Thermo-hygromètre 3 (STH51):&lt;br /&gt;
  serial  : 00000003&lt;br /&gt;
  online  : yes&lt;br /&gt;
  values  : {&amp;#039;type&amp;#039;: &amp;#039;STH51&amp;#039;, &amp;#039;batInfo&amp;#039;: 3, &amp;#039;rfLevel&amp;#039;: 3, &amp;#039;online&amp;#039;: &amp;#039;1&amp;#039;, &amp;#039;alarmStatus&amp;#039;: False, &amp;#039;temperature&amp;#039;: 18.7, &amp;#039;humidity&amp;#039;: 48.8, &amp;#039;temperatureUnit&amp;#039;: &amp;#039;1&amp;#039;, &amp;#039;temperatureRange&amp;#039;: [-20, 60], &amp;#039;humidityRange&amp;#039;: [0, 100], &amp;#039;alarmEnabled&amp;#039;: True, &amp;#039;continuedAlarm&amp;#039;: False, &amp;#039;time&amp;#039;: &amp;#039;20250221181905&amp;#039;}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;On voit bien comment obtenir toutes les informations sur les capteurs installés. En particulier la température et l&amp;#039;humidité des 3 capteurs.&lt;br /&gt;
&lt;br /&gt;
L&amp;#039;étude du code nous en apprendra beaucoup.&lt;/div&gt;</summary>
		<author><name>Jpinon</name></author>
	</entry>
</feed>