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.
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)
After logging in you will be presented with the main menu looking something like this.
and continuing like this
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”
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.
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.
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.
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.
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.