      (include-css "/chartroom.css")
      (include-js "/jquery-1.7.2.js")
      (include-js "/coffee.js")]
-    [:body [:h1#message "Scan!" ]
-     [:img {:src "/btc-coffee/qr"}
-      ]]))
+    [:body [:h1#message "Scan for Coffee!" ]
+     [:img {:src "/btc-coffee/qr"}]
+     [:h2 (coffee-bitcoin-msg)]]))
   )
 
 
 (def walletnotify-transactions (ref {}))
 
-(def clients (atom {}))                 ; a hub, a map of client => sequence number
+(def clients (atom {}))
 
 (defn send-message [message]
     (doseq [client (keys @clients)]

                             (curconv (get-config :amount) (get-config :from) :BTC )
                             (get-config :label)                             
                             (clj-http.util/url-encode (get-config :message)  )))

(defn qr-encode-to-stream
  "qr encode and stuf"

;;config


(def config (atom {}))

(defn load-config []
  (reset! config (read-string (slurp (str (System/getProperty "user.home") java.io.File/separator ".btc-coffee.clj"))))
  )
;;(load-config)

(defn get-config [key]
  (get @config key))

(defn curconv "convert between currencies"
  [amount from to ]
  (let [rates
        (get-in (client/get (format  "http://openexchangerates.org/api/latest.json?app_id=%s"
                                     (get-config :ocx-key)) {:as :json}) [:body :rates])]
    (* (* amount  (get rates to)
          (/ 1  (get rates from))))))

