FAQ

 

Can I change my password for HTTP/HTTPS upload ?

Yes. To change your password, please run these commands in your terminal.

pi@raspberrypi:~ $ sudo /opt/myscada/bin/mySettings.sh -h
pi@raspberrypi:~ $ sudo /opt/myscada/bin/mySettings.sh -u YourPassword
pi@raspberrypi:~ $ sudo reboot

Can I add SSL security with Let's Encrypt? ?

Yes. Change the contents of the file /opt/myscada/conf/ssl.conf like this:

ssl  on;
ssl_session_timeout  5m;
ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
ssl_ciphers “HIGH:!aNULL:!MD5 or HIGH:!aNULL:!MD5:!3DES”;
ssl_certificate      /etc/ssl/my_certs/fullchain.pem;
ssl_certificate_key  /etc/ssl/my_certs/key.pem;
ssl_trusted_certificate /etc/ssl/my_certs/lets-encrypt-x1-cross-signed.pem;

Can I change HTTP and HTTPS ports without GUI ?

Yes. Run following commands:

pi@raspberrypi:~ $ sudo /opt/myscada/bin/mySettings.sh -s general.http_port=81
pi@raspberrypi:~ $ sudo /opt/myscada/bin/mySettings.sh -s general.https_port=444

List of settings:
pi@raspberrypi:~ $ sudo /opt/myscada/bin/mySettings.sh -p
pi@raspberrypi:~ $ sudo reboot

Can I remotely run systray application ?

Yes.  Connect to myscada device over ssh with using -X flag.

Example:
user@myPCi:~ $ ssh -X pi@192.168.1.1
and run:
pi@raspberrypi:~ $ sudo /opt/myscada/bin/app/systray /etc/myscada/myscada.conf

Can I set GPIOs from console ?

Yes. You can manualy change config file /etc/myscada/myserv.conf.

File structure:
Gpio number,Direction,Modbus Index

Example:
3,I,3  (GPIO 3 is set as Input I:3)
5,O,6 (GPIO 5 is set as Output O:6)
7,N,7 (GPIO 7 is not used)

Can I use native browser (Epiphany) on Raspberry PI for myHOME ?

Yes, but better is use Chromium Web Browser. You can install by following procedure.

pi@raspberrypi:~ $ cd ~
pi@raspberrypi:~ $ wget https://dl.dropboxusercontent.com/u/87113035/chromium-browser-l10n_48.0.2564.82-0ubuntu0.15.04.1.1193_all.deb
pi@raspberrypi:~ $ wget https://dl.dropboxusercontent.com/u/87113035/chromium-browser_48.0.2564.82-0ubuntu0.15.04.1.1193_armhf.deb
pi@raspberrypi:~ $ wget https://dl.dropboxusercontent.com/u/87113035/chromium-codecs-ffmpeg-extra_48.0.2564.82-0ubuntu0.15.04.1.1193_armhf.deb
pi@raspberrypi:~ $ sudo dpkg -i chromium-codecs-ffmpeg-extra_48.0.2564.82-0ubuntu0.15.04.1.1193_armhf.deb
pi@raspberrypi:~ $ sudo dpkg -i chromium-browser-l10n_48.0.2564.82-0ubuntu0.15.04.1.1193_all.deb chromium-browser_48.0.2564.82-0ubuntu0.15.04.1.1193_armhf.deb

I am using SD card for data logging, is it good way ?

No, SD card has limit on writes. Better is use USB flash or USB disk. Following procesure redirect logging data into external USB flash.

After you attach your USB flash you will see something like in dmesg:

[ 2466.314849] usb 1-1.4: new high-speed USB device number 7 using dwc_otg
[ 2466.419838] usb 1-1.4: New USB device found, idVendor=0951, idProduct=1689
[ 2466.419865] usb 1-1.4: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 2466.419878] usb 1-1.4: Product: DataTraveler SE9
[ 2466.419888] usb 1-1.4: Manufacturer: Kingston
[ 2466.419898] usb 1-1.4: SerialNumber: 000FEAFAC160BC70C7B20277
[ 2466.420956] usb-storage 1-1.4:1.0: USB Mass Storage device detected
[ 2466.421381] scsi host0: usb-storage 1-1.4:1.0
[ 2467.491816] scsi 0:0:0:0: Direct-Access     Kingston DataTraveler SE9 PMAP PQ: 0 ANSI: 0 CCS
[ 2467.506375] sd 0:0:0:0: Attached scsi generic sg0 type 0
[ 2469.516898] sd 0:0:0:0: [sda] 30712320 512-byte logical blocks: (15.7 GB/14.6 GiB)
[ 2469.517185] sd 0:0:0:0: [sda] Write Protect is off
[ 2469.517203] sd 0:0:0:0: [sda] Mode Sense: 23 00 00 00
[ 2469.517447] sd 0:0:0:0: [sda] No Caching mode page found
[ 2469.517463] sd 0:0:0:0: [sda] Assuming drive cache: write through
[ 2469.542102]  sda: sda1
[ 2469.546288] sd 0:0:0:0: [sda] Attached SCSI removable disk

