Skip to content

u/hrangan

In this archive from Oct 2015 to Dec 2018

2
posts
27
comments
2
media
187
score

Top posts

Top comments

NASA provides an API to retrieve the most recent weather data on Mars. I've written a very simple script that fetches that and renders it in a format usable by conky's ${execp}

Source: https://gist.github.com/hrangan/0fe22073eec78e370637

{MAAS} API: http://marsweather.ingenology.com/

The data is generally a couple of days old, and Fahrenheit temperatures are in the payload if that's your thing.

edit: the script now returns "last updated on" instead of "last updated at", and temperature instead of weather. edit2: The math is wrong, It's missing a divide by 2. The script's been fixed, I'll upload a new screenshot in a few days

7 points

Subreddits

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.