From a7bc612666062b5c48efae74054a453334727e91 Mon Sep 17 00:00:00 2001 From: RĂ³man Joost Date: Thu, 24 Aug 2017 14:32:32 +1000 Subject: Fix UVMeter due to changed URL and BOM The URL which exports the real time UV data has changed to an HTTPS address. Since the HTTP package does not support HTTPS URLs, use http-conduit to retrieve the XML document. Unfortunately, the XML documents XML declaration precedes a byte order mark which the previous XML parser was unable to handle. We're simply ignoring the BOM in order to get to the UV values. --- xmobar.cabal | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'xmobar.cabal') diff --git a/xmobar.cabal b/xmobar.cabal index d03bdb3..9fa4cf2 100644 --- a/xmobar.cabal +++ b/xmobar.cabal @@ -201,6 +201,7 @@ executable xmobar build-depends: http-conduit, http-types cpp-options: -DHTTP_CONDUIT - if flag(with_uvmeter) + if flag(with_uvmeter) && flag(with_conduit) other-modules: Plugins.Monitors.UVMeter + build-depends: http-conduit, http-types cpp-options: -DUVMETER -- cgit v1.2.3