Let’s return some real readings to Google Assistant. But to do this we need to get and store data on the backend. And to do this we need to write some code 🙂
I have the Doton wired with NodeOne sensors, relay control included. But let’s do something more and use Google Assistant to get data from NodeOne sensors. The node gives us info about temperature, humidity, movement and light. It has also a relay to control upper socket but let’s ignore it for now.
So this time we will try and get some basic understanding of Google Assistant.
With the arrival of Google Assistant in my country, I felt the urge to hook NodeOne to it. But I also felt that NodeOne needs refreshing.
The first version was made almost two years ago. It has PIR sensor mounted or rubber, a board that holds inside magically and a light sensor that is kept in place by a tack. But it is still working without any problems!
We have our little HiD device from RPi but this is only proof of concept. Now we will do some planning and start working on the more advanced and helpful classes.
Today we will make our RPi a slave device connected to PC via USB. And this RPi will be detected as the keyboard.
We need Raspberry Pi Zero or Zero W with the micro USB connector.
I have some plans for USB port and to prepare for some strange failures let’s look into serial TTY.
We almost ported all functionality from GfxLCD into cili. The last one is the draw_text.
The GfxLCD uses Python class as the font description and cili must keep the same functionality. So this time handling Python classes in C.