asfrank16 Posted November 3, 2015 Share Posted November 3, 2015 I still cannot get config-forecast to work - it just brings up a websearch. Link to comment
kejadlen Posted November 3, 2015 Author Share Posted November 3, 2015 Are you using version 1.0.1? https://github.com/kejadlen/forecast.alfredworkflow/releases/download/v1.0.1/forecast.alfredworkflow Link to comment
asfrank16 Posted November 3, 2015 Share Posted November 3, 2015 Yes I am using that version Link to comment
kejadlen Posted November 4, 2015 Author Share Posted November 4, 2015 Does the workflow look like this in Alfred? Link to comment
asfrank16 Posted November 4, 2015 Share Posted November 4, 2015 Yes it does. When I begin to write config-forecast into alfred it shows the config item - but if I hit return, it completes the title in alfred and then lists search engines underneath. Same if I type the whole string (config-forecast) - as soon as I type the last "t" it immediately gets rid of the config-forecast item below the entry box and just lists search engines. I tried deleting the workflow and re-downloading the one from the link you provided and get the same result. Link to comment
deanishe Posted November 4, 2015 Share Posted November 4, 2015 Alfred's fallback searches are symptomatic of a failed workflow. Open the workflow in Alfred, open the debugger, and then run the workflow. Link to comment
asfrank16 Posted November 4, 2015 Share Posted November 4, 2015 It gave an error. here is the gist of it: [ERROR: alfred.workflow.input.scriptfilter] Code 1: /Users/adamfrank/Library/Application Support/Alfred 2/Alfred.alfredpreferences/workflows/user.workflow.6D4896F1-26C2-4E79-9DF2-F3D68D7F0A89/vendor/bundle/ruby/2.0.0/gems/alphred-1.1.0/lib/alphred/config.rb:20:in `initialize': No such file or directory - /Users/adamfrank/Library/Application Support/Alfred 2/Workflow Data/com.kejadlen.forecast/config.json (Errno::ENOENT) Link to comment
kejadlen Posted November 5, 2015 Author Share Posted November 5, 2015 Ah, found the issue - my apologies, this release should hopefully fix it: https://github.com/kejadlen/forecast.alfredworkflow/releases/download/v1.0.2/forecast.alfredworkflow Link to comment
asfrank16 Posted November 5, 2015 Share Posted November 5, 2015 Thank you. The Config part now works. However I have entered the api code, but when I type forecast, it again gives me the default search engines. Not sure if I am missing something or not. I got the api from the forecast.io link and entered it into the config. I also tried the google api as well, and that did not work either. Link to comment
kejadlen Posted November 6, 2015 Author Share Posted November 6, 2015 Can you check and see if there are any other error messages? (Note to self: add error messages to the workflow for the next version.) Link to comment
asfrank16 Posted November 6, 2015 Share Posted November 6, 2015 Here is what I get: [ERROR: alfred.workflow.input.scriptfilter] Code 1: /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/open-uri.rb:353:in `open_http': 400 Bad Request (OpenURI::HTTPError) from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/open-uri.rb:709:in `buffer_open' from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/open-uri.rb:210:in `block in open_loop' from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/open-uri.rb:208:in `catch' from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/open-uri.rb:208:in `open_loop' from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/open-uri.rb:149:in `open_uri' from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/open-uri.rb:689:in `open' from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/open-uri.rb:34:in `open' from /Users/adamfrank/Library/Application Support/Alfred 2/Alfred.alfredpreferences/workflows/user.workflow.CF5444F0-A77A-4022-8010-679B9CE17075/forecaster.rb:21:in `forecast' from /Users/adamfrank/Library/Application Support/Alfred 2/Alfred.alfredpreferences/workflows/user.workflow.CF5444F0-A77A-4022-8010-679B9CE17075/forecaster.rb:8:in `forecast' from forecast.rb:60:in `<main>' Link to comment
kejadlen Posted November 7, 2015 Author Share Posted November 7, 2015 What config settings are you using? You need at minimum the Forecast API key. Then you need a way to get your location - either the Google API key for geolocation or setting a default location/lat/long. Link to comment
6farer Posted November 8, 2015 Share Posted November 8, 2015 Hey. Noticed you updated the workflow to fix the missing config file. Great! Packal seems to be out of date still. I downloaded from there and had to debug to see the config file was missing. Great work otherwise. Also your friend up there probably forgot to set all the keys after he updated. Link to comment
brogeorge Posted November 13, 2015 Share Posted November 13, 2015 Nice workflow you created! I couldn't figure out how to change the units though. It seems like when I type "si", there's should be a row for me to set unit. Link to comment
kejadlen Posted November 13, 2015 Author Share Posted November 13, 2015 Looks like you're using a pretty old version of the workflow - try updating to the latest? https://github.com/kejadlen/forecast.alfredworkflow/releases/download/v1.0.2/forecast.alfredworkflow Link to comment
brogeorge Posted November 14, 2015 Share Posted November 14, 2015 no. It's 1.1.1 that I downloaded from github. should be the newest. Link to comment
kejadlen Posted November 14, 2015 Author Share Posted November 14, 2015 I'm not sure why your keyword is "forecast-config" then... it should be "config-forecast", and the icon should look different. Link to comment
jazzyblues Posted November 18, 2015 Share Posted November 18, 2015 I'm also getting a 400 Bad Request error - any tips on debugging this and figuring out what's going on? I've checked to make sure that my API keys are set but I'm still having this error. Link to comment
kejadlen Posted November 21, 2015 Author Share Posted November 21, 2015 The only thing you can do for now is to open the debug pane in the workflow in Alfred and see what that says - I'm working on adding better errors to the workflow, but am pretty busy at the moment. Link to comment
Amator Posted April 1, 2016 Share Posted April 1, 2016 FYI, I also have forecast-config and when I type that I get options to unset everything even though I haven't set the API keys yet. Screenshot: https://i.imgur.com/t5ncqnx.png Error message: Starting debug for 'Forecast' [ERROR: alfred.workflow.input.scriptfilter] Code 1: /Users/dgalloway/Dropbox/alfredBackup/Alfred.alfredpreferences/workflows/user.workflow.58484AF6-AC64-4E44-B750-7926730F7D66/geocoder.rb:24:in `geocode': undefined method `[]' for nil:NilClass (NoMethodError) from /Users/dgalloway/Dropbox/alfredBackup/Alfred.alfredpreferences/workflows/user.workflow.58484AF6-AC64-4E44-B750-7926730F7D66/geocoder.rb:9:in `geocode' from /Users/dgalloway/Dropbox/alfredBackup/Alfred.alfredpreferences/workflows/user.workflow.58484AF6-AC64-4E44-B750-7926730F7D66/location.rb:13:in `geocode!' from /Users/dgalloway/Dropbox/alfredBackup/Alfred.alfredpreferences/workflows/user.workflow.58484AF6-AC64-4E44-B750-7926730F7D66/location.rb:9:in `initialize' from forecast.rb:51:in `new' from forecast.rb:51:in `<main>' Link to comment
kejadlen Posted April 5, 2016 Author Share Posted April 5, 2016 @Amator: Do you know what version of the workflow you're using? Link to comment
kejadlen Posted April 6, 2016 Author Share Posted April 6, 2016 I released 1.0.3 to address some bugs around initial config that should hopefully address some of these issues: https://github.com/kejadlen/forecast.alfredworkflow/releases Link to comment
Amator Posted April 7, 2016 Share Posted April 7, 2016 @Amator: Do you know what version of the workflow you're using? Not sure. I don't see any version numbers in the Workflow details: https://i.imgur.com/MEn2eZS.png or in the file info: https://i.imgur.com/bfZseIm.png Link to comment
kejadlen Posted April 10, 2016 Author Share Posted April 10, 2016 Well, that was pretty silly of me. I'll put the version somewhere in the next release. The latest versions of this workflow should have "config-forecast" instead of "forecast-config". If you're still seeing the latter, can you try deleting the workflow and installing the latest one? Link to comment
gizbug Posted June 10, 2016 Share Posted June 10, 2016 Any update planned for Alfred 3? Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now