Skip to content

Instantly share code, notes, and snippets.

@VirtualL
Created July 3, 2018 17:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save VirtualL/5529515f9476332f8abe095f6a667203 to your computer and use it in GitHub Desktop.
Save VirtualL/5529515f9476332f8abe095f6a667203 to your computer and use it in GitHub Desktop.
#######################################CURRENCIES Rates Via XML rate in Offical BANK OF ISRAEL#######################################
- platform: command_line
name: Exchange Date
command: "curl get https://www.boi.org.il/currency.xml?curr=27 2>&1 | grep LAST_UPDATE | grep -o '[0-9]*-[0-9]*-[0-9]*' "
scan_interval: 43200 #12 Hours
- platform: command_line
name: Dollar(USD)
command: "curl get https://www.boi.org.il/currency.xml?curr=01 2>&1 | grep RATE | grep -o '[0-9].*[0-9]' "
scan_interval: 43200 #12 Hours
- platform: command_line
name: Euro(EUR)
command: "curl get https://www.boi.org.il/currency.xml?curr=27 2>&1 | grep RATE | grep -o '[0-9].*[0-9]' "
scan_interval: 43200 #12 Hours
- platform: command_line
name: Pound(GBP)
command: "curl get https://www.boi.org.il/currency.xml?curr=02 2>&1 | grep RATE | grep -o '[0-9].*[0-9]' "
scan_interval: 43200 #12 Hours
###########################################################################
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment