<?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[Installation error on Raspberry PI 3]]></title><description><![CDATA[<p dir="auto">Hi,</p>
<p dir="auto">I receive an error when installing triggercmd. Something related to node_modules.<br />
I tried several hints provided, removed, put back, changed npm, still operation not allowed.</p>
<p dir="auto"><em>root@raspberrypi:~# dpkg -i triggercmdagent_1.0.1_all.deb<br />
(Lecture de la base de données... 146201 fichiers et répertoires déjà installés.)<br />
Préparation du dépaquetage de triggercmdagent_1.0.1_all.deb ...<br />
Dépaquetage de triggercmdagent (1.0.1) sur (1.0.1) ...<br />
Paramétrage de triggercmdagent (1.0.1) ...<br />
Directory 'node_modules' exists. Running 'npm rebuild'<br />
/var/lib/dpkg/info/triggercmdagent.postinst : ligne 71 :  4776 Instruction non permise npm rebuild --production<br />
dpkg: erreur de traitement du paquet triggercmdagent (--install) :<br />
le sous-processus script post-installation installé a retourné une erreur de sortie d'état 132<br />
Des erreurs ont été rencontrées pendant l'exécution :<br />
triggercmdagent</em></p>
<p dir="auto">Sorry for the french installation, hope this is not the problem.<br />
The system has a lot of running modules used to control home automation, so i cannot go from scratch.</p>
]]></description><link>https://www.triggercmd.com/forum/topic/1479/installation-error-on-raspberry-pi-3</link><generator>RSS for Node</generator><lastBuildDate>Sun, 12 Jul 2026 23:52:51 GMT</lastBuildDate><atom:link href="https://www.triggercmd.com/forum/topic/1479.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 24 Jul 2021 22:04:32 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Installation error on Raspberry PI 3 on Sun, 25 Jul 2021 22:24:28 GMT]]></title><description><![CDATA[<p dir="auto">Very cool.  Thanks <a class="mention plugin-mentions-user plugin-mentions-a" href="https://www.triggercmd.com/forum/uid/9684">@Sébastien-Pineau</a>.  I'll let you know if I get this working.</p>
]]></description><link>https://www.triggercmd.com/forum/post/4289</link><guid isPermaLink="true">https://www.triggercmd.com/forum/post/4289</guid><dc:creator><![CDATA[Russ]]></dc:creator><pubDate>Sun, 25 Jul 2021 22:24:28 GMT</pubDate></item><item><title><![CDATA[Reply to Installation error on Raspberry PI 3 on Sun, 25 Jul 2021 22:15:34 GMT]]></title><description><![CDATA[<p dir="auto">They are Phoenix 433 Plug, chinese cheap, the one sold with a remote control ABCD. They are quite old now, can't find them online. You can scan the code send by the remote and repeat it with a 433MHz receiver/emitter or use this piece of code I found some time ago:</p>
<pre><code>import time
import sys
import RPi.GPIO as GPIO
from DHT11_06_DC import read_temp
a_on =  '1111111111111010101011101'
a_off = '1111111111111010101010111'
b_on =  '1111111111101110101011101'
b_off = '1111111111101110101010111'
c_on =  '1111111111101011101011101'
c_off = '1111111111101011101010111'
d_on =  '1111111111101010111011101'
d_off = '1111111111101010111010111'
r_on =  '1010101010111'
r_off = '1010101011101'
short_delay =    0.00045
long_delay =     0.00090
extended_delay = 0.0096
NUM_ATTEMPTS = 10
TRANSMIT_PIN = 16
def transmit_code(code):
	'''Transmit a chosen code string using the GPIO transmitter'''
	GPIO.setmode(GPIO.BCM)
	GPIO.setup(TRANSMIT_PIN, GPIO.OUT)
	for t in range(NUM_ATTEMPTS):
		for i in code:
			if i == '1':
				GPIO.output(TRANSMIT_PIN, 1)
				time.sleep(short_delay)
				GPIO.output(TRANSMIT_PIN, 0)
				time.sleep(long_delay)
			elif i == '0':
				GPIO.output(TRANSMIT_PIN, 1)
				time.sleep(long_delay)
				GPIO.output(TRANSMIT_PIN, 0)
				time.sleep(short_delay)
			else:
				continue
		GPIO.output(TRANSMIT_PIN, 0)
		time.sleep(extended_delay)
	GPIO.cleanup()
def main():
	while True:
		
		tmp=50#read_temp(50)
		print(tmp,end='')
		if tmp&gt;=40:
			exec('transmit_code(r_on)')
			print (' on',end='')
		time.sleep(5)
		if tmp&gt; 41:   
			exec('transmit_code(r_off)')
			print (' off',end='')
		print (':')
		time.sleep(5)            
