belchertown skin

360 views
Skip to first unread message

ord...@billandcorena.com

unread,
Jan 26, 2021, 12:06:56 PM1/26/21
to weewx...@googlegroups.com

Hi what would be causing all this as I get a good webpage to display after each update but with this in log every loop?????

 

 

 

 

an 26 08:22:02

raspberrypi weewx[22225] INFO weewx.restx: Wunderground:Posting not enabled. Jan 26 08:22:02 raspberrypi weewx[22225] INFOweewx.restx:

PWSweather: Posting not enabled. Jan 26 08:22:02 raspberrypi weewx[22225]INFO weewx.restx:

CWOP: Posting not enabled.

Jan 26 08:22:02 raspberrypi weewx[22225] INFO weewx.restx: WOW: Posting not enabled. Jan 26 08:22:02 raspberrypi weewx[22225] INFO weewx.restx:

AWEKAS: Posting not enabled. Jan 26 08:22:02 raspberrypi weewx[22225] INFO __main__: Starting up weewx version 4.3.0 Jan 26 08:22:03 raspberrypi weewx[22225] INFO weewx.engine: Clock error is 3.18 seconds (positive is fast) Jan 26 08:22:03 raspberrypi weewx[22225] INFO

weewx.engine: Using binding 'wx_binding' to database 'weewx.sdb' Jan 26

08:22:03 raspberrypi weewx[22225] INFO weewx.manager: Starting backfill of daily summaries Jan 26 08:22:05 raspberrypi weewx[22225] INFO

weewx.engine: Starting main packet loop. Jan 26 08:25:14 raspberrypi weewx[22225] INFO weewx.manager: Added record 2021-01-26 08:25:00 MST

(1611674700) to database 'weewx.sdb' Jan 26 08:25:14 raspberrypi weewx[22225] INFO weewx.manager: Added record 2021-01-26 08:25:00 MST

(1611674700) to daily summary in 'weewx.sdb' Jan 26 08:25:17 raspberrypi weewx[22225] INFO weewx.cheetahgenerator: Generated 8 files for report SeasonsReport in 1.77 seconds Jan 26 08:25:17 raspberrypi weewx[22225] INFO weewx.imagegenerator: Generated 15 images for report SeasonsReport in 0.67 seconds Jan 26 08:25:17 raspberrypi weewx[22225] INFO weewx.reportengine: Copied 5 files to /var/www/html/weewx Jan 26

08:25:17 raspberrypi weewx[22225] INFO user.belchertown: version 1.2 Jan 26 08:25:17 raspberrypi weewx[22225] ERROR user.belchertown: Error getting AQI from Aeris weather. The error was:#012list index out of range#012The response from the Aeris AQI server was:#012[{'success':

True, 'error': {'code': 'warn_no_data', 'description': 'Valid request.

No results available based on your query parameters.'}, 'response':

[]}]#012The URL being used

is:#012https://api.aerisapi.com/airquality/closest?p=42.8375,-103.0094&format=json&radius=50mi&limit=1&client_id=*******************

Jan 26 08:25:18 raspberrypi weewx[22225] ERROR user.belchertown: Error getting AQI from Aeris weather. The error was:#012list index out of range#012The response from the Aeris AQI server was:#012[{'success':

True, 'error': {'code': 'warn_no_data', 'description': 'Valid request.

No results available based on your query parameters.'}, 'response':

[]}]#012The URL being used

is:#012https://api.aerisapi.com/airquality/closest?p=42.8375,-103.0094&format=json&radius=50mi&limit=1&client_id=*********************

getting AQI from Aeris weather. The error was:#012list index out of range#012The response from the Aeris AQI server was:#012[{'success':

True, 'error': {'code': 'warn_no_data', 'description': 'Valid request.

No results available based on your query parameters.'}, 'response':

[]}]#012The URL being used

is:#012https://api.aerisapi.com/airquality/closest?p=42.8375,-103.0094&format=json&radius=50mi&limit=1&client_id=************************

Jan 26 08:25:19 raspberrypi weewx[22225] ERROR user.belchertown: Error getting AQI from Aeris weather. The error was:#012list index out of range#012The response from the Aeris AQI server was:#012[{'success':

True, 'error': {'code': 'warn_no_data', 'description': 'Valid request.

No results available based on your query parameters.'}, 'response':

[]}]#012The URL being used

is:#012https://api.aerisapi.com/airquality/closest?p=42.8375,-103.0094&format=json&radius=50mi&limit=1&client_id=**********************

Jan 26 08:25:19 raspberrypi weewx[22225] ERROR user.belchertown: Error getting AQI from Aeris weather. The error was:#012list index out of range#012The response from the Aeris AQI server was:#012[{'success':

True, 'error': {'code': 'warn_no_data', 'description': 'Valid request.

No results available based on your query parameters.'}, 'response':

[]}]#012The URL being used

is:#012https://api.aerisapi.com/airquality/closest?p=42.8375,-103.0094&format=json&radius=50mi&limit=1&client_id=*************************

Jan 26 08:25:19 raspberrypi weewx[22225] ERROR user.belchertown: Error getting AQI from Aeris weather. The error was:#012list index out of range#012The response from the Aeris AQI server was:#012[{'success':

True, 'error': {'code': 'warn_no_data', 'description': 'Valid request.

No results available based on your query parameters.'}, 'response':

[]}]#012The URL being used

is:#012https://api.aerisapi.com/airquality/closest?p=42.8375,-103.0094&format=json&radius=50mi&limit=1&client_id=*****************************

Jan 26 08:25:19 raspberrypi weewx[22225] ERROR user.belchertown: Error getting AQI from Aeris weather. The error was:#012list index out of range#012The response from the Aeris AQI server was:#012[{'success':

True, 'error': {'code': 'warn_no_data', 'description': 'Valid request.

No results available based on your query parameters.'}, 'response':

[]}]#012The URL being used

is:#012https://api.aerisapi.com/airquality/closest?p=42.8375,-103.0094&format=json&radius=50mi&limit=1&client_id=********************************

Jan 26 08:25:20 raspberrypi weewx[22225] ERROR user.belchertown: Error getting AQI from Aeris weather. The error was:#012list index out of range#012The response from the Aeris AQI server was:#012[{'success':

True, 'error': {'code': 'warn_no_data', 'description': 'Valid request.

No results available based on your query parameters.'}, 'response':

[]}]#012The URL being used

is:#012https://api.aerisapi.com/airquality/closest?p=42.8375,-103.0094&format=json&radius=50mi&limit=1&client_id=********************************

Jan 26 08:25:20 raspberrypi weewx[22225] ERROR user.belchertown: Error getting AQI from Aeris weather. The error was:#012list index out of range#012The response from the Aeris AQI server was:#012[{'success':

True, 'error': {'code': 'warn_no_data', 'description': 'Valid request.

No results available based on your query parameters.'}, 'response':

[]}]#012The URL being used

is:#012https://api.aerisapi.com/airquality/closest?p=42.8375,-103.0094&format=json&radius=50mi&limit=1&client_id=*********************************

Jan 26 08:25:20 raspberrypi weewx[22225] ERROR user.belchertown: Error getting AQI from Aeris weather. The error was:#012list index out of range#012The response from the Aeris AQI server was:#012[{'success':

True, 'error': {'code': 'warn_no_data', 'description': 'Valid request.

No results available based on your query parameters.'}, 'response':

[]}]#012The URL being used

is:#012https://api.aerisapi.com/airquality/closest?p=42.8375,-103.0094&format=json&radius=50mi&limit=1&client_id=dgm******************************

Jan 26 08:25:20 raspberrypi weewx[22225] ERROR user.belchertown: Error getting AQI from Aeris weather. The error was:#012list index out of range#012The response from the Aeris AQI server was:#012[{'success':

True, 'error': {'code': 'warn_no_data', 'description': 'Valid request.

No results available based on your query parameters.'}, 'response':

[]}]#012The URL being used

is:#012https://api.aerisapi.com/airquality/closest?p=42.8375,-103.0094&format=json&radius=50mi&limit=1&client_id=*******************

Jan 26 08:25:21 raspberrypi weewx[22225] INFO weewx.cheetahgenerator:

Generated 11 files for report Belchertown in 3.76 seconds Jan 26

08:25:21 raspberrypi weewx[22225] INFO weewx.reportengine: Copied 37 files to /var/www/html/weewx/belchertown Jan 26 08:30:14 raspberrypi weewx[22225] INFO weewx.manager: Added record 2021-01-26 08:30:00 MST

(1611675000) to database 'weewx.sdb' Jan 26 08:30:14 raspberrypi weewx[22225] INFO weewx.manager: Added record 2021-01-26 08:30:00 MST

(1611675000) to daily summary in 'weewx.sdb' Jan 26 08:30:15 raspberrypi weewx[22225] INFO weewx.cheetahgenerator: Generated 8 files for report SeasonsReport in 0.74 seconds Jan 26 08:30:16 raspberrypi weewx[22225] INFO weewx.imagegenerator: Generated 15 images for report SeasonsReport in 0.66 seconds Jan 26 08:30:16 raspberrypi weewx[22225] INFO weewx.reportengine: Copied 0 files to /var/www/html/weewx

 

 

 

joh....@gmail.com

unread,
Feb 5, 2021, 2:38:58 AM2/5/21
to weewx-user

Hi,

I have the same issue. but no solution so far
Message has been deleted

vince

unread,
Feb 11, 2021, 7:47:33 PM2/11/21
to weewx-user
You really shouldn't post your Aeris private API key and secret.....I'd suggest you change them and disable the old one.



On Thursday, February 11, 2021 at 3:47:50 PM UTC-8 tim lambert wrote:
Hi,

Two questions on this topic:

1.  Which config parameter(s) did you use to set the aeris url for the Belchertown skin?  In my case:  https://api.aerisapi.com/airquality/45.349518,-122.823247?&format=json&client_id=RPt5vXyj9IavCW5i7hvwY&client_secret=BQEa1WWhdpGBk9jRNwTO9jKy0yp0WTkVJTicZOpp which does resolve with information

