https://github.com/ztepsic/jarvis
Temperature and humidity measuring (Raspberry Pi, ESP8266)
https://github.com/ztepsic/jarvis
arduino python raspberry-pi
Last synced: 2 months ago
JSON representation
Temperature and humidity measuring (Raspberry Pi, ESP8266)
- Host: GitHub
- URL: https://github.com/ztepsic/jarvis
- Owner: ztepsic
- License: mit
- Created: 2016-12-07T21:57:15.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2025-01-02T20:45:44.000Z (over 1 year ago)
- Last Synced: 2025-03-17T06:35:55.889Z (over 1 year ago)
- Topics: arduino, python, raspberry-pi
- Language: TSQL
- Homepage:
- Size: 56.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Jarvis
Home automation system
## Raspberry Pi
### Jarvis.SensorClient
**Jarvis.SensorClient** is console app that reads data from attached sensors on Raspberry Pi.
#### Configuration file
In root of application folder (e.g Jarvis.SensorClient) there is `config.json` file.
#### Commands
To get current sensor readings use this command:
python run_sensorclient.py cur
Values will be displayed in standard output as:
> temperature = 21
> humidity = 45
To get current sensor readings in JSON format use this command:
python run_sensorclient.py cur json
Values will be displayed in standard output in JSON format as:
```json
[
{
"device_ext_id": "device",
"device_id": 1,
"host": "host",
"location": "living room",
"sensor_id": 2,
"sensor_serial_no": "SERIAL_NO",
"timestamp": "2020-01-12T11:30:56.498990",
"unix_timestamp": 1578825056,
"value": 21.6,
"value_type": "temperature",
"value_type_id": 1
},
{
"device_ext_id": "device",
"device_id": 1,
"host": "host",
"location": "living room",
"sensor_id": 2,
"sensor_serial_no": "SERIAL_NO",
"timestamp": "2020-01-12T11:30:56.498990",
"unix_timestamp": 1578825056,
"value": 45,
"value_type": "humidity",
"value_type_id": 2
}
]
```
To get current sensor readings and send it to Jarvis.Svc web service use this command:
python run_sensorclient.py
---
### Jarvis.Svc
**Jarvis.Svc** is web service on Raspberry Pi that accepts sensor readings.
#### Configuration file
In root of application folder (e.g Jarvis.Svc) create `instance` folder and in that folder create file `app.cfg` with the following structure:
SENSOR_READ_CMD = "python /home/pi/jarvis/Jarvis.SensorClient/run_sensorclient.py cur json"
INFLUXDB_TOKEN = "value"
INFLUXDB_ORGANIZATION = "value"
INFLUXDB_BUCKET = "value"
Application is started with:
python runserver.py
---
## ESP8266 Arduino
### Jarvis.SensorClient
**Jarvis.SensorClient** is console app that reads data from attached sensors on ESO8266 Arduino
#### Configuration file
`config.json` file is used to define configuration.