added a little bit of doc
This commit is contained in:
parent
6ead5e4b10
commit
ceb7adacdc
35
README.md
35
README.md
@ -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)
|
@ -19,7 +19,6 @@ export class WebSock {
|
||||
ws.on('close',()=>{
|
||||
clearInterval(sendData);
|
||||
})
|
||||
ws.send('something');
|
||||
});
|
||||
this.wss = wss;
|
||||
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user