HomePi – connecting the Pi and the LED board

After setting up the LED board (HomePi – Starting with the LED board) and proving that it is actually working, it is now time to connect the Pi with the LED board. In this blog Post, we will talk about:

  • The Raspberry Pi GPIOs in general
  • How to connect the two devices
  • Download & use a software that allows to control the GPIOs/LEDs

First things first: The GPIOs

GPIO stands for General purpose input/output. We find them on the Raspberry Pi. A very good source of information is https://www.raspberrypi.org/documentation/usage/gpio/ where we find an image explaining the PIN numbering and location on the board.

The GPIO pins are a physical interface between the Pi and the outside world. At the simplest level, you might think of them as switches that you can turn on or off (input case) or that the Pi can turn on or off (output case).

Read More

How to install NodeJS 8 on Raspberry Pi (using the ArmV6 package)

The is just a little “note” on how to install NodeJS on the RaspberryPi, as I was searching for the best way to do it my self several time, I decided to put this up for you guys (and me 😉 ) here to find it more easily..

First ssh into your Pi, then follow the procedure:

pi@raspberrypi:~ $ mkdir Downloads
pi@raspberrypi:~ $ cd Downloads/
pi@raspberrypi:~/Downloads $ wget https://nodejs.org/dist/v8.9.0/node-v8.9.0-linux-armv6l.tar.xz
--2017-11-05 11:57:20--  https://nodejs.org/dist/v8.9.0/node-v8.9.0-linux-armv6l.tar.xz
...
Length: 10272460 (9.8M) [application/x-xz]
Saving to: 'node-v8.9.0-linux-armv6l.tar.xz'
node-v8.9.0-linux-a 100%[===================>]   9.80M  1.20MB/s    in 7.7s 
...  
pi@raspberrypi:~/Downloads $ tar -xvf node-v8.9.0-linux-armv6l.tar.xz
pi@raspberrypi:~/Downloads $ cd node-v8.9.0-linux-armv6l/
pi@raspberrypi:~/Downloads/node-v8.9.0-linux-armv6l $ sudo cp -R * /usr/local/
pi@raspberrypi:~/Downloads/node-v8.9.0-linux-armv6l $ cd
pi@raspberrypi:~ $ node -v
v8.9.0

You see, finally, we got no v8.9.0 on the Pi.

Stay tuned..

HomePi – Google Home connected to raspberry pi using RSI #wc3auto

pi + Google HomeI am currently preparing a series of blog posts to explain, how I connected my rapsberry pi based sprinkler system to my Google home. I will share code an insights about my journey.

You will need a raspberry pi (any generation is fine, I run a 1.gen) and a Google Home, or just your smartphone with google assist enabled. The more impressive is the Google Home though.

