<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Profile switcher and adafruit fingerprint]]></title><description><![CDATA[<p dir="auto">Buenos días:<br />
Estoy realizando un espejo inteligente y quisiera cambiar de usuario con un lector de huellas de adafruit. El diseño de la pantalla lo tengo dividido en clases para que se muestre dependiendo de la notificación enviada. El control de usuarios lo tengo con un script de python, lo que necesitaría saber es cómo desde python puedo enviar una notificación tipo this.sendNotification(‘CURRENT_PROFILE’, ‘DESIRED_PROFILE_NAME_HERE’); como dice la documentacion de MMM-ProfileSwitcher o si hay otra manera de hacerlo “sencilla”.</p>
<p dir="auto">Saludos y gracias por adelantado</p>
<p dir="auto">Good Morning:<br />
I’m doing an intelligent mirror and would like to change user with an adafruit fingerprint reader. I have the design of the screen divided into classes so that it shows depending on the notification sent. I have user control with a python script, what I need to know is how from python I can send a notification type this.sendNotification (‘CURRENT_PROFILE’, ‘DESIRED_PROFILE_NAME_HERE’); as the MMM-ProfileSwitcher documentation says or if there is another way to make it “simple”.</p>
<p dir="auto">Greetings and thanks in advance</p>
]]></description><link>https://forum.magicmirror.builders/topic/10023/profile-switcher-and-adafruit-fingerprint</link><generator>RSS for Node</generator><lastBuildDate>Mon, 13 Apr 2026 12:10:00 GMT</lastBuildDate><atom:link href="https://forum.magicmirror.builders/topic/10023.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 11 Mar 2019 13:10:48 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Profile switcher and adafruit fingerprint on Thu, 28 Mar 2019 18:03:21 GMT]]></title><description><![CDATA[<p dir="auto">Bueno, volvemos al tema:<br />
Ahora estoy probando con el modulo MMM-Page-Selector, y no tengo nada claro como debo mandar la petición request.<br />
La que mando es:<br />
r = requests.get(“<a href="http://192.168.xx.xx:8080/api/modules/MMM-Page-Selector?PAGE_SELECT=xxxxxx" target="_blank" rel="noopener noreferrer nofollow ugc">http://192.168.xx.xx:8080/api/modules/MMM-Page-Selector?PAGE_SELECT=xxxxxx</a>”<br />
A lo que se me responde un http 400 (¿bad request?)<br />
¿En que me equivoco?</p>
<p dir="auto">Saludos y gracias por adelantado</p>
<p dir="auto">Well, we return to the topic:<br />
Now I’m testing with the MMM-Page-Selector module, and I’m not sure how to send the request request.<br />
The one I command is:<br />
r = requests.get (“http: <a href="//192.168.xx.xx" target="_blank" rel="noopener noreferrer nofollow ugc">//192.168.xx.xx</a>: 8080 / api / modules / MMM-Page-Selector? PAGE_SELECT = xxxxxx”<br />
To which I answered an http 400 (bad request?)<br />
What is wrong?</p>
<p dir="auto">Greetings and thanks in advance</p>
]]></description><link>https://forum.magicmirror.builders/post/55029</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/55029</guid><dc:creator><![CDATA[jmalco]]></dc:creator><pubDate>Thu, 28 Mar 2019 18:03:21 GMT</pubDate></item><item><title><![CDATA[Reply to Profile switcher and adafruit fingerprint on Thu, 21 Mar 2019 12:56:49 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/jmalco" aria-label="Profile: jmalco">@<bdi>jmalco</bdi></a></p>
<pre><code class="language-py">import requests
response = requests.get('http://localhost:8080/endpoint')
print response.status_code
</code></pre>
]]></description><link>https://forum.magicmirror.builders/post/54681</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/54681</guid><dc:creator><![CDATA[[[global:former-user]]]]></dc:creator><pubDate>Thu, 21 Mar 2019 12:56:49 GMT</pubDate></item><item><title><![CDATA[Reply to Profile switcher and adafruit fingerprint on Thu, 21 Mar 2019 12:51:11 GMT]]></title><description><![CDATA[<p dir="auto">Buenos días:<br />
De momento he conseguido poder mostrar alertas a traves de curl, reinstalando todo desde cero e instalando primero mmm_api y despues mmm_remote_control, ahora la duda la tengo con la forma de enviar mediante peticiones get o post desde requests en python. ¿Alguna sugerencia o ejemplo?<br />
Gracias por adelantado</p>
<p dir="auto">Good Morning:<br />
At the moment I have managed to show alerts through curl, reinstalling everything from scratch and installing first mmm_api and then mmm_remote_control, now I have the question with the way to send via get or post requests from requests in python. Any suggestions or examples?<br />
Thanks in advance</p>
]]></description><link>https://forum.magicmirror.builders/post/54680</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/54680</guid><dc:creator><![CDATA[jmalco]]></dc:creator><pubDate>Thu, 21 Mar 2019 12:51:11 GMT</pubDate></item><item><title><![CDATA[Reply to Profile switcher and adafruit fingerprint on Sat, 16 Mar 2019 18:40:53 GMT]]></title><description><![CDATA[<p dir="auto">Buenas tardes:<br />
He estado probando con MMM-remote-control y no hay manera, no sé como hacer que simplemente muestre una alerta desde my módulo python. Os pongo lo que envío:<br />
headers={“Content-Type”:“application/json”}<br />
payload = {<br />
“action” : “SHOW_ALERT”,<br />
“message” : “adios”,<br />
“timer” : 4,<br />
“title” : “hola”,<br />
“type” : “alert”<br />
}<br />
r = requests.get(“<a href="http://localhost:8080" target="_blank" rel="noopener noreferrer nofollow ugc">http://localhost:8080</a>”,data=json.dumps(payload), headers=headers)<br />
y recobo una respuesta 200 http pero no muestra nada en el espejo.<br />
Tampoco he sabido encontrar cómo llegan o dónde llega la notificacion.<br />
¿Como debo actuar? ¿Que hago mal?</p>
<p dir="auto">Saludos</p>
<p dir="auto">Good afternoon:<br />
I have been testing with MMM-remote-control and there is no way, I do not know how to make it simply show an alert from my python module. I put what I send:<br />
headers = {“Content-Type”: “application / json”}<br />
payload = {<br />
“action”: “SHOW_ALERT”,<br />
“message”: “goodbye”,<br />
“timer”: 4,<br />
“title”: “hello”,<br />
“type”: “alert”<br />
}<br />
r = requests.get (“http: // localhost: 8080”, data = json.dumps (payload), headers = headers)<br />
and I pick up an answer 200 http but it shows nothing in the mirror.<br />
Neither have I been able to find how they arrive or where the notification arrives.<br />
How should I act? What do I do wrong?</p>
<p dir="auto">regards</p>
]]></description><link>https://forum.magicmirror.builders/post/54397</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/54397</guid><dc:creator><![CDATA[jmalco]]></dc:creator><pubDate>Sat, 16 Mar 2019 18:40:53 GMT</pubDate></item><item><title><![CDATA[Reply to Profile switcher and adafruit fingerprint on Mon, 11 Mar 2019 17:04:35 GMT]]></title><description><![CDATA[<p dir="auto">Gracias por la respuesta, lo probaré y comentaré el resultado.</p>
<p dir="auto">Thanks for the reply, I’ll try it and comment on the result</p>
]]></description><link>https://forum.magicmirror.builders/post/54093</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/54093</guid><dc:creator><![CDATA[jmalco]]></dc:creator><pubDate>Mon, 11 Mar 2019 17:04:35 GMT</pubDate></item><item><title><![CDATA[Reply to Profile switcher and adafruit fingerprint on Mon, 11 Mar 2019 13:39:15 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/jmalco" aria-label="Profile: jmalco">@<bdi>jmalco</bdi></a><br />
Your python script could send HTTP request directly or by using curl.<br />
There are several modules which can get RESTful HTTP request.<br />
MMM-NotificationTrigger is one of them. It can listen some REQUEST and can translate it into some notification whichever.<br />
Or As far as I know MMM-Remote-Control can listen REQUEST also.</p>
]]></description><link>https://forum.magicmirror.builders/post/54079</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/54079</guid><dc:creator><![CDATA[[[global:former-user]]]]></dc:creator><pubDate>Mon, 11 Mar 2019 13:39:15 GMT</pubDate></item></channel></rss>