added a little bit of doc

main
Theenoro 2022-09-28 09:37:48 +02:00
parent 6ead5e4b10
commit ceb7adacdc
5 changed files with 35 additions and 12 deletions

View File

@ -1,2 +1,37 @@
# weather-streamoverlay
## Requirements
- raspberry pi
- sensor hub for raspberry pi
- nodejs
## Install / Config
### Config
Copy `config/config.example.js` to `config/config.js` and edit the file.
API key and City name from : https://openweathermap.org/
### Install dependencies
```
npm install
```
## Run
```
node index.js
```
## Useage
Navigate in your browser to `http://<ip>:8989` or add a Browser source with the url in your streaming software like obs or so.
The webclient will get every 10 seconds data from the webserver, every 30 sec it will change from temperature to humidity and back. The outside weather data is cached and will be requested every 10 min, while the insidetemp is almost live data, cause of the 10 secods which I mentioned earlier.
# IMG
i = inside - o = outside
temperature
![./img/1.png](./img/1.png)
humidity
![./img/2.png](./img/2.png)

View File

@ -19,7 +19,6 @@ export class WebSock {
ws.on('close',()=>{
clearInterval(sendData);
})
ws.send('something');
});
this.wss = wss;

BIN
img/1.png 100644

Binary file not shown.

After

Width:  |  Height:  |  Size: 58 KiB

BIN
img/2.png 100644

Binary file not shown.

After

Width:  |  Height:  |  Size: 113 KiB

View File

@ -37,17 +37,6 @@
}
#box-top-left:after {
/*
content: '';
width: 0;
height: 0;
border-style: solid;
border-width: 25px 0px 25px 25px;
border-color: transparent transparent #00aee7 transparent;
right: 0;
top: 0;
position: absolute;
*/
content: '';
width: 0;
height: 0;