Apixu.com worldwide weather data with outside lux. No PWS or server setup

How exactly do I get these icons to show up in dashboard. I tried a bunch of attribute combinations.

Thank you

The attribute is either "visual" or "visualWithText"... depending if you just want the image or image and text.

1 Like

just wanted to double check that it's still not possible to get forecast data. I'm liking the new icons for the dashboard, and would really like to have both current conditions and tomorrow's forecasted condition shown.

the forecast data is available. i just havent bothered to publish since no has asked.

what did you need from this … just tomorrows condition?

 forecast: [
    forecastday: [
        [
            date: 2018-08-17,
             date_epoch: 1534464000,
             day: [
                maxtemp_c: 35.2,
                 maxtemp_f: 95.4,
                 mintemp_c: 28.9,
                 mintemp_f: 84.0,
                 avgtemp_c: 31.6,
                 avgtemp_f: 88.8,
                 maxwind_mph: 8.9,
                 maxwind_kph: 14.4,
                 totalprecip_mm: 1.3,
                 totalprecip_in: 0.05,
                 avgvis_km: 19.2,
                 avgvis_miles: 11.0,
                 avghumidity: 70.0,
                 condition: [
                    text: Heavy rain at times,
                     icon: //cdn.apixu.com/weather/64x64/day/305.png,
                     code: 1192
                ],
                 uv: 12.0
            ],
             astro: [
                sunrise: 05: 14 AM,
                 sunset: 06: 07 PM,
                 moonrise: 10: 54 AM,
                 moonset: 10: 37 PM
            ]
        ],
         [
            date: 2018-08-18,
             date_epoch: 1534550400,
             day: [
                maxtemp_c: 35.3,
                 maxtemp_f: 95.5,
                 mintemp_c: 29.9,
                 mintemp_f: 85.8,
                 avgtemp_c: 32.0,
                 avgtemp_f: 89.5,
                 maxwind_mph: 7.6,
                 maxwind_kph: 12.2,
                 totalprecip_mm: 2.4,
                 totalprecip_in: 0.09,
                 avgvis_km: 19.6,
                 avgvis_miles: 12.0,
                 avghumidity: 70.0,
                 condition: [
                    text: Moderate or heavy rain shower,
                     icon: //cdn.apixu.com/weather/64x64/day/356.png,
                     code: 1243
                ],
                 uv: 11.6
            ],
             astro: [
                sunrise: 05: 15 AM,
                 sunset: 06: 06 PM,
                 moonrise: 11: 49 AM,
                 moonset: 11: 19 PM
            ]
        ],
         [
            date: 2018-08-19,
             date_epoch: 1534636800,
             day: [
                maxtemp_c: 35.8,
                 maxtemp_f: 96.4,
                 mintemp_c: 28.6,
                 mintemp_f: 83.5,
                 avgtemp_c: 32.2,
                 avgtemp_f: 89.9,
                 maxwind_mph: 7.8,
                 maxwind_kph: 12.6,
                 totalprecip_mm: 9.0,
                 totalprecip_in: 0.35,
                 avgvis_km: 17.4,
                 avgvis_miles: 10.0,
                 avghumidity: 68.0,
                 condition: [
                    text: Moderate or heavy rain shower,
                     icon: //cdn.apixu.com/weather/64x64/day/356.png,
                     code: 1243
                ],
                 uv: 11.4
            ],
             astro: [
                sunrise: 05: 15 AM,
                 sunset: 06: 05 PM,
                 moonrise: 12: 42 PM,
                 moonset: No moonset
            ]
        ]
    ]

Yeah, condition so I can add an icon would be great.
Max and min temp (in Fahrenheit) would be nice too, I suppose!

Thanks for the quick reply!

1 Like

@josh is wind always expected in MPH even when using outside of the US?

thank you.

1 Like

Love it, thank you!

1 Like

Right now, the units are hard coded in MPH on the weather tile but I need to change them to be dynamic. If you can include the units parameter along with the event, I'll update the tile to grab the units from the attribute. :grinning:

1 Like

done. since i dont use sharptools not tested with it … but if something is missing just let me know.

1 Like

the driver now has the forecast data.

2 Likes

Something doesn't seem right. To see any weather icon at all, I had to turn on "Publish WU mappings" is that correct behavior? Also, I'm still seeing wind in MPH, even thought "Imperial Units" is disabled in your driver. I also don't have the weather station location in the top left, and I don't see the condition in the bottom left or sunrise/sunset times.

Here is is next to @Cobra 's Custom WU driver and Weewx driver with Apixu supplemental data (note my Weewx RPi is not installed at the moment so some data is missing because of that).

after publishing the driver just click the poll button on the device to see the new data. if you dont do that the new data will be shown when the scheduled polls happens next.

how are you displaying that data? … doesnt seem like thats HE dashboard.

Oh Sorry, that's SharpTools (you did say you were not a SharpTools user :wink: ). I did click Poll and waited well beyond the 5 minute polling period I have set. Data in the driver details seems correct and does show the weather icons, etc. Just not seeing everything in SharpTools the way I'm seeing them in Andy's driver.

as @josh said:

OK, so @josh still has some work to do on this end. Also, I think @Cobra has not had the opportunity to make that particular change to his drivers yet.

ok. WU mappings have nothing to do with the icons. polling will always return the latest unless the poll failed for some reason.

EDIT: this is what is shown in the logs if the poll failed:

[dev:379] 2018-08-17 17:11:01.265:warnNo response from ApiXU API
[dev:379] 2018-08-17 17:11:01.248:debug[:]
[dev:379] 2018-08-17 17:11:01.248:errorhttp call failed for ApiXU weather api: java.net.SocketTimeoutException: Read timed out

OK, maybe initially I just didn't wait long enough before I went and turned on the WU mappings. I'll turn them off. It just acted different then when I initially installed @cobra 's WU driver, which showed all the information immeaiately upon installing the tile.

So regardless of poll time, the data still isn't showing up as expected, wouldn't you agree? Should not say Apixu Weather in the top left, which it's still showing on the live tile. Also, I don't see condition or sunrise/sunset times in the lower left. Is that just a choice you made in your driver?

No failures. Log looks good

Driver details look good

yes … when you install new driver code for existing driver and not changed any setting so it hasnt polled yet … it will act differently than what is shown from any driver that has been running for a while or an entirely new driver. :slight_smile:

to confirm the data is there go to the driver and check what HE shows in the portal for current state.