monkeecreate/jquery.simpleWeather — Issue #15: expose result.item.forecast[0].code
Author: corporate-gadfly
Created: 2011-11-20 00:47:10+00:00
State: open

No where in the code do you expose result.item.forecast[0].code. My suggestion would be to expose today similar to how tomorrow is exposed:

```javascript
tomorrow:{
code: result.item.forecast[1].code,
high: result.item.forecast[1].high,
low: result.item.forecast[1].low,
forecast: result.item.forecast[1].text,
date: result.item.forecast[1].date,
day: result.item.forecast[1].day,
image: iconRoot+result.item.forecast[1].code+"d.png"
},
```
So, today would be identical, except it would use [0] indices. if you are afraid of breaking existing code, then you could keep high, low and forecast and add a hash for today in addition to (instead of replacing).

Cheers and thanks in advance for the useful project.