roscoe81/enviro-monitor

Setting up adafruit feed (please help with configuration

vschinazi opened this issue · 15 comments

Hi Ross

I've spent a couple of hours trying to figure how to set up the adafruit io feed with the enviro+ and particle sensors and I feel I'm just a few settings away from getting this to work. I am attaching a couple of screenshots and will also describe what I have done. I would be very grateful if you could let me know why my feeds are not appearing in the io adafruit.

  1. I am using an pi zero with Enviro+ and the particle sensor.

  2. I have edited the "Northcliff_adafruit_io_feed_setup_Gen.py" file with my details but I'm really not sure what to do with the aio_feed_prefix. I have edited that line to have only 1 property and one location. I have called these "Mermaid" and "Home". Everything else, I left as default. I have also added that package type (Basic Combo), my "aio_user_name" and "aio_key" (see screenshot 1).When I run this script, I get no errors and the feeds and dashboard are created in my io adafruit website (see screen shot 2).

  3. I then edited my config.json file to include "enable_adafruit_io: true", my aio user name and aio key. I have also edited the "aio_houselhold_prefix" to correspond to "Mermaid" and the aio_location_prefix to correspond to "Home" but I feel that this is incorrect and I do not know what to add in these fields. Everything else I left as default but will eventually change the city name to "Gold Coast" and time zone to "Queensland" (see screen shot 3).

  4. I have edited the config.json to point it in the folder where my edited config is located (see screen shot 4). I also do not get any errors when I run this script and the enviro+ monitor in my pi turn on and I can cycle through the different data types.

I think the problem is just sending the feed to io adafruit but I am really not sure how to fix this.
Please let me know what I am doing wrong. I am really excited to get this dashboard working.

Thanking you in advance,

Victor

screenshot3
screenshot4
screenshot1
screenshot2

Hi Victor. I've updated the README to provide more info on the Adafruit IO setup in response to your initial query. Have a look at that and, in the meantime, I'll look at your more detailed request.

Hi Ross

Thank you for the quick reply. I have adapted the setting as you describe. Again, I get no errors but the data does not seem to send.
As I was adapting, it seems that something worked because I saw some values but it went away. I have now reproduced it as you describe and still cannot see the values. Is it possible that it takes longer to load in IO adafruit?

Any suggestion would be really helpful.

Thank you very much for all your help. I feel I am almost there.

Kind regards,

Victor

Hi Ross,

I got it :) I am so happy about this. I can now get the premium package from adafruit IO and use the cooler and fancy display.

This is awesome :)

Thank you!

Screenshot 2020-06-21 at 14 02 35

Glad that you got it Vince. You also mentioned that you'll change the config.json to have "city_name": "Gold Coast" and "time_zone": "Australia/Queensland". If you do, you'll need to add a custom location to the "custom_locations" config data, so that the Astral database is updated. You can do that by changing it to read "custom_locations": ["Townsville, Australia, Queensland, -19.26639, 146.80569", "Gold Coast, Australia, Queensland, your latitude, your longitude"]. Let me know if that works.

The unit won't send gas feeds until the gas sensors complete their 100 minute warm-up time. It's strange about the particle feeds, they should be sent in the first available feed window.

All I can think of is that you might not be running Python 3 from your console. You could try "python3 file_name" and see if that works.

Thanks so much for your feedback Victor and for prompting me to document the Adafruit IO setup. I've had a lot of fun working on this project and the Pimoroni examples on GitHub gave me a great head start. I'm delighted that you find it useful.

FYI, I've been working on a User Guide for some time now and I've just published it here: https://github.com/roscoe81/enviro-monitor/blob/master/User%20Guide/Northcliff%20Enviro%20Monitor%20User%20Guide-Gen.pdf

Hope you find it valuable.

Yes Victor, that list of case parts is correct, however you only need the base if you're not mounting the unit on a wall. Also, you only need two pins per unit but the pins file prints eight pins at a time.

I've updated the files today to the my latest versions, so they're now all up to date.

I have no experience with 3D printing services, since I print my own parts but it looks like there are many services operating in Australia.

You'll also need a 40 way ribbon cable and connector assembly to interconnect the Raspberry Pi and the Enviro+. I use a 50 way cable from Jaycar (part number WM4508) cut to a length of 72mm and with 10 wires removed, a 40 way socket from Jaycar (part number PS0989) and a 40 way plug from Mouser (part number 517-4640-6001). The result is as per the photos.

Hope that helps.

ribbon2
ribbon1