Skip to content

Uninstallation

gjr80 edited this page Sep 7, 2021 · 4 revisions

Uninstallation

Uninstallation of the Realtime gauge-data extension can be completed either manually or automatically using the wee_extension utility.

Note: The wee_extension utility can only be used to remove the Realtime gauge-data extension if the Realtime gauge-data extension was installed using the wee_extension utility. You can check if the Realtime gauge-data extension was installed with the wee_extension utility by using the following command:

$ wee_extension --list

If the Realtime gauge-data extension was installed using the wee_extension utility 'Rtgd' will be listed as an installed extension, eg:

Extension Name    Version   Description
Rtgd              0.5.0     WeeWX support for near realtime updating of the SteelSeries Weather Gauges.

File locations

As WeeWX file locations vary by system and installation method, the following symbolic name, as per the Where to find things section of the WeeWX User's Guide, are used in this document:

  • BIN_ROOT. The path to the directory where WeeWX executables are saved. This directory is dependent on the type of WeeWX install. For a setup.py install it is typically /home/weewx/bin or for a package install it is typically /usr/share/weewx.

Uninstallation using the wee_extension utility

To remove the Realtime gauge-data extension using the wee_extension utility:

  1. If not already done so, confirm the Realtime gauge-data extension was installed using the wee_extension utility:

    $ wee_extension --list
    
  2. Use the wee_extension utility to uninstall the Realtime gauge-data extension package:

    $ wee_extension --uninstall=Rtgd
    
  3. Edit weewx.conf and:

    • confirm the entire [RealtimeGaugeData] stanza has been deleted, if not delete the [RealtimeGaugeData] stanza in its entirety; and
    • confirm the user.rtgd.RealtimeGaugeData entry has been deleted from the report_services setting under [Engine] [[Services]].
  4. If WeeWX is running restart the WeeWX daemon:

     $ sudo /etc/init.d/weewx restart
    

    or

     $ sudo service weewx restart
    

    or

     $ sudo systemctl start restart
    

Manual uninstallation

To manually uninstall the Realtime gauge-data extension:

  1. Delete the file rtgd.py from the BIN_ROOT/user directory

  2. Edit weewx.conf and:

    • remove the [RealtimeGaugeData] stanza in its entirety
    • remove the user.rtgd.RealtimeGaugeData entry from the report_services setting under [Engine] [[Services]].
  3. If WeeWX is running restart the WeeWX daemon:

     $ sudo /etc/init.d/weewx restart
    

    or

     $ sudo service weewx restart
    

    or

     $ sudo systemctl start restart