Jump to content
View in the app

A better way to browse. Learn more.

Universal Devices Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Ambient Weather API Parse Error

Featured Replies

Posted

I just installed this plugin, and there appears to be an API issue with the response parsing:

2024-07-11 19:31:27.074 MQTT       udi_interface.interface INFO     interface:_message: Profile installation finished
2024-07-11 19:32:24.346 MQTT       udi_interface.interface DEBUG    interface:_message: QUEUING incoming message shortPoll
2024-07-11 19:32:24.347 Command    udi_interface.interface DEBUG    interface:_parseInput: DEQUEING shortPoll
2024-07-11 19:32:24.347 Command    udi_interface.interface DEBUG    interface:_handleInput: PROCESS shortPoll message {} from Polyglot
2024-07-11 19:32:24.347 Thread-3 (poll) udi_interface      DEBUG    ambient-poly:poll: ShortPoll: shortPoll True https://api.ambientweather.net/v1/devices?applicationKey=7651edae3d7b44ee8ab5c3359b0c99469f30bf3d2a1d4f2c995b25d9c01a2cd3&apiKey=REDACTED
2024-07-11 19:32:24.479 Thread-3 (poll) udi_interface      ERROR    station:Query: Parsing failed: string indices must be integers, not 'str'

 

Solved by bpwwer

Go to solution

Ambient is having problems. I see them everyday several times a day...

 

  • Solution
17 hours ago, JSylvia007 said:

I just installed this plugin, and there appears to be an API issue with the response parsing:

2024-07-11 19:31:27.074 MQTT       udi_interface.interface INFO     interface:_message: Profile installation finished
2024-07-11 19:32:24.346 MQTT       udi_interface.interface DEBUG    interface:_message: QUEUING incoming message shortPoll
2024-07-11 19:32:24.347 Command    udi_interface.interface DEBUG    interface:_parseInput: DEQUEING shortPoll
2024-07-11 19:32:24.347 Command    udi_interface.interface DEBUG    interface:_handleInput: PROCESS shortPoll message {} from Polyglot
2024-07-11 19:32:24.347 Thread-3 (poll) udi_interface      DEBUG    ambient-poly:poll: ShortPoll: shortPoll True https://api.ambientweather.net/v1/devices?applicationKey=7651edae3d7b44ee8ab5c3359b0c99469f30bf3d2a1d4f2c995b25d9c01a2cd3&apiKey=REDACTED
2024-07-11 19:32:24.479 Thread-3 (poll) udi_interface      ERROR    station:Query: Parsing failed: string indices must be integers, not 'str'

 

Most likely, it's an error in the results sent by Ambient.  You can check that by taking the URL where you redacted the key and cut and pasting that into a browser tab/window.  

If you just generated the key, it may take some time before Ambient actually activates the key and it works.

  • Author
9 minutes ago, bpwwer said:

Most likely, it's an error in the results sent by Ambient.  You can check that by taking the URL where you redacted the key and cut and pasting that into a browser tab/window.  

If you just generated the key, it may take some time before Ambient actually activates the key and it works.

It was exactly that.  Might want to update your documentation saying that Ambient can take a long time to activate the API Key.  In my case I played with it for almost an hour and it didn't work.  This morning I restarted the service in Polyglot and it all came through immediately.

Guest
This topic is now closed to further replies.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.