I'm trying to write code to interact a telegram bot with raspberry pi. I want the raspberry pi to click a picture when a button is click and want the picture to automatically show up in the telegram bot.
Can anyone help me with this?
Related
can someone help me. I have a USB RFID tagger connected to Raspberry Pi. When I tap an ID to tagger using notepad or terminal in raspberry pi, it will read correctly (0341956777). But when i tap it using my code it will read like this )#$!(%^&&& . Do I need to import any library here in my code or something to add? By the way my reader is 13.56Mhz, it has two checkbox in the back. ID and IC. IC checkbox have a check on it.
My code in the image
This is the second part of the code
I'm trying to build a smart baby monitor with raspberry pi. So one of the features of that monitor is talking to the baby remotely via a mobile app(i have already built a mobile app).when the user talk via the mobile app it should hear from the speakers that are connected to the raspberry pi. how do I achieve this??
I have a Google Nest and a Raspberry Pi. I would like to be able to send commands from the Raspberry to the Google Nest. I have done some research and I have found ways to control the rpi with the Google Nest but not the other way around. Any clue would be helpful Thanks!
EDIT: I think Google Nest may not be the target but the google home app. In the end I want to be able to do something like this: rpi sends request => light device registered in my google home app opens/closes.
You can target the Google Nest using the Smart Device Management API.
However, there are currently only a few traits supported for controlling the Nest, specifically targeting the on-board camera.
This is a huge project that my group is working on right now. We are very inexperienced with IoTs and Web stuffs.
First, we created an android app and with it, we're sending a message to the socket with port 8000 (192.168.X.X:8000) with a press of a button. The messages being sent are color names (Green, Red, Blue, etc) and our raspberry pi is running a script that could decode this color names, control the GPIO, and light up a whole LED Strip depending on the color sent. We are successful in this portion.
In addition, we managed to successfully install Google Assistant into Raspberry Pi. Now, we're planning to use IFTTT (If Google Assistant Then WebHooks) to make custom commands for our Google Assistant. We also managed to run the LEDStrip script and the Google Assistant script together on Raspberry Pi with no issues at all.
Now the problem that we're facing is sending a message to the socket.
Example: "Ok Google, Green Light Please" will send a message "Green" to the socket and the LEDStrip script will just receive it normally like how it receives messages from the android app.
Is it possible to do this? I've been researching a lot about POSTing Web Requests to http://192.168.X.X:8000 using IFTTT; and even tried the Google Advanced REST Client to do it manually but I'm just not successful at all. It says the http://192.168.X.X:8000 is not a valid URL or can't be accessed.
ISSUES ENCOUNTERED SO FAR:
Directly controlling GPIOs with Google Assistant on Raspberry pi by customizing hotword.py isn't successful for us at all because we can't import the neopixel library since the Google Assistant runs in virtual environment (env).
Thanks. Hope someone would be able to help us. We accept any recommendations on how to make our project successful.
I recently created a custom Google Assistant action that helps me manage my personal tasks. I also have a raspberry pi that can cast voice messages to my Google Home speaker. It basically notifies me when it's time to do a specific task. The action is capable of registering if I did this task or not.
So after the voice message reminder is casted, I would like to respond to it immediately, so that I don't have to open the action myself with the default opening command (Hey Google, let me talk to 'My App').
I'm wondering if a raspberry pi is able to trigger the Google Home speaker to open an action. Or is it only possible to open an action by using the default opening command?