Friday, September 18, 2015

Setup docker for RSyslog

I'm going to talk about setup RSync for python (api_hour) application. But it is also related to any languages, actually I will build my article on docker for php. So you can use it for any service with logging.

As you maybe know docker team decide (??? needed link ???) that it is not good to have more than 1 service inside of docker so if you decide to use well known syslog inside of you app you should launch it separately. Because usually none of docker images comes with syslog inside.

I was playing with brand new engine for async python - api_hour and realize that it requires syslog.

So I have stared from one article that bind mount hosts of syslog docker with your server docker. But there other more easer solution it based on entrypoint, shared volumes and soft links (issue #4).

So in my case I have such launch script (shorten for example case):

you also should change


in etc/aggregator/api_hour/logging.ini.

After that you can check log output by

Thanks all.

Monday, September 7, 2015

Untouched TouchScreen for Raspberry PI 2 pt1

And finally I have got a time to setup TouchScreen for my Rpi2. And I shat say that it wasn't easy.

What I have had:
- Rpi2
- 3.5" TFT LCD Touch Screen Module 320*480 RGB Display Board with logo of WaveShare SpotPear

I have found one article with tutorial It uses common custom driver for Touch LCDs But author of this article has different module with different controller.

But my module has XPT2046 controller and it requires slightly different setup command. Lets see those differences

$ sudo nano /etc/modules

$ sudo nano /boot/cmdline.txt

$ sudo nano /boot/config.txt

we use config.txt and device tree overlays because in actually firmware of Rpi2 no longer uses ads7846_device.

so with those changes LCD screen works fine. But touch interface still doesn’t work I will do more investigations later, when I will get more free time. but if you have had same problem but now fixed it, please put comment here with right solution.

Links - FAQ on site of

Tuesday, September 1, 2015

Live streaming of International Space Station video on Raspberry PI

Few days ago I found that there live streaming from International Space Station that available 24h 7 days in a week. It shows earth from a space and looks like brilliant screen saver that you can watch all day long or at least 45 minutes next 45 minutes it is just black screen because it comes to the night side of the earth.

So I have connected my Raspberry PI to TV and setup streaming. There a lot instructions how to archive it:

And maybe because of slow connection my app was always stops playing. But luckily there easy way to fix it (just increase timeout):