Created
June 30, 2018 21:02
-
-
Save sidoh/cc0ab06943e42f09ef718fa9afe4d608 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"background_color": "white", | |
"lines": [ | |
{ | |
"x1": 260, | |
"y1": 0, | |
"x2": 260, | |
"y2": 55 | |
}, | |
{ | |
"x1": 0, | |
"y1": 55, | |
"x2": 400, | |
"y2": 55 | |
}, | |
{ | |
"x1": 100, | |
"x2": 400, | |
"y1": 130, | |
"y2": 130 | |
}, | |
{ | |
"x1": 100, | |
"x2": 100, | |
"y1": 55, | |
"y2": 220 | |
}, | |
{ | |
"x1": 0, | |
"x2": 400, | |
"y1": 220, | |
"y2": 220 | |
}, | |
{ | |
"x1": 200, | |
"x2": 200, | |
"y1": 220, | |
"y2": 300 | |
} | |
], | |
"formatters": { | |
"weather_small": { | |
"formatter": "cases", | |
"args": { | |
"prefix": "/b/", | |
"cases": { | |
"01d": "010-sun-32x32.bin", | |
"01n": "011-moon-32x32.bin", | |
"02d": "007-cloudy-1-32x32.bin", | |
"02n": "008-cloudy-32x32.bin", | |
"03d": "003-clouds-32x32.bin", | |
"03n": "003-clouds-32x32.bin", | |
"04d": "003-clouds-32x32.bin", | |
"04n": "003-clouds-32x32.bin", | |
"09d": "004-rain-32x32.bin", | |
"09n": "004-rain-32x32.bin", | |
"10d": "004-rain-32x32.bin", | |
"10n": "004-rain-32x32.bin", | |
"11d": "006-storm-32x32.bin", | |
"11n": "006-storm-32x32.bin", | |
"13d": "009-snow-32x32.bin", | |
"13n": "009-snow-32x32.bin", | |
"50d": "002-clouds-1-32x32.bin", | |
"50n": "002-clouds-1-32x32.bin" | |
}, | |
"default": "001-signs-32x32.bin" | |
} | |
}, | |
"weather_timestamp": { | |
"formatter": "time", | |
"args": { | |
"timezone": "PT", | |
"format": "%l %P" | |
} | |
}, | |
"forecast_timestamp": { | |
"formatter": "time", | |
"args": { | |
"timezone": "PT", | |
"format": "%a" | |
} | |
}, | |
"temperature": { | |
"formatter": "round" | |
}, | |
"weather": { | |
"formatter": "cases", | |
"args": { | |
"prefix": "/b/", | |
"cases": { | |
"01d": "010-sun.bin", | |
"01n": "011-moon.bin", | |
"02d": "007-cloudy-1.bin", | |
"02n": "008-cloudy.bin", | |
"03d": "003-clouds.bin", | |
"03n": "003-clouds.bin", | |
"04d": "003-clouds.bin", | |
"04n": "003-clouds.bin", | |
"09d": "004-rain.bin", | |
"09n": "004-rain.bin", | |
"10d": "004-rain.bin", | |
"10n": "004-rain.bin", | |
"11d": "006-storm.bin", | |
"11n": "006-storm.bin", | |
"13d": "009-snow.bin", | |
"13n": "009-snow.bin", | |
"50d": "002-clouds-1.bin", | |
"50n": "002-clouds-1.bin" | |
}, | |
"default": "001-signs.bin" | |
} | |
} | |
}, | |
"update_rects": { | |
"datetime": { | |
"x": 0, | |
"y": 0, | |
"w": 400, | |
"h": 55 | |
}, | |
"temps": { | |
"x": 0, | |
"y": 220, | |
"w": 400, | |
"h": 80 | |
}, | |
"forecast": { | |
"x": 0, | |
"y": 55, | |
"w": 400, | |
"h": 160 | |
}, | |
"bart": { | |
"x": 55, | |
"y": 55, | |
"w": 345, | |
"h": 345 | |
} | |
}, | |
"text": [ | |
{ | |
"x": 10, | |
"y": 40, | |
"update_rect": "datetime", | |
"font": "FreeMonoBold24pt7b", | |
"variable": "timestamp", | |
"formatter": "time", | |
"args": { | |
"timezone": "PT", | |
"format": "%H:%M" | |
} | |
}, | |
{ | |
"x": 270, | |
"y": 18, | |
"font": "FreeSansBold9pt7b", | |
"variable": "timestamp", | |
"formatter": "time", | |
"update_rect": "datetime", | |
"args": { | |
"timezone": "PT", | |
"format": "%A" | |
} | |
}, | |
{ | |
"x": 270, | |
"y": 40, | |
"font": "FreeSans9pt7b", | |
"variable": "timestamp", | |
"formatter": "time", | |
"update_rect": "datetime", | |
"args": { | |
"timezone": "PT", | |
"format": "%m/%d/%Y" | |
} | |
}, | |
{ | |
"x": 10, | |
"y": 240, | |
"font": "FreeSansBold9pt7b", | |
"static": "Outside" | |
}, | |
{ | |
"x": 120, | |
"y": 240, | |
"font": "FreeSans9pt7b", | |
"variable": "outside_temp_updated_at", | |
"update_rect": "temps", | |
"formatter": "Time", | |
"args": { | |
"timezone": "PT", | |
"format": "%H:%M" | |
} | |
}, | |
{ | |
"x": 10, | |
"y": 290, | |
"font": "FreeMonoBold24pt7b", | |
"variable": "outside_temp", | |
"update_rect": "temps", | |
"formatter": "round" | |
}, | |
{ | |
"x": 210, | |
"y": 240, | |
"font": "FreeSansBold9pt7b", | |
"static": "SF" | |
}, | |
{ | |
"x": 320, | |
"y": 240, | |
"font": "FreeSans9pt7b", | |
"variable": "sf_timestamp", | |
"update_rect": "temps", | |
"formatter": "Time", | |
"args": { | |
"timezone": "PT", | |
"format": "%H:%M" | |
} | |
}, | |
{ | |
"x": 210, | |
"y": 290, | |
"font": "FreeMonoBold24pt7b", | |
"variable": "sf_forecast_temp", | |
"update_rect": "temps", | |
"formatter": "round" | |
}, | |
{ | |
"x": 8, | |
"y": 155, | |
"font": "FreeSansBold9pt7b", | |
"static": "Temp" | |
}, | |
{ | |
"x": 10, | |
"y": 180, | |
"font": "FreeSansBold9pt7b", | |
"static": "Low" | |
}, | |
{ | |
"x": 10, | |
"y": 205, | |
"font": "FreeSansBold9pt7b", | |
"static": "High" | |
}, | |
{ | |
"x": 68, | |
"y": 155, | |
"font": "FreeSans9pt7b", | |
"variable": "forecast_temp", | |
"formatter": "round", | |
"update_rect": "forecast" | |
}, | |
{ | |
"x": 68, | |
"y": 180, | |
"font": "FreeSans9pt7b", | |
"variable": "forecast_low", | |
"formatter": "round", | |
"update_rect": "forecast" | |
}, | |
{ | |
"x": 68, | |
"y": 205, | |
"font": "FreeSans9pt7b", | |
"variable": "forecast_high", | |
"formatter": "round", | |
"update_rect": "forecast" | |
}, | |
{ | |
"x": 110, | |
"y": 75, | |
"font": "FreeSansBold9pt7b", | |
"static": "BART" | |
}, | |
{ | |
"x": 110, | |
"y": 120, | |
"font": "FreeMonoBold24pt7b", | |
"variable": "next_train", | |
"update_rect": "bart" | |
}, | |
{ | |
"x": 116, | |
"y": 153, | |
"font": "FreeSansBold9pt7b", | |
"variable": "daily_weather_slot0_timestamp", | |
"formatter": "&forecast_timestamp", | |
"update_rect": "forecast" | |
}, | |
{ | |
"x": 176, | |
"y": 153, | |
"font": "FreeSansBold9pt7b", | |
"variable": "daily_weather_slot1_timestamp", | |
"formatter": "&forecast_timestamp", | |
"update_rect": "forecast" | |
}, | |
{ | |
"x": 236, | |
"y": 153, | |
"font": "FreeSansBold9pt7b", | |
"variable": "daily_weather_slot2_timestamp", | |
"formatter": "&forecast_timestamp", | |
"update_rect": "forecast" | |
}, | |
{ | |
"x": 296, | |
"y": 153, | |
"font": "FreeSansBold9pt7b", | |
"variable": "daily_weather_slot3_timestamp", | |
"formatter": "&forecast_timestamp", | |
"update_rect": "forecast" | |
}, | |
{ | |
"x": 356, | |
"y": 153, | |
"font": "FreeSansBold9pt7b", | |
"variable": "daily_weather_slot4_timestamp", | |
"formatter": "&forecast_timestamp", | |
"update_rect": "forecast" | |
}, | |
{ | |
"x": 120, | |
"y": 213, | |
"font": "FreeSans9pt7b", | |
"variable": "daily_weather_slot0_forecast_temp", | |
"formatter": "&temperature", | |
"update_rect": "forecast" | |
}, | |
{ | |
"x": 180, | |
"y": 213, | |
"font": "FreeSans9pt7b", | |
"variable": "daily_weather_slot1_forecast_temp", | |
"formatter": "&temperature", | |
"update_rect": "forecast" | |
}, | |
{ | |
"x": 240, | |
"y": 213, | |
"font": "FreeSans9pt7b", | |
"variable": "daily_weather_slot2_forecast_temp", | |
"formatter": "&temperature", | |
"update_rect": "forecast" | |
}, | |
{ | |
"x": 300, | |
"y": 213, | |
"font": "FreeSans9pt7b", | |
"variable": "daily_weather_slot3_forecast_temp", | |
"formatter": "&temperature", | |
"update_rect": "forecast" | |
}, | |
{ | |
"x": 360, | |
"y": 213, | |
"font": "FreeSans9pt7b", | |
"variable": "daily_weather_slot4_forecast_temp", | |
"formatter": "&temperature", | |
"update_rect": "forecast" | |
} | |
], | |
"bitmaps": [ | |
{ | |
"x": 380, | |
"y": 0, | |
"w": 16, | |
"h": 16, | |
"variable": "wifi_state", | |
"formatter": "cases", | |
"args": { | |
"prefix": "/b/", | |
"cases": { | |
"connected": "wifi.bin", | |
"disconnected": "nowifi.bin" | |
}, | |
"default": "wifi.bin" | |
} | |
}, | |
{ | |
"x": 18, | |
"y": 65, | |
"w": 64, | |
"h": 64, | |
"variable": "weather_icon", | |
"formatter": "&weather" | |
}, | |
{ | |
"x": 115, | |
"y": 160, | |
"w": 32, | |
"h": 32, | |
"variable": "daily_weather_slot0_weather_icon", | |
"formatter": "&weather_small" | |
}, | |
{ | |
"x": 175, | |
"y": 160, | |
"w": 32, | |
"h": 32, | |
"variable": "daily_weather_slot1_weather_icon", | |
"formatter": "&weather_small" | |
}, | |
{ | |
"x": 235, | |
"y": 160, | |
"w": 32, | |
"h": 32, | |
"variable": "daily_weather_slot2_weather_icon", | |
"formatter": "&weather_small" | |
}, | |
{ | |
"x": 295, | |
"y": 160, | |
"w": 32, | |
"h": 32, | |
"variable": "daily_weather_slot3_weather_icon", | |
"formatter": "&weather_small" | |
}, | |
{ | |
"x": 355, | |
"y": 160, | |
"w": 32, | |
"h": 32, | |
"variable": "daily_weather_slot4_weather_icon", | |
"formatter": "&weather_small" | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment