VestaCP Nginx Template

I like VestaCP and I host most of my sites using it on my servers. Recently I started writing more NodeJs applications and found it not trivial to get NodeJS traffic routed via VestaCP Nginx/Apache configs.


I usually make manual changes to the config file for that domain that is running the NodeJs app (which not a good way, since these configs get overwritten if you change the proxy template in the control panel)

Continue reading VestaCP Nginx Template

Athan System with raspberry Pi

The athan (or Adhan) is a special Islamic call to salah (prayer). A mu’athin calls athan from the minaret of a mosque to announce every prayer and worship event. According to Islamic custom, the athan is also the first thing that a newborn baby should hear. You can say the words in English, Arabic, or any other language that is meaningful to you.

Prayers in Islam are 5 times a day. Those times vary, so does that athan for them.

Since I am Muslim, I have created an athan “clock” that calls the athan 5 times a day. I use a Raspberry Pi and a speaker connected to it to play the athan sound.

I called it a “system” because it does more than just playing the sound at certain times. Here are all the functionalities it does: Continue reading Athan System with raspberry Pi

How I automatically notify my family that I am close to home (most likely parking the car)

Introduction

For many reasons I find it very useful to let my family know that I am getting very close to the house. Mainly because my wife would be able to unlock the door (if she is close by and knows that I will be coming up stairs carrying a lot of grocery bags)

So I thought about a way to do that and I came up with this plan:

  1. Have something running on the Raspberry Pi at home listing to a trigger of some kind to play a sound when I get close.
  2. Use Tasker app to trigger a call to the server based on my phone location

Continue reading How I automatically notify my family that I am close to home (most likely parking the car)