if __name__=='__main__':
	main()
</code></pre>
]]></description><link>https://www.triggercmd.com/forum/post/4288</link><guid isPermaLink="true">https://www.triggercmd.com/forum/post/4288</guid><dc:creator><![CDATA[Sébastien Pineau]]></dc:creator><pubDate>Sun, 25 Jul 2021 22:15:34 GMT</pubDate></item><item><title><![CDATA[Reply to Installation error on Raspberry PI 3 on Sun, 25 Jul 2021 22:00:40 GMT]]></title><description><![CDATA[<p dir="auto"><a class="mention plugin-mentions-user plugin-mentions-a" href="https://www.triggercmd.com/forum/uid/9684">@Sébastien-Pineau</a>, awesome.  I'm glad you got it working.  Can you tell me which 443mhz plugs you're using and how you're switching them with the Raspberry Pi?  I might want to do the same.</p>
]]></description><link>https://www.triggercmd.com/forum/post/4287</link><guid isPermaLink="true">https://www.triggercmd.com/forum/post/4287</guid><dc:creator><![CDATA[Russ]]></dc:creator><pubDate>Sun, 25 Jul 2021 22:00:40 GMT</pubDate></item><item><title><![CDATA[Reply to Installation error on Raspberry PI 3 on Sun, 25 Jul 2021 21:42:03 GMT]]></title><description><![CDATA[<p dir="auto">And node -v gave me v16.5.0</p>
]]></description><link>https://www.triggercmd.com/forum/post/4286</link><guid isPermaLink="true">https://www.triggercmd.com/forum/post/4286</guid><dc:creator><![CDATA[Sébastien Pineau]]></dc:creator><pubDate>Sun, 25 Jul 2021 21:42:03 GMT</pubDate></item><item><title><![CDATA[Reply to Installation error on Raspberry PI 3 on Sun, 25 Jul 2021 21:40:00 GMT]]></title><description><![CDATA[<p dir="auto">Hi Russ,<br />
Thank you for your fast reply.<br />
Actually, it now work fine, I tried several of your proposals and other about nvm, but I'm unfortunately unable to say which one finally solved the issue. I made further testing with commands from my ok google to control my house appliances and cheap 443Mhz plugs and it look great. Thank you.</p>
]]></description><link>https://www.triggercmd.com/forum/post/4285</link><guid isPermaLink="true">https://www.triggercmd.com/forum/post/4285</guid><dc:creator><![CDATA[Sébastien Pineau]]></dc:creator><pubDate>Sun, 25 Jul 2021 21:40:00 GMT</pubDate></item><item><title><![CDATA[Reply to Installation error on Raspberry PI 3 on Sat, 24 Jul 2021 23:13:26 GMT]]></title><description><![CDATA[<p dir="auto"><a class="mention plugin-mentions-user plugin-mentions-a" href="https://www.triggercmd.com/forum/uid/9684">@Sébastien-Pineau</a> said in <a href="/forum/post/4279">Installation error on Raspberry PI 3</a>:</p>
<blockquote>
<p dir="auto">root@raspberrypi:~# dpkg -i triggercmdagent_1.0.1_all.deb<br />
(Lecture de la base de données... 146201 fichiers et répertoires déjà installés.)<br />
Préparation du dépaquetage de triggercmdagent_1.0.1_all.deb ...<br />
Dépaquetage de triggercmdagent (1.0.1) sur (1.0.1) ...<br />
Paramétrage de triggercmdagent (1.0.1) ...<br />
Directory 'node_modules' exists. Running 'npm rebuild'<br />
/var/lib/dpkg/info/triggercmdagent.postinst : ligne 71 :  4776 Instruction non permise npm rebuild --production<br />
dpkg: erreur de traitement du paquet triggercmdagent (--install) :<br />
le sous-processus script post-installation installé a retourné une erreur de sortie d'état 132<br />
Des erreurs ont été rencontrées pendant l'exécution :<br />
triggercmdagent</p>
</blockquote>
<p dir="auto"><a class="mention plugin-mentions-user plugin-mentions-a" href="https://www.triggercmd.com/forum/uid/9684">@Sébastien-Pineau</a> , can you show me which version of node js you have installed?</p>
<pre><code>node -v
</code></pre>
<p dir="auto">I know it's not compatible with some versions of nodejs 15.</p>
]]></description><link>https://www.triggercmd.com/forum/post/4280</link><guid isPermaLink="true">https://www.triggercmd.com/forum/post/4280</guid><dc:creator><![CDATA[Russ]]></dc:creator><pubDate>Sat, 24 Jul 2021 23:13:26 GMT</pubDate></item></channel></rss>