PyScada on Raspberry PI for temperature monitoring with DS18B20 on 1-Wire – Part 3 – PyScada Basic Configuration

In this part we will perform initial configuration of the 1-Wire devices into PyScada system and then create a simple interface for displaying our measurements. In the screenshots below you may notice the two different IP addresses, I have taken some of these screenshots from different instances but the content should be ok.

Logging in

From a web browser connect to the IP address of your Raspberry PI, click on the Admin button and login with the superuser password we created in part 1 of this series (Link)

Raspi-03

After logging in you will be presented with the main menu looking something like this.

Raspi-05

and continuing like this

Raspi-06.png

Setup 1-wire inputs

PyScada has a model of abstraction in the devices and the variables. As a result we need to create a “Device” before connecting the “One wire device” to this generic device, similarly we need to create variables before connecting the 1-wire variables to them.

In the “PyScada Core” section at the top we need to add a device. Click the add button next to “Devices” and add the details similar to the screenshot below, note the polling interval setting can be adjusted to suit your requirements. Click “Save” and go back to the main menu by clicking “Home”

Raspi-07

Now scrolling down the bottom of the main menu in the section “PyScada Onewire” click the Add “One Wire Devices” button to connect the actual 1-wire interface to the device we already created. Check the details in the screenshot below and click save, then back to the main menu again.

Raspi-08

Now that we have the overarching devices configured we can configure the first actual sensor.  Back on the main menu in the PyScada Core section click Add next “Variables” and configure as shown below.

Raspi-09

Then just like with the devices now head down to the PyScada OneWire variables section and click Add.

 

Click on the magnifying glass to select the variable we wish to connect the address to. Then set the address location to the serial number of the 1-wire device, in Part 2 (Link) in the “Software and first measurements” section we listed the 1-wire devices on my network as being.

28-0317019e43ff
28-031701a251ff
28-031701e813ff
28-031701e81aff
28-0416b3e789ff
28-041701e0caff
28-041701e495ff
28-04170201acff
28-0417020b6bff
28-0417020be3ff
28-0417022dd5ff

To complete the setup we need to use the address field without the 28- at the front. The screenshot below shows the configuration for the third sensor on the list, which happens to be the one I marked as sensor 1.

Raspi-10

I now repeated this process for all my sensors before moving on to the display elements, these will be covered in part 4 of this series.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s