diff options
author | Yuchen Pei <id@ypei.org> | 2023-10-02 18:54:48 +1100 |
---|---|---|
committer | Yuchen Pei <id@ypei.org> | 2023-10-02 18:54:48 +1100 |
commit | c30ae3e43facb855f6839a9724d4b35b4c95025d (patch) | |
tree | 7547ea3d43c74560bda9ffa38d70325aa09c03aa | |
parent | 5a37d07c06b3fbcf9b486aa27f96ec5b4c630762 (diff) |
Add bom-port
-rw-r--r-- | bom.el | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -56,7 +56,9 @@ (defvar bom-areas nil "List of areas with forecasts.") -(defvar bom-server nil "The BOM server object.") +(defvar bom-server nil "The server object.") + +(defvar bom-port 9000 "The port number of the server.") (defun bom-area-parent (area) "Search `bom-areas' for the parent of AREA. @@ -185,7 +187,7 @@ We use the description of the first root as the state name." process (bom-serve (alist-get :GET headers)) ))) - 9000))) + bom-port))) (defun bom-stop () "Stop serving weather forecasts." |