Purple Air sensor plugin

Posted on
Mon May 23, 2022 8:21 pm
norcoscia offline
User avatar
Posts: 1206
Joined: Sep 09, 2015

Re: Purple Air sensor plugin

Thanks - I’ll look at it tomorrow :-)

_______
Norm

Posted on
Fri May 27, 2022 7:03 am
earache offline
Posts: 20
Joined: Mar 29, 2013

Re: Purple Air sensor plugin

Hi FlyingDiver,

First off, love your plugins! Thanks for all your work.

I just started to get this error yesterday. Plugin and Indigo are up to date. The PurpleAir map seems to be working normally. Any idea about what's going on?

Code: Select all
   miniPurple Error                PurpleAir Wikiup: getData 'results' key missing:
<html><head>
<meta http-equiv="content-type" content="text/html;charset=utf-8">
<title>500 Server Error</title>
</head>
<body text=#000000 bgcolor=#ffffff>
<h1>Error: Server Error</h1>
<h2>The server encountered an error and could not complete your request.<p>Please try again in 30 seconds.</h2>
<h2></h2>
</body></html>

Posted on
Fri May 27, 2022 7:13 am
FlyingDiver offline
User avatar
Posts: 7213
Joined: Jun 07, 2014
Location: Southwest Florida, USA

Re: Purple Air sensor plugin

Hmm. Looks like they updated the API and now require an API key to make requests. I'll have to look into that.

https://github.com/FlyingDiver/Indigo-m ... e/issues/3

joe (aka FlyingDiver)
my plugins: http://forums.indigodomo.com/viewforum.php?f=177

Posted on
Fri May 27, 2022 2:41 pm
FlyingDiver offline
User avatar
Posts: 7213
Joined: Jun 07, 2014
Location: Southwest Florida, USA

Re: Purple Air sensor plugin

An API Key is now required. Plus they made changes to the API itself.

Pre-release for testing: https://github.com/FlyingDiver/Indigo-m ... g/2202.1.0

Read the ReadMe for instructions on getting your API Key.

joe (aka FlyingDiver)
my plugins: http://forums.indigodomo.com/viewforum.php?f=177

Posted on
Fri May 27, 2022 4:49 pm
wikner offline
Posts: 181
Joined: Nov 02, 2003

Re: Purple Air sensor plugin

I got an API and installed the Beta plugin, but there is no Configure submenu in the Plugins/miniPurple menu, so I don't see how to enter it.

Posted on
Fri May 27, 2022 4:54 pm
wikner offline
Posts: 181
Joined: Nov 02, 2003

Re: Purple Air sensor plugin

I mean an API key.

Posted on
Fri May 27, 2022 4:59 pm
FlyingDiver offline
User avatar
Posts: 7213
Joined: Jun 07, 2014
Location: Southwest Florida, USA

Re: Purple Air sensor plugin

Please confirm what plugin version you're running.

joe (aka FlyingDiver)
my plugins: http://forums.indigodomo.com/viewforum.php?f=177

Posted on
Fri May 27, 2022 5:02 pm
wikner offline
Posts: 181
Joined: Nov 02, 2003

Re: Purple Air sensor plugin

Please confirm what plugin version you're running.

2022.1.0

Posted on
Fri May 27, 2022 5:31 pm
wikner offline
Posts: 181
Joined: Nov 02, 2003

Re: Purple Air sensor plugin

Is that the right version? I have now downloaded it several times from the GitHub site, https://github.com/FlyingDiver/Indigo-miniPurple/releases/tag/2202.1.0

Posted on
Fri May 27, 2022 5:55 pm
FlyingDiver offline
User avatar
Posts: 7213
Joined: Jun 07, 2014
Location: Southwest Florida, USA

Re: Purple Air sensor plugin

Yeas, that's correct. So you don't see these at all?
Attachments
Screen Shot 2022-05-27 at 7.54.42 PM.png
Screen Shot 2022-05-27 at 7.54.42 PM.png (92.87 KiB) Viewed 1878 times
Screen Shot 2022-05-27 at 7.54.25 PM.png
Screen Shot 2022-05-27 at 7.54.25 PM.png (145.72 KiB) Viewed 1878 times

joe (aka FlyingDiver)
my plugins: http://forums.indigodomo.com/viewforum.php?f=177

Posted on
Fri May 27, 2022 6:17 pm
wikner offline
Posts: 181
Joined: Nov 02, 2003

Re: Purple Air sensor plugin

No, I wasn't seeing those. I decided to try shutting down and restarting the Indigo Server and Client. To my surprise, a dialog informed me of a later version of Indigo. I had been sure that I was up to date, but I maintain two different Indigo installations, so maybe I only upgraded one of them.

I hoped that would fix it, but no, it hasn't. Here's a screen shot.

Posted on
Fri May 27, 2022 6:22 pm
wikner offline
Posts: 181
Joined: Nov 02, 2003

Re: Purple Air sensor plugin

I had to reduce the file resolution to get it to upload.
Attachments
Screen Shot 2022-05-27 at 6.15.22 PM.jpg
Screen Shot 2022-05-27 at 6.15.22 PM.jpg (504.7 KiB) Viewed 1869 times

Posted on
Fri May 27, 2022 6:24 pm
FlyingDiver offline
User avatar
Posts: 7213
Joined: Jun 07, 2014
Location: Southwest Florida, USA

Re: Purple Air sensor plugin

Well, the red dot means the plugin's not actually running, which is why you don't get a config dialog. What do you see in the log when you Reload the plugin?

joe (aka FlyingDiver)
my plugins: http://forums.indigodomo.com/viewforum.php?f=177

Posted on
Fri May 27, 2022 6:27 pm
wikner offline
Posts: 181
Joined: Nov 02, 2003

Re: Purple Air sensor plugin

FlyingDiver wrote:
Well, the red dot means the plugin's not actually running, which is why you don't get a config dialog. What do you see in the log when you Reload the plugin?

Code: Select all
May 27, 2022 at 6:26:00 PM
   Reloading plugin "miniPurple 2022.1.0" using API v3.0
   Starting plugin "miniPurple 2022.1.0" (pid 59685)
   miniPurple Error                API Read Key must be specified in Plugin Config
   miniPurple Error                Error in plugin execution InitializeMain:

  File "<string>", line 1, in <module>
  File "plugin.py", line 39, in __init__
type: ('api_key_type',)

   Stopping plugin "miniPurple 2022.1.0" (pid 59685)
   Stopped plugin "miniPurple 2022.1.0"

Posted on
Fri May 27, 2022 6:28 pm
FlyingDiver offline
User avatar
Posts: 7213
Joined: Jun 07, 2014
Location: Southwest Florida, USA

Re: Purple Air sensor plugin

Hmm. I thought I worked around that issue. Let me work on it. That's why it's a pre-release.

joe (aka FlyingDiver)
my plugins: http://forums.indigodomo.com/viewforum.php?f=177

Who is online

Users browsing this forum: No registered users and 1 guest