Skip to content

Commit

Permalink
## [2.8.2] - 25.11.2023
Browse files Browse the repository at this point in the history
- Lisätty laitteen nimi myös sivun otsikkoon (selaimen otsikkopalkkiin)
- Parannettu checkboxien käytettävyyttä (voi klikata myös tekstejä, nyt kun on vapaata muistia)
  • Loading branch information
jisotalo committed Nov 25, 2023
1 parent 57071c8 commit bf13321
Show file tree
Hide file tree
Showing 9 changed files with 18 additions and 9 deletions.
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

# Suomeksi
## [2.8.2] - 25.11.2023
- Lisätty laitteen nimi myös sivun otsikkoon (selaimen otsikkopalkkiin)
- Parannettu checkboxien käytettävyyttä (voi klikata myös tekstejä, nyt kun on vapaata muistia)

## [2.8.1] - 24.11.2023 (2)
- Jos laittelle ei ole annettu nimeä, näytetään nimen tilalla "Ei asetettu"
- Päivitetty kääntämisprosessia
Expand Down Expand Up @@ -104,6 +108,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Versio 2 julkaistu (tehty täysin uusiksi)

# In English
## [2.8.2] - 25.11.2023
- Device name is also displayed in browser title
- Checkbox user experience is updated

## [2.8.1] - 24.11.2023 (2)
- If device has no name, a description about it is shown

Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ Katso päivitysten sisältö [CHANGELOG.md-tiedostosta](https://github.com/jisot

**Seuraa alla olevia ohjeita asentaaksesi skriptin.**

*Jos haluat asentaa käsin ilman library-toimintoa, appia käyttäen tai control.shelly.cloud -pilvipalvelun kautta, löydät skriptin osoitteesta [https://raw.githubusercontent.com/jisotalo/shelly-porssisahko/master/dist/shelly-porssisahko.js](https://raw.githubusercontent.com/jisotalo/shelly-porssisahko/master/dist/shelly-porssisahko.js)*
*Jos haluat asentaa skriptin käsin, Shelly Smart Controll -sovelluksella tai [control.shelly.cloud](https://control.shelly.cloud) -pilvipalvelun kautta, löydät skriptin osoitteesta [https://raw.githubusercontent.com/jisotalo/shelly-porssisahko/master/dist/shelly-porssisahko.js](https://raw.githubusercontent.com/jisotalo/shelly-porssisahko/master/dist/shelly-porssisahko.js)*

1. Ota Shelly käyttöön, yhdistä se wifi-verkkoon ja päivitä sen firmware.

Expand Down Expand Up @@ -430,7 +430,6 @@ Et ole asettanut laitteelle nimeä Shellyn hallinnasta. Nimen voit asettaa `Sett

Huomaa, että tehdasasetuksena nimen kohdalla lukee lukee laitteen malli. Tämä näkyy silti pörssisähköskriptille tyhjänä.


## Teknistä tietoa ja kehitysympäristö

### Lyhyesti
Expand Down Expand Up @@ -504,3 +503,4 @@ There will be an English version (maybe with country selection) available later

GNU Affero General Public License v3.0 - [LICENSE.txt](https://github.com/jisotalo/shelly-porssisahko/blob/master/LICENSE.txt)

Huomaathan, että projekti on täysin harrasteena tehty, eikä siinä ole lisenssin mukaisesti mitään takuuta. Näin ollen tekijä ei ole vastuussa jos sen käytön kanssa on ongelmia.
2 changes: 1 addition & 1 deletion dist/shelly-porssisahko-user-config.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/shelly-porssisahko-user-override.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/shelly-porssisahko.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/shelly-porssisahko.js
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ let C_DEF = {
let _ = {
s: {
/** version number */
v: "2.8.1",
v: "2.8.2",
/** Device name */
dn: '',
/** status as number */
Expand Down
4 changes: 2 additions & 2 deletions src/statics/tab-config.html
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
<tr>
<td>Hätätilaohjaus</td>
<td>
<input type="checkbox" id="err">ON/OFF
<input type="checkbox" id="err"> <label for="err">ON/OFF</label>
</td>
</tr>
<tr>
Expand All @@ -65,7 +65,7 @@
<tr>
<td class="w180">Ohjaus</td>
<td>
<input type="checkbox" id="m0-cmd"> ON/OFF</label>
<input type="checkbox" id="m0-cmd"> <label for="m0-cmd">ON/OFF</label>
</td>
</tr>
</table>
Expand Down
2 changes: 1 addition & 1 deletion src/statics/tab-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@

let hours = "";
for (let i = 0; i < 24; i++) {
hours += `<input type="checkbox" id="X${i}">${("" + i).padStart(2, "0")} `
hours += `<input type="checkbox" id="X${i}"><label for="X${i}">${("" + i).padStart(2, "0")}</label> `
}
qs("#bk").innerHTML = hours.replaceAll("X", "b");
qs("#fh").innerHTML = hours.replaceAll("X", "f");
Expand Down
1 change: 1 addition & 0 deletions src/statics/tab-status.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
let s = d.s;
let c = d.c;
let pricesOK = d.p.length > 0;
document.title = `${(s.dn ? `${s.dn} - ` : '')}Pörssisähkö`;

qs("#s-cmd").innerHTML = s.cmd ? "PÄÄLLÄ" : "POIS";
qs("#s-cmd").style.color = s.cmd ? "green" : "red";
Expand Down

0 comments on commit bf13321

Please sign in to comment.