phil8192 / home-monitoring

my home monitoring stuff
4 stars 4 forks source link

How use this script cm160 #1

Open vincent1890 opened 6 years ago

vincent1890 commented 6 years ago

How to install your script power_cm160.sh with the script https://github.com/fbourqui/eagle-owl pls ?

vincent1890 commented 5 years ago

up no reponse pls ?

phil8192 commented 5 years ago

hi, this code is related to this: http://parasec.net/blog/influxdb-weather/ - I have put the scripts here incase they may be of use to anyone looking to do a similar thing.

the power_cm160.sh script will pipe the output of eagle-owl to influx/influx_cm160.py which in turn will attempt to push the updates received from the eagle-owl process to a deployment of InfluxDB.

If you have setup influxdb and your eagle-owl is working, then you need to edit variables in the env.sh then source ./env.sh export the environment variables before invoking the ./power_cm160.sh script.

vincent1890 commented 5 years ago

Thank you for your help unfortunately I does not understand completely the file of config where : ??????????? Has to I use the http port 8086 or udp port 8089

export INFLUX_HOST=192.168.10.106 export INFLUX_PORT=8086 export INFLUX_USER=energy export INFLUX_PASS=energy

export LOCATION=???????????

wunderground credentials export WUNDERGROUND_ID=??????????? export WUNDERGROUND_PASS=???????????

Thank you for your help

phil8192 commented 5 years ago

use http port 8086. the LOCATION is added to each reading in influxdb in case you have multiple instances in different locations. E.g., home or work. WUNDERGROUND_ID is for pushing weather data to wunderground - just ignore it since you are only interested in the cm160 bit.