New hosting Space on AWS

No Comments

My blog was at https://r2079.wordpress.com and its now moved to https://r2079.com. Why this change?

First and Foremost – Thrill and Challenge

Secondly – Customization and Cost

Don’t get me wrong, I dint migrate because I wanted to get into web development, its not the case and Am not even at intermediate Level there!

Why – This is a custom domain. This is hosted with Route53 Amazon, WordPress is build on AWS custom instance. The Reasons are very simple

  1. I Wanted to include short flash videos in my old blog, word press apparently dint allow it
  2. Secondly, I wanted to take frequent backups – was only possible with a huge yearly cost for customization
  3. Paying for 1 Route53 domain, opened a lot of DNS options, I cancelled my Dynsubscription which was costing 54 Euros per year, while AWS would get most of it witht 12 USD.
  4. Most Importantly, I don’t have to pay anything just to block Ads!

So, This is where it is, I will try to maintain the website now and see how this goes, Till now Infrastructure was maintained and patched by WordPress , from now probably i have to take care of it.

It exciting and equally rewarding that you can customize and also get rewarded at the same time, this also opens a lot of opportunities to spin up load balancers and experiment with my AWS technical skills.

Raspberry Pi and AWS IOT – First steps

No Comments

Hi All,

I have slightly changed this to networking, but the intention and my current use is to measure the water level of a sump, since that deviates from the network blog writing, i have extended the same to a Router.

Purpose – Have a Router and also a Syslog Server which monitors my internal network (This can easily be extended to a Car / Moisture Sensor or a Temperature/Humidity Sensor), what we want to do is to make sure if any anomaly is seen in Log Messages, it logs to IOT service. We can then take this up as a Part-2 writing to perform a specific action / automated on what action can be taken to mitigate

Discussion about configuring a Linux device is out of scope, so lets think that we all have that setup. What happens next ?

Lets quickly see our python script, which parses for a anomaly, in this lets say when someone runs a ping command, well its not a anomaly but will do for our use-case.

 

 

logparse.py is our program, so i have imported it into the readily available sample program provided by AWSIOT Kit, so you dont have to know much of programming to do this, just to incorporate your code into the program.

Now lets start the program

 

Now, Finally if we observe the IOT Console, we can see the messages, based on this we can then continue the program to design a automatic response, storage and analysis of log messages and so on.

 

The main aim of the post was to introduce the IOT for someone starting with it. You can do the entire IOT example experience using a free-tier linux instance as well, you dont have to have a Hardware device to actually do a IOT if you really want to test it out.

 

You may extend it to anything which outputs the value and then can be sent to AWS IOT / S3 for further actions.

 

-Rakesh

 

 

 

Playing Youtube from CLI – RASPBERRY PI – Economical / Lazy ?

2 Comments

Hi,

Purely a Personal Post on gaining better control / being economical / becoming perfectly lazy 😉 .This has been in pipeline for about a year, I prefer some light music in home while I sleep / work and now and then when I want better control to hear whatever I want.

Three things to it

-> Tried with chromecast – Worked – problem more electricity and efforts to search more with less control

-> Download music and play it via plex where your sound-out is to a 5.1 system. – works but is more static in nature.

-> Have a Blue-tooth Device and give in to 3.5mm jack of your music system. This sounded cool, the only problem is again the searching and the requirement to have a single paired device.

How did i Bypass this ?

A detailed explanation on Raspberry Pi 2.0 / MPSYT / Installing Ubuntu can be found from RASPBERRY PI Website, I feel they did a better job in documentation.

Lets see my home setup

topology

Tools used

-> Xshell – To access raspberry pi / Ubuntu Linux SSH

-> MPSYT – A Program developed to search media via Youtube

-> Audio Out – I used 5.1 but technically you can use a better sound system as long as you have a 3.5mm jack into raspberry pi

Lets see some screenshots

The screenshot is the Shell of Raspberry pi which is being accessed via a Windows System. Remember, this is shell access where you search for music and actual music is via Raspberry pi which is in Network and connected to a Sound-out Device / Music System Out

1_raspberry_version

Launching mps-youtube via #sudo mpsyt

2_mps_youtube

searching music  – for example if i have to search INTERSTELLAR , i would say /interstellar and the results would appear like this

3_search results

Playing is easy, you have flexibility to make and save a playlist or you can play song by song.

Reality !

IMG_20160111_123608_AO_HDR

This is By far the most economical way I could come-up with to play some-light music and have a supreme control on what you wish to play, with out need to worry about display or dedicated CPU.

I have been enjoying this for a while!

Regards

Rakesh M

Close Bitnami banner
Bitnami