I will explain how to setup the raspberry pi, how to obtain a hostname for you dynamic IP address, the setup of letsencrypt certificates on the rasberry pi, how to auto-renew them, how to write a plugin for the rsiServer (http://github.com/rsiServer), how to setup the server for Token based authorization, how to enable https and finally how to hook up the Google Home to the entire system.

Please give me a little time and support me by sharing the announcement, I will be back with detailled instructionssoon.

W3C rsiServer on github – automotive Web APIs made public

The World wide web consortium decided to create a standard for automotive APIs a few years back. Quite some discussion where going on about the technologies to choose for those APIs. While in the beginning a strong candidate was seen in a JavaScript API for automotive grade browsers which run on the so called IVI (in-vehicle-infotainment) systems, nowadays a more versatile API is the consortiums favourite.

With operating systems (OS) like Google Android or Apple iOS dominating the smartphone market and HTML5 and QT moving into the automotive infotainment world, an API is needed which allows to connect from any device and its OS to the actual vehicles API.

The APIs the W3C is designing will cover different domains. Of course accessing vehicle information from within or outside of the IVI unit is a must – we are talking about automotive APIs. Other areas of interest are location based services that would allow an application developer to access the vehicles navigation core, e.g. to feed destinations into it.

The discussions in the W3C automotive web platform group (https://www.w3.org/community/autowebplatform/) also brought up a REST interface approach that adds push to REST APIs. A reference implementation for a server is made public on github for everyone to play around with an contribute (https://github.com/wzr1337/rsiServer).

While REST APIs are familiar to most of the application developers from using web services nowadays, the approach is fairly uncommon but yet interesting for automotive applications. Especially added some push mechanism will allow application to listen for changes rather than polling them in. This is of course the key differentiator and yet a straight forward approach to make vehicle APIs usable for non-auto guys.

The expectation is to open up an eco system for applications similar to the mobile web APIs like GeoLocation did in recent years.

[AngularJS] ng-wallpaper by zwoup.com

AngularJS wallpaper 1080p HD by zwoup
AngularJS wallpaper 1080p HD by zwoup
AngularJS wallpaper 1080p HD by zwoup

Now that I am working more than a year with angularJS (https://angularjs.org/) – The super heroic MVW framework, I decided to repaint my living room.

Feel free to use and share the clean heroic wallpaper..

google code jam 2012: How to solve alien numbers problem

As I am practicing for google codejam 2012 right now, I came across the alien number problem google gave for practice. There are alot of problems out there and I am doing different ones for practicing but solving the google ones seems to be most efficient I think.
The Problem is described as follows:

The decimal numeral system is composed of ten digits, which we represent as “0123456789” (the digits in a system are written from lowest to highest). Imagine you have discovered an alien numeral system composed of some number of digits, which may or may not be the same as those used in decimal. For example, if the alien numeral system were represented as “oF8”, then the numbers one through ten would be (F, 8, Fo, FF, F8, 8o, 8F, 88, Foo, FoF). We would like to be able to work with numbers in arbitrary alien systems. More generally, we want to be able to convert an arbitrary number that’s written in one alien system into a second alien system.

To get the work done, you do not need much code but you need some knowledge of conversion from one to another numeral system.
The easiest way to solve the problem is by using an intermediate value in a known language. I chose the decimal system.

Read More

LA’s 10 Hottest Tech Incubators, Accelerators and Funding in general

I recently came across this article (http://pandodaily.com/2012/03/12/the-la-tech-scene-finally-moves-out-of-its-parents-basement/) which is mainly focussing on the Los Angeles Tech Scene. In the authors opinion the silicon valley is facing a competitive future. I absolutely agree with him except that it is not only LA taht is on the raise but also Germanies capital Berlin. Berlin hosts a lot of european startups, is a very good place to live for young, creative people and already have it’s “own” venture capital network.

What I find interesting most is the list of supporters Michael Carney has at the very end of his article:

Read More

[Infographic] What makes social games so popular?

Whenever I think of gaming, I think of board games, card game as well as computer and console games first. Most game involve more than just one character and even those who can be played on your own are more fun being played with a friend. Social interaction is a common element in almost all kinds of gaming, so it is obvious that social media should have a big impact on gaming.

Prism Casino took a look at Facebook user satisfaction scores to come up with a top ten list of favorite social games to compile an infographic. Casinos, hidden objects and role-playing games top the list of favorite styles, passing trivia games like “Trivial Pursuit,” word games like “Scrabble,” and strategy games like chess that are very popular offline.  The “Scrabble”-style game “Words With Friends” is on there, but in terms of actual usage, “FarmVille,” “Mafia Wars” and “Bejeweled Blitz” remain the top three social games played in the US and UK.

Read More

Most expensive grafitti of all time through Facebook IPO

Usually graffiti artist are recognizedas vandals disturbing the world clean look with their Art. They are not known for being the smartest folks. But this view may change in a few days.

David Choe paintings at Facebooks first headquarter may be woth north of $200M in a few days without being sold. How this works?

The Artist took stock for paintings at the company’s headquarters instead of cash. His payout may be $200 million by Facebook IPO. Some other investors, especially the early ones, may even make billions of dollars.

Taking stocks may be one of the smartest move in terms of early art valuation in history. Other than regular artists of his guild do, the Choe had a bright foresight or may he just was the lucky winner of a smart bet.

When Google went to market with its $1.67 billion I.P.O. in 2004, hundreds of people joined the millionaire ranks, including secretaries, a company masseuse and a company chef. This time you can also count in a modern-day renegade artist who uses to put up party pics of himself spending enormous amounts of money on alcohol on his facebook page. Just recently he promoted photos of a $40.000 bottle of alcohol; a single shot is $888, much more than I sent on drinks for a whole party crowd usualy

Source:
http://www.nytimes.com/2012/02/02/technology/for-founders-to-decorators-facebook-riches.html

Raditaz music streaming service – Pandora for free

More than 14,000,000 songs, no ads, unlimited skips, still working outside the US. How does this sound to you? Awesome?

That’s Raditaz.com, a new pandora competitor that is providing a streaming music servic. It allows you to discover songs on the go, discover new music and it allows you to tag and share music that you like. It’s more or less a service for building your own radio stations. These stations play songs you like or just songs that fit in the same genre or whatever pattern.

Read More

Copyright muckibu.de 2017
Tech Nerd theme designed by Siteturner