Choose style:

Author Topic: Cert issue with wego CLI weather app  (Read 1297 times)

0 Members and 1 Guest are viewing this topic.

Offline AndyInMokum

  • Global Moderator
  • Hero
  • *****
  • Posts: 4893
  • Karma: 1053
  • "Keep on Rockin' in the Free World"
    • View Profile
  • Peppermint version(s): PM 9 & PM 10 (64-bit)
Cert issue with wego CLI weather app
« on: May 31, 2015, 05:07:53 am »
It's Sunday and I'm bored.  I thought I'd try my hand at installing and configuring a very cool looking command line weather app called, wego.  I've installed the Go programming language packages and the dependencies.
Code: [Select]
apt install golang-go git
I've got the $GOPATH all sorted:
Code: [Select]
cd ~
Code: [Select]
mkdir wego
Code: [Select]
export GOPATH=/home/<username>/wego
I've installed wego using:
Code: [Select]
go get github.com/schachmat/wego
That's gone fine.  Everything is in the folder as defined by the path:
Code: [Select]
andy@andy-AMILO-Li3710 ~/wego $ ls
bin  pkg  src
andy@andy-AMILO-Li3710 ~/wego $
There is a file:
Code: [Select]
~/.wegorc
That needs configuring with an API key code from World Weather Online.  This I've retrieved and entered into:
Code: [Select]
~/.wegorc
Code: [Select]
{
"APIKey":"f3e0b0c80624fa1f7966027******",
"City": "Amsterdam",
"Imperial": false,
"Lang": "en"
}
I should now be able to launch the wego weather app with:
Code: [Select]
cd ~/wego/bin && ./wego
For convenience, I've copied it to:
Code: [Select]
cp -v ~/wego/bin/wego /usr/bin/wego
Rebooted the system for this to take effect.  This is the output I get when trying to invoke wego from both locations:
Code: [Select]
andy@andy-AMILO-Li3710 ~ $ cd ~/wego/bin && ./wego
2015/05/31 11:02:57 Get https://api.worldweatheronline.com/free/v2/weather.ashx?key=f3e0b0c80624fa1f79660272d6726&q=Amsterdam&format=json&num_of_days=3&tp=3&lang=en: x509: certificate signed by unknown authority (possibly because of "x509: cannot verify signature: algorithm unimplemented" while trying to verify candidate authority certificate "COMODO RSA Certification Authority")
andy@andy-AMILO-Li3710 ~/wego/bin $ cd ~
andy@andy-AMILO-Li3710 ~ $ wego
2015/05/31 11:03:37 Get https://api.worldweatheronline.com/free/v2/weather.ashx?key=f3e0b0c80624fa1f79660272d6726&q=Amsterdam&format=json&num_of_days=3&tp=3&lang=en: x509: certificate signed by unknown authority (possibly because of "x509: cannot verify signature: algorithm unimplemented" while trying to verify candidate authority certificate "COMODO RSA Certification Authority")
andy@andy-AMILO-Li3710 ~ $
It should be working.  I've triple checked the API key code and that's fine.  Any Ideas  :-\?
« Last Edit: May 31, 2015, 07:11:39 am by AndyInMokum »
Backup! Backup! Backup! If you're missing any of these -  you ain't Backed Up!
For my system info please L/click HERE.