Make mount point:
pi@raspberrypi:~ $ sudo mdir /mnt/myHomeData

You can try mount:
pi@raspberrypi:~ $ sudo /mount /dev/sda1 /mnt/myHomeData

Add following line into /etc/fstab for connecting device after reboot:
/dev/sda1 /mnt/myHomeData       vfat rw 0 0

Change myHOME configuration:
pi@raspberrypi:~ $ /opt/myscada/bin/mySettings.sh -s history.dbPath=/mnt/myHomeData
Output:
Variable: history.dbPath
New value: /mnt/myHomeData

pi@raspberrypi:~ $/ opt/myscada/bin/mySettings.sh -s history.maxDbSize=3000
Output:
Variable: history.maxDbSize
New value: 3000

pi@raspberrypi:~ $/ opt/myscada/bin/mySettings.sh -p
Output:
…..
 [history]
 |-> Logs Dir [dbPath]= /mnt/myHomeData
 |-> Logs size (MB) [maxDbSize]= 3000
 |-> Data Logs [logD]= 1
 |-> Alarm Logs [logA]= 1
 |-> User Logs [logU]= 1
…..

pi@raspberrypi:~ $ sudo reboot

Can I read data from device over RS485 Modbus ?

Yes. You can connect standart convertor USB->RS485. After connect you you will see something like in dmesg.

pi@raspberrypi:~ $ dmesg |grep ttyUSB
Output:
usb 1-1.4: FTDI USB Serial Device converter now attached to ttyUSB0

Mapping port into myHOME (in systray myHOME application choose Settings->Serial config) :

Can I protect my device before random or intentional overwrite of project ?

Yes, run following scripts with parameters.

Locking project:
pi@raspberrypi:~ $ /opt/myscada/bin/mySettings.sh -s general.projectLock=1

UnLocking project:
pi@raspberrypi:~ $ /opt/myscada/bin/mySettings.sh -s general.projectLock=0

Get status:
pi@raspberrypi:~ $  /opt/myscada/bin/mySettings.sh -p
Output:
[general]
|-> Project Dir [pFolder] = /opt/myscada/prj
|-> Language [lang]= en
|-> Project Lock [projectLock]= 1
|-> HTTP port [http_port]= 80
|-> HTTPS port [https_port]= 443
……
……

Can I register my device without GUI (eg. over SSH) ?
Yes, for this case exists scipt “mylicence.sh” .
You can get HW-ID (ID) for registration on portal (http://portal.myscada.org):

Get ID:
pi@raspberrypi:~ $ /opt/myscada/bin/mylicence.sh -g
Output:
ID: R35654640

Save Key:
pi@raspberrypi:~ $ sudo /opt/myscada/bin/mylicence.sh -s ec9cd7g74d1e

Get registration status:
pi@raspberrypi:~ $ /opt/myscada/bin/mylicence.sh -p
Output:
Version: 7.0.2
ID:      R35654640
Status:  REGISTER
Links:   UNLIMITED

How can I run install/update myHOME on my existing system ?

Run in terminal on your Raspberry PI following commands:

pi@raspberrypi:~ $ mkdir ~/myscada
pi@raspberrypi:~ $ cd ~/myscada
pi@raspberrypi:~/myscada $ wget http://www.myscada.org/downloads/SW/PI/myHomeRaspi7.sh
pi@raspberrypi:~/myscada $ chmod +x ./myHomeRaspi7.sh
pi@raspberrypi:~/myscada $ sudo ./myHomeRaspi7.sh

Why was born this web ?

We want improve communication in this community and take more space for your projects, ideas, application cases.