# EV Charging / Solar / Demand Shaper / Agile

**URL:** <https://community.openenergymonitor.org/t/ev-charging-solar-demand-shaper-agile/13159>\
**Category:** OpenEVSE\
**Created:** [29 January 2020 15:25 UTC](https://community.openenergymonitor.org/t/ev-charging-solar-demand-shaper-agile/13159 "2020-01-29T15:25:13Z")\
**Posts on this page:** 1\
**Showing post:** 13

<div class="post-metadata">

**Author:** ![TrystanLea](https://community.openenergymonitor.org/user_avatar/community.openenergymonitor.org/trystanlea/32/31_2.png) [@TrystanLea](https://community.openenergymonitor.org/u/TrystanLea)\
**Post date:** [10 February 2020 10:55 UTC](https://community.openenergymonitor.org/t/ev-charging-solar-demand-shaper-agile/13159/13 "2020-02-10T10:55:59Z")

</div>

I had a go at importing historic and forecast data from the darksky api yesterday, the intention was to get a precipitation forecast to forecast the output of a local micro hydro generator, but I also pulled in all the other observations and forecast values, here’s an example of UV index and cloud cover:

 ![image](https://community.openenergymonitor.org/uploads/default/original/2X/1/117e238b9fa2ea2551a936cfcb88e19e1a308a9e.png)

Their api is nice and easy to work with e.g

```
$data = json_decode(file_get_contents("https://api.darksky.net/forecast/$key/$lat,$long,$time?units=si&exclude=currently,minutely,daily,alerts,flags"));

foreach ($data->hourly->data as $hour) {
    print $hour->time." ".$hour->precipProbability." ".$hour->precipIntensity." ".$hour->humidity."\n";
}

```

See their documentation for more info:

- [Dark Sky API: Log In](https://darksky.net/dev/docs#forecast-request)
- [Dark Sky API: Log In](https://darksky.net/dev/docs#time-machine-request)

---

_[View the full topic](https://community.openenergymonitor.org/t/ev-charging-solar-demand-shaper-agile/13159)._
