Forum

You need to log in to create posts and topics.

problem with switch cap and raspberry 3 DietPi

I have bought trough kickstarter the switch cap

I'm not able to use it with Raspberry 3 installed through dietpi.com

Shutdown is working but I cannot use as remote for Kodi installed again as dietpi

 

Any hope to have a lot and give me some hints? I've searched in your tutorial and googled but I failed

 

thanks

mauro

 

Quote from ueilat on June 20, 2018, 6:01 am

I have bought trough kickstarter the switch cap

I'm not able to use it with Raspberry 3 installed through dietpi.com

Shutdown is working but I cannot use as remote for Kodi installed again as dietpi

 

Any hope to have a lot and give me some hints? I've searched in your tutorial and googled but I failed

 

thanks

mauro

 

hi Mauro,

At the moment only osmc kodi is officially supported, but we can try to help.

Can you please describe your problem with kodi?  What is not working? Is it the infrared or the display?

thanks

 

 

it was long but I solved

the issue was just the infrared, beeing not operating and not recognized by kody (no OSMC version)

If you need it I can share my solution for dietpi.com last version and non-OSMC kodi (v17)

 

nano /DietPi/config.txt
check uart enabled
enable_uart=1

cd /root
git clone https://github.com/nanomesher/Nanomesher_PiSwitch_Shutdown.git
cd Nanomesher_PiSwitch_Shutdown

nano nanomesher_piswitch.service
change /home/pi/...    to /root/...

nano RunShutdownDetect
change /home/pi/...    to /root/...

./install.sh

next command to check if system running properly
sudo /bin/systemctl status nanomesher_piswitch

nano /DietPi/config.txt
add line
dtoverlay=lirc-rpi,gpio_in_pin=17,gpio_out_pin=22

apt-get install lirc

cd /root
git clone https://github.com/nanomesher/Nanomesher_KodiSupport.git
cp /root/Nanomesher_KodiSupport/lirc/lircd.conf  /etc/lirc/lircd.conf.d/nanomesher-lirc.conf
rm -R Nanomesher_KodiSupport
mv /etc/lirc/lircd.conf.d/devinput.lircd.conf /etc/lirc/lircd.conf.d/devinput.lircd.dist

nano /etc/lirc/lirc_options.conf
modify the two configuration line to the following values
driver default
device /dev/lirc0

cp /usr/share/kodi/system/Lircmap.xml ~/.kodi/userdata/.

nano ~/.kodi/userdata/Lircmap.xml
add the following block

<remote device="/home/volumio/nanosound.conf">
<left>KEY_LEFT</left>
<right>KEY_RIGHT</right>
<up>KEY_UP</up>
<down>KEY_DOWN</down>
<select>KEY_OK</select>
<start>KEY_SELECT</start>
<back>KEY_BACK</back>
<play>KEY_PLAY</play>
<stop>KEY_STOP</stop>
<forward>KEY_FASTFORWARD</forward>
<reverse>KEY_REWIND</reverse>
<volumeplus>KEY_VOLUMEUP</volumeplus>
<volumeminus>KEY_VOLUMEDOWN</volumeminus>
<pageplus>KEY_CHANNELUP</pageplus>
<pageminus>KEY_CHANNELDOWN</pageminus>
<skipplus>KEY_NEXT</skipplus>
<skipminus>KEY_PREVIOUS</skipminus>
<title>KEY_TITLE</title>
<mute>KEY_MUTE</mute>
<menu>KEY_MENU</menu>
<info>KEY_INFO</info>
<start>KEY_REPEAT</start>
<back>KEY_RANDOM</back>
</remote>

 

 

 

 

 

 

by the way,

there is the possibility to add another infrared sensor on your board?

I would place the raspberry in a place not easily accessible, and I need to remote the infrared to be controlled by sofa.

 

thanks

Thanks very much for your solution.  We will look into sharing it!

As for the infrared sensor, will you consider extending the cables?

thanks

 

sure.. this was the idea.. but I'm not expert from the electronic standpoint... any hint will be great...

 

Actually before you try extending and resoldering, try this:

Carefully push the sensor indicated in the photo - slowly and slightly so that the sensor faces upwards.

thanks

 

Uploaded files:
  • 2018-11-13_7-21-32.png