Open-input-gfile hangs when DISPLAY is not set -- when a cron job.
Replace it with (open-input-string (http-response-body (http-get...
(number->string (latitude location))
","(number->string (longitude location))))
request-locations)))))
- (let* ((port (open-input-gfile url)
- #;(open-input-file "reply.txt"))
+ (let* ((port #;(open-input-gfile url)
+ #;(open-input-file "reply.txt")
+ (open-input-string (http-response-body (http-get url '()))))
(reply (read-xml port)))
(close-input-port port)
(let ((root (xml-document-root reply)))
string->universal-time universal-time->global-time-string
load-option
- open-input-gfile read-xml xml->string
+ open-input-gfile
+ http-get http-response-body open-input-string
+ read-xml xml->string
xml-document-root xml-element? xml-element-content xml-element-name)
(export (planetarium)
request-google-elevation))
\ No newline at end of file