world-o-techno/README.md

43 lines
1.1 KiB
Markdown
Raw Normal View History

2015-08-02 22:26:51 +02:00
# world-o-techno
2015-08-08 10:41:33 +02:00
Location-based techno with Sonic Pi and gpsd, for Bristol Mini Maker Faire 2015
2015-08-08 10:32:03 +02:00
2015-08-16 11:42:42 +02:00
See http://www.jarkman.co.uk/catalog/robots/worldotechno.htm for hardware details
2015-08-08 10:41:33 +02:00
## Getting started:
2015-08-08 10:32:03 +02:00
2015-08-08 10:41:33 +02:00
Check this repository out into ```/home/pi```
2015-08-08 10:32:03 +02:00
Install gpsd (thanks to http://blog.retep.org/2012/06/18/getting-gps-to-work-on-a-raspberry-pi/) with
2015-08-08 10:41:33 +02:00
```
2015-08-08 10:32:03 +02:00
pi@raspberrypi:~$ sudo apt-get install gpsd gpsd-clients python-gps
2015-08-08 10:41:33 +02:00
```
2015-08-08 10:32:03 +02:00
and start it with
2015-08-08 10:41:33 +02:00
```
2015-08-08 10:32:03 +02:00
pi@raspberrypi:~$ sudo gpsd /dev/ttyUSB0 -F /var/run/gpsd.sock
2015-08-08 10:41:33 +02:00
```
2015-08-08 10:32:03 +02:00
2015-08-08 10:41:33 +02:00
Check your GPS works with
```
2015-08-08 10:32:03 +02:00
pi@raspberrypi:~$ cgps -s
2015-08-08 10:41:33 +02:00
```
2015-08-08 10:32:03 +02:00
Install sonic-pi-cli to give Sonic Pi a command line (via https://github.com/Widdershin/sonic-pi-cli)
2015-08-08 10:41:33 +02:00
```
2015-08-08 10:32:03 +02:00
pi@raspberrypi:~$ gem install sonic-pi-cli
2015-08-08 10:41:33 +02:00
```
2015-08-08 10:32:03 +02:00
2015-08-08 10:41:33 +02:00
## Autostart
2015-08-08 10:32:03 +02:00
2015-08-08 10:41:33 +02:00
Make your pi start Sonic Pi and play our script when the Pi boots boot (thanks to
https://rbnrpi.wordpress.com/autoboot-for-telegram-and-sonic-pi-jukebox/)
```
2015-08-08 10:32:03 +02:00
pi@raspberrypi:~$ sudo vi /etc/xdg/lxsession/LXDE-pi/autostart
2015-08-08 10:41:33 +02:00
```
2015-08-08 10:32:03 +02:00
and add these lines at the end:
2015-08-08 10:41:33 +02:00
```
2015-08-08 10:32:03 +02:00
@sonic-pi
lxterminal --command "/home/pi/world-o-techno/startup.sh"
2015-08-08 10:41:33 +02:00
```
2015-08-08 10:32:03 +02:00
2015-08-08 10:41:33 +02:00
Now reboot your Pi and see if it works.