WebSocket with ESp32 w/ Node-RED and InfluxDB

ESP32 websocket

WebSocket is a communication protocol that provides full-duplex, bidirectional communication over a single, long-lived connection between clients and servers. In the context of IoT, WebSocket can be used for real-time data  By using WebSocket with ESP32, Node-RED, and InfluxDB, it is possible to create a real-time data streaming and visualization system. The ESP32 can be programmed to send data to the server using WebSocket protocol, which can then be processed and stored in InfluxDB using Node-RED. The data can then be visualized in real-time using InfluxDB’s powerful data visualization tools.…

Read More

DHT12 Sensor Interfacing with Linkit Smart 7688 Duo using Python/Arduino

I got the Linkit 7688 Duo couple of years back but was not able to work on it apart from getting started and programming the onboard Atmega(w/ Arduino Bootloader) using Arduino IDE video. But recently I thought of checking out the python programming aspect of it, as the MPU runs an OpenWRT based lightweight OS over which we can run any programming language as long as the limited resources available on the board are sufficient. The board comes with one MPU (MT7688) and one MCU(Atmega32U4) I am working on a…

Read More

Setting up NextCloud on Raspberry Pi

NextCloud

I have a NAS running OMV which also hosts the PLEX media server, which serves all my media needs, but when it comes to documents and software which I always download a lot, it is always a cumbersome process to manage them all. I download lots of datasheets and software for different projects which I tend to store to avoid the repetitive download of the same items. So I thought of trying out som one premise file hosting solutions like OwnCloud and NextCloud. I checked both and settled with Next…

Read More

LockDown PC based on availability of Bluetooth Device

programming

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 More

Automatic Backup of my Home Automation System (OpenHAB, InfluxDB, Grafana, Node-RED, MonogoDB)

RAK831 LoRa Gateway

I use different tools like OpenHAB, InfluxDB, Grafana, Node-RED, MonogoDB etc. in my Home Automation System. There is always a chance any tool may crash or the server may crash or HDD may fail or due to some other causes can lead to data loss. This has happened to me earlier also where I again had to start my setup from scratch but it taught me a lesson, backups are really important. So I went ahead and wrote a simple shell script to do the backup tasks automatically with a…

Read More

Raspberry Pi as Torrent Machine

I wanted to download torrent content and for that, I was not interested to use my PC as most of the time it gets switched off (Due to my day job), and I was looking for uninterrupted download. So I picked up a Raspberry Pi, laying around, and set it up with deluge and VPNBook free VPN. So basically the post is all about how I set it up. Here we will be setting up the deluge daemon and the web UI as well to the raspberry pi. The Deluge…

Read More

JFrame that pops-up from the taskbar like notifications.

programming

Here i have given the JAVA code to make a popup that happens exactly like the gmail desktop application does.It uses a JFrame to make the window. package com.oksbwn.popUp; import java.awt.*; import java.awt.event.*; import javax.swing.*; import com.oksbwn.ErrorHandling.handleExceptions; import resources.RscLoader; public class popMe extends JFrame { private static final long serialVersionUID = 1 L; public static void main(String[] args) throws Exception { new popMe(“hi”, “from Bikash”, “ok”, 15, 125); } public popMe(String message, String header, String image, final int time, int height) { Runnable r = new newThreadPop(message, header, image, time,…

Read More

Get System IP address in JAVA

programming

This is a code snippet to get the current IP address of a system.   import java.net.InetAddress; import java.net.UnknownHostException; public class IpAdress { //public static void main(String[] args){ public static InetAddress getIP() { InetAddress ip; try { ip = InetAddress.getLocalHost(); return ip; } catch (UnknownHostException e) { e.printStackTrace(); } return null; } }     Bikash Narayan PandaDeveloper, Tinkere, a proud Dad.. love to spend my available time playing with Tech!! wglabz.in

Read More

Automatic project structure/git creation in Windows

automatic project creator

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 More