Skip to main content

Posts

Showing posts from August, 2016

Pairing the Raspberry Pi 3 with your Playstation 3 controller

While setting up the MAME emulator on the Raspberry Pi 3 I decided to experiment with the PS3 controller trying to pair it with the RPi. I found a useful guide here: http://holvin.blogspot.it/2013/11/how-to-setup-raspberry-pi-as-retro.html At section 4 the author describes how to compile sixpair utility, test that everything is working and compile the QtSixA tool. But there are some differences to be noted when working with the Raspberry Pi version 3. First, and most obvious, of all: the RPi 3 has already a Bluetooth device built in, so you don't have to plug a dongle in it, and it's compatible with the PS3 controller. 1. Sixpair The sixpair utility succeeds in coupling with the controller. But to test that it's working I had to test the js1 joystick port, and not the js0 as stated in the guide; so the actual command is: jstest /dev/input/js1 2. QtSixA The QtSixA download link must be changed, because the one shown doesn't compile with the latest

Solr heatmap dashboard

The default Solr dashboard lacks the possibility to do faceting using spatial data and drawing the results as a heatmap, so I wrote a dashboard to do this: https://github.com/kronwiz/solr-heatmap-dashboard The dashboard is built up of an HTML + JS file and is provided with a small server (based on node.js) to proxy the requests to your Solr server to avoid CORS issues (sorry, I don't like JSONP solutions very much). This is a screenshot: The dashboard lets you tweak the parameters and see graphically what happens to the faceting results. If you, instead, want to see your data displayed onto a real map there's the Solr plugin for Leaflet from Jack Reed:  https://github.com/mejackreed/leaflet-solr-heatmap .