Tutorial: how to get data from your eLos ?
You have one or several eLos stations associated to your eLichens' account. In this tutorial, we provide you some guidelines and usefull scripts to manage your stations and retrieve data for your personal usage.
1. Get your API key
To exploit your eLos, you need a eLichens' account and to have your stations attached to your account.
- The first solution is to connect to the eLichens' lab and go to the profile page. Your API key is a sequence of alphanumerical characters.
- If you have any trouble to find it, please contact elichens to get this information.
2. List of stations
You can list the stations attached to your account. You will receive a list of station with a lot of additional data such as there name or locations.
You can use the following commands:
Direct API call: (you need to parse the result)
https://api.elichens.com/v0/stations/by-user?api_key=xxx
https//http://usecases.elichens.com//listOfStations.php?api_key=xxx
You can check the location of your stations. This function calls the API request and process result to display stations on the map.
3. Retreive data from a station
Please wait while we are fetching your list of stations... You don't have any stations attached to your account... Please contact elichens to get support.
1. Direct API call
You can get the last data from your eLos with this API call:https://api.elichens.com/v0/stations/xxx/measures?aki_key=xxx
You can also specify a period but the number of data returned is limited. We advise to ask data for one day only.
Enter a day to get the corresponding API call:
https://api.elichens.com/v0/stations/xxx/measures?aki_key=xxx
You can also get data per hour:
https://api.elichens.com/v0/stations/xxx/hourly?aki_key=xxx
2. CSV file generation for data extraction
You can use the following URL to extract eLos data from a starting date up to the current day into a CSV file directly.Enter a starting day: .
The following URL can be used to retrieve data:
https//http://usecases.elichens.com//listOfStations.php?api_key=xxx