0

cannot write data into a shared feed
Moderators: adafruit_support_bill, adafruit

Forum rules
If you're posting code, please make sure your code does not include your Adafruit IO Active Key or WiFi network credentials.
Please be positive and constructive with your questions and comments.

cannot write data into a shared feed

by troylanier on Tue May 07, 2019 1:13 pm

Problem Statement:
Using the mqtt_shared_feeds.py example from https://adafruit-io-python-client.readthedocs.io/en/latest/feed-sharing.html , I cannot write into another users shared feed on which I have read/write privileges.

Details:
I want user_b to write data into user_a shared feed called 'voltage'. To do this user_a created a feed on user_a account called 'voltage' and invited user_b to join that feed. user_a gave user_b read and write privileges. user_b was able to see user_a 'voltage' feed in HOME:SHARING section of the adafruit.io ui on user_b account.

We then followed this tutorial: https://adafruit-io-python-client.readt ... aring.html for `mqtt_shared_feeds.py`

We put user_b_username into ADAFRUIT_IO_USERNAME = 'YOUR_AIO_USERNAME'
We put user_b private key into ADAFRUIT_IO_KEY = 'YOUR_AIO_KEY'
We put in 'voltage' as the ‘SHARED_AIO_FEED_NAME’
We put in user_b_username as the ‘SHARED_AIO_FEED_USERNAME’

We ran mqtt_shared_feeds.py Our expectation was that data would be written into user_a ’s shared feed called “voltage”. Instead, user_b now has a new group called “user_a_username” and a new feed that user_b owns that sits within that group called voltage. user_b can see data on this feed when logged in as user_b. The original shared feed on use_a account does not show any data.

troylanier
 
Posts: 4
Joined: Wed Sep 11, 2013 6:10 pm

Re: cannot write data into a shared feed

by adafruit_support_carter on Tue May 07, 2019 9:00 pm

We put in user_b_username as the ‘SHARED_AIO_FEED_USERNAME’

Try changing that to user_a.

adafruit_support_carter
 
Posts: 14357
Joined: Tue Nov 29, 2016 2:45 pm

Re: cannot write data into a shared feed

by troylanier on Tue May 07, 2019 11:10 pm

Thanks. I mistyped. We did indeed put in user_a_username as the ‘SHARED_AIO_FEED_USERNAME’

troylanier
 
Posts: 4
Joined: Wed Sep 11, 2013 6:10 pm

Re: cannot write data into a shared feed

by adafruit_support_carter on Wed May 08, 2019 1:27 am

As far as I can see, you're setting up the share as described here:
https://learn.adafruit.com/adafruit-io- ... ing-a-feed
and modifying the example correctly.

I'd suggest opening an issue in the code repo in case this is some kind of bug:
https://github.com/adafruit/Adafruit_IO_Python/issues

Let me know if you've never done that. I can open one for you.

adafruit_support_carter
 
Posts: 14357
Joined: Tue Nov 29, 2016 2:45 pm

Please be positive and constructive with your questions and comments.