2.  Has the issue you reported been resolved?

Thanks in advance.

tim lambert

unread,
Feb 11, 2021, 8:01:59 PM2/11/21
to weewx-user
Vince,

The URL is a test account -- I have another Production account.   Thanks for the concern.

I have the aqi_enabled set to 1, however I'm uncertain which parameter needs to have the URL set.   Should the URL be associated with aqi_location_enabled?   These are the only two AQI related parameters that I can ascertain.

Thanks in Advance!

- Tim

Didier Decoodt

unread,
Feb 12, 2021, 6:25:28 AM2/12/21
to weewx...@googlegroups.com
Your Id and secret are not valid...

{"success":false,"error":{"code":"invalid_client","description":"The client provided is invalid."},"response":[]}

--
You received this message because you are subscribed to the Google Groups "weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to weewx-user+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/a37bfb29-3878-49ee-9c56-781ee322d9fbn%40googlegroups.com.


--
Message has been deleted

tim lambert

unread,
Feb 12, 2021, 9:12:23 AM2/12/21
to weewx-user
Didier,

I killed the test account -- but it did resolve, as does my Production account url.  Attached is json from the Production account.

My primary question is which parameter would I associate the valid Aeris AQI url in the weewx.conf?  I have the aqi_enabled set to 1, however I'm uncertain which parameter needs to have the URL set.   Should the URL be associated with aqi_location_enabled?   These are the only two AQI related parameters that I can ascertain.

AerisAQI_out.txt

Didier Decoodt

unread,
Feb 12, 2021, 10:36:44 AM2/12/21
to weewx...@googlegroups.com
Hi Tim
Here is my configuration

In weewx.conf:
only aqi_enabled=1
Id and secret are in 2 parameters forecast_api_id and forecast_api_secret
My location is in 2 parameters longitude and latitude

In belchertown.py:
aqi = 0
aqi_category = ""
aqi_time = 0
aqi_location = ""

and
            aqi_url = (
                "https://api.aerisapi.com/airquality/%s,%s?&format=json&client_id=%s&client_secret=%s"
                % (latitude, longitude, forecast_api_id, forecast_api_secret)

and
            try:
                aqi = data["aqi"][0]["response"][0]["periods"][0]["aqi"]
                aqi_category = data["aqi"][0]["response"][0]["periods"][0]["category"]
                aqi_dominant = data['aqi'][0]['response'][0]['periods'][0]['dominant']
                aqi_time = data["aqi"][0]["response"][0]["periods"][0]["timestamp"]
                aqi_location = data["aqi"][0]["response"][0]["place"]["name"].title()

 As I said in issue #498 (https://github.com/poblabs/weewx-belchertown/issues/498) closest method does not work.

Didier

tim lambert

unread,
Feb 12, 2021, 1:31:22 PM2/12/21
to weewx-user
Didier,

Thanks for the quick response!

In the weewx.conf, I have the aeris ID and Secret defined, along with aqi_enabled = 1, and my lat & long defined.

I'm a newbie to python (I'm a PM and look to my tech resources in my professional life), thus appreciate you patience.    I've pulled up belchertown.py in my editor, but cannot find any references to aqi (I'm running weewx 4.4 and Belchertown 1.2, with Python3 on a Pi 4) -- do I need to add code for aqi?  if so what exactly needs to be added and where in belchertown.py?

My initial understanding would be to add the following:

aqi = 0   #This equates to the overall air quality?
aqi_category = ""   #Leaving this undefined does not equate to any pollutant?
aqi_time = 0   #This equates to the period reflected back by the json?
aqi_location = ""  #Leaving this undefined allows for the default location reported by the json?


If the above doesn't generate results, alter the aqi parameters I'm defining in belchertown.py to try the alternatives you suggested?

Can you confirm my understanding and advise accordingly?

FYI -- I'm too 'cheap' to acquire a Purple Air -- the DEQ Air Quality station is roughly 3km from home.

Thanks!

-- Tim

Didier Decoodt

unread,
Feb 12, 2021, 6:40:55 PM2/12/21
to weewx...@googlegroups.com
you can compare your files with mines in my github repository https://github.com/ddperso/weewx-belchertown

in aqi_url, you have a strange string "%20-", if you run this url in a navigator, do you have valid information?

Tim Lambert

unread,
Feb 12, 2021, 6:44:01 PM2/12/21
to weewx...@googlegroups.com

Merci Didier!

 

The “%20” equates to a space and the “-“ is part of the longitude.   And, yes, the url resolves with a json that has aqi information.

 

Regards,

 

Tim

--
You received this message because you are subscribed to a topic in the Google Groups "weewx-user" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/weewx-user/bbvBSmkEVRQ/unsubscribe.
To unsubscribe from this group and all its topics, send an email to weewx-user+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/CAAvt3%3DR2%2Bt50wPhr4viuZxEiRzxWD2Nizh9gF0MNx%2BCBsn-W_g%40mail.gmail.com.

 

Reply all
Reply to author
Forward
0 new messages