How to read analog pin data from the Blynk HTTP RESTful API? - esp8266

I am making my own app for my project with Blynk so I need the Blynk API it works fine with Digital Pins I am getting the right value. But I tried with analog pin I used this syntax: http://blynk-cloud.com/auth_token/get/pin
When I give the analog pin it shows the value as 0 always but in Blynk app it shows correctly.
["0"]
This is what I get when I give
http://188.166.206.43/6OlIG-nyToVY*******************/get/A0
How can I get the analog pin value?

Type D17 instead of A0. It Works!!

Related

How to get joint_position_command_ with velocity_controllers/JointTrajectoryController

I'm currently trying to move my robot by using ros_control
with velocity_controllers/JointTrajectoryController
I'm using the ros_control_boilerplate as a template.
I wanted to send joint_position_command_ to my robot,
but velocity_controllers/JointTrajectoryController just sends joint_velocity_command_
I tried following the method here by deriving joint_position_command_ from joint_velocity_command_
but because of the steady-state error, joint_velocity_command_ is not 0, thus causing the joint_position_ to keep increasing/decreasing over time.
I'm currently thinking of getting the goal position values from
/follow_joint_trajectory/goal (I'm guessing this is from MoveIt)
May I know how could I access the value from this topic and store it into joint_position_command_?
or is there any other better method to get joint_position_command_ with velocity_controllers/JointTrajectoryController?

vuforia multitarget, trying to get the Part that is tracked but the status is the same for each

Background:
I am new to vuforia, and looking at the sample applications for iOs the sdk version is 2.8.7 and I am not using Unity. Specifically I have been trying to modify the MultiTargets example to try to find out which Part of the MultiTarget is being tracked.
To this end I have tried to use the functions
TrackableResult *theTrackableResult = theMultiTargetResult->getPartResult(k);
theTrackableResult->getStatus();
Trackable *theTrackable = theTrackableResult->getTrackable();
theTrackable.getName();
to get the name and the status of each part of the Multipart (k is the index), having checked that the type of TrackableResult was a MultiTargetResult. This is done in the loop that iterates over the trackable results in renderFrameQCAR, where the models are put into the camera view.
The problem is that the status for each of the Parts is the same (3) which is the same as the MultiTargetResult's status.
The name of the trackable which has the class MultiTargetResult is "FlakesBox" (does not specify the side that it is tracking and I do not think it can be tracking the image target on the opposite side of the box)
Questions:
Is this the right way, and place, to get the Status from the result?
Is there a way to correctly identify the Part of the MultiTarget that is being tracked?

Google Maps sdk with voice navigation direction in IOS?

I´ve been reading the documentation of the Google Maps SDK for iOS and I didn't see anything about voice navigation direction and route on the map.
Do anyone know about this?
I correct my previous answer this is possible. You use the google directions API as outlined in this link:
You send your direction request and it returns the directions either as json or xml as per your preference. Gives you coordinates of each point on the route.
You send a request to http://maps.googleapis.com/maps/api/directions/outputformat?parameters
So if you want to return the directions as json the request would be:
http://maps.googleapis.com/maps/api/directions/json?origin=ORIGIN_LOCATION&destination=DESTINATION_LOCATION&sensor=FALSE
the ORIGIN_LOCATION and DESTINATION_LOCATION can either be a latitude and longitude seperated by a comma e.g. latitude,longitude or a location search string e.g Eiffel+Tower+,+Paris+France (The search string has to be url encoded).
The sensor parameter is another compulsory parameter and asks whether the device sending the request can detect its own location.
For example for the directions from the eiffel tower to the louvre museum are given on the following link as json:
http://maps.googleapis.com/maps/api/directions/json?origin=Louver+museum+Paris&destination=Eiffel+Tower+Paris+France&sensor=false
And to return it as XML:
http://maps.googleapis.com/maps/api/directions/xml?origin=Louver+museum+Paris&destination=Eiffel+Tower+Paris+France&sensor=false

yt:statistics / view count not returned with v2 api

I am not able to get yt:statistics and corresponding view count using youtube v2 api
Search URI:
http://gdata.youtube.com/feeds/api/videos/-/park/competition?orderby=viewCount&max-results=50&v=2&format=5&fields=entry(title,content,media:group,yt:statistics,yt:rating,gd:rating)
When I print the feed and look for statistics, I can not found it. I believe I was able to get it until last week.
I use PYTHON gdata lib to send/receive requests. It looks like for some feeds I am getting statistics. Does it not come for every feed??
Any pointers??
UPDATE: Similar observations for yt:rating.
Is there a minimum guarantee that yy api provides for statistics/rating?
Without a minimum guarantee, does it not become un-reliable?
Have you tried using the YouTube-Analytics API?
Not sure what the equivalent call in the Python library would be - but for example, this url will get the top viewed videos:
https://www.googleapis.com/youtube/analytics/v1/reports
?metrics=views
&dimensions=video
&max-results=10
&sort=-views
&start-index=1
&start-date={first date of interest}
&enddate={last date of interest}
&ids={your channel id}
You should be able to use the same OAuth token that you're using for the YouTube Data API v2.

Google Map API only returns one result?

I am using the google maps api to develop an iOS app. I need to find the nearest gas station on the map. When I call an http request: http://maps.googleapis.com/maps/api/geocode/json?address=%gas%20station&sensor=true, it returns one result. But it is the only one. There should be many results. No matter what keywords I submit, it only returns one result. Does anyone know how to deal with this?
I opened the URL in a browser and got this response :
{
"results" : [],
"status" : "ZERO_RESULTS"
}
According to Google Maps documentation here
"ZERO_RESULTS" indicates that the geocode was successful but returned no results. This may occur if the geocode was passed a non-existent address or a latlng in a remote location.
Gas station is a vague address. Try entering a valid address with a name of the area or city or the street. And you will get results. e.g. http://maps.googleapis.com/maps/api/geocode/json?address=250%20King%20St%20SF&sensor=true
You need to use the Places API to search for places like establishments(restaurants, gas stations,etc)
I don't know why, but when I printed the result to the console, it always was showing only one result. But in a debug mode with a breakpoint there were 5 results.
Please check it out using a debug mode.

Resources