Home-AssistantConfig icon indicating copy to clipboard operation
Home-AssistantConfig copied to clipboard

Webcal.fi no longer works - Breaks Flag Sensor

Open CCOSTAN opened this issue 4 years ago • 6 comments

https://github.com/uherting/MyHA-Configuration/issues/1

https://github.com/Backslashh/homeassistant-config/issues/18

CCOSTAN avatar Nov 11 '21 02:11 CCOSTAN

Should be able to leverage WolfRAM TO DETERMINE IF IT'S FLAG DAY OR NOT.

wolframalpha_flagday_api: https://api.wolframalpha.com/v2/result?appid=JIUY8U-4V8KY45VT1&i=IS%20TODAY%20FLAG%20DAY

  - platform: rest
    name: Halloween Countdown
    resource: !secret wolframalpha_flagday_api
#    value_template: "{{ (value|replace(' days', '')) | int }}"
 #   unit_of_measurement: Days
    scan_interval: 43200

CCOSTAN avatar Nov 11 '21 02:11 CCOSTAN

btw: Though it is commented out I just want to point out that the use of some construct like '| int' might cause errors from Home Assistant core 2022.1 on if the sensor provides a 'unavailable'. In this case a '| int(9999)' where 9999 is the default value would help. Came across this a few days ago and would like make people aware of the problem ahead of the time an error will appear.

uherting avatar Nov 11 '21 11:11 uherting

Should be able to leverage WolfRAM TO DETERMINE IF IT'S FLAG DAY OR NOT.

This is proving more difficult than I thought since WolfRam alpha only tells me if it's ACTUALLY FLAG day (JUNE 14TH) and not A flag worthy day.. https://blog.directauto.com/car-life/days-to-fly-american-flag/

Might need to build a different way to do this .. maybe a combination of an XML file and some wolfram alpha .. or maybe this could be my first HACS integration. hmmm..

Direct Connect
There are so many great days to fly the American flag! See them all and learn the correct way to display the American flag, from Direct Auto Insurance!

CCOSTAN avatar Dec 14 '21 04:12 CCOSTAN

https://github.com/metbril/home-assistant-config/issues/56

CCOSTAN avatar Dec 17 '21 14:12 CCOSTAN

You should be able to fix this easily.

https://github.com/metbril/home-assistant-config/issues/56#issuecomment-1264230073

metbril avatar Oct 15 '22 06:10 metbril

You should be able to fix this easily.

metbril/home-assistant-config#56 (comment)

This solution seems to require a subscription too (for the flag calendar specifically).

CCOSTAN avatar Nov 18 '23 18:11 CCOSTAN