Connect to Flexy 205 from ftp client

Thanks for the answer, but I have some questions about the parameters, we have done the registration and we have the develop id but we do not have the TOKEN, where can we get it? , we also measure the following fields:

t2maccount, t2musername and t2mpassword, where can we get them? We only have the information to enter our EWON (https://eu1.m2web.talk2m.com/) are those credentials what we have to put in the API? , and the account name where you can get it? Do you specify it somewhere in EWON or in the FLEXY?

We need to be able to make inquiries to our flexy devices as soon as possible but we have not made progress, since postman always gives us a 403 error for credentials, because we are missing the token that we do not know where to obtain it from and we do not know if we have the credentials correctly.

Thanks a lot !

You need to read the documents that I keep sending you. They explain how to create the token in eCatcher. You need to have the latest eCatcher. The tokens replace the credentials. Please read the document.

Thank you very much, I have already managed to connect to my flexy 205 device via api.

I have not used any token, I have used the parameters in the body of the request, and it has worked for me.

Just a question, I want to make the request every day, at least twice, how long is the m2session maintained? expires? If so, do I have to make a login request again?

Thanks a lot

If you are using the credentials in the request it will not expire.

Ok, Thks.

We need, through the get data api for example, to be able to extract the same information as the one we extract through the “planner” tool, which sends the data by email based on this information: $ dtHT $ ftT $ st_h24 $ et_m0.

The header of the attached csv file has the fields:

TimeInt “;” TimeStr “;” AV204_ (BWvalveMOD1) “; …;” TT_201_ (CIP_Tank) "

The first 2 are not found in the response of the service getdata, the rest I can build the csv in the development of the api. How can I get those “TimeInt”; “TimeStr” values?

An example of data is as follows:

“TimeInt”; “TimeStr”; “AV204_ (BWvalveMOD1)”; …; “TT_201_ (CIP_Tank)”
“1605507790;” 11/16/2020 06:23:10 "; - 0.03597122; …; 23.91007

Thanks a lot!

Can you share the file you are getting? I’m not sure if I understand the problem completely.

Here is an example. Those fields are not missing:

https://tools.ewonsupport.biz/ebd/m2webapi_proxy.php?EBD=$dtHT$ftT$st_h24$et_s0

Thanks for all Kyle!

I have a question, can I use a developer ID for two different t2maccounts? … I am implementing a second ewon device API request, but from another account …

Thank you!

Yes, you only need one developer ID.

It’s strange, because I access with the new account name, with the credentials that I can enter the Ewon web administration panel but I don’t get an error:
{
“code”: 404,
“message”: “No account or data for username @ account name”,
“success”: false
}
Thks

are you using your t2m credentials or the Ewon’s local device credentials (default adm/adm)?

I’m using de t2m credentials

I change the url api to https://m2web.talk2m.com/t2mapi/getewons?t2maccount=&t2musername=&t2mpassword=&t2mdeveloperid= and the same params and goes well! for the second account

I don’t know why, i had an https://data.talk2m.com/t2mapi/getewons?t2maccount=&t2musername=&t2mpassword=&t2mdeveloperid=**
in first account…

When i have to use https://data.talk2m.com and https://m2web.talk2m.com ?

Thks

That URL is for the DMWeb API which is different from the M2Web API.

Yes, i know, but i dont understand which i have to use to get data, on first ewon device use data.talk2m.com but this don’t work in the other ewon from diferent account

Thks

Make sure the Datamailbox upload is enabled in the Flexy settings to use the DMWeb API:

Ok, i take a look, and give a feedback soon.

Thks!

You’re welcome.

A post was split to a new topic: Reached the Data upload/VPN traffic

2 posts were split to a new topic: Data Via API