Ok cool. That GitHub repo just confirmed that I am doing what they're doing. I'm not using JavaScript though, I'm just grabbing the raw JSON from DarkSky. I guess I've never seen the alerts array in my output when I initially created it, so out of sight out of mind?
I just grabbed a forecast for an area in South Dakota that was under weather advisory <https://www.spc.noaa.gov/products/wwa/>, and I see in DarkSky's forecast it has the alert data. So I can use this sample data to include it in the skin. Where and how should the alert be shown? I'd like to keep it in line with the clean look of the skin. I think I'll show the alert at the top of the page beneath the timestamp. An alert icon (maybe something like this? <https://www.freeiconspng.com/img/1575>) and a brief text of the alert next to it. Then you can click the alert to see the full details. On Tuesday, December 25, 2018 at 9:57:56 PM UTC-5, rich T wrote: > > Could this work with in your code: > > DarkSkyApi.loadItAll(excludes, position); > > DarkSkyApi.loadItAll() > .then(console.log); > DarkSkyApi.loadItAll('daily,hourly,minutely,flags') // just return alerts > > > Found at https://github.com/deanbot/dark-sky-api > > On Tuesday, December 25, 2018 at 8:17:22 PM UTC-5, Pat wrote: > > Belchertown skin is using the DarkSky API >> >> On Tuesday, December 25, 2018 at 2:41:58 PM UTC-5, rich T wrote: >>> >>> Happy Holidays >>> >>> I have the embedded widget; to get the alerts you must click on the >>> provided link. Which API are you using? >>> >>> On Saturday, December 22, 2018 at 8:46:44 PM UTC-5, Pat wrote: >>> >>>> I don't see their alerts in the API doc. Only what Colin is doing on >>>> his site to have their widget embedded. Do you see something I'm missing >>>> for API alerting? >>>> >>>> On Thursday, December 20, 2018 at 10:13:16 PM UTC-5, rich T wrote: >>>>> >>>>> Pat >>>>> >>>>> Wondering if there was a way to pull/display the Alerts for the area >>>>> from Darksky using your coding? >>>>> >>>>> Rich >>>>> >>>> -- You received this message because you are subscribed to the Google Groups "weewx-user" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
