Parrot Flower Power - Web API

Posted on
Sat Apr 30, 2016 1:09 pm
Different Computers offline
User avatar
Posts: 2549
Joined: Jan 02, 2016
Location: East Coast

Re: Parrot Flower Power - Web API

Now I need to see if I can afford some of these Parrots!

Could some kind soul look at this example above and tell me whether it would be a good model for trying to make the BloomSky weather station APIwork with Indigo? I'm willing to poke at it if this framework could be repurposed for it.

SmartThings refugee, so happy to be on Indigo. Monterey on a base M1 Mini w/Harmony Hub, Hue, DomoPad, Dynamic URL, Device Extensions, HomeKitLink, Grafana, Plex, uniFAP, Fantastic Weather, Nanoleaf, LED Simple Effects, Bond Home, Camect.

Posted on
Mon May 02, 2016 5:04 am
Mirko offline
Posts: 79
Joined: Dec 04, 2014

Re: Parrot Flower Power - Web API

Hi Matt,

To be honest I do not know how to install this part: Requests.

I opened copy/paste it in Smultron and I saved it.

Maybe you can help me out here.

Thanks

Mirko

Posted on
Mon May 02, 2016 5:49 am
matt (support) offline
Site Admin
User avatar
Posts: 21417
Joined: Jan 27, 2003
Location: Texas

Re: Parrot Flower Power - Web API

Open the Terminal application an d copy/paste in:
Code: Select all
curl -O https://bootstrap.pypa.io/get-pip.py
sudo python2.6 get-pip.py
sudo pip requests

Image

Posted on
Mon May 02, 2016 10:11 am
Mirko offline
Posts: 79
Joined: Dec 04, 2014

Re: Parrot Flower Power - Web API

Hi Matt,

I get


curl -O https://bootstrap.pypa.io/get-pip.py
sudo python2.6 get-pip.py
sudo pip requestsminiserver:~ admin$ curl -O https://bootstrap.pypa.io/get-pip.py
sudo python2.6 get-pip.py
sudo pip requests

curl: (35) Unknown SSL protocol error in connection to bootstrap.pypa.io:443
miniserver:~ admin$ sudo python2.6 get-pip.py
Password:
python2.6: can't open file 'get-pip.py': [Errno 2] No such file or directory
miniserver:~ admin$

This is on my MacMiniserver 10.6.8

Do you know what I should do next?

Regards,

Mirko

Posted on
Tue May 03, 2016 3:42 pm
matt (support) offline
Site Admin
User avatar
Posts: 21417
Joined: Jan 27, 2003
Location: Texas

Re: Parrot Flower Power - Web API

In the curl lines replace "https" with "http" and I believe it will work around the problem/error you are seeing.

Image

Posted on
Wed May 04, 2016 3:25 am
Mirko offline
Posts: 79
Joined: Dec 04, 2014

Re: Parrot Flower Power - Web API

Now I get (without having been able to change 'https' into 'http')


DEPRECATION: Python 2.6 is no longer supported by the Python core team, please upgrade your Python. A future version of pip will drop support for Python 2.6
The directory '/Users/admin/Library/Caches/pip/http' or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
The directory '/Users/admin/Library/Caches/pip' or its parent directory is not owned by the current user and caching wheels has been disabled. check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
/tmp/tmpNfmAhU/pip.zip/pip/_vendor/requests/packages/urllib3/util/ssl_.py:315: SNIMissingWarning: An HTTPS request has been made, but the SNI (Subject Name Indication) extension to TLS is not available on this platform. This may cause the server to present an incorrect TLS certificate, which can cause validation failures. For more information, see https://urllib3.readthedocs.org/en/late ... ingwarning.
/tmp/tmpNfmAhU/pip.zip/pip/_vendor/requests/packages/urllib3/util/ssl_.py:120: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. For more information, see https://urllib3.readthedocs.org/en/late ... ormwarning.
Requirement already up-to-date: pip in /Library/Python/2.6/site-packages
/tmp/tmpNfmAhU/pip.zip/pip/_vendor/requests/packages/urllib3/util/ssl_.py:120: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. For more information, see https://urllib3.readthedocs.org/en/late ... ormwarning.

Posted on
Sat May 07, 2016 10:20 am
PME999 offline
Posts: 54
Joined: Jul 28, 2012

Re: Parrot Flower Power - Web API

Hello
I have exactly the same message from the terminal .
I'm am very interested in any solution
Thanks a lot
Patrice

Who is online

Users browsing this forum: No registered users and 2 guests

cron