Google Assistant custom open url command - httprequest

I made a device on esp8266 microcontroler that is controlled by http. For egzample if i visit on any device in same WiFi site 192.168.4.1/on microcontroler will turn on motor if i visit 192.168.4.1/off microcontroler will turn off motor. I want to control that device by google asistant by saying "Ok google. Turn on motor". Is there any way to create your own google asistant comands that will open website (best in background but not necessary)? Maybe with IFTTT?

Related

Can't use phone ase controller

I want to test my airconsole game on a smartphone before publishing. The problem is, I can't connect it to the simulator.
If i try to connect (Chrome on Android) it says connecting, after a few seconds it shows the enter code screen but no input is possible. After about 30 seconds I get the message download the app for next time. (Screenshots attached)
Do you know where the problem is?
My files are hosted on a webserver, accessible from everywhere.
Kind regards
Make sure your screen.html and controller.html are accessible from all devices.
Let's assume you are running your local web server on http://192.168.0.2:8080/
Try to access http://192.168.0.2:8080/screen.html and http://192.168.0.2:8080/controller.html using a normal web browser on the device that doesn't work. It should display the screen/controller html.
If you can't access http://192.168.0.2:8080/controller.html from your phone, but from your computer, make sure you are in the same network and that your router does not have "Client Isolation" activated.
If you are testing with real smartphones, make sure you do not use http://localhost/ or http://127.0.0.1/, because localhost is not your computer on the phone but the phone itself!
If you are still unable to connect your phone, you can use the ngrok tool to forward your local url. See our Ngrok Unity Guide for how to do this in the Unity Engine: https://developers.airconsole.com/#!/guides/unity-ngrok

How to dial-in conference in nexmo?

I am using this repo:
https://github.com/opentok/opentok-nexmo-sip/tree/master/Dial-In-Conference
Bought nexmo virtual number and created new tokbox app.Set up all credentials. Changed only voicename and text in server.js. For local testing purposes I am using tunnel through ngrok, so in nexmo dashboard I've put my actual ngrok url for endpoints with ending eg. /nexmo-answer and /nexmo-events.
When I start app and go to new room eg. room/2 I can see, my app is working, camera and microphone works perfectly also my coworker can go to my link through tunnel and we can talk.
The problem is that nobody can dial into our conference. Anyone calling can hear welcome message and pin prompt, after inputting correct pin, the phone apparently connects (doesn't disconnect automatically) but we can't hear or send any sound. Any advice?
I managed to solve my error. App needs to dial out into nexmo's virtual number's room.

Access to content on sony camcorder

I'm playing with the API on a camcorder Sony CX-625. I can start/stop a record, change zoom over a Wifi connection.
This is nice, but ...
Now, I need to download the content store on the SD card over Wifi with the API. I have make a lot of research, but it seem the function is not available.
Maybe another model of Sony Handycam can give this functionnality. Anybody can help me in this research ?
My goal is to have a camcorder (or an IP Camera with quality of a camcorder), remotely administrable by an API (start/stop record, manage zoom, get/delete the content)
You should be able to download the image using HTTP get. For instance if you run the "actTakePicture" command you will be returned the url for the image. Having this url will allow you to download the image. How you download the image depends on what language you are using. For instance here is an example of how to download an image over HTTP get using nodejs:
Downloading images with node.js
To find out how to download the image using your particular language try a google search on "download an image using http get {language of choice}"

USB Mobile Broadband Modem on Windows 10 IoT?

Anyone had experience using a USB Mobile Broadband on Windows IoT with the Raspberry Pi2 already?
I have a Huawei datacard in the Windows IoT and appears as HUAWEI Mobile on connected devices but I'm unable to see the device on the wifimanager.htm admin page.
Don't even appear on the Device Manager list. Is this lack of drivers?
I was looking for a solution too, and I have finally found one. I hope the following will help you!
For the record, I used a Vodafone (Huawei) K5150, "officially" supported and Microsoft verified, according to the hardware compatibility list: https://developer.microsoft.com/en-us/windows/iot/win10/supportedinterfaces. The device was recognized and visible on the portal through an hdmi screen. Anyway, the raspberry couldn't get internet access.
Here is what I did to make it work:
install the key on a common laptop and check the internet access. Windows should see it as a cellular connection by the way.
find the xml file generated by Windows and located under C:\ProgramData\Microsoft\WwanSvc\Profiles. This file is called a profile and is used by Windows to characterize every wireless connection it sees. You can of course create yourself this file from scratch, but it's far more complicated/boring. You can also normally do that with the netsh command and the import or dump sub-command, but it doesn't work for broadband devices.
connect your raspberry to your local network and go to \\[name or IP address]\c$. In my case, it was \\minwinpc\c$. There, find a suitable place to copy the xml file, as well as the bmp file next to it, and don't forget to modify its content to point the right path for the icon (the bmp file).
the next step is super tricky, but highly important: you have to find the subscriber ID for your key. The one saved in the xml file is actually a kind of hash and if you don't set the correct value you'll have an error like
Add Profile Failure: Invalid Profile XML.
connect the key to your raspberry and enter a PSSession with PowerShell (details here: https://developer.microsoft.com/en-us/windows/iot/win10/samples/powershell). Then, use this command: netsh mbn show readyinfo interface="Cellular". The correct interface (in my case it's "Cellular") can be retrieved with the command netsh mbn show interfaces (mbn standing for Mobile Broadband I suppose). The subscriber ID, with other useful information, is displayed and you can copy it the to the xml file on your raspberry.
what's left is the actual profile activation, in two parts: add the newly imported profile and tell the raspberry to connect to it. For that, use the commands netsh mbn add profile interface="Cellular" name="profile.xml" and netsh mbn connect interface="Cellular" connmode=name name=ProfileName.
You mobile broadband key should now be activated and the raspberry should automatically connect to it at start.
Here are the few links that helped me a lot:
export the profile: https://www.experts-exchange.com/questions/28324340/Adding-custom-mobile-broadband-profiles-in-Win-7.html
replace the subscriber ID: https://social.technet.microsoft.com/Forums/office/en-US/7c2d6c77-1974-432b-a439-6e58f9306234/receive-add-profile-failure-invalid-profile-xml-error-when-adding-wwan-profile-windows-7?forum=w7itpronetworking
connect to the raspberry to copy the files: https://developer.microsoft.com/en-us/windows/iot/win10/samples/smb

Need to host the webcam output to some web site

i have new webcam.
The software of the webcam can give out the webcam live moview to site.
I looking for some free good site that i can use for hosting my webcam live movie
Where can i find it ?
Thanks.
Sorry there is no FREE webservice that will let stream your webcam to their website. It will eat their bandwidth , wont they ?
However, try to get some FTP account and download a program called "Dorgem" on your computer and let it run , so it will keep streaming your webcam data to your FTP.
Update for Comment :
Why not just use yahoo messenger ? Create 2 accounts (for yourself and for your baby's) Place your cam before your baby's cradle and sign-on to yahoo messenger with your baby's account and open your cam and set "Anyone can view my cam" (in the preferences). So when you go to your office , log on to your account , just click "View cam" of your baby's account. Job Done :)