Jump to content

Miguel05

Member
  • Content Count

    5
  • Joined

  • Last visited

About Miguel05

  • Rank
    Newbie

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. Hi @forgetfulfellow I just installed this and it is not working at all. I first built the database for the contacts, then I did 'IM' and typed the name of a contact and after clicking return I get nothing, nothing happens. I am on MacOS Mojave. Any debugging tips? I went into the workflow and put this at the end of IM to see if the apple script will output the phone number and that does work. I don't see anywhere where the flow is suppose to send the message.
  2. Last login: Mon Apr 23 18:19:22 on console LXXXXXXX:~ a02XXXXXX$ cd /Users/a0274158/Library/Application\ Support/Alfred\ 3/Alfred.alfredpreferences/workflows/user.workflow.484CC0B4-D305-455A-A323-A6CC62C97392/ LXXXXXXX:user.workflow.484CC0B4-D305-455A-A323-A6CC62C97392 a02XXXXXX$ cat "$HOME/Library/Application Support/Alfred 3/Workflow Data/carlosnz.timezones/timezones.txt" Auckland|Auckland|New Zealand|-36.8484597|174.7633315||||UTC+||64 Sydney|Sydney|Australia|-33.8674869|151.2069902||||UTC+||61 New York|New York|United States|40.7143528|-74.0059731||||UTC+| Los Angeles|Los Angeles|United States|34.0522342|-118.2436849||||UTC+| London|London|United Kingdom|51.5112139|-0.1198244||||UTC+||44 Paris|Paris|France|48.8566140|2.3522219||||UTC+||33 Tokyo|Tokyo|Japan|35.6894875|139.6917064||||UTC+||81 Beijing|Beijing|China|39.9040300|116.4075260||||UTC+||86 Hong Kong|Hong Kong|Hong Kong|22.3964280|114.1094970||||UTC+||852 Capetown|Cape Town|South Africa|-33.9248685|18.4240553||||UTC+||27 Moscow|Moscow|Russia|55.7496460|37.6236800||||UTC+||7 Dubai|Dubai|United Arab Emirates|25.2711390|55.3074850||||UTC+||971 Munich|Munich|Germany|48.1351253|11.5819805||||UTC+||49 LXXXXXXX:user.workflow.484CC0B4-D305-455A-A323-A6CC62C97392 a0274158$ cat "$HOME/Library/Application Support/Alfred 3/Workflow Data/carlosnz.timezones/configExtra" TIME_FORMAT|12h LXXXXXXX:user.workflow.484CC0B4-D305-455A-A323-A6CC62C97392 a02XXXXXX$ sh -x update.sh > ~/Desktop/Update.txt 2>&1 LXXXXXXX:user.workflow.484CC0B4-D305-455A-A323-A6CC62C97392 a02XXXXXX$ + source includes.sh ++ TZWD='/Users/a02xxxxx/Library/Caches/com.runningwithcrayons.Alfred-2/Workflow Data/carlosnz.timezones' ++ TZPREFS='/Users/a02xxxxx/Library/Application Support/Alfred 2/Workflow Data/carlosnz.timezones' ++ shopt -s expand_aliases ++ shopt -s nocasematch ++ alias 'growlnotify=/usr/local/bin/growlnotify TimeZones --image icon.png -m ' ++ '[' '!' -e '/Users/a02xxxxx/Library/Application Support/Alfred 2/Workflow Data/carlosnz.timezones/config-1-5' ']' +++ cat '/Users/a02xxxxx/Library/Application Support/Alfred 2/Workflow Data/carlosnz.timezones/config-1-5' ++ timezone_file='/Users/a02xxxxx/Library/Application Support/Alfred 2/Workflow Data/carlosnz.timezones/timezones.txt' ++ '[' '!' -e '/Users/a02xxxxx/Library/Application Support/Alfred 2/Workflow Data/carlosnz.timezones/timezones.txt' ']' + /usr/local/bin/growlnotify TimeZones --image icon.png -m 'Timezones updating. This will take a few moments...' update.sh: line 3: /usr/local/bin/growlnotify: No such file or directory + IFS= + read -r line + OIFS=' ' + IFS='|' + data=($line) + city=Auckland + city_returned=Auckland + country='New Zealand' + latitude=-36.8484597 + longitude=174.7633315 + offset= + tz_id= + tz_name= + display_offset=UTC+ + IFS=' ' +++ date +%s ++ curl --connect-timeout 10 -s 'https://maps.googleapis.com/maps/api/timezone/xml?location=-36.8484597,174.7633315&timestamp=1524754015&sensor=false' + api_timezone= + OIFS=' ' + IFS=' ' ++ php parsexml_timezone.php '' + tz_data=' Fatal error: Uncaught Exception: String could not be parsed as XML in /Users/a02xxxxx/Library/Application Support/Alfred 3/Alfred.alfredpreferences/workflows/user.workflow.484CC0B4-D305-455A-A323-A6CC62C97392/parsexml_timezone.php:5 Stack trace: #0 /Users/a02xxxxx/Library/Application Support/Alfred 3/Alfred.alfredpreferences/workflows/user.workflow.484CC0B4-D305-455A-A323-A6CC62C97392/parsexml_timezone.php(5): SimpleXMLElement->__construct('\'''\'') #1 {main} thrown in /Users/a02xxxxx/Library/Application Support/Alfred 3/Alfred.alfredpreferences/workflows/user.workflow.484CC0B4-D305-455A-A323-A6CC62C97392/parsexml_timezone.php on line 5' + tz_data_split=($tz_data) + IFS=' ' + '[' '!' Fatal error: Uncaught Exception: String could not be parsed as XML in /Users/a02xxxxx/Library/Application Support/Alfred 3/Alfred.alfredpreferences/workflows/user.workflow.484CC0B4-D305-455A-A323-A6CC62C97392/parsexml_timezone.php:5 Stack trace: '#0' /Users/a02xxxxx/Library/Application Support/Alfred '3/Alfred.alfredpreferences/workflows/user.workflow.484CC0B4-D305-455A-A323-A6CC62C97392/parsexml_timezone.php(5):' 'SimpleXMLElement->__construct('\'''\'')' '#1' '{main}' thrown in /Users/a02xxxxx/Library/Application Support/Alfred 3/Alfred.alfredpreferences/workflows/user.workflow.484CC0B4-D305-455A-A323-A6CC62C97392/parsexml_timezone.php on line 5 = OK ']' update.sh: line 31: [: too many arguments + raw_offset= + dst_offset= + new_tz_id= + new_tz_name= ++ echo '()/1' ++ bc (standard_in) 1: parse error + raw_offset= ++ echo '()/1' ++ bc (standard_in) 1: parse error + dst_offset= ++ expr + expr: syntax error + new_offset= + '[' = ']' + echo 'Auckland|Auckland|New Zealand|-36.8484597|174.7633315||||UTC+' + continue + IFS= + read -r line + OIFS=' ' + IFS='|' + data=($line) + city=Sydney + city_returned=Sydney + country=Australia + latitude=-33.8674869 + longitude=151.2069902 + offset= + tz_id= + tz_name= + display_offset=UTC+ + IFS=' ' +++ date +%s ++ curl --connect-timeout 10 -s 'https://maps.googleapis.com/maps/api/timezone/xml?location=-33.8674869,151.2069902&timestamp=1524754015&sensor=false' + api_timezone= + OIFS=' ' + IFS=' ' ++ php parsexml_timezone.php '' + tz_data=' Fatal error: Uncaught Exception: String could not be parsed as XML in /Users/a02xxxxx/Library/Application Support/Alfred 3/Alfred.alfredpreferences/workflows/user.workflow.484CC0B4-D305-455A-A323-A6CC62C97392/parsexml_timezone.php:5 Stack trace: #0 /Users/a02xxxxx/Library/Application Support/Alfred 3/Alfred.alfredpreferences/workflows/user.workflow.484CC0B4-D305-455A-A323-A6CC62C97392/parsexml_timezone.php(5): SimpleXMLElement->__construct('\'''\'') #1 {main} thrown in /Users/a02xxxxx/Library/Application Support/Alfred 3/Alfred.alfredpreferences/workflows/user.workflow.484CC0B4-D305-455A-A323-A6CC62C97392/parsexml_timezone.php on line 5' + tz_data_split=($tz_data) + IFS=' ' + '[' '!' Fatal error: Uncaught Exception: String could not be parsed as XML in /Users/a02xxxxx/Library/Application Support/Alfred 3/Alfred.alfredpreferences/workflows/user.workflow.484CC0B4-D305-455A-A323-A6CC62C97392/parsexml_timezone.php:5 Stack trace: '#0' /Users/a02xxxxx/Library/Application Support/Alfred '3/Alfred.alfredpreferences/workflows/user.workflow.484CC0B4-D305-455A-A323-A6CC62C97392/parsexml_timezone.php(5):' 'SimpleXMLElement->__construct('\'''\'')' '#1' '{main}' thrown in /Users/a02xxxxx/Library/Application Support/Alfred 3/Alfred.alfredpreferences/workflows/user.workflow.484CC0B4-D305-455A-A323-A6CC62C97392/parsexml_timezone.php on line 5 = OK ']' update.sh: line 31: [: too many arguments + raw_offset= + dst_offset= + new_tz_id= + new_tz_name= ++ echo '()/1' ++ bc (standard_in) 1: parse error + raw_offset= ++ echo '()/1' ++ bc (standard_in) 1: parse error + dst_offset= ++ expr + expr: syntax error + new_offset= + '[' = ']' + echo 'Sydney|Sydney|Australia|-33.8674869|151.2069902||||UTC+' + continue + IFS= + read -r line + OIFS=' ' + IFS='|' + data=($line) + city='New York' + city_returned='New York' + country='United States' + latitude=40.7143528 + longitude=-74.0059731 + offset= + tz_id= + tz_name= + display_offset=UTC+ + IFS=' ' +++ date +%s ++ curl --connect-timeout 10 -s 'https://maps.googleapis.com/maps/api/timezone/xml?location=40.7143528,-74.0059731&timestamp=1524754015&sensor=false' + api_timezone= + OIFS=' ' + IFS=' ' ++ php parsexml_timezone.php '' + tz_data=' Fatal error: Uncaught Exception: String could not be parsed as XML in /Users/a02xxxxx/Library/Application Support/Alfred 3/Alfred.alfredpreferences/workflows/user.workflow.484CC0B4-D305-455A-A323-A6CC62C97392/parsexml_timezone.php:5 Stack trace: #0 /Users/a02xxxxx/Library/Application Support/Alfred 3/Alfred.alfredpreferences/workflows/user.workflow.484CC0B4-D305-455A-A323-A6CC62C97392/parsexml_timezone.php(5): SimpleXMLElement->__construct('\'''\'') #1 {main} thrown in /Users/a02xxxxx/Library/Application Support/Alfred 3/Alfred.alfredpreferences/workflows/user.workflow.484CC0B4-D305-455A-A323-A6CC62C97392/parsexml_timezone.php on line 5' + tz_data_split=($tz_data) + IFS=' ' + '[' '!' Fatal error: Uncaught Exception: String could not be parsed as XML in /Users/a02xxxxx/Library/Application Support/Alfred 3/Alfred.alfredpreferences/workflows/user.workflow.484CC0B4-D305-455A-A323-A6CC62C97392/parsexml_timezone.php:5 Stack trace: '#0' /Users/a02xxxxx/Library/Application Support/Alfred '3/Alfred.alfredpreferences/workflows/user.workflow.484CC0B4-D305-455A-A323-A6CC62C97392/parsexml_timezone.php(5):' 'SimpleXMLElement->__construct('\'''\'')' '#1' '{main}' thrown in /Users/a02xxxxx/Library/Application Support/Alfred 3/Alfred.alfredpreferences/workflows/user.workflow.484CC0B4-D305-455A-A323-A6CC62C97392/parsexml_timezone.php on line 5 = OK ']' update.sh: line 31: [: too many arguments + raw_offset= + dst_offset= + new_tz_id= + new_tz_name= ++ echo '()/1' ++ bc (standard_in) 1: parse error + raw_offset= ++ echo '()/1' ++ bc (standard_in) 1: parse error + dst_offset= ++ expr + expr: syntax error + new_offset= + '[' = ']' + echo 'New York|New York|United States|40.7143528|-74.0059731||||UTC+' + continue + IFS= + read -r line + OIFS=' ' + IFS='|' + data=($line) + city='Los Angeles' + city_returned='Los Angeles' + country='United States' + latitude=34.0522342 + longitude=-118.2436849 + offset= + tz_id= + tz_name= + display_offset=UTC+ + IFS=' ' +++ date +%s ++ curl --connect-timeout 10 -s 'https://maps.googleapis.com/maps/api/timezone/xml?location=34.0522342,-118.2436849&timestamp=1524754015&sensor=false' + api_timezone= + OIFS=' ' + IFS=' ' ++ php parsexml_timezone.php '' + tz_data=' Fatal error: Uncaught Exception: String could not be parsed as XML in /Users/a02xxxxx/Library/Application Support/Alfred 3/Alfred.alfredpreferences/workflows/user.workflow.484CC0B4-D305-455A-A323-A6CC62C97392/parsexml_timezone.php:5 Stack trace: #0 /Users/a02xxxxx/Library/Application Support/Alfred 3/Alfred.alfredpreferences/workflows/user.workflow.484CC0B4-D305-455A-A323-A6CC62C97392/parsexml_timezone.php(5): SimpleXMLElement->__construct('\'''\'') #1 {main} thrown in /Users/a02xxxxx/Library/Application Support/Alfred 3/Alfred.alfredpreferences/workflows/user.workflow.484CC0B4-D305-455A-A323-A6CC62C97392/parsexml_timezone.php on line 5' + tz_data_split=($tz_data) + IFS=' ' + '[' '!' Fatal error: Uncaught Exception: String could not be parsed as XML in /Users/a02xxxxx/Library/Application Support/Alfred 3/Alfred.alfredpreferences/workflows/user.workflow.484CC0B4-D305-455A-A323-A6CC62C97392/parsexml_timezone.php:5 Stack trace: '#0' /Users/a02xxxxx/Library/Application Support/Alfred '3/Alfred.alfredpreferences/workflows/user.workflow.484CC0B4-D305-455A-A323-A6CC62C97392/parsexml_timezone.php(5):' 'SimpleXMLElement->__construct('\'''\'')' '#1' '{main}' thrown in /Users/a02xxxxx/Library/Application Support/Alfred 3/Alfred.alfredpreferences/workflows/user.workflow.484CC0B4-D305-455A-A323-A6CC62C97392/parsexml_timezone.php on line 5 = OK ']' update.sh: line 31: [: too many arguments + raw_offset= + dst_offset= + new_tz_id= + new_tz_name= ++ echo '()/1' ++ bc (standard_in) 1: parse error + raw_offset= ++ echo '()/1' ++ bc (standard_in) 1: parse error + dst_offset= ++ expr + expr: syntax error + new_offset= + '[' = ']' + echo 'Los Angeles|Los Angeles|United States|34.0522342|-118.2436849||||UTC+' + continue + IFS= + read -r line + OIFS=' ' + IFS='|' + data=($line) + city=London + city_returned=London + country='United Kingdom' + latitude=51.5112139 + longitude=-0.1198244 + offset= + tz_id= + tz_name= + display_offset=UTC+ + IFS=' ' +++ date +%s ++ curl --connect-timeout 10 -s 'https://maps.googleapis.com/maps/api/timezone/xml?location=51.5112139,-0.1198244&timestamp=1524754016&sensor=false' + api_timezone= + OIFS=' ' + IFS=' ' ++ php parsexml_timezone.php '' + tz_data=' Fatal error: Uncaught Exception: String could not be parsed as XML in /Users/a02xxxxx/Library/Application Support/Alfred 3/Alfred.alfredpreferences/workflows/user.workflow.484CC0B4-D305-455A-A323-A6CC62C97392/parsexml_timezone.php:5 Stack trace: #0 /Users/a02xxxxx/Library/Application Support/Alfred 3/Alfred.alfredpreferences/workflows/user.workflow.484CC0B4-D305-455A-A323-A6CC62C97392/parsexml_timezone.php(5): SimpleXMLElement->__construct('\'''\'') #1 {main} thrown in /Users/a02xxxxx/Library/Application Support/Alfred 3/Alfred.alfredpreferences/workflows/user.workflow.484CC0B4-D305-455A-A323-A6CC62C97392/parsexml_timezone.php on line 5' + tz_data_split=($tz_data) + IFS=' ' + '[' '!' Fatal error: Uncaught Exception: String could not be parsed as XML in /Users/a02xxxxx/Library/Application Support/Alfred 3/Alfred.alfredpreferences/workflows/user.workflow.484CC0B4-D305-455A-A323-A6CC62C97392/parsexml_timezone.php:5 Stack trace: '#0' /Users/a02xxxxx/Library/Application Support/Alfred '3/Alfred.alfredpreferences/workflows/user.workflow.484CC0B4-D305-455A-A323-A6CC62C97392/parsexml_timezone.php(5):' 'SimpleXMLElement->__construct('\'''\'')' '#1' '{main}' thrown in /Users/a02xxxxx/Library/Application Support/Alfred 3/Alfred.alfredpreferences/workflows/user.workflow.484CC0B4-D305-455A-A323-A6CC62C97392/parsexml_timezone.php on line 5 = OK ']' update.sh: line 31: [: too many arguments + raw_offset= + dst_offset= + new_tz_id= + new_tz_name= ++ echo '()/1' ++ bc (standard_in) 1: parse error + raw_offset= ++ echo '()/1' ++ bc (standard_in) 1: parse error + dst_offset= ++ expr + expr: syntax error + new_offset= + '[' = ']' + echo 'London|London|United Kingdom|51.5112139|-0.1198244||||UTC+' + continue + IFS= + read -r line + OIFS=' ' + IFS='|' + data=($line) + city=Paris + city_returned=Paris + country=France + latitude=48.8566140 + longitude=2.3522219 + offset= + tz_id= + tz_name= + display_offset=UTC+ + IFS=' ' +++ date +%s ++ curl --connect-timeout 10 -s 'https://maps.googleapis.com/maps/api/timezone/xml?location=48.8566140,2.3522219&timestamp=1524754016&sensor=false' + api_timezone= + OIFS=' ' + IFS=' ' ++ php parsexml_timezone.php '' + tz_data=' Fatal error: Uncaught Exception: String could not be parsed as XML in /Users/a02xxxxx/Library/Application Support/Alfred 3/Alfred.alfredpreferences/workflows/user.workflow.484CC0B4-D305-455A-A323-A6CC62C97392/parsexml_timezone.php:5 Stack trace: #0 /Users/a02xxxxx/Library/Application Support/Alfred 3/Alfred.alfredpreferences/workflows/user.workflow.484CC0B4-D305-455A-A323-A6CC62C97392/parsexml_timezone.php(5): SimpleXMLElement->__construct('\'''\'') #1 {main} thrown in /Users/a02xxxxx/Library/Application Support/Alfred 3/Alfred.alfredpreferences/workflows/user.workflow.484CC0B4-D305-455A-A323-A6CC62C97392/parsexml_timezone.php on line 5' + tz_data_split=($tz_data) + IFS=' ' + '[' '!' Fatal error: Uncaught Exception: String could not be parsed as XML in /Users/a02xxxxx/Library/Application Support/Alfred 3/Alfred.alfredpreferences/workflows/user.workflow.484CC0B4-D305-455A-A323-A6CC62C97392/parsexml_timezone.php:5 Stack trace: '#0' /Users/a02xxxxx/Library/Application Support/Alfred '3/Alfred.alfredpreferences/workflows/user.workflow.484CC0B4-D305-455A-A323-A6CC62C97392/parsexml_timezone.php(5):' 'SimpleXMLElement->__construct('\'''\'')' '#1' '{main}' thrown in /Users/a02xxxxx/Library/Application Support/Alfred 3/Alfred.alfredpreferences/workflows/user.workflow.484CC0B4-D305-455A-A323-A6CC62C97392/parsexml_timezone.php on line 5 = OK ']' update.sh: line 31: [: too many arguments + raw_offset= + dst_offset= + new_tz_id= + new_tz_name= ++ echo '()/1' ++ bc (standard_in) 1: parse error + raw_offset= ++ echo '()/1' ++ bc (standard_in) 1: parse error + dst_offset= ++ expr + expr: syntax error + new_offset= + '[' = ']' + echo 'Paris|Paris|France|48.8566140|2.3522219||||UTC+' + continue + IFS= + read -r line + OIFS=' ' + IFS='|' + data=($line) + city=Tokyo + city_returned=Tokyo + country=Japan + latitude=35.6894875 + longitude=139.6917064 + offset= + tz_id= + tz_name= + display_offset=UTC+ + IFS=' ' +++ date +%s ++ curl --connect-timeout 10 -s 'https://maps.googleapis.com/maps/api/timezone/xml?location=35.6894875,139.6917064&timestamp=1524754016&sensor=false' + api_timezone= + OIFS=' ' + IFS=' ' ++ php parsexml_timezone.php '' + tz_data=' Fatal error: Uncaught Exception: String could not be parsed as XML in /Users/a02xxxxx/Library/Application Support/Alfred 3/Alfred.alfredpreferences/workflows/user.workflow.484CC0B4-D305-455A-A323-A6CC62C97392/parsexml_timezone.php:5 Stack trace: #0 /Users/a02xxxxx/Library/Application Support/Alfred 3/Alfred.alfredpreferences/workflows/user.workflow.484CC0B4-D305-455A-A323-A6CC62C97392/parsexml_timezone.php(5): SimpleXMLElement->__construct('\'''\'') #1 {main} thrown in /Users/a02xxxxx/Library/Application Support/Alfred 3/Alfred.alfredpreferences/workflows/user.workflow.484CC0B4-D305-455A-A323-A6CC62C97392/parsexml_timezone.php on line 5' + tz_data_split=($tz_data) + IFS=' ' + '[' '!' Fatal error: Uncaught Exception: String could not be parsed as XML in /Users/a02xxxxx/Library/Application Support/Alfred 3/Alfred.alfredpreferences/workflows/user.workflow.484CC0B4-D305-455A-A323-A6CC62C97392/parsexml_timezone.php:5 Stack trace: '#0' /Users/a02xxxxx/Library/Application Support/Alfred '3/Alfred.alfredpreferences/workflows/user.workflow.484CC0B4-D305-455A-A323-A6CC62C97392/parsexml_timezone.php(5):' 'SimpleXMLElement->__construct('\'''\'')' '#1' '{main}' thrown in /Users/a02xxxxx/Library/Application Support/Alfred 3/Alfred.alfredpreferences/workflows/user.workflow.484CC0B4-D305-455A-A323-A6CC62C97392/parsexml_timezone.php on line 5 = OK ']' update.sh: line 31: [: too many arguments + raw_offset= + dst_offset= + new_tz_id= + new_tz_name= ++ echo '()/1' ++ bc (standard_in) 1: parse error + raw_offset= ++ echo '()/1' ++ bc (standard_in) 1: parse error + dst_offset= ++ expr + expr: syntax error + new_offset= + '[' = ']' + echo 'Tokyo|Tokyo|Japan|35.6894875|139.6917064||||UTC+' + continue + IFS= + read -r line + OIFS=' ' + IFS='|' + data=($line) + city=Beijing + city_returned=Beijing + country=China + latitude=39.9040300 + longitude=116.4075260 + offset= + tz_id= + tz_name= + display_offset=UTC+ + IFS=' ' +++ date +%s ++ curl --connect-timeout 10 -s 'https://maps.googleapis.com/maps/api/timezone/xml?location=39.9040300,116.4075260&timestamp=1524754016&sensor=false' + api_timezone= + OIFS=' ' + IFS=' ' ++ php parsexml_timezone.php '' + tz_data=' Fatal error: Uncaught Exception: String could not be parsed as XML in /Users/a02xxxxx/Library/Application Support/Alfred 3/Alfred.alfredpreferences/workflows/user.workflow.484CC0B4-D305-455A-A323-A6CC62C97392/parsexml_timezone.php:5 Stack trace: #0 /Users/a02xxxxx/Library/Application Support/Alfred 3/Alfred.alfredpreferences/workflows/user.workflow.484CC0B4-D305-455A-A323-A6CC62C97392/parsexml_timezone.php(5): SimpleXMLElement->__construct('\'''\'') #1 {main} thrown in /Users/a02xxxxx/Library/Application Support/Alfred 3/Alfred.alfredpreferences/workflows/user.workflow.484CC0B4-D305-455A-A323-A6CC62C97392/parsexml_timezone.php on line 5' + tz_data_split=($tz_data) + IFS=' ' + '[' '!' Fatal error: Uncaught Exception: String could not be parsed as XML in /Users/a02xxxxx/Library/Application Support/Alfred 3/Alfred.alfredpreferences/workflows/user.workflow.484CC0B4-D305-455A-A323-A6CC62C97392/parsexml_timezone.php:5 Stack trace: '#0' /Users/a02xxxxx/Library/Application Support/Alfred '3/Alfred.alfredpreferences/workflows/user.workflow.484CC0B4-D305-455A-A323-A6CC62C97392/parsexml_timezone.php(5):' 'SimpleXMLElement->__construct('\'''\'')' '#1' '{main}' thrown in /Users/a02xxxxx/Library/Application Support/Alfred 3/Alfred.alfredpreferences/workflows/user.workflow.484CC0B4-D305-455A-A323-A6CC62C97392/parsexml_timezone.php on line 5 = OK ']' update.sh: line 31: [: too many arguments + raw_offset= + dst_offset= + new_tz_id= + new_tz_name= ++ echo '()/1' ++ bc (standard_in) 1: parse error + raw_offset= ++ echo '()/1' ++ bc (standard_in) 1: parse error + dst_offset= ++ expr + expr: syntax error + new_offset= + '[' = ']' + echo 'Beijing|Beijing|China|39.9040300|116.4075260||||UTC+' + continue + IFS= + read -r line + OIFS=' ' + IFS='|' + data=($line) + city='Hong Kong' + city_returned='Hong Kong' + country='Hong Kong' + latitude=22.3964280 + longitude=114.1094970 + offset= + tz_id= + tz_name= + display_offset=UTC+ + IFS=' ' +++ date +%s ++ curl --connect-timeout 10 -s 'https://maps.googleapis.com/maps/api/timezone/xml?location=22.3964280,114.1094970&timestamp=1524754016&sensor=false' + api_timezone= + OIFS=' ' + IFS=' ' ++ php parsexml_timezone.php '' + tz_data=' Fatal error: Uncaught Exception: String could not be parsed as XML in /Users/a02xxxxx/Library/Application Support/Alfred 3/Alfred.alfredpreferences/workflows/user.workflow.484CC0B4-D305-455A-A323-A6CC62C97392/parsexml_timezone.php:5 Stack trace: #0 /Users/a02xxxxx/Library/Application Support/Alfred 3/Alfred.alfredpreferences/workflows/user.workflow.484CC0B4-D305-455A-A323-A6CC62C97392/parsexml_timezone.php(5): SimpleXMLElement->__construct('\'''\'') #1 {main} thrown in /Users/a02xxxxx/Library/Application Support/Alfred 3/Alfred.alfredpreferences/workflows/user.workflow.484CC0B4-D305-455A-A323-A6CC62C97392/parsexml_timezone.php on line 5' + tz_data_split=($tz_data) + IFS=' ' + '[' '!' Fatal error: Uncaught Exception: String could not be parsed as XML in /Users/a02xxxxx/Library/Application Support/Alfred 3/Alfred.alfredpreferences/workflows/user.workflow.484CC0B4-D305-455A-A323-A6CC62C97392/parsexml_timezone.php:5 Stack trace: '#0' /Users/a02xxxxx/Library/Application Support/Alfred '3/Alfred.alfredpreferences/workflows/user.workflow.484CC0B4-D305-455A-A323-A6CC62C97392/parsexml_timezone.php(5):' 'SimpleXMLElement->__construct('\'''\'')' '#1' '{main}' thrown in /Users/a02xxxxx/Library/Application Support/Alfred 3/Alfred.alfredpreferences/workflows/user.workflow.484CC0B4-D305-455A-A323-A6CC62C97392/parsexml_timezone.php on line 5 = OK ']' update.sh: line 31: [: too many arguments + raw_offset= + dst_offset= + new_tz_id= + new_tz_name= ++ echo '()/1' ++ bc (standard_in) 1: parse error + raw_offset= ++ echo '()/1' ++ bc (standard_in) 1: parse error + dst_offset= ++ expr + expr: syntax error + new_offset= + '[' = ']' + echo 'Hong Kong|Hong Kong|Hong Kong|22.3964280|114.1094970||||UTC+' + continue + IFS= + read -r line + OIFS=' ' + IFS='|' + data=($line) + city=Capetown + city_returned='Cape Town' + country='South Africa' + latitude=-33.9248685 + longitude=18.4240553 + offset= + tz_id= + tz_name= + display_offset=UTC+ + IFS=' ' +++ date +%s ++ curl --connect-timeout 10 -s 'https://maps.googleapis.com/maps/api/timezone/xml?location=-33.9248685,18.4240553&timestamp=1524754016&sensor=false' + api_timezone= + OIFS=' ' + IFS=' ' ++ php parsexml_timezone.php '' + tz_data=' Fatal error: Uncaught Exception: String could not be parsed as XML in /Users/a02xxxxx/Library/Application Support/Alfred 3/Alfred.alfredpreferences/workflows/user.workflow.484CC0B4-D305-455A-A323-A6CC62C97392/parsexml_timezone.php:5 Stack trace: #0 /Users/a02xxxxx/Library/Application Support/Alfred 3/Alfred.alfredpreferences/workflows/user.workflow.484CC0B4-D305-455A-A323-A6CC62C97392/parsexml_timezone.php(5): SimpleXMLElement->__construct('\'''\'') #1 {main} thrown in /Users/a02xxxxx/Library/Application Support/Alfred 3/Alfred.alfredpreferences/workflows/user.workflow.484CC0B4-D305-455A-A323-A6CC62C97392/parsexml_timezone.php on line 5' + tz_data_split=($tz_data) + IFS=' ' + '[' '!' Fatal error: Uncaught Exception: String could not be parsed as XML in /Users/a02xxxxx/Library/Application Support/Alfred 3/Alfred.alfredpreferences/workflows/user.workflow.484CC0B4-D305-455A-A323-A6CC62C97392/parsexml_timezone.php:5 Stack trace: '#0' /Users/a02xxxxx/Library/Application Support/Alfred '3/Alfred.alfredpreferences/workflows/user.workflow.484CC0B4-D305-455A-A323-A6CC62C97392/parsexml_timezone.php(5):' 'SimpleXMLElement->__construct('\'''\'')' '#1' '{main}' thrown in /Users/a02xxxxx/Library/Application Support/Alfred 3/Alfred.alfredpreferences/workflows/user.workflow.484CC0B4-D305-455A-A323-A6CC62C97392/parsexml_timezone.php on line 5 = OK ']' update.sh: line 31: [: too many arguments + raw_offset= + dst_offset= + new_tz_id= + new_tz_name= ++ echo '()/1' ++ bc (standard_in) 1: parse error + raw_offset= ++ echo '()/1' ++ bc (standard_in) 1: parse error + dst_offset= ++ expr + expr: syntax error + new_offset= + '[' = ']' + echo 'Capetown|Cape Town|South Africa|-33.9248685|18.4240553||||UTC+' + continue + IFS= + read -r line + OIFS=' ' + IFS='|' + data=($line) + city=Moscow + city_returned=Moscow + country=Russia + latitude=55.7496460 + longitude=37.6236800 + offset= + tz_id= + tz_name= + display_offset=UTC+ + IFS=' ' +++ date +%s ++ curl --connect-timeout 10 -s 'https://maps.googleapis.com/maps/api/timezone/xml?location=55.7496460,37.6236800&timestamp=1524754016&sensor=false' + api_timezone= + OIFS=' ' + IFS=' ' ++ php parsexml_timezone.php '' + tz_data=' Fatal error: Uncaught Exception: String could not be parsed as XML in /Users/a02xxxxx/Library/Application Support/Alfred 3/Alfred.alfredpreferences/workflows/user.workflow.484CC0B4-D305-455A-A323-A6CC62C97392/parsexml_timezone.php:5 Stack trace: #0 /Users/a02xxxxx/Library/Application Support/Alfred 3/Alfred.alfredpreferences/workflows/user.workflow.484CC0B4-D305-455A-A323-A6CC62C97392/parsexml_timezone.php(5): SimpleXMLElement->__construct('\'''\'') #1 {main} thrown in /Users/a02xxxxx/Library/Application Support/Alfred 3/Alfred.alfredpreferences/workflows/user.workflow.484CC0B4-D305-455A-A323-A6CC62C97392/parsexml_timezone.php on line 5' + tz_data_split=($tz_data) + IFS=' ' + '[' '!' Fatal error: Uncaught Exception: String could not be parsed as XML in /Users/a02xxxxx/Library/Application Support/Alfred 3/Alfred.alfredpreferences/workflows/user.workflow.484CC0B4-D305-455A-A323-A6CC62C97392/parsexml_timezone.php:5 Stack trace: '#0' /Users/a02xxxxx/Library/Application Support/Alfred '3/Alfred.alfredpreferences/workflows/user.workflow.484CC0B4-D305-455A-A323-A6CC62C97392/parsexml_timezone.php(5):' 'SimpleXMLElement->__construct('\'''\'')' '#1' '{main}' thrown in /Users/a02xxxxx/Library/Application Support/Alfred 3/Alfred.alfredpreferences/workflows/user.workflow.484CC0B4-D305-455A-A323-A6CC62C97392/parsexml_timezone.php on line 5 = OK ']' update.sh: line 31: [: too many arguments + raw_offset= + dst_offset= + new_tz_id= + new_tz_name= ++ echo '()/1' ++ bc (standard_in) 1: parse error + raw_offset= ++ echo '()/1' ++ bc (standard_in) 1: parse error + dst_offset= ++ expr + expr: syntax error + new_offset= + '[' = ']' + echo 'Moscow|Moscow|Russia|55.7496460|37.6236800||||UTC+' + continue + IFS= + read -r line + OIFS=' ' + IFS='|' + data=($line) + city=Dubai + city_returned=Dubai + country='United Arab Emirates' + latitude=25.2711390 + longitude=55.3074850 + offset= + tz_id= + tz_name= + display_offset=UTC+ + IFS=' ' +++ date +%s ++ curl --connect-timeout 10 -s 'https://maps.googleapis.com/maps/api/timezone/xml?location=25.2711390,55.3074850&timestamp=1524754016&sensor=false' + api_timezone= + OIFS=' ' + IFS=' ' ++ php parsexml_timezone.php '' + tz_data=' Fatal error: Uncaught Exception: String could not be parsed as XML in /Users/a02xxxxx/Library/Application Support/Alfred 3/Alfred.alfredpreferences/workflows/user.workflow.484CC0B4-D305-455A-A323-A6CC62C97392/parsexml_timezone.php:5 Stack trace: #0 /Users/a02xxxxx/Library/Application Support/Alfred 3/Alfred.alfredpreferences/workflows/user.workflow.484CC0B4-D305-455A-A323-A6CC62C97392/parsexml_timezone.php(5): SimpleXMLElement->__construct('\'''\'') #1 {main} thrown in /Users/a02xxxxx/Library/Application Support/Alfred 3/Alfred.alfredpreferences/workflows/user.workflow.484CC0B4-D305-455A-A323-A6CC62C97392/parsexml_timezone.php on line 5' + tz_data_split=($tz_data) + IFS=' ' + '[' '!' Fatal error: Uncaught Exception: String could not be parsed as XML in /Users/a02xxxxx/Library/Application Support/Alfred 3/Alfred.alfredpreferences/workflows/user.workflow.484CC0B4-D305-455A-A323-A6CC62C97392/parsexml_timezone.php:5 Stack trace: '#0' /Users/a02xxxxx/Library/Application Support/Alfred '3/Alfred.alfredpreferences/workflows/user.workflow.484CC0B4-D305-455A-A323-A6CC62C97392/parsexml_timezone.php(5):' 'SimpleXMLElement->__construct('\'''\'')' '#1' '{main}' thrown in /Users/a02xxxxx/Library/Application Support/Alfred 3/Alfred.alfredpreferences/workflows/user.workflow.484CC0B4-D305-455A-A323-A6CC62C97392/parsexml_timezone.php on line 5 = OK ']' update.sh: line 31: [: too many arguments + raw_offset= + dst_offset= + new_tz_id= + new_tz_name= ++ echo '()/1' ++ bc (standard_in) 1: parse error + raw_offset= ++ echo '()/1' ++ bc (standard_in) 1: parse error + dst_offset= ++ expr + expr: syntax error + new_offset= + '[' = ']' + echo 'Dubai|Dubai|United Arab Emirates|25.2711390|55.3074850||||UTC+' + continue + IFS= + read -r line + mv -f '/Users/a02xxxxx/Library/Application Support/Alfred 2/Workflow Data/carlosnz.timezones/update_timezones.txt' '/Users/a02xxxxx/Library/Application Support/Alfred 2/Workflow Data/carlosnz.timezones/timezones.txt' + '[' = 1 ']' update.sh: line 78: [: =: unary operator expected + '[' -z ']' + change=0 + '[' 0 = 1 ']' + change_display='0 changes' + echo -n 'City list updated successfully, with 0 changes.' -n City list updated successfully, with 0 changes. + '[' 0 -gt 0 ']'
  3. Hi, I am not getting any good timezone anymore after running timezone update i get zero results. See images. I am currently in China FYI not sure if where my laptop is it creates an issue with the web? I mean i am VPN into a Dallas server, and have always done this timezone check when on VPN... I already uncommented everything on the add city file and the timezone update and here is what i notice. The Add city file doesn't output anything in the xml file... Thanks Miguel
  4. Hi, Thank you for this workflow, it looks really cool, but i have not been able to get this to work. I got my API from Weather Underground here: https://www.wunderground.com/weather/api/, but i have not been able to use this workflow. It just sits on 'thinking' and that is it then it shows me the google search and nothing.. Using this: http://www.packal.org/workflow/weather Any advice? Thanks Miguel
  5. Hi, I can't get this to work for me. I feel i am doing something wrong. Here is what i do know and my situation. My company does not let me install todoist, so this workflow would help to some how input my tasks quickly, and view them well enough without the need for the software, and i can use the webapp to view my tasks as well, but that is a pain so really hoping to get this workflow going. Here is what i see. I can type "tod" and i get these results, but when i click enter it goes into google or amazon to search... Very frustrating... Here is the version i have. v4.0.2
×
×
  • Create New...