Page 1 of 1

Remote Updating and Monitoring of WMT-Webserver

Posted: 25/07/2020, 11:50
by TerryJC
Now that the VPN Server has been installed in the River System Network it is possible to update the OS, make changes to the Webserver content and monitor the state of the UPS Pico.

Access to the WMT-Webserver for all of the above activities may be obtained by following the guidance given at viewtopic.php?f=38&t=245 and related Topics. Once logged in to the Pi, then most operations are straightforward and may be carried out as if the Pi was local.

In particular, it is possible to monitor the status of the UPS Pico and the level of charge in the battery as follows:

Code: Select all

wuser@WMT-Webserver:~ $ cd /home/PiModules/pico_status
wuser@WMT-Webserver:/home/pi/PiModules/pico_status $ sudo python pico_status_hv3.0.py 
[sudo] password for wuser: 
 
***********************************
      UPS PIco HV3.0A Status       
***********************************
 
  UPS PIco Firmware.....: e2
  UPS PIco Bootloader...: 53
  UPS PIco PCB Version..: 41
  UPS PIco BAT Version..: LiPO (ASCII: S)
  UPS PIco BAT Runtime..: 2 MIN
  UPS PIco r232 State...: OFF
 
  Powering Mode.........: RPi POWERED
  BAT Percentage........: 120.0 %
  BAT Voltage...........: 4.3 V
  RPi Voltage...........: 5.0 V
  NTC1 Temperature......: 37 C
  TO-92 Temperature.....: 08 C
  Extended Voltage......: 0.0 V
  A/D2 Voltage..........: 0.0 V
 
  PIco FAN Mode.........: ERROR
  PIco FAN State........: OFF
  PIco FAN Speed........: 320.0 RPM
 
***********************************
         Powered by PiCo           
***********************************
The above script provides access to the most useful parameters. Further information may be obtained by referring to the documentation available on GitLab.

Re: Remote Updating and Monitoring of WMT-Webserver

Posted: 28/08/2020, 10:15
by TerryJC
The above instructions are out of date. During deployment of the VPN Server, the default username was changed and the Pi account was disabled. However, the Pico Monitoring script still exists. To run it:

Code: Select all

/home/pi/PiModules/pico_status
sudo python pico_status_hv3.0.py 
 
***********************************
      UPS PIco HV3.0A Status       
***********************************
 
  UPS PIco Firmware.....: e2
  UPS PIco Bootloader...: 53
  UPS PIco PCB Version..: 41
  UPS PIco BAT Version..: LiPO (ASCII: S)
  UPS PIco BAT Runtime..: 2 MIN
  UPS PIco r232 State...: OFF
 
  Powering Mode.........: RPi POWERED
  BAT Percentage........: 120.0 %
  BAT Voltage...........: 4.3 V
  RPi Voltage...........: 5.0 V
  NTC1 Temperature......: 30 C
  TO-92 Temperature.....: 06 C
  Extended Voltage......: 0.0 V
  A/D2 Voltage..........: 0.0 V
 
  PIco FAN Mode.........: ERROR
  PIco FAN State........: OFF
  PIco FAN Speed........: 320.0 RPM
 
***********************************
         Powered by PiCo           
***********************************