Skip to main content

Data Collection with Python and sending it with MQTT

 

This is the Python Code I wrote for my Raspberry pi so it could collect Data from it's sense hat and it saves the data in csv and sql format.  This code also connects to a data hub via mqtt, it converts the data into JSON format and timestamps every parcel of data it sends.










Comments

Popular posts from this blog

Meet Cuthbert Baines: A Passionate and High-Achieving Professional Programmer

   Hello, and welcome to my corner of the internet! I'm Cuthbert Baines, a seasoned computer programmer with a passion for solving complex problems and building efficient, scalable software. With years of experience in the industry, I’ve honed my skills to not only deliver high-quality code but also to contribute meaningfully to projects that push the boundaries of technology. My Journey into Programming I’ve always had a deep curiosity about how things work, which led me to the world of computer science and programming. From my first lines of code to tackling challenging algorithms, the journey has been a rewarding one. Over time, my focus has expanded to include full-stack development, machine learning, and software architecture, but the heart of my work remains in solving real-world problems with clean, maintainable code. What Sets Me Apart? As a professional programmer, I pride myself on a few key principles that guide my work: Attention to Detail : Whether I’m debu...

A Beginner’s Guide to AI & Machine Learning Terms (No Tech Background Needed!)

πŸ“ΆπŸ’»πŸ’Ή Artificial Intelligence (AI) and Machine Learning (ML) are terms that are used by a lot of people but do you know about the technical nuts and bolts of how they actually work? If you don't that's OK, — I’ve broken down some of the most common terms you might hear in the world of AI/ML into simple explanations anyone can understand. Plus, if you're using Google Colab , there's a built-in AI assistant called Gemini that can help you understand and write code but you need to know the right questions to ask it first.   1. NLP (Natural Language Processing) 🎀🎧 NLP is a branch of AI that helps computers understand and work with human language. Think of it as the technology behind things like chatbots, language translators, and voice assistants like Siri or Alexa. It allows machines to “read” and make sense of text or speech, just like we do. 2. BERT (Bidirectional Encoder Representations from Transformers) BERT is a special AI model developed by Google that he...

Learn Universal Communication By Learning Esperanto

1. Begin with the 16 “rules” of Esperanto and its simple grammar Start by immersing yourself in the concise foundational rules of Esperanto: its phonetic spelling, predictable affixation, and regular verb system make it far easier to grasp than many natural languages. For a clear overview of why Esperanto is easier to learn than typical languages, see Why Learn Esperanto? (Lingolia) which outlines its regularity and simplified grammar. ( esperanto.lingolia.com ) 2. Use a structured online course to build vocabulary and grammar Enroll in a free, guided Esperanto course such as Transparent Language’s Esperanto module (which offers vocabulary lists, interactive exercises and listening tasks) to build a solid grammar and vocabulary foundation. ( Transparent Language ) 3. Complement your lessons with the community platform Lernu! Pair your formal lessons with practice on Lernu! , the free multilingual Esperanto learning site, which offers exercises, multimedia, dictionaries, and a co...