Commit 5e6e11db authored by Peter Müller's avatar Peter Müller

Added HOST and PORT env vars for control app, Added changelog and license

parent aaa1e68a
Pipeline #192 passed with stage
in 57 seconds
## v1.0.3 - 2018-06-04
- Added fix for unplausible values read from the DHT sensor
- Added possibility to change host and port of the control app via env vars
- Only include dht.h if a DHT sensor is used
## v1.0.2 - 2018-05-30
- First public release
This diff is collapsed.
......@@ -26,6 +26,11 @@ npm start
Then open your browser and navigate to http://127.0.0.1:3000/.
You may also set your own listen host and port using this:
```
HOST=0.0.0.0 PORT=1337 npm start
```
*Hint:* All communication is only on your localhost and through RadioHead. No data is send over the internet! :-)
On the Website you have to configure your connection first.
......
......@@ -100,7 +100,7 @@ class Watering {
this.app.post('/api/setSettings', this.apiSetSettings);
// let the server listen on the configured host and port
this.server.listen(3000, 'localhost', () => {
this.server.listen(process.env.PORT || 3000, process.env.HOST || '127.0.0.1', () => {
const address = this.server.address();
console.log(`Control app started!\n\nNow open http://${address.address}:${address.port}/ in your browser.\n`);
});
......
{
"name": "auto-watering-control",
"version": "1.0.0",
"version": "1.0.1",
"lockfileVersion": 1,
"requires": true,
"dependencies": {
......
{
"name": "auto-watering-control",
"version": "1.0.0",
"version": "1.0.1",
"description": "Control tool for the automatic watering system",
"main": "index.js",
"scripts": {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment