sds011 install

171 views
Skip to first unread message

vigilancewx

unread,
Jun 26, 2019, 6:02:53 PM6/26/19
to weewx-user

Hi

I am trying to install the sds011 service

Installation

 

0) Install weeWX (see weewx.com for details)

 

1) Download the SDS011 extension

 

wget -O weewx-sds011.zip https://github.com/matthewwall/weewx-sds011/archive/master.zip

 

2) Install the extension

 

wee_extension --install weewx-sds011.zip

 

3) Configure the driver

 

wee_config --reconfigure

 

4) start weewx

 

sudo /etc/init.d/weewx start

 

followed the above all it seems to do is install the install.py to

 

user/installer/sds011 directory

 

 

 

and sds011.py to the bin/user directory

 

adding this to the Weewx.conf

 

 

#########################################################################

 

# Options for extension 'sds011'

[SDS011]

 

##########################################################################

 

Do I make the install.py executable and run it

 

How do I complete the install

 

Thanks for any information

Message has been deleted

mwall

unread,
Jun 27, 2019, 12:21:14 AM6/27/19
to weewx-user


On Wednesday, June 26, 2019 at 6:02:53 PM UTC-4, vigilancewx wrote:

Do I make the install.py executable and run it 

no

 

How do I complete the install


in the weewx configuration file, add a 'driver' line to the SDS011 stanza:

[SDS011]
    model = NovaPM
    port = /dev/ttyUSB01
    poll_interval = 10
    driver = user.sds011

you might have to modify the port, depending on how your device is connected.  optionally modify the model to match the branding of your sds011 hardware.

the installer was not written correctly - it incorrectly cleared the SDS011 stanza after prompting for the information.  i have updated the sds011 package to 0.2 to fix this mistake.

vigilancewx

unread,
Jun 27, 2019, 2:56:59 AM6/27/19
to weewx-user
Hi

When you run the wee_config --reconfigure


it lists the normal question about weewx but no reference to the new sds011 setup

so a couple more questions please 

I know my sds011 is connected tn port USB02 so do I need to modify sds011.py ?

will it now create the pm.sdb in the weewx archive folder ?

also the service section under the weewx engine is not modified what do I need to add here?


thanks for the information

Andrew Milner

unread,
Jun 27, 2019, 4:30:48 AM6/27/19
to weewx-user
did you add the stanza to weewx.conf as Matthew said?
did you specify the correct port in the stanza - Matthew said you may need to change what he had written?
you should not need to modify sds011.py for the different port, but you do need to modify the port setting in the sds011 stanza in weewx.conf
there should not need to be any changes to the services
the .sdb file will be created at the first archive interval - not before

vigilancewx

unread,
Jun 27, 2019, 1:57:53 PM6/27/19
to weewx-user
Hi

As far as I can tell I have followed all the instructions and no data is loaded no sdb file created?

not sure what I am doing wrong






On Wednesday, June 26, 2019 at 11:02:53 PM UTC+1, vigilancewx wrote:

Meteo Oberwallis

unread,
Apr 27, 2020, 4:28:56 AM4/27/20
to weewx-user
Hello.

I have the SDS011 install on weewx. Ist ok. But i have this false: Port is already open. Can i help me? See the attachment.

Thanks
Stefan
Unbenannt.PNG

steeple ian

unread,
Apr 27, 2020, 4:35:55 AM4/27/20
to weewx...@googlegroups.com
Hi,

From memory that's on line 179. Just comment it out.
I have logged it as an issue.

Ian

--
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/fc8464c7-5ad6-469f-8508-acdbc74c8477%40googlegroups.com.

steeple ian

unread,
Apr 27, 2020, 4:38:45 AM4/27/20
to weewx...@googlegroups.com

Meteo Oberwallis

unread,
Apr 27, 2020, 5:31:27 AM4/27/20
to weewx-user
Thanks. Ist Work! I have another Question. How i can create an Graph with data. I must this new create?
To unsubscribe from this group and stop receiving emails from it, send an email to weewx...@googlegroups.com.

steeple ian

unread,
Apr 27, 2020, 9:24:03 AM4/27/20
to weewx...@googlegroups.com
Hello Stefan,

I set up a new skin with a tmpl like this: -

#errorCatcher Echo
##
## Specifying an encoding of UTF-8 is usually safe, but if your text is
## actually in Latin-1, then you should replace the string "UTF-8" with "latin-1"
## If you do this, you should also change the 'Content-Type' metadata below.
#encoding UTF-8
##
pm2_5 = $current.pm2_5.format(add_label=False, $localize=False)
pm10_0 = $current.pm10_0.format(add_label=False, $localize=False)

it creates a txt file which I then rsync this file to my main WeeWX installation. I then use filepile.py to insert the data into my main database. The database is the extended version for the upcoming WeeWX 4 which contains new fields for particle concentration data. From there it should be possible to use the data to create the chart.

I am using Highcharts on my site (https://claydonsweather.org.uk). You can see the charts by clicking on the yearly and weekly chart links at the bottom of the Air Quality module.

If you need a more detailed explanation I will create a repository on Github for you or anybody else interested.

Ian

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/8237f5f1-e9a3-4101-97a2-1a15b725fb64%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages