Oops - forgot to hide the alert bar 
<https://github.com/poblabs/weewx-belchertown/commit/cac70b881e99ddd54eea017d37fcdf3866d97541>
 when 
an alert clears. Try this updated version attached. Same rules apply as 
above. 


On Wednesday, December 26, 2018 at 11:39:24 AM UTC-5, Pat wrote:
>
> I just committed an initial attempt 
> <https://github.com/poblabs/weewx-belchertown/commit/b3883dbd67a2b4d5368961e2479631f7de86e128>.
>  
> You can download the files from GitHub or from the attachments here. 
>
> As usual, have a backup of your setup just in case. To test it out, copy 
> the attached files to skins/Belchertown and restart weewx. Wait for an 
> archive period and if you have a weather alert, it should appear like in 
> the screenshot. Clicking the link will take you to the source of the alert. 
>
> The alert area should update automatically in the background (no page 
> refresh needed). So if an alert goes active, it'll pop up the alert area. 
> When it's gone it'll disappear. At least it should in theory :)
>
> Will need some testing and ironing out over the next few days for sure... 
> Let me know how it goes. 
>
>
>
> On Wednesday, December 26, 2018 at 9:54:46 AM UTC-5, Pat wrote:
>>
>> Agreed. Let me work on a concept
>>
>> On Wednesday, December 26, 2018 at 9:47:56 AM UTC-5, rich T wrote:
>>>
>>> I think underneath the timestamp with the Icon would look fine.  Same 
>>> text size as the timestamp but bold.  Maybe make the Alerts optional 
>>> feature, so the users has a choice to display the Alerts.
>>>
>>> On Wednesday, December 26, 2018 at 9:29:16 AM UTC-5, Pat wrote:
>>>>
>>>> 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.

Attachment: index.html.tmpl
Description: Binary data

Reply via email to