Closed Shizzlebix closed 6 years ago
Hello! New version ready :)
Warning! Configuration format changed!
thank you....
./install.sh
compilling...# command-line-arguments
./netatmo-munin-plugin.go:102: module.Info undefined (type *netatmo.Device has n o field or method Info)
ok
it this ok?
btw i dont see any infos about battery or something in cgf i set it to true
make go get -u github.com/exzz/netatmo-api-go
... you use old API version...
OK thanks that did it. Now compiling works without error.
BUT :(
/usr/share/munin/plugins/netatmo-munin-plugin oauth2: cannot fetch token: 400 Bad Request Response: {"error":"invalid_client"}
i have look into netatmo.cfg ... alll is set right as i see
add quotes to configuration file
ClientID = "ClientID"
ClientSecret = "ClientSecret"
Username = "Username"
Password = "Password"
i had this :(
go https://dev.netatmo.com
ClientID = "xxxxxxxxxxxxxx"
ClientSecret = "xxxxxxxxxxxxxxxxxxx"
Username = "xxxxxxxxx"
Password = "xxxxxxxxx"
[sensors]
CO2 = true
Noise = true
Pressure = true
Humidity = true
Temperature = true
WindStrength = true
Rain = true
WindAngle = true
BatteryPercent = true
RFStatus = true
WifiStatus = true
do you change "ClientID" to your real ClientID? .... netatmo-munin-plugin app look for configuration file (netatmo.cfg) in current folder and, then, in /etc/munin folder...
i copy the netatmo.cfg to /etc/munin/netatmo.cfg then i change all data in "" to mine and set all sensors to true
uploaded new app with better error info
Do not forget change example configuration settings :)
Why? it is my config copied and changed
ahh i see the problem
i had moved NOW your netatmo.cfg mv /netatmo-munin-go/netatmo.cfg /netatmo-munin-go/netatmo.weg
and now it work!!!
ok :)
But i don´t understand... why it check your netatmo.cfg and not the /etc/munin/netatmo.cfg?
i use netatmo.cfg in current folder for debug ...
a i see but this data i never filled up because your script copy this data to /etc/munin/ and open nano to change it .... :)
actual i see rain daily "nan" rain hourly "0.00"
Shell: multigraph netatmo_rain rain_daily_0.value 0.202 rain_hourly_0.value 0
I think i forgott to restart munin-node :(
"nan" at graph is "no data" ... yet ... try wait 5-10 min...
hmm all data are right there just rain not work :( can .... i will restart my raspberry
hm ... how about add some sensors (temperature and etc) directly to raspberry and display data in munin? :)
You mean sensors directly at the raspi? there is one :) is look for temp and humidity but my raspi is not here :)
So now i had delete all monitoring files from munin with name like rain....
again: daily: nan hourly: 0.00
eh ... not have time for my sensors :( ... want make my own gui for munin at golang ... just for fun :)
for this sensor i use a plugin named dht22
btw my munin say now rain daily nan hourly 0
shell:
multigraph netatmo_rain
rain_daily_0.value 0.303
rain_hourly_0.value 0.101
because it is rain here
All data are nice but rain not :(
2017/10/28 20:00:13 [ERROR] In RRD: Error updating /var/lib/munin/monitor/monitor-netatmo_rain-rain_daily_0-c.rrd: /var/lib/munin/monitor/monitor-netatmo_rain-rain_daily_0-c.rrd: not a simple unsigned integer: '0.202'
2017/10/28 20:05:14 [ERROR] In RRD: Error updating /var/lib/munin/monitor/monitor-netatmo_rain-rain_daily_0-c.rrd: /var/lib/munin/monitor/monitor-netatmo_rain-rain_daily_0-c.rrd: not a simple unsigned integer: '0.202'
2017/10/28 20:20:19 [ERROR] In RRD: Error updating /var/lib/munin/monitor/monitor-netatmo_rain-rain_daily_0-c.rrd: /var/lib/munin/monitor/monitor-netatmo_rain-rain_daily_0-c.rrd: not a simple unsigned integer: '0.202'
2017/10/28 20:35:22 [ERROR] In RRD: Error updating /var/lib/munin/monitor/monitor-netatmo_rain-rain_daily_0-c.rrd: /var/lib/munin/monitor/monitor-netatmo_rain-rain_daily_0-c.rrd: not a simple unsigned integer: '0.202'
2017/10/28 20:40:25 [ERROR] In RRD: Error updating /var/lib/munin/monitor/monitor-netatmo_rain-rain_daily_0-c.rrd: /var/lib/munin/monitor/monitor-netatmo_rain-rain_daily_0-c.rrd: not a simple unsigned integer: '0.202'
2017/10/28 20:50:21 [ERROR] In RRD: Error updating /var/lib/munin/monitor/monitor-netatmo_rain-rain_daily_0-c.rrd: /var/lib/munin/monitor/monitor-netatmo_rain-rain_daily_0-c.rrd: not a simple unsigned integer: '0.202'
2017/10/28 20:55:25 [ERROR] In RRD: Error updating /var/lib/munin/monitor/monitor-netatmo_rain-rain_daily_0-c.rrd: /var/lib/munin/monitor/monitor-netatmo_rain-rain_daily_0-c.rrd: not a simple unsigned integer: '0.202'
2017/10/28 21:05:28 [ERROR] In RRD: Error updating /var/lib/munin/monitor/monitor-netatmo_rain-rain_daily_0-c.rrd: /var/lib/munin/monitor/monitor-netatmo_rain-rain_daily_0-c.rrd: not a simple unsigned integer: '0.202'
2017/10/28 21:15:26 [ERROR] In RRD: Error updating /var/lib/munin/monitor/monitor-netatmo_rain-rain_hourly_0-c.rrd: /var/lib/munin/monitor/monitor-netatmo_rain-rain_hourly_0-c.rrd: not a simple unsigned integer: '0.101'
2017/10/28 21:15:26 [ERROR] In RRD: Error updating /var/lib/munin/monitor/monitor-netatmo_rain-rain_daily_0-c.rrd: /var/lib/munin/monitor/monitor-netatmo_rain-rain_daily_0-c.rrd: not a simple unsigned integer: '0.303'
2017/10/28 21:25:25 [ERROR] In RRD: Error updating /var/lib/munin/monitor/monitor-netatmo_rain-rain_hourly_0-c.rrd: /var/lib/munin/monitor/monitor-netatmo_rain-rain_hourly_0-c.rrd: not a simple unsigned integer: '0.101'
2017/10/28 21:25:25 [ERROR] In RRD: Error updating /var/lib/munin/monitor/monitor-netatmo_rain-rain_daily_0-c.rrd: /var/lib/munin/monitor/monitor-netatmo_rain-rain_daily_0-c.rrd: not a simple unsigned integer: '0.303'
2017/10/28 21:30:21 [ERROR] In RRD: Error updating /var/lib/munin/monitor/monitor-netatmo_rain-rain_hourly_0-c.rrd: /var/lib/munin/monitor/monitor-netatmo_rain-rain_hourly_0-c.rrd: not a simple unsigned integer: '0.101'
2017/10/28 21:30:21 [ERROR] In RRD: Error updating /var/lib/munin/monitor/monitor-netatmo_rain-rain_daily_0-c.rrd: /var/lib/munin/monitor/monitor-netatmo_rain-rain_daily_0-c.rrd: not a simple unsigned integer: '0.303'
2017/10/28 21:40:21 [ERROR] In RRD: Error updating /var/lib/munin/monitor/monitor-netatmo_rain-rain_daily_0-c.rrd: /var/lib/munin/monitor/monitor-netatmo_rain-rain_daily_0-c.rrd: not a simple unsigned integer: '0.303'
2017/10/28 21:40:21 [ERROR] In RRD: Error updating /var/lib/munin/monitor/monitor-netatmo_rain-rain_hourly_0-c.rrd: /var/lib/munin/monitor/monitor-netatmo_rain-rain_hourly_0-c.rrd: not a simple unsigned integer: '0.101'
2017/10/28 21:50:11 [ERROR] In RRD: Error updating /var/lib/munin/monitor/monitor-netatmo_rain-rain_daily_0-c.rrd: /var/lib/munin/monitor/monitor-netatmo_rain-rain_daily_0-c.rrd: not a simple unsigned integer: '0.404'
2017/10/28 21:50:11 [ERROR] In RRD: Error updating /var/lib/munin/monitor/monitor-netatmo_rain-rain_hourly_0-c.rrd: /var/lib/munin/monitor/monitor-netatmo_rain-rain_hourly_0-c.rrd: not a simple unsigned integer: '0.202'
2017/10/28 21:55:10 [ERROR] In RRD: Error updating /var/lib/munin/monitor/monitor-netatmo_rain-rain_daily_0-c.rrd: /var/lib/munin/monitor/monitor-netatmo_rain-rain_daily_0-c.rrd: not a simple unsigned integer: '0.505'
2017/10/28 21:55:10 [ERROR] In RRD: Error updating /var/lib/munin/monitor/monitor-netatmo_rain-rain_hourly_0-c.rrd: /var/lib/munin/monitor/monitor-netatmo_rain-rain_hourly_0-c.rrd: not a simple unsigned integer: '0.303
BTW:
// Rain : Last rain measured (in mm)
// Rain1Hour : Amount of rain in last hour
// Rain1Day : Amount of rain today
I have test.... // fmt.Printf("raindaily%v.type COUNTER\n", key) // fmt.Printf("rainhourly%v.type COUNTER\n", key)
now it shows data and draw graphs.
2017/10/28 21:55:10 [ERROR] In RRD: Error updating /var/lib/munin/monitor/monitor-netatmo_rain-rain_hourly_0-c.rrd: /var/lib/munin/monitor/monitor-netatmo_rain-rain_hourly_0-c.rrd: not a simple unsigned integer: '0.303
It's bug in rrdtool, you probably have very old version, all work fine for me ...
http://munin-monitoring.org/ticket/1193 https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=543631
ps "// Rain : Last rain measured (in mm)" - will test this soon ...
old version of rrd? rrdtool 1.6.0-1+b1
this is the actaly version with debian 9
see url ... can not help with this right now :(
i know :( what version u have?
at the link (from 2012) it say
| Version: | 1.4.6
without counter all is fine... hmmm
RRDtool 1.6.0 Copyright by Tobias Oetiker tobi@oetiker.ch Compiled 2016-04-25 07:23:34
debian 9.x
go to sleep, continue tomorrow :)
i wish you good night, i am on work to 6 o clock.
so your rrd is the same as mine :)
i comment out the three counter lines..... it shows and draw all fine...
what do this counter flags?
Hello Shizzlebix!
I'm testing new graphic for rain, what do you think?
https://www.dropbox.com/s/gr44yd88y7na0z6/netatmo_rain-pinpoint%3D1510314961%2C1510422961.png?dl=0
Hey,
very nice. But can you tell me what the counterlines do? because sind a had comment it out all works. so what do this lines?
Hi! We have 3 counters, first ("last rain measured") - its current rain amount, its work only when rain do right now. Second ("hourly") - you can have 1-2-10 rain at hour and this counter summary all in one, "daily" - something like "hourly" ... not sure, that all counters really usable ...
Hew app uploaded, for update: 1) compile and install plugin 2) run "su - munin --shell=/bin/bash -c /usr/share/munin/munin-update" for update munin global config 3) delete old munin rain data (3 file) 3) run "su - munin --shell=/bin/bash -c /usr/share/munin/munin-update" again for creating data files ... 4) wait for rain :)
2) su - munin --shell=/bin/bash -c /usr/share/munin/munin-update [FATAL ERROR] Lock already exists: /var/run/munin/munin-update.lock. Dying. at /usr/share/perl5/Munin/Master/Update.pm line 128.
3) this one? netatmo_rain-day.png netatmo_rain.html netatmo_rain-month.png netatmo_rain-week.png netatmo_rain-year.png
2 - munin already running, try again in one min 3 - no, rrd files in /var/lib/munin ....
monitor-netatmo_munin_rain_sh-rain_day-g.rrd monitor-netatmo_munin_rain_sh-rain_hour-g.rrd monitor-netatmo_munin_rain_sh-rain_rain-g.rrd monitor-netatmo_rain_daily-rain_daily_0-g.rrd monitor-netatmo_rain-rain_0-g.rrd monitor-netatmo_rain-rain_daily_0-c.rrd monitor-netatmo_rain-rain_daily_0-g.rrd monitor-netatmo_rain-rain_hourly_0-c.rrd monitor-netatmo_rain-rain_hourly_0-g.rrd monitor-netatmo_rain-rain_rain_0-d.rrd monitor-netatmo_rain-rain_rain_0-g.rrd
a i see now it work an no more errors 💃
yes
yes
Hello,
first THANK you for this plugin.
Now i have a question. So i have 2 more sensors in house and outdoor a wind and a rain sensor. Is there a way to build this also in this great tool, so i can draw it with munin?