This article describes a method of locking the PC when the user is not around.Actually it detects the user mobile phone’s bluetooth (And yes it has to be turned on all the time.) and if the application can’t find the phone it sends a command to lock down the workstation.The codes are written in JAVA and it uses the Bluecove library ,which is a open source one. The app uses the bluetooth MAC address instead of the name so as to provide security. So first we need to find out…
Read MoreTag: alberto
Taking Screenshots using JAVA
Screenshots are often required while working with projects. There are many solutions available, like the inbuilt Snipping Tool (Windows).
Read MoreAutomatic project structure/git creation in Windows
While working in projects on a daily basis, as I do for YouTube videos, we tend to create the same folder structure and related repositories every time, as we move to the next project. For me, it is like creating folders for video, code, uploaded video, schematics and so on and in my most of the video for YouTube, I always create almost same folders. Along with that, I create GitHub repository to host the codes that I use in the project or tutorial to distribute. And I hate doing the…
Read MoreConnected Weighing scale using HX711 and ESP8266
Since I got into Home Automation System, I have always wanted a central system with as much as information about me starting from my food habit to each and everything that can be measured or collected. You can say that it is greatly influenced by JARVIS of Iron Man which came around my Engineering days. Coming to the topic, I recently managed to connect a regular bathroom weighing scale to my Home Automation System (OpenHAB) using MQTT. So basically this post is all about how to do that. For the weighing…
Read MoreRespeaker 2 HAT With Raspberry Pi
[sg_popup id=”1503″ event=”onLoad”][/sg_popup] This article is around Raspberry Pi and this Re speaker 2 Mics Pi HAT. ReSpeaker 2-Mics Pi HAT is a dual-microphone expansion board for Raspberry Pi designed for voice applications, like Amazon Alexa or Google Assistant. So if you are interested in playing around Alexa or assistant enabled applications with Raspberry Pi you can certainly try this out. We will set it up with Raspberry Pi and will check some demo applications. The board is developed around WM8960, a low power stereo codec. There are 2 microphones…
Read MoreOpenHAB2 Installation on Ubuntu Server (16.04)
In my last post about the installation of Zulu JDK to Ubuntu 16.04 server, I covered how to do so and was required so that OpenHAB can run on my server. This post is in the line of my last post and is about the installation of OpenHAB to ubuntu 16.04 server. This post is all about installing OpenHAB to Ubuntu 16.04 using the manual method. I tried with apt-get, but that didn’t work for me. STEP 1 (Download OpenHAB runtime): Navigate to a folder where you can download files…
Read MoreInstall Zulu JDK on Ubuntu
Recently I moved my server to Ubuntu from windows. I went with Ubuntu 16.04 server edition as it is lightweight as compared to the desktop edition and comes preloaded with some server tools. As I am running OpenHAB for my home automation system I wanted to install it on the server but the server edition doesn’t come with JAVA/JDK pre-installed. As per OpenHAB, Zulu JDK is the recommended JAVA platform and performs better as compared to OpenJDK. Though Oracle JDK can be installed, I thought of trying ZULU. So let’s…
Read MoreOpenHAB Installation on Raspberry Pi
[sg_popup id=”3″ event=”onload”][/sg_popup] This video is around how to install OpenHabian with Raspberry Pi to get started with home automation. This is the 2nd video around OpenHAB and if you want to know how to install openHAB to windows PC make sure to check the earlier video and link is given below. About OpenHAB, its simply an open-source home automation system developed using JAVA and it lets you automate your home with support for tons of smart home devices., It has got a lot of cool features and I will…
Read MoreSetting up Amazon Echo Dot (Indian Variant)
Recently we got the Indian variant of the Amazon Echo Dot which Amazon has started shipping this Nov in India. Being a Home Automation Enthusiast I was eagerly waiting for that and is desperately into checking out the features of the Echo Dot with my DIY Home automation System. But before publishing video around Echo Dot with OpenHAB and my Automation System this post is about setting up the Echo Dot when you are using it for the first time, which is actually pretty easy. So stay tuned for upcoming…
Read MoreAccess Watchdog Timer of Raspberry Pi using JAVA
This tutorial is all about using the watchdog timer of Raspberry Pi by using JAVA. For this, we are going to use Pi4J library. Watchdog Timer: “A watchdog timer (sometimes called a computer operating properly or COP timer, or simply a watchdog) is an electronic timer that is used to detect and recover from computer malfunctions. During normal operation, the computer regularly resets the watchdog timer to prevent it from elapsing, or “timing out”. If due to a hardware fault or program error, the computer fails to reset the watchdog, the timer will elapse and generate a timeout signal.…
Read More