Netatmo API Forecast

The Netatmo API is a set of webservices allowing developers and third parties to access Netatmo device's data.
Post Reply
v.sampl
Posts: 2
Joined: 17 Jun 2015, 15:51

Netatmo API Forecast

Post by v.sampl » 17 Jun 2015, 15:57

Hello,

I'm using the PHP-API and try to get a weather-forecast like the dashboard. But i only receive data from yesterday/today. Is it possible to get data for 3-7 days starting today?

Code: Select all

$params = array(
   "scale" 	        =>	"1day",
   "date_begin"  =>     time(),
   "type"		=>	"Temperature",
   "device_id"	=>	$device_id
);

$res = $client->api("getmeasure", $params);
Thanks!

fduval_netatmo
Posts: 160
Joined: 27 Nov 2013, 09:22

Re: Netatmo API Forecast

Post by fduval_netatmo » 17 Jun 2015, 19:46

Hi,

you can change the date_begin parameter to 'time() - 7*24*60' and you will get measures from that point.

Hope this helps !
Fabien - Netatmo team

v.sampl
Posts: 2
Joined: 17 Jun 2015, 15:51

Re: Netatmo API Forecast

Post by v.sampl » 18 Jun 2015, 07:41

Thanks for your reply.

I already tried that, but this returns the last week. I need to get the weather conditions from today to 3-7 days but found no information about that.

I want to build something like the 7 day forecast like the station dashboard.
Attachments
Bildschirmfoto 2015-06-18 um 07.39.59.png
Bildschirmfoto 2015-06-18 um 07.39.59.png (41.57 KiB) Viewed 719 times

chingfu
Posts: 7
Joined: 11 Oct 2015, 07:57

Re: Netatmo API Forecast

Post by chingfu » 11 Oct 2015, 08:11

HI,

i'm interested in the weather forecast over API as well.

i'm not a php specialist/developer, so may i ask whether it's possible to post the php code for this or to give me some information how i can create this?

kind regards
:)

lesbass
Posts: 1
Joined: 09 Nov 2015, 17:41

Re: Netatmo API Forecast

Post by lesbass » 09 Nov 2015, 17:42

Hi, I have the same request... did anyone find a way to get the forecast?

Thanks,

Stefano 8-)

fduval_netatmo
Posts: 160
Joined: 27 Nov 2013, 09:22

Re: Netatmo API Forecast

Post by fduval_netatmo » 10 Nov 2015, 09:44

Hi,

The forecast is not available at API and it won't be.

Sorry
Fabien - Netatmo team

wkoszyk
Posts: 14
Joined: 08 Nov 2015, 11:46
Location: Chrzanów, Poland

Re: Netatmo API Forecast

Post by wkoszyk » 15 Nov 2015, 09:34

You can use other APIs like forecast.io, yahoo weather, accuweather etc.

Post Reply

Return to “Netatmo API”