Darksky is stubborn, still won't use the units. There is no lat/lon in the Windy url, just location=coordinates so I've taken that out and hard coded the NZ lat/lon, see if that helps the map
Whoops ...... Visibility 5.44 $visibility_unit . On Thu, Aug 23, 2018 at 1:38 PM Pat <[email protected]> wrote: > That URL looks right. Using that as a test URL, it's working for me. I've > created another lab weewx system in metric and I think everything you've > pointed out is looking good now. Give it a test and let me know. > > For the map: Looking at your page source, looks like you've omitted the > lat/lon for your windy map. So I am guessing I am seeing the east coast > because of a saved windy cookie. If you go back to this message > <https://groups.google.com/d/msg/weewx-user/GSrKZEiPqsc/vdcYJCM9DwAJ>, > you can see the lat/lon in the URL... update that and add that to your > config. Probably don't need the detailLat/detailLon. > > v0.3 is available to download. > https://github.com/poblabs/weewx-belchertown/releases/tag/weewx-belchertown-0.3 > > > On Wednesday, August 22, 2018 at 9:05:55 PM UTC-4, Colin Larsen wrote: >> >> Thanks Pat, I thought I made the change correctly in belchertown.py but >> it hasn't fixed it - not sure what's up that I missed? >> >> forecast_url = *"https://api.darksky.net/forecast/%s/%s,%s?units=%s"* % >> ( darksky_secret_key, latitude, longitude, darksky_units ) >> >> It's the one in /usr/share/weewx/user ? >> >> The map is correct here which is strange, it shows NZ front and centre. >> Is it picking up a location variable from somewhere other than the config >> co-ordinates >> >> On Thu, Aug 23, 2018 at 12:52 PM Pat <[email protected]> wrote: >> >>> 100% correct. That's my mistake. You can make that change for now and >>> I'll update it in GitHub for the 0.3 version soon >>> >>> The visibility comes from DarkSky, and they don't provide the units >>> within the API output, so I I'll have to grab the DarkSky units from the >>> config, and then change the unit within the skin based on that. >>> >>> And I'll fix the static unit in the records page. Thought I got them all! >>> >>> Also, your map is still showing the East Coast of USA. Not sure if >>> that's intended or not. >>> >>> On Wednesday, August 22, 2018 at 8:38:29 PM UTC-4, Colin Larsen wrote: >>>> >>>> Have confirmed that this url with my API key returns the right data and >>>> timezone - using both auto and ca >>>> >>>> >>>> https://api.darksky.net/forecast/xxxxxxxxxxxxxxxxxxxxxx/-41.36,174.05?units=ca >>>> >>>> On Thu, Aug 23, 2018 at 11:58 AM Colin Larsen <[email protected]> >>>> wrote: >>>> >>>>> Not sure but I think this line needs to change from >>>>> >>>>> forecast_url = "https://api.darksky.net/forecast/%s/%s,%s?%s" >>>>> >>>>> to >>>>> >>>>> forecast_url = "https://api.darksky.net/forecast/%s/%s,%s?units=%s" >>>>> >>>>> On Thu, Aug 23, 2018 at 11:23 AM Colin Larsen <[email protected]> >>>>> wrote: >>>>> >>>>>> And found a couple more records issues with changes of units in >>>>>> Rainfall - in -- mm >>>>>> >>>>>> Highest Daily Rainfall 0.2 in August 19, 2018 August 19, 2018 at >>>>>> 12:00 AM 0.2 in >>>>>> Highest Daily Rainfall Rate 0.3 mm August 19, 2018 at 12:00 AM August >>>>>> 19, 2018 at 12:00 AM 0.3 mm >>>>>> Month with Highest Total Rainfall 1.0 in August August, 2018 1.0 in >>>>>> Total Rainfall for 2018 25.4 mm 2018 25.4 mm >>>>>> >>>>>> On Thu, Aug 23, 2018 at 11:15 AM Colin Larsen <[email protected]> >>>>>> wrote: >>>>>> >>>>>>> Hmmm, they weren't but the only difference was the Darksky_units I >>>>>>> think. I'll fix that later. >>>>>>> >>>>>>> Windy icon - fixed >>>>>>> Records change of units - fixed >>>>>>> Darksky - still a problem. Neither "auto" or "ca" seem to work so >>>>>>> far. I'm guessing that 'Visibility' also comes from Darksky? >>>>>>> >>>>>>> Visibility 3.84 miles >>>>>>> >>>>>>> >>>>>>> >>>>>>> On Thu, Aug 23, 2018 at 10:34 AM Pat O'Brien <[email protected]> >>>>>>> wrote: >>>>>>> >>>>>>>> Hopefully all of your configurations are in weewx.conf. If so you >>>>>>>> can just download it and install it like before with wee_extension. >>>>>>>> >>>>>>>> On Wed, Aug 22, 2018, 5:08 PM Colin Larsen <[email protected]> >>>>>>>> wrote: >>>>>>>> >>>>>>>>> What's the best way to update Pat? >>>>>>>>> >>>>>>>>> On Thu, 23 Aug 2018, 08:29 Pat, <[email protected]> wrote: >>>>>>>>> >>>>>>>>>> Just released 0.2. Give it a try when you can. >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> https://github.com/poblabs/weewx-belchertown/releases/tag/weewx-belchertown-0.2 >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> On Wednesday, August 22, 2018 at 4:14:07 PM UTC-4, Colin Larsen >>>>>>>>>> wrote: >>>>>>>>>>> >>>>>>>>>>> All good, thanks Pat >>>>>>>>>>> >>>>>>>>>>> On Thu, Aug 23, 2018 at 12:20 AM Pat <[email protected]> >>>>>>>>>>> wrote: >>>>>>>>>>> >>>>>>>>>>>> Most of it looks pretty good. Not bad for my first skin attempt >>>>>>>>>>>> :) >>>>>>>>>>>> >>>>>>>>>>>> I knew imperial to metric would be an issue, and I had tried my >>>>>>>>>>>> best to plan for it. I didn't take timezones into consideration >>>>>>>>>>>> with my >>>>>>>>>>>> testing though - for example noticed on your test site that the >>>>>>>>>>>> forecast >>>>>>>>>>>> row has wrong borders and it's showing the weather for yesterday >>>>>>>>>>>> (for your >>>>>>>>>>>> timezone). I'll take a look into that. >>>>>>>>>>>> >>>>>>>>>>>> I see my error with the records page conversion, so I'll have >>>>>>>>>>>> to issue an update on that one later today. >>>>>>>>>>>> >>>>>>>>>>>> For DarkSky, I'll have to add the "units" flag. They have 6 >>>>>>>>>>>> different unit types, so I'll have to update the setup guide too. >>>>>>>>>>>> Can't >>>>>>>>>>>> believe I missed that one! >>>>>>>>>>>> >>>>>>>>>>>> I'll let you all know when I issue an update. Possibly late >>>>>>>>>>>> today (US Eastern time) >>>>>>>>>>>> >>>>>>>>>>>> >>>>>>>>>>>> On Wednesday, August 22, 2018 at 12:30:47 AM UTC-4, Colin >>>>>>>>>>>> Larsen wrote: >>>>>>>>>>>>> >>>>>>>>>>>>> Arrgh, typo - www.41south.net.nz >>>>>>>>>>>>> >>>>>>>>>>>>> Also found this on the records page, note the change from >>>>>>>>>>>>> metric back to US units >>>>>>>>>>>>> >>>>>>>>>>>>> Highest Temperature 21.1 °C August 19, 2018 at 9:56 AM August >>>>>>>>>>>>> 19, 2018 at 9:56 AM 21.1 °C >>>>>>>>>>>>> Lowest Temperature -1.1 °C August 18, 2018 at 4:58 PM August >>>>>>>>>>>>> 18, 2018 at 4:58 PM -1.1 °C >>>>>>>>>>>>> Highest Heat Index 21.1 °C August 19, 2018 at 9:56 AM August >>>>>>>>>>>>> 19, 2018 at 9:56 AM 21.1 °C >>>>>>>>>>>>> Lowest Wind Chill 21.1 °C August 19, 2018 at 9:56 AM August >>>>>>>>>>>>> 19, 2018 at 9:56 AM August 19, 2018 at 9:56 AM >>>>>>>>>>>>> Largest Daily Temperature Range 40.0 °F August 19, 2018 >>>>>>>>>>>>> (Min: 30.0°F - Max: 70.0°F ) August 19, 2018 >>>>>>>>>>>>> (Min: 30.0°F - Max: 70.0°F ) 40.0 °F >>>>>>>>>>>>> Smallest Daily Temperature Range 5.9 °F August 18, 2018 >>>>>>>>>>>>> (Min: 30.0°F - Max: 35.9°F ) August 18, 2018 >>>>>>>>>>>>> (Min: 30.0°F - Max: 35.9°F ) 5.9 °F >>>>>>>>>>>>> >>>>>>>>>>>>> On Wed, Aug 22, 2018 at 3:54 PM Colin Larsen < >>>>>>>>>>>>> [email protected]> wrote: >>>>>>>>>>>>> >>>>>>>>>>>>>> www.41south.net nz >>>>>>>>>>>>>> >>>>>>>>>>>>>> On Wed, Aug 22, 2018 at 3:54 PM Colin Larsen < >>>>>>>>>>>>>> [email protected]> wrote: >>>>>>>>>>>>>> >>>>>>>>>>>>>>> Ok working in test :) >>>>>>>>>>>>>>> >>>>>>>>>>>>>>> Couple of minor things with the Darksky forecast; >>>>>>>>>>>>>>> >>>>>>>>>>>>>>> I need to set the units to metric with kph wind - ?units=ca >>>>>>>>>>>>>>> at the end of the query string, is there a place to do that? >>>>>>>>>>>>>>> >>>>>>>>>>>>>>> There doesn't appear to be a "windy" icon >>>>>>>>>>>>>>> >>>>>>>>>>>>>>> Otherwise so far so good. I haven't delved into mqtt just >>>>>>>>>>>>>>> yet. >>>>>>>>>>>>>>> >>>>>>>>>>>>>>> Cheers >>>>>>>>>>>>>>> Colin >>>>>>>>>>>>>>> >>>>>>>>>>>>>>> On Wed, Aug 22, 2018 at 1:11 PM Pat <[email protected]> >>>>>>>>>>>>>>> wrote: >>>>>>>>>>>>>>> >>>>>>>>>>>>>>>> Not sure. It might be. Worth a try and see how it goes? >>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>> On Tuesday, August 21, 2018 at 7:50:34 PM UTC-4, Colin >>>>>>>>>>>>>>>> Larsen wrote: >>>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>>> CloudMQTT with 5 connections and 10Kbit/sec might not be >>>>>>>>>>>>>>>>> enough then? I'll definitely look at setting up my own I >>>>>>>>>>>>>>>>> think. Might even >>>>>>>>>>>>>>>>> just whack it on a Pi zero or something to play with >>>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>>> On Wed, Aug 22, 2018 at 11:26 AM Pat <[email protected]> >>>>>>>>>>>>>>>>> wrote: >>>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>>>> Sorry, meant to update that to say overlay=clouds if you >>>>>>>>>>>>>>>>>> wanted clouds. >>>>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>>>> On Tuesday, August 21, 2018 at 7:24:19 PM UTC-4, Pat >>>>>>>>>>>>>>>>>> wrote: >>>>>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>>>>> MQTT can be the tricky bit because some of the freebies >>>>>>>>>>>>>>>>>>> out there have limitations which your weewx may hit pretty >>>>>>>>>>>>>>>>>>> quickly. If >>>>>>>>>>>>>>>>>>> you're thinking of trying to host your own MQTT, I'm >>>>>>>>>>>>>>>>>>> working on a write up >>>>>>>>>>>>>>>>>>> for how mine is setup. >>>>>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>>>>> I chose windy.com because it's free and you can do a >>>>>>>>>>>>>>>>>>> fair amount of customization. Except for the map color - >>>>>>>>>>>>>>>>>>> gray is the only >>>>>>>>>>>>>>>>>>> option... Looks like you can only have wind, or cloud. The >>>>>>>>>>>>>>>>>>> cloud option >>>>>>>>>>>>>>>>>>> looks like it may show both actually. >>>>>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>>>>> Change the lat/lon for your area, but the bit I changed >>>>>>>>>>>>>>>>>>> (and got lucky with) was overlay=wind >>>>>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>>>>> https://embed.windy.com/embed2.html?lat=-26.195&lon=138.560&zoom=5&level=surface&overlay=wind&menu=&message=&marker=&calendar=&pressure=&type=map&location=coordinates&detail=&detailLat=-26.195&detailLon=138.560&metricWind=default&metricTemp=default&radarRange=-1 >>>>>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>>>>> You're not married to windy though, if you find another >>>>>>>>>>>>>>>>>>> radar you like, you can use that instead. Just use the full >>>>>>>>>>>>>>>>>>> HTML of <img >>>>>>>>>>>>>>>>>>> src="http://thesite/radar.gif"> or something and making >>>>>>>>>>>>>>>>>>> sure the width and height matches the parameters for an >>>>>>>>>>>>>>>>>>> easy swap out. >>>>>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>>>>> On Tuesday, August 21, 2018 at 6:32:42 PM UTC-4, Colin >>>>>>>>>>>>>>>>>>> Larsen wrote: >>>>>>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>>>>>> I'm down in New Zealand so a few hours out with you. >>>>>>>>>>>>>>>>>>>> Just created my Darksky account and reading about MQTT - >>>>>>>>>>>>>>>>>>>> so much to learn! >>>>>>>>>>>>>>>>>>>> Hopefully in the next few hours but will post my success >>>>>>>>>>>>>>>>>>>> (or otherwise). >>>>>>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>>>>>> Thanks again - really looking forward to getting this >>>>>>>>>>>>>>>>>>>> up and running. >>>>>>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>>>>>> 1st question, can Windy.com be set to display >>>>>>>>>>>>>>>>>>>> wind/cloud rather than the radar image? We don't get that >>>>>>>>>>>>>>>>>>>> down here in NZ >>>>>>>>>>>>>>>>>>>> yet >>>>>>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>>>>>> On Wednesday, 22 August 2018 10:27:40 UTC+12, Pat wrote: >>>>>>>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>>>>>>> Thanks! Have you got the skin setup? >>>>>>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>>>>>> -- >>>>>>>>>>>>>>>>>> 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. >>>>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>>> -- >>>>>>>>>>>>>>>> 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. >>>>>>>>>>>>>>>> >>>>>>>>>>>>>>> -- >>>>>>>>>>>> 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. >>>>>>>>>>>> >>>>>>>>>>> -- >>>>>>>>>> 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. >>>>>>>>>> >>>>>>>>> -- >>>>>>>>> You received this message because you are subscribed to a topic in >>>>>>>>> the Google Groups "weewx-user" group. >>>>>>>>> To unsubscribe from this topic, visit >>>>>>>>> https://groups.google.com/d/topic/weewx-user/GSrKZEiPqsc/unsubscribe >>>>>>>>> . >>>>>>>>> To unsubscribe from this group and all its topics, send an email >>>>>>>>> to [email protected]. >>>>>>>>> For more options, visit https://groups.google.com/d/optout. >>>>>>>>> >>>>>>>> -- >>>>>>>> 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. >>>>>>>> >>>>>>> -- >>> 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. >>> >> -- > 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. > -- 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.
