1
0
Fork 0

Merge pull request #2074 from peerdavid/master

[BW Clock] Add humidity to weather data
master
Gordon Williams 2022-08-04 08:33:49 +01:00 committed by GitHub
commit 3d9ce381b7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 15 additions and 5 deletions

View File

@ -11,3 +11,4 @@
0.11: Performance improvements.
0.12: Implements a 2D menu.
0.13: Clicks < 24px are for widgets, if fullscreen mode is disabled.
0.14: Adds humidity to weather data.

View File

@ -1,5 +1,5 @@
# BW Clock
A very minimalistic clock with date and time in focus.
A very minimalistic clock to mainly show date and time.
![](screenshot.png)

View File

@ -139,6 +139,14 @@ function imgWind () {
}
}
function imgHumidity () {
return {
width : 24, height : 24, bpp : 1,
transparent : 1,
buffer : require("heatshrink").decompress(atob("//7///+YCB+ICB8ACE4F/AQX9AQP54H//AOB+F/34CBj/gn8f4E+h/Aj0H4Ecg+AjED4ACE8E4gfwvEDEgICB/kHGwMP"))
}
}
function imgTimer() {
return {
width : 24, height : 24, bpp : 1,
@ -203,6 +211,7 @@ if(storage.readJSON('weather.json') !== undefined){
menu.push([
function(){ return [ "Weather", imgWeather() ] },
function(){ return [ getWeather().temp, imgTemperature() ] },
function(){ return [ getWeather().hum, imgHumidity() ] },
function(){ return [ getWeather().wind, imgWind() ] },
]);
}
@ -395,7 +404,7 @@ function drawDate(){
g.setMediumFont();
g.setColor(g.theme.fg);
g.drawString(dateStr, W/2 - fullDateW / 2, y+1);
g.drawString(dateStr, W/2 - fullDateW / 2, y+2);
}

View File

@ -1,8 +1,8 @@
{
"id": "bwclk",
"name": "BW Clock",
"version": "0.13",
"description": "A very minimalistic clock with date and time in focus.",
"version": "0.14",
"description": "A very minimalistic clock to mainly show date and time.",
"readme": "README.md",
"icon": "app.png",
"screenshots": [{"url":"screenshot.png"}, {"url":"screenshot_2.png"}, {"url":"screenshot_3.png"}, {"url":"screenshot_4.png"}],