RaspberryPi with DHT22 Sensor for Humidity and Temperature Data with InfluxDB
I have been playing with RaspberryPI for a while. There are several project I tried to do with RaspberryPI. These boards play a significant role in my home lab for different experiments like Docker Private Repository, Media Server, Ad Blocker with pi-hole, Secure Proxy for anonymity, secure network access with VPN, Home Security Camera/Surveillance, Data Collector or scraper etc. But This time, I did buy a “DHT-22” sensor for monitoring room temperature and humidity. Humidity is my main concern and wanted to see how it fluctuates.
So, my main plan was to get a DHT-22 to connect properly
Count Characters in a Google Sheet
I was trying explore some data in Google Sheet and stumble upon a unique problem. There were several columns and rows of data containing strings. I wanted to count specific string.
I wanted to find out how many “aD” in whole set.
Ansible to change user password
One of the most basic things to do in a Linux Server. We can use just passwd <user>
to change the password of a user. But to do that in 100s of server can be a tricky one. Ansible is the savior on that perspective.
Finding an Efficient Solution on Reading and Comparing CSV files
I have always worked with Linux Systems and thus Bash was my go to tool for some specific tasks. But now I am much more aware with Python than Bash as it does give me better grasp on things. I am not saying that for server scripting, Bash can not do some tasks. It can be used in a vast area of things to solve. But I am now comfortable with Python more.
Recently, I did stumble upon of a task that was related to comparing two huge CSV files.
Explore InfluxDB: Part 1
I have been trying to manage time to explore InfluxDB for observability. This article is one of many about InfluxDB and Telegraf. I will cover basic installation here.
SSH Config and Ansible Host Generator and Why I am doing it this way?
I am recently playing the role as an SRE and that is why I have to deal with a lot of servers. Not only cloud once or clusters but also bare metals as well as Virtual Machines. For more systematic environment preparation, I have Gitlab pipeline. But for basic tasks like change the config on demand or check a specific directory or search something or any other unpredictable or repeated tasks, I need Ansible for better grasp from my local machine or Bastion server. So, what do I have to do?
- Create an entry to the .ssh/config file
- Create an entry ansible host file as inventory
Repeated tasks? For me, yes. I needed to manage these. So, created a python script
Getting habit to use TMUX
Recently been practicing TMUX for my day to day tasks. To be honest, I am late. I should have get used to it earlier. It is much more robust and well sorted than the other terminal multiplexers such as screen. How am I adapting?
My Understanding about RUN, CMD and ENTRYPOINT in Dockerfile
Containerization gives us many benefits from packaging to distribution and others. Thus, Docker is widely used as a containerization tool which is designed for running specific tasks and processes, not for hosting operating systems or like other virtualization tools like VMWare, VirtualBox etc. You create a container to serve a single unit task. Once it completes the given task, it stops. The container life-cycle depends on the ongoing process inside of it. Once the process stops,
Effective use of Redis with Python and Connection Pool
I have been working with redis and python for sometime. It is fun to play with python and redis. There are so many things can be solved by redis.
- Session persistency
- Caching
- Volatile Datastore
- Job or Message Queue
- Search
And many more. But recently I was thinking about using it as main database. I am not yet sure what kind of problem I might face or what things to optimize when it is about scalability or reliability. I will for sure share my experience.
Here I want to